mirror of
https://opendev.org/openstack/python-openstackclient.git
synced 2026-01-17 07:20:45 +00:00
Add a warning for resizing servers booted from volumes
Story: 2010858 Task: 48521 Change-Id: Ib72da4d2c2b4bfbbdbc1e8302b65d240e4e1d459
This commit is contained in:
parent
7ea78b6ef6
commit
2ae621f098
1 changed files with 7 additions and 0 deletions
|
|
@ -4017,6 +4017,13 @@ release the new server and restart the old one."""
|
|||
compute_client.flavors,
|
||||
parsed_args.flavor,
|
||||
)
|
||||
if not server.image:
|
||||
self.log.warning(
|
||||
_(
|
||||
"The root disk size in flavor will not be applied "
|
||||
"while booting from a persistent volume."
|
||||
)
|
||||
)
|
||||
compute_client.servers.resize(server, flavor)
|
||||
if parsed_args.wait:
|
||||
if utils.wait_for_status(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue