← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1561169] Re: make rpm fails on CentOS with KeyError: u'd'

 

[Expired for cloud-init because there has been no activity for 60 days.]

** Changed in: cloud-init
       Status: Incomplete => Expired

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

Title:
  make rpm fails on CentOS with KeyError: u'd'

Status in cloud-init:
  Expired

Bug description:
  Running `make rpm` after installing dependencies on a clean CentOS 7
  machine fails:

  # cat /etc/centos-release
  CentOS Linux release 7.2.1511 (Core)

  # python --version
  Python 2.7.5

  # pip --version
  pip 8.1.1 from /usr/lib/python2.7/site-packages (python 2.7)

  # pip install -r requirements.txt
  ...

  # pip install -r test-requirements.txt
  ...

  # make rpm
  ./packages/brpm --distro redhat
  Archived the code in '/root/rpmbuild/SOURCES/cloud-init-0.7.7~bzr1188.tar.gz'
  Traceback (most recent call last):
    File "./packages/brpm", line 277, in <module>
      sys.exit(main())
    File "./packages/brpm", line 245, in main
      os.path.basename(archive_fn))
    File "./packages/brpm", line 186, in generate_spec_contents
      return templater.render_from_file(tmpl_fn, params=subs)
    File "/home/azureuser/cloud-init/cloudinit/templater.py", line 137, in render_from_file
      return renderer(content, params)
    File "/home/azureuser/cloud-init/cloudinit/templater.py", line 83, in basic_render
      return BASIC_MATCHER.sub(replacer, content)
    File "/home/azureuser/cloud-init/cloudinit/templater.py", line 81, in replacer
      return str(selected_params[key])
  KeyError: u'd'
  make: *** [rpm] Error 1

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


References