Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1096265

Summary: ceilometer-api service fails to start due to missing ipaddr requirement of WSME
Product: Red Hat OpenStack Reporter: Eoghan Glynn <eglynn>
Component: openstack-ceilometerAssignee: Pádraig Brady <pbrady>
Status: CLOSED ERRATA QA Contact: Shai Revivo <srevivo>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.0 (RHEL 7)CC: afazekas, ddomingo, jruzicka, pbrady, yeylon
Target Milestone: rc   
Target Release: 5.0 (RHEL 7)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-wsme-0.6-2 Doc Type: Bug Fix
Doc Text:
This release also contains an update to python-wsme. This update fixes a bug that could prevent the ceilometer-api service from properly importing IP addresses; whenever this occurred, ceilometer-api would fail to start.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-08 15:32:26 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 Eoghan Glynn 2014-05-09 14:22:46 UTC
Description of problem:

The ceilometer-api service fails to start on rhel7beta with a failure to import ipaddr from deep within the bowels of WSME:

2014-05-09 08:35:22.752 22972 CRITICAL ceilometer [-] ImportError: No module named ipaddr
2014-05-09 08:35:22.752 22972 TRACE ceilometer Traceback (most recent call last):
2014-05-09 08:35:22.752 22972 TRACE ceilometer   File "/usr/bin/ceilometer-api", line 10, in <module>
2014-05-09 08:35:22.752 22972 TRACE ceilometer     sys.exit(api())
2014-05-09 08:35:22.752 22972 TRACE ceilometer   File "/usr/lib/python2.7/site-packages/ceilometer/cli.py", line 96, in api
2014-05-09 08:35:22.752 22972 TRACE ceilometer     srv = app.build_server()
[snip]
2014-05-09 08:35:22.752 22972 TRACE ceilometer   File "/usr/lib/python2.7/site-packages/wsme/api.py", line 7, in <module>
2014-05-09 08:35:22.752 22972 TRACE ceilometer     import wsme.types
2014-05-09 08:35:22.752 22972 TRACE ceilometer   File "/usr/lib/python2.7/site-packages/wsme/types.py", line 15, in <module>
2014-05-09 08:35:22.752 22972 TRACE ceilometer     import ipaddr as ipaddress
2014-05-09 08:35:22.752 22972 TRACE ceilometer ImportError: No module named ipaddr

Looks like python-ipaddr needs to be an explicit dependency.


Version-Release number of selected component (if applicable):

$ sudo rpm -qa | grep packstack
openstack-packstack-2014.1.1-0.11.1.dev1055.el7ost.noarch
openstack-packstack-puppet-2014.1.1-0.11.1.dev1055.el7ost.noarch


How reproducible:

100%


Steps to Reproduce:
1. Install packstack:

   $ packstack --allinone

2. Check the ceilometer-api service status:

   $ sudo service openstack-ceilometer-api status

3. Check the ceilometer-api logs for the signature in the description above:

   $ less /var/log/ceilometer/api.log


Actual results:

The ceilometer-api service fails to start with a failure to import ipaddr from deep within the bowels of WSME.


Expected results:

The ceilometer-api should start without any further RPM installation.


Additional info:

Issue can be worked around by manually installing ipaddr:

  $ sudo yum install -y python-ipaddr
  $ sudo service openstack-ceilometer-api start

Comment 2 Pádraig Brady 2014-05-09 15:12:10 UTC
This is already fixed in RDO.
In general we need to sync stuff from RDO again.
Syncing now...

Comment 3 Pádraig Brady 2014-05-09 15:30:23 UTC
*** Bug 1096044 has been marked as a duplicate of this bug. ***

Comment 4 Pádraig Brady 2014-05-12 08:52:38 UTC
*** Bug 1096518 has been marked as a duplicate of this bug. ***

Comment 8 errata-xmlrpc 2014-07-08 15:32:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2014-0850.html