← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1101821] Re: mcollective fail

 

** Also affects: cloud-init (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: cloud-init
       Status: New => Fix Released

** Changed in: cloud-init (Ubuntu)
       Status: New => Fix Released

** Also affects: cloud-init (Ubuntu Precise)
   Importance: Undecided
       Status: New

** Changed in: cloud-init (Ubuntu Precise)
       Status: New => Confirmed

** Changed in: cloud-init (Ubuntu Precise)
   Importance: Undecided => Low

** Changed in: cloud-init
   Importance: Undecided => Medium

** Changed in: cloud-init (Ubuntu)
   Importance: Undecided => Medium

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

Title:
  mcollective fail

Status in Init scripts for use on cloud images:
  Fix Released
Status in “cloud-init” package in Ubuntu:
  Fix Released
Status in “cloud-init” source package in Precise:
  Confirmed

Bug description:
  I try to config my ec2 instances using cloud-init, puppet and
  mcollective.

  My ami is ami-c1aaabb5 (ubuntu precise pangolin)

  My cloud-init script is:

  #cloud-config
  package_update: true
  package_upgrade: true
  package_reboot_if_required: true
  apt_pipelining: False
  apt_preserve_sources_list: true
  packages:
          - puppet
          - mcollective
          - mcollective-plugins-puppetd
  locale: es_ES.UTF-8
  locale_configfile: /etc/default/locale
  timezone: Europe/Madrid
  hostname: puppetagent2-test
  fqdn: puppetagent2-test.xxxxxxx.xxxx
  manage_etc_hosts: true
  output:
          init: "> /var/log/my-cloud-init.log"
          config: [ ">> /tmp/my-cloud-config.out", "> /tmp/my-cloud-config.err" ]
          final:
                  output: "| tee /tmp/my-cloud-config.stdout | tee /tmp/my-cloud-config.stdout"
                  error: "&1"
  puppet:
          conf:
                  main:
                          pluginsync: true
                          server: "puppet-test.xxxxxxx.xxxx"
                  master:
                          certname: "puppet-test.xxxxxxx.xxxx"
  mcollective:
          conf:
                  plugin.stomp.host: "puppet-test.xxxxxxx.xxxx"
                  plugin.stomp.port: "61613"
                  plugin.stomp.user: "guest"
                  plugin.stomp.password: "guest"

  Puppet config works fine but mcollectice don't

  In the error log of cloud-init i can see:

    File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/cc_mcollective.py", line 79, in handle
      for o, v in cfg.iteritems():
  AttributeError: 'str' object has no attribute 'iteritems'

  After see the code, I think that cfg always will be an str.

  It seem like if be a bug but i don't know.

  i try to trick it with:

  mcollective:
          conf:
                  plugin.stomp:
                          plugin.stomp.host: "puppet-test..xxxxxxx.xxxx"
                          plugin.stomp.port: "61613"
                          plugin.stomp.user: "guest"
                          plugin.stomp.password: "guest"

  but...

    File "/usr/lib/python2.7/ConfigParser.py", line 396, in set
      raise NoSectionError(section)
  NoSectionError: No section: 'plugin.stomp'

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