Hello, I use openstack to start windows10 home instance by a windows image,the instance can start up successfully,but its disk can't extend to my flavor 60G,and the error log is as follows:
2021-10-14 04:07:09.344 3724 INFO cloudbaseinit.init [-] Executing plugin 'ExtendVolumesPlugin' 2021-10-14 04:07:09.344 3724 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.osutils.windows.WindowsUtils' loadclass C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\lib\site-packages\cloudbaseinit\utils\classloader.py:27 2021-10-14 04:07:09.344 3724 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.utils.windows.storage.vdsstoragemanager.VDSStorageManager' loadclass C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\lib\site-packages\cloudbaseinit\utils\classloader.py:27 2021-10-14 04:07:13.798 3724 INFO cloudbaseinit.utils.windows.storage.vdsstoragemanager [-] Extending volume "\?\GLOBALROOT\Device\HarddiskVolume2" with 351232 bytes 2021-10-14 04:07:13.798 3724 ERROR cloudbaseinit.init [-] plugin 'ExtendVolumesPlugin' failed with error '(-2147212237, None, (None, None, None, 0, None))': ctypes.COMError: (-2147212237, None, (None, None, None, 0, None)) 2021-10-14 04:07:13.814 3724 ERROR cloudbaseinit.init [-] (-2147212237, None, (None, None, None, 0, None)): _ctypes.COMError: (-2147212237, None, (None, None, None, 0, None)) 2021-10-14 04:07:13.814 3724 ERROR cloudbaseinit.init Traceback (most recent call last): 2021-10-14 04:07:13.814 3724 ERROR cloudbaseinit.init File "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\lib\site-packages\cloudbaseinit\init.py", line 67, in _execplugin 2021-10-14 04:07:13.814 3724 ERROR cloudbaseinit.init shareddata) 2021-10-14 04:07:13.814 3724 ERROR cloudbaseinit.init File "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\lib\site-packages\cloudbaseinit\plugins\windows\extendvolumes.py", line 30, in execute 2021-10-14 04:07:13.814 3724 ERROR cloudbaseinit.init storagemanager.extendvolumes(volumesindexes) 2021-10-14 04:07:13.814 3724 ERROR cloudbaseinit.init File "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\lib\site-packages\cloudbaseinit\utils\windows\storage\vdsstoragemanager.py", line 147, in extendvolumes 2021-10-14 04:07:13.814 3724 ERROR cloudbaseinit.init self.extendvolumes(pack, volumeindexes) 2021-10-14 04:07:13.814 3724 ERROR cloudbaseinit.init File "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\lib\site-packages\cloudbaseinit\utils\windows\storage\vdsstoragemanager.py", line 63, in extendvolumes 2021-10-14 04:07:13.814 3724 ERROR cloudbaseinit.init self.extendvolume(pack, volume, volumeprop) 2021-10-14 04:07:13.814 3724 ERROR cloudbaseinit.init File "C:\Program Files\Cloudbase Solutions\Cloudbase-Init\Python\lib\site-packages\cloudbaseinit\utils\windows\storage\vdsstoragemanager.py", line 94, in _extendvolume 2021-10-14 04:07:13.814 3724 ERROR cloudbaseinit.init extendjob = volume.Extend(inputdisksar, len(inputdisks)) 2021-10-14 04:07:13.814 3724 ERROR cloudbaseinit.init _ctypes.COMError: (-2147212237, None, (None, None, None, 0, None)) 2021-10-14 04:07:13.814 3724 ERROR cloudbaseinit.init 2021-10-14 04:07:13.860 3724 INFO cloudbaseinit.init [-] Executing plugin 'UserDataPlugin'
I have set "san policy=onlineall" in windows cmd line,but the error still here . How can i do to fix it ?
Here is my conf:
[DEFAULT] username=Administrator groups=Administrators injectuserpassword=true configdriverawhhd=true configdrivecdrom=true configdrivevfat=true bsdtarpath=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\bin\bsdtar.exe mtoolspath=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 loggingserialportsettings=COM1,115200,N,8 mtuusedhcpconfig=true ntpusedhcpconfig=true localscriptspath=C:\Program Files\Cloudbase Solutions\Cloudbase-Init\LocalScripts\ checklatestversion=true netbioshostnamecompatibility=false metadataservices=cloudbaseinit.metadata.services.httpservice.HttpService retrycount=40 retrycountinterval=5 firstlogon_behaviour=no [openstack]
addmetadataprivateiproute=False
thank you