marconi-server in devstack is generating conflicts in openstack-client

Bug #1355872 reported by Julien Vey
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Python client library for Zaqar
Invalid
Undecided
Unassigned
python-openstackclient
Invalid
Undecided
Unassigned

Bug Description

While trying to run marconi/zaqar in devstack, I have the following error

http://paste.openstack.org/show/93899/

It happens each time the "openstack" command is used
I can't figure out if it's a problem with the renaming or nit

My local.conf http://paste.openstack.org/show/91043/

affects: marconi → python-marconiclient
Revision history for this message
Flavio Percoco (flaper87) wrote :

mmh, I tried to replicate this issue but I was not able to. What OS were you using? Ubuntu Precise?

Revision history for this message
Julien Vey (vey-julien) wrote :

yes, ubuntu precise. The official canonical ubuntu cloud image to be exact.

I also had the problem with this setup https://github.com/julienvey/vagrant-solum-dev/blob/master/local.conf.docker (+enable_service marconi-server)

Revision history for this message
Julien Vey (vey-julien) wrote :

after some investigation, I found something.

at this line https://github.com/openstack/python-openstackclient/blob/master/openstackclient/shell.py#L96
the openstackclient iterates over the modules registered, and when I print self.ext_modules, I see this

[........, <module 'zaqarclient.queues.cli' from '/opt/stack/python-zaqarclient/zaqarclient/queues/cli.pyc'>, <module 'marconiclient.queues.cli' from '/usr/local/lib/python2.7/dist-packages/marconiclient/queues/cli.py'>]

both zaqarclient and marconi client are registered and this is certainly why there is a conflict. zaqarclient registers the --os-queues-api-version argument and marconi client try to do the same

Revision history for this message
Flavio Percoco (flaper87) wrote :

@Julien: Now that Marconi has been renamed everywhere, does this still happen?

Revision history for this message
Flavio Percoco (flaper87) wrote :

btw, you need to use zaqarclient instead of marconiclient.

Changed in python-zaqarclient:
status: New → Incomplete
Revision history for this message
Alex Meade (alex-meade) wrote :

The openstack requirements project has both python-marconiclient and python-zaqarclient which try to register the same option in python-openstackclient and this causes the issue. So basically, openstack requirements has conflicting requirements.

This has affected me, any time you install all of global-requirements.txt, openstackclient will be broken.

Changed in python-zaqarclient:
status: Incomplete → New
status: New → Confirmed
Changed in python-openstackclient:
status: New → Confirmed
Revision history for this message
Steve Martinelli (stevemar) wrote :

shouldn't the solution be to remove marconiclient? or make marconiclient register a different option? I don't think it's unreasonable that openstackclient fail when the same option is registered twice, we *really* don't want to support that case

Revision history for this message
Steve Martinelli (stevemar) wrote :

I created this patch, https://review.openstack.org/#/c/194804/ thoughts?

Changed in python-openstackclient:
status: Confirmed → Invalid
Revision history for this message
Victoria Martinez de la Cruz (vkmc) wrote :
Changed in python-zaqarclient:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.