← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2016350] [NEW] Growpart fails on FreeBSD with virtio-SCSI

 

Public bug reported:

A VM with model=virtio-scsi will have a partition 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 scsi disks.

** Affects: cloud-init
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/2016350

Title:
  Growpart fails on FreeBSD with virtio-SCSI

Status in cloud-init:
  New

Bug description:
  A VM with model=virtio-scsi will have a partition 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 scsi disks.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/2016350/+subscriptions



Follow ups