'ExtendVolumesPlugin' failed with error '(-2147212277, None, (None, None, None, 0, None))'
Hello, I use cloudbase-init to extend my volume.
First in Openstack I added a disk, then I rebooted the Windows Server 2016 or Windows Server 2008 R2. ExtendVolumesPlugin did not work and it told me 'ExtendVolumesPlugin' failed with error '(-2147212277, None, (None, None, None, 0, None))'
When I restarted service cloudbase-init, ExtendVolumesPlugin worked and the volume D was extended to 50G successfully.
In my conf there is a plugin called DiskOnlinePlugin which can make all offline disks online. I use ExtendVolumesPlugin to extend volume. However the volume D(disk 1) is just 0.99G in Windows while the disk size is 50G. In disk management of Windows, the disk 1 has 49G which is not formatted. I wish the volume D can be extended to 50G.
I wonder why the first time ExtendVolumesPlugin didn't work. My cloudbase-init is 0.9.11 stable version.
The following are my conf and log.
=====================
[DEFAULT]
username=Administrator
groups=Administrators
injectuserpassword=false
configdriveraw_hhd=true
configdrivecdrom=true
configdrivevfat=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
defaultloglevels=comtypes=INFO,suds=INFO,iso8601=WARN,requests=WARN
loggingserialport_settings=COM1,115200,N,8
mtuusedhcp_config=true
ntpusedhcp_config=true
localscriptspath=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\LocalScripts\
plugins=cloudbaseinit.plugins.windows.diskonline.DiskOnlinePlugin,
cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin,
cloudbaseinit.plugins.windows.extendvolumes.ExtendVolumesPlugin
allow_reboot=false
=========================================
2020-03-10 12:04:08.821 2956 INFO cloudbaseinit.init [-] Executing plugin 'ExtendVolumesPlugin'
2020-03-10 12:04:08.836 2956 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
2020-03-10 12:04:08.852 2956 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.utils.windows.storage.vdsstoragemanager.VDSStorageManager' load_class c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\classloader.py:27
2020-03-10 12:04:12.165 2956 INFO comtypes.client.codecache [-] Imported existing <module 'comtypes.gen'="" from="" 'c:\\program="" files\\cloudbase="" solutions\\cloudbase-init\\python\\lib\\site-packages\\comtypes\\gen\\__init__.py'="">
2020-03-10 12:04:12.165 2956 INFO comtypes.client.codecache [-] Using writeable comtypes cache directory: 'c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\comtypes\gen'
2020-03-10 12:04:45.743 2956 ERROR cloudbaseinit.init [-] plugin 'ExtendVolumesPlugin' failed with error '(-2147212277, None, (None, None, None, 0, None))'
2020-03-10 12:04:45.758 2956 ERROR cloudbaseinit.init [-] (-2147212277, None, (None, None, None, 0, None))
2020-03-10 12:04:45.758 2956 ERROR cloudbaseinit.init Traceback (most recent call last):
2020-03-10 12:04:45.758 2956 ERROR cloudbaseinit.init File "c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\init.py", line 65, in execplugin
2020-03-10 12:04:45.758 2956 ERROR cloudbaseinit.init shared_data)
2020-03-10 12:04:45.758 2956 ERROR cloudbaseinit.init File "c:\program files\cloudbase solutions\cloudbase-init\python\lib ...