RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1043725 - Fedora 19 puppet/glance failure due to warnings in output
Summary: Fedora 19 puppet/glance failure due to warnings in output
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RDO
Classification: Community
Component: openstack-packstack
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Havana
Assignee: Martin Magr
QA Contact: Ami Jeain
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-17 02:15 UTC by Ian Wienand
Modified: 2015-03-18 21:08 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-18 21:08:52 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 68926 0 None None None Never
OpenStack gerrit 74749 0 None None None Never

Description Ian Wienand 2013-12-17 02:15:43 UTC
F19 packstack installs regularly fail with

---
Error: Could not prefetch glance_image provider 'glance': Execution of '/usr/bin/glance -T services -I glance -K cbde8203258a4cf5 -N http://192.168.0.2:35357/v2.0/ show ID' returned 1
---

I've figured out this is due to puppet-glance which is doing [1]

---
(auth_glance('index').split("\n")[2..-1] || []).collect do |line|
---

i.e. it assumes the top two lines are headers.  Unfortunately the command is giving a warning about backports, which takes up two lines and then the puppet modules are confused (hence the "show ID" in the output)

---
[root@host-192-168-0-2 ~]# strace -f -o /tmp/foo.txt /usr/bin/glance -T services -I glance -K cbde8203258a4cf5 -N http://192.168.0.2:35357/v2.0/ image-list
/usr/lib/python2.7/site-packages/keyring/core.py:166: UserWarning: Module backports was already imported from /usr/lib64/python2.7/site-packages/backports/__init__.pyc, but /usr/lib/python2.7/site-packages is being added to sys.path
  pkg_resources = __import__('pkg_resources')
+--------------------------------------+--------+-------------+------------------+----------+--------+
| ID                                   | Name   | Disk Format | Container Format | Size     | Status |
+--------------------------------------+--------+-------------+------------------+----------+--------+
| 26ed571b-ff55-459c-80ca-911ae8e42b4f | cirros | qcow2       | bare             | 13147648 | active |
+--------------------------------------+--------+-------------+------------------+----------+--------+
---

I found a related bz#1022686 where this same sort of thing was happening with keystone

[1] https://github.com/stackforge/puppet-glance/blob/master/lib/puppet/provider/glance.rb#L111

Comment 2 Martin Magr 2014-01-24 14:36:15 UTC
We will need to fix puppet-glance module first.

Comment 3 Martin Magr 2014-02-12 09:46:12 UTC
*** Bug 1063474 has been marked as a duplicate of this bug. ***

Comment 4 Lars Kellogg-Stedman 2015-03-18 21:08:52 UTC
This particular issue has been fixed both upstream and in our packages.


Note You need to log in before you can comment on or make changes to this bug.