RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1049235 - neutron-openvswitch-agent service restart fails; reason: fails to pull dependency - python-psutil
Summary: neutron-openvswitch-agent service restart fails; reason: fails to pull depend...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RDO
Classification: Community
Component: openstack-neutron
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Terry Wilson
QA Contact: Ofer Blaut
URL:
Whiteboard:
Depends On:
Blocks: 1049534
TreeView+ depends on / blocked
 
Reported: 2014-01-07 09:23 UTC by Kashyap Chamarthy
Modified: 2019-09-10 14:07 UTC (History)
5 users (show)

Fixed In Version: openstack-neutron-2014.1-0.2.b1.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1049534 (view as bug list)
Environment:
Last Closed: 2014-04-07 17:23:18 UTC
Embargoed:


Attachments (Terms of Use)

Description Kashyap Chamarthy 2014-01-07 09:23:32 UTC
Description of problem
----------------------

Upgrading openstack-neutron-2013.2-3.fc20.noarch (Havana) to
openstack-neutron-2014.1-0.1.b1.fc21.noarch (IceHouse-M1), and 
restarting openstack-neutron-agent fails with the below:

[. . .]
"/usr/lib/python2.7/site-packages/neutron/agent/linux/async_process.py", ...odule>
Jan 07 02:45:15 node2-compute neutron-openvswitch-agent[3471]: import psutil
Jan 07 02:45:15 node2-compute neutron-openvswitch-agent[3471]: ImportError: No module
named psutil
Jan 07 02:45:15 node2-compute systemd[1]: neutron-openvswitch-agent.service: main process
exited, code=exited, status=1/FAILURE
[. . .]

Workaround: 

  $ yum install python-psutil -y


Version
-------

I upgraded from openstack-neutron-2013.2-3.fc20.noarch to
openstack-neutron-2014.1-0.1.b1.fc21.noarch


Test env
--------

A two node OpenStack RDO set-up configured manually on two Fedora 20
VMs:

  - Controller node: Nova, Keystone, Cinder, Glance, Neutron (using Open
    vSwitch plugin and GRE tunneling).

  - Compute node: Nova (nova-compute), Neutron (openvswitch-agent)


How reproducible: Consistently.


Steps to Reproduce
------------------

Assuming you have openstack-neutron-2013.2-3.fc20.noarch, on your
current Fedora-20 OpenStack setup:

    $ yum install \
      http://repos.fedorapeople.org/repos/openstack/openstack-icehouse/rdo-release-icehouse-1.noarch.rpm

    $ yum update openstack-neutron -y

    $ systemctl restart openstack-neutron


Actual results 
--------------

Restart fails with:

[. . .]
Jan 07 02:45:15 node2-compute neutron-openvswitch-agent[3471]: from neutron.agent.linux import polling
Jan 07 02:45:15 node2-compute neutron-openvswitch-agent[3471]: File "/usr/lib/python2.7/site-packages/neutron/agent/linux/polling.py", line 2...odule>
Jan 07 02:45:15 node2-compute neutron-openvswitch-agent[3471]: from neutron.agent.linux import ovsdb_monitor
Jan 07 02:45:15 node2-compute neutron-openvswitch-agent[3471]: File "/usr/lib/python2.7/site-packages/neutron/agent/linux/ovsdb_monitor.py", ...odule>
Jan 07 02:45:15 node2-compute neutron-openvswitch-agent[3471]: from neutron.agent.linux import async_process
Jan 07 02:45:15 node2-compute neutron-openvswitch-agent[3471]: File "/usr/lib/python2.7/site-packages/neutron/agent/linux/async_process.py", ...odule>
Jan 07 02:45:15 node2-compute neutron-openvswitch-agent[3471]: import psutil
Jan 07 02:45:15 node2-compute neutron-openvswitch-agent[3471]: ImportError: No module named psutil
Jan 07 02:45:15 node2-compute systemd[1]: neutron-openvswitch-agent.service: main process exited, code=exited, status=1/FAILURE
Jan 07 02:45:15 node2-compute systemd[1]: Unit neutron-openvswitch-agent.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
[root@node2-compute ~]# systemctl status neutron-openvswitch-agent -l
neutron-openvswitch-agent.service - OpenStack Quantum Open vSwitch Agent
   Loaded: loaded (/usr/lib/systemd/system/neutron-openvswitch-agent.service; enabled)
[. . .]


Expected results
----------------

On upgrade, openstack-neutron should pull in the python-psutil 
dependency. Restart of neutron-openvswitch-agent should be successful.


Additional info
---------------

I checked in Fedora git for Neutron master branch, for 'Requires' on
python-psutil, it's not present:

    $ git branch
    * master
    
    $ git log | head -1
    commit be96ca650ad6c02310875491d68bb64f139da543

    $ egrep -i 'Requires.*python-psutil' openstack-neutron.spec 
    $ echo $?
    1

Comment 1 Kashyap Chamarthy 2014-01-07 09:40:11 UTC
This was brought in with this change:

  https://review.openstack.org/#/c/53188/10/requirements.txt

  psutil>=0.6.1,<1.0

Comment 2 Pádraig Brady 2014-01-07 11:14:36 UTC
I see neutron-openvswitch-agent failing in CI also. thanks


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