Ask Your Question
0

Why would I have a python path inconsistency

asked 2014-08-20 18:14:26 -0500

dglaser gravatar image

updated 2014-08-22 16:32:39 -0500

smaffulli gravatar image

I was going through the log files written out in my /opt/stack/logs/screen directory. In the screen-n-net.log file I found the following stack dump. Note how the call stack makes use of oslo.messaging packages contained in the "/usr/local/lib/python2.7/dist-packages" directory instead of the /op/stack/oslo.messaging directory.

This was a fresh OS install before installing devstack. However, I really muddied the waters by also installing Eclipse 4.2 and PyDev.

I reinstalled Ubuntu 14.04 from the minimal .iso, adding the gnome desktop along the way. I then installed devstack and ran setup.sh. The resulting build no-longer gives me stack traces in the log. However, log messges (DEBUG log level turned on) show that the python interpreter is still choosing the dist-pagages over the /opt/stack packages.

Why is this and is this a problem?

================================================================

2014-08-20 18:10:17.612 TRACE nova.servicegroup.drivers.db Traceback (most recent call last):
2014-08-20 18:10:17.612 TRACE nova.servicegroup.drivers.db   File "/opt/stack/nova/nova/servicegroup/drivers/db.py", line 99, in _report_state
2014-08-20 18:10:17.612 TRACE nova.servicegroup.drivers.db     service.service_ref, state_catalog)
2014-08-20 18:10:17.612 TRACE nova.servicegroup.drivers.db   File "/opt/stack/nova/nova/conductor/api.py", line 183, in service_update
2014-08-20 18:10:17.612 TRACE nova.servicegroup.drivers.db     return self._manager.service_update(context, service, values)
2014-08-20 18:10:17.612 TRACE nova.servicegroup.drivers.db   File "/opt/stack/nova/nova/conductor/rpcapi.py", line 284, in service_update
2014-08-20 18:10:17.612 TRACE nova.servicegroup.drivers.db     service=service_p, values=values)
2014-08-20 18:10:17.612 TRACE nova.servicegroup.drivers.db   File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/rpc/client.py", line 152, in call
2014-08-20 18:10:17.612 TRACE nova.servicegroup.drivers.db     retry=self.retry)
2014-08-20 18:10:17.612 TRACE nova.servicegroup.drivers.db   File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/transport.py", line 90, in _send
2014-08-20 18:10:17.612 TRACE nova.servicegroup.drivers.db     timeout=timeout, retry=retry)
2014-08-20 18:10:17.612 TRACE nova.servicegroup.drivers.db   File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/_drivers/amqpdriver.py", line 404, in send
2014-08-20 18:10:17.612 TRACE nova.servicegroup.drivers.db     retry=retry)
2014-08-20 18:10:17.612 TRACE nova.servicegroup.drivers.db   File "/usr/local/lib/python2.7/dist-packages/oslo/messaging/_drivers/amqpdriver.py", line 393, in _send
2014-08-20 18:10:17.612 TRACE nova.servicegroup.drivers.db     result = self._waiter.wait(msg_id, timeout)
2014-08-20 18:10:17.612 TRACE nova.servicegroup.drivers.db [01 ...
(more)
edit retag flag offensive close merge delete

Comments

was this a fresh operating system instal before instal devstack?

fifieldt gravatar imagefifieldt ( 2014-08-20 20:13:41 -0500 )edit

This was a fresh OS install before installing devstack. However, I really muddied the waters by also installing Eclipse 4.2 and PyDev.

I reinstalled Ubuntu 14.04 from the minimal .iso, adding the gnome desktop along the way. I then installed devstack and ran setup.sh. The resulting build no-longer gives me stack traces in the log. However, log messges (DEBUG log level turned on) show that the python interpreter is still choosing the dist-pagages over the /opt/stack packages.

dglaser gravatar imagedglaser ( 2014-08-21 20:26:22 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-09 03:37:43 -0500

fifieldt gravatar image

Due to the large number of dependencies, devstack is designed to be installed on a fully clean (usually new) virtual machine. Installing other packages on the system, especially large ones such as gnome or eclipse can result in unpredictable behaviour.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-08-20 18:14:26 -0500

Seen: 185 times

Last updated: Jan 09 '15