Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/

Bug 1043725

Summary: Fedora 19 puppet/glance failure due to warnings in output
Product: [Community] RDO Reporter: Ian Wienand <iwienand>
Component: openstack-packstackAssignee: Martin Magr <mmagr>
Status: CLOSED CURRENTRELEASE QA Contact: Ami Jeain <ajeain>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: aortega, derekh, lars, mmagr, whayutin, yeylon
Target Milestone: ---   
Target Release: Havana   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-18 21:08:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.