← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1236640] Re: "runcmd" fails with number arguments beginning with 0

 

** Changed in: cloud-init
       Status: Confirmed => Won't Fix

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

Title:
  "runcmd" fails with number arguments beginning with 0

Status in cloud-init:
  Won't Fix

Bug description:
  Using 0.6.3,

    runcmd:
      - [install, -o, postgres, -g, postgres, -m, 0700, -d, /etc/some/target]

  Causes the error

    Oct  7 23:15:43 ip-10-12-2-117 [CLOUDINIT] __init__.py[WARNING]: Traceback (most recent call last):#012  File "/usr/lib/python2.7/dist-packages/cloudinit/CloudCo10.12.2.93 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDkxf7P3yKO0RR8dXrMPOAQNxId+qjKmJw0I5MFJf2llMROUAXha+VeonU86BcrXJF+ntG3UQGnnQu6cFfUUrSzzXr0b7JXvTXlgNzSAjD33r6c3p
  nfig/__init__.py", line 117, in run_cc_modules#012    cc.handle(name, run_args, freq=freq)#012  File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/__init__.py", line 78, in handle#012    [name, self.cfg, self.cloud, cloudinit.log, args])#012  File "/usr/lib/python2.7/dist-packages/cloudinit/__init__.py", line 327, in sem_and_run#012    func(*args)#012  File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/cc_scripts_user.py", line 31, in handle#012    util.runparts(runparts_path)#012  File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line 229, in runparts#012    raise RuntimeError('runparts: %i failures' % failed)#012RuntimeError: runparts: 1 failures

  But quoting the value will work around the error

    runcmd:
      - [install, -o, postgres, -g, postgres, -m, "0700", -d, /etc/some/target]

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