Merge "Add a warning for resizing servers booted from volumes"

This commit is contained in:
Zuul 2023-09-19 13:14:06 +00:00 committed by Gerrit Code Review
commit 5f4082d046

View File

@ -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(