Bug 1497714 - [UPDATES] Traceback in ceilometer_agent_compute container: 'ImportError: No module named neutronclient.common'
Summary: [UPDATES] Traceback in ceilometer_agent_compute container: 'ImportError: No m...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-ceilometer
Version: 12.0 (Pike)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 12.0 (Pike)
Assignee: Pradeep Kilambi
QA Contact: Sasha Smolyak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-02 13:55 UTC by Yurii Prokulevych
Modified: 2018-02-05 19:15 UTC (History)
7 users (show)

Fixed In Version: openstack-ceilometer-9.0.2-0.20171013153832.ea962e7.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-13 22:11:53 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
RDO 9922 0 None None None 2017-10-03 20:43:00 UTC
Red Hat Product Errata RHEA-2017:3462 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 12.0 Enhancement Advisory 2018-02-16 01:43:25 UTC

Description Yurii Prokulevych 2017-10-02 13:55:02 UTC
Description of problem:
-----------------------
During minor update of RHOS-12 on cmoputes next tracebacks appears in container's log:
INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
INFO:__main__:Validating config file
INFO:__main__:Kolla config strategy set to: COPY_ALWAYS
INFO:__main__:Copying service configuration files
INFO:__main__:Deleting /etc/ceilometer/ceilometer.conf
INFO:__main__:Copying /var/lib/kolla/config_files/src/etc/ceilometer/ceilometer.conf to /etc/ceilometer/ceilometer.conf
INFO:__main__:Writing out command to execute
Running command: '/usr/bin/ceilometer-polling --polling-namespaces compute --logfile /var/log/ceilometer/compute.log'
Traceback (most recent call last):
  File "/usr/bin/ceilometer-polling", line 6, in <module>
    from ceilometer.cmd.polling import main
  File "/usr/lib/python2.7/site-packages/ceilometer/cmd/polling.py", line 23, in <module>
    from ceilometer import service
  File "/usr/lib/python2.7/site-packages/ceilometer/service.py", line 27, in <module>
    from ceilometer import opts
  File "/usr/lib/python2.7/site-packages/ceilometer/opts.py", line 44, in <module>
    import ceilometer.neutron_client
  File "/usr/lib/python2.7/site-packages/ceilometer/neutron_client.py", line 17, in <module>
    from neutronclient.common import exceptions
ImportError: No module named neutronclient.common


Version-Release number of selected component (if applicable):
-------------------------------------------------------------
[root@compute-0 ~]# rpm -qa | grep ceilo
python-ceilometermiddleware-1.1.0-0.20170824160203.0cea730.el7ost.noarch
openstack-ceilometer-common-9.0.2-0.20170925173740.1057885.el7ost.noarch
openstack-ceilometer-ipmi-9.0.2-0.20170925173740.1057885.el7ost.noarch
python-ceilometerclient-2.9.0-0.20170811140520.3b4e35a.el7ost.noarch
openstack-ceilometer-notification-9.0.2-0.20170925173740.1057885.el7ost.noarch
openstack-ceilometer-api-9.0.2-0.20170925173740.1057885.el7ost.noarch
openstack-ceilometer-central-9.0.2-0.20170925173740.1057885.el7ost.noarch
puppet-ceilometer-11.3.1-0.20170923033230.767c543.el7ost.noarch
python-ceilometer-9.0.2-0.20170925173740.1057885.el7ost.noarch
openstack-ceilometer-collector-9.0.2-0.20170925173740.1057885.el7ost.noarch
openstack-ceilometer-polling-9.0.2-0.20170925173740.1057885.el7ost.noarch
openstack-ceilometer-compute-9.0.2-0.20170925173740.1057885.el7ost.noarch

Images update from openstack-ceilometer-compute-docker:2017-09-27.3 to openstack-ceilometer-compute-docker:2017-09-28.2

Steps to Reproduce:
-------------------
1. Install RHOS-12(2017-09-28.1)
2. Install latest repos(2017-09-29.2)
3. Apply patches: 487488 and 487496
4. Upload latest images
5. Update UC
6. Update 'computes':
    openstack overcloud update stack --generate-inventory --nodes Compute

Additional info:
----------------
Virtual setup: 3controllers + 2computes + 3cephs

Comment 1 Pradeep Kilambi 2017-10-03 20:18:37 UTC
This seems like a packaging issue. We should have the neutronclient requires on common. I'll take a look.

Comment 6 Mehdi ABAAKOUK 2017-11-27 09:54:30 UTC
The error is no longer there:

$ sudo docker logs ceilometer_agent_compute
INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
INFO:__main__:Validating config file
INFO:__main__:Kolla config strategy set to: COPY_ALWAYS
INFO:__main__:Copying service configuration files
INFO:__main__:Deleting /etc/ceilometer/ceilometer.conf
INFO:__main__:Copying /var/lib/kolla/config_files/src/etc/ceilometer/ceilometer.conf to /etc/ceilometer/ceilometer.conf
INFO:__main__:Writing out command to execute
Running command: '/usr/bin/ceilometer-polling --polling-namespaces compute --logfile /var/log/ceilometer/compute.log'

Comment 9 errata-xmlrpc 2017-12-13 22:11:53 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.

https://access.redhat.com/errata/RHEA-2017:3462


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