← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1465436] [NEW] growpart does not respect devices list

 

Public bug reported:

From

http://bazaar.launchpad.net/~cloud-init-dev/cloud-
init/trunk/view/head:/cloudinit/config/cc_growpart.py#L279

    devices = util.get_cfg_option_list(cfg, "devices", ["/"])
    if not len(devices):
        log.debug("growpart: empty device list")
        return

The full config is passed rather than the already acquired growpart
config, causing the devices list not to be found and subsequently
ignored. Needs to be updated from "cfg" to "mycfg" and then seems to
work correctly.

Apologies for lack of formatting, I haven't worked in Launchpad
previously.

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

** Description changed:

+ From
+ 
  http://bazaar.launchpad.net/~cloud-init-dev/cloud-
  init/trunk/view/head:/cloudinit/config/cc_growpart.py#L279
+ 
+     devices = util.get_cfg_option_list(cfg, "devices", ["/"])
+     if not len(devices):
+         log.debug("growpart: empty device list")
+         return
  
  The full config is passed rather than the already acquired growpart
  config, causing the devices list not to be found and subsequently
  ignored. Needs to be updated from "cfg" to "mycfg" and then seems to
  work correctly.
+ 
+ Apologies for lack of formatting, I haven't worked in Launchpad
+ previously.

-- 
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/1465436

Title:
  growpart does not respect devices list

Status in Init scripts for use on cloud images:
  New

Bug description:
  From

  http://bazaar.launchpad.net/~cloud-init-dev/cloud-
  init/trunk/view/head:/cloudinit/config/cc_growpart.py#L279

      devices = util.get_cfg_option_list(cfg, "devices", ["/"])
      if not len(devices):
          log.debug("growpart: empty device list")
          return

  The full config is passed rather than the already acquired growpart
  config, causing the devices list not to be found and subsequently
  ignored. Needs to be updated from "cfg" to "mycfg" and then seems to
  work correctly.

  Apologies for lack of formatting, I haven't worked in Launchpad
  previously.

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


Follow ups

References