You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Launchpad user Tyler Wilson(loth) wrote on 2023-04-15T00:10:44.850753+00:00
A VM with slices and/or MBR will have a slice named /dev/da0s1a and makes growpart fail on its partition detection;
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/cloudinit/config/modules.py", line 246, in _run_modules
ran, _r = cc.run(
File "/usr/local/lib/python3.9/site-packages/cloudinit/cloud.py", line 67, in run
return self._runners.run(name, functor, args, freq, clear_on_fail)
File "/usr/local/lib/python3.9/site-packages/cloudinit/helpers.py", line 185, in run
results = functor(*args)
File "/usr/local/lib/python3.9/site-packages/cloudinit/config/cc_growpart.py", line 613, in handle
resized = util.log_time(
File "/usr/local/lib/python3.9/site-packages/cloudinit/util.py", line 2721, in log_time
ret = func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/cloudinit/config/cc_growpart.py", line 526, in resize_devices
(disk, ptnum) = device_part_info(blockdev)
File "/usr/local/lib/python3.9/site-packages/cloudinit/config/cc_growpart.py", line 273, in device_part_info
return (m.group(1), m.group(2))
AttributeError: 'NoneType' object has no attribute 'group'
It seems the regex needs to be modified to support MBR disks, if we want to support them.
The text was updated successfully, but these errors were encountered:
This bug was originally filed in Launchpad as LP: #2016350
Launchpad details
Launchpad user Tyler Wilson(loth) wrote on 2023-04-15T00:10:44.850753+00:00
A VM with slices and/or MBR will have a slice named /dev/da0s1a and makes growpart fail on its partition detection;
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/cloudinit/config/modules.py", line 246, in _run_modules
ran, _r = cc.run(
File "/usr/local/lib/python3.9/site-packages/cloudinit/cloud.py", line 67, in run
return self._runners.run(name, functor, args, freq, clear_on_fail)
File "/usr/local/lib/python3.9/site-packages/cloudinit/helpers.py", line 185, in run
results = functor(*args)
File "/usr/local/lib/python3.9/site-packages/cloudinit/config/cc_growpart.py", line 613, in handle
resized = util.log_time(
File "/usr/local/lib/python3.9/site-packages/cloudinit/util.py", line 2721, in log_time
ret = func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/cloudinit/config/cc_growpart.py", line 526, in resize_devices
(disk, ptnum) = device_part_info(blockdev)
File "/usr/local/lib/python3.9/site-packages/cloudinit/config/cc_growpart.py", line 273, in device_part_info
return (m.group(1), m.group(2))
AttributeError: 'NoneType' object has no attribute 'group'
It seems the regex needs to be modified to support MBR disks, if we want to support them.
The text was updated successfully, but these errors were encountered: