New Question
0

ExtendVolumesPlugin does not extend volumes after flavor change

asked 2019-04-30 15:49:58 +0200

buergersteig gravatar image

On OpenStack, I have a Windows 10 image with a minimum size of 40 GB. If I provision a new Windows machine with a flavor with a bigger volume size like 80 GB, ExtendVolumesPlugin properly extends the size of the root volume to 80 GB during the first boot. But if change the flavor to one with an even bigger volume size like 160 GB and reboot the machine, ExtendVolumesPlugin is ran (according to the logs) but it does not extend the volume size of the system drive to 160 GB. It keeps it at 80 GB instead. This happens with all Windows versions we use (Windows 10, Windows Server 2016, Windows Server 2019).

cloudbase-init.conf:

[DEFAULT]
username=Administrator
groups=Administrators
config_drive_raw_hhd=true
config_drive_cdrom=true
config_drive_vfat=true
bsdtar_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\bsdtar.exe
mtools_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\
verbose=true
debug=true
logdir=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\log\
logfile=cloudbase-init.log
default_log_levels=comtypes=INFO,suds=INFO,iso8601=WARN,requests=WARN
logging_serial_port_settings=
mtu_use_dhcp_config=true
ntp_use_dhcp_config=true
inject_user_password=true
first_logon_behaviour=clear_text_injected_only
local_scripts_path=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\LocalScripts\
plugins=cloudbaseinit.plugins.common.mtu.MTUPlugin,
        cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin,
        cloudbaseinit.plugins.common.sshpublickeys.SetUserSSHPublicKeysPlugin,
        cloudbaseinit.plugins.windows.createuser.CreateUserPlugin,
        cloudbaseinit.plugins.windows.extendvolumes.ExtendVolumesPlugin,
        cloudbaseinit.plugins.windows.licensing.WindowsLicensingPlugin,
        cloudbaseinit.plugins.common.setuserpassword.SetUserPasswordPlugin

Log:

2019-04-30 10:58:33.698 3676 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.osutils.windows.WindowsUtils' load_class c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\classloader.py:27
2019-04-30 10:58:34.449 3676 DEBUG cloudbaseinit.osutils.windows [-] Checking if service exists: cloudbase-init check_service_exists c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\osutils\windows.py:894
2019-04-30 10:58:34.449 3676 DEBUG cloudbaseinit.osutils.windows [-] Getting service username: cloudbase-init get_service_username c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\osutils\windows.py:1027
2019-04-30 10:58:34.449 3676 DEBUG cloudbaseinit.osutils.windows [-] Resetting password for service user: .\cloudbase-init reset_service_password c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\osutils\windows.py:1050
2019-04-30 10:58:35.980 3676 DEBUG cloudbaseinit.osutils.windows [-] Setting service credentials: cloudbase-init set_service_credentials c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\osutils\windows.py:1010
2019-04-30 10:58:36.105 3676 INFO cloudbaseinit.init [-] Respawning current process with updated credentials.
2019-04-30 10:58:36.105 3676 DEBUG cloudbaseinit.osutils.windows [-] Creating logon session for user: .\cloudbase-init create_user_logon_session c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\osutils\windows.py:566
2019-04-30 10:58:36.183 3676 DEBUG cloudbaseinit.osutils.windows [-] Executing process as user, command line: ['C:\\Program Files\\Cloudbase Solutions\\Cloudbase-Init\\Python\\Scripts\\cloudbase-init', '--config-file', 'C:\\Program Files\\Cloudbase Solutions\\Cloudbase-Init\\conf\\cloudbase-init.conf', '--noreset_service_password'] execute_process_as_user c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\osutils\windows.py:620
2019-04-30 10:58:36.620 3624 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.osutils.windows.WindowsUtils' load_class c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\classloader.py ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2019-05-06 17:14:46 +0200

avladu gravatar image

updated 2019-05-06 17:18:13 +0200

Hello,

I could not reproduce this issue in my setup. Can you share a print screen with the diskmgmt.msc console before the resize and after the resize? From what I see in the logs, there are no errors from the cloudbase-init side.

Thank you,
Adrian Vladu

edit flag offensive delete link more

Comments

Can't remember for sure, but would the plugin have to be "rearmed" in order to be executed after the resize? If that's not the case, it may be worth double checking that the underlying disk (not the partition) has been resized by Openstack.

lpetrut gravatar imagelpetrut ( 2019-05-08 13:22:17 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2019-04-30 15:49:58 +0200

Seen: 1,064 times

Last updated: May 06 '19