openstack complete: ERROR: openstack 'module' object has no attribute 'UpdateDataSource'

Bug #1498038 reported by Dmitry Tantsur
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Python client library for Sahara
Fix Released
High
Unassigned
python-openstackclient
Invalid
Undecided
Unassigned

Bug Description

We're seeing the following in our gates:
2015-09-18 12:21:53.525 | + openstack complete
2015-09-18 12:21:53.525 | + sudo tee /etc/bash_completion.d/osc.bash_completion
2015-09-18 12:21:54.232 | ERROR: openstack 'module' object has no attribute 'UpdateDataSource'

ironic: http://logs.openstack.org/38/224938/2/check/gate-tempest-dsvm-ironic-pxe_ssh/15115ef/logs/devstacklog.txt.gz
ironic-inspector: http://logs.openstack.org/94/225494/1/check/gate-ironic-inspector-dsvm/7879bb7/logs/devstacklog.txt.gz
This message does not cause devstack to fail, but looks suspicious.

With --debug locally:

INFO: openstackclient.shell command: None -> cliff.complete.CompleteCommand
ERROR: openstack 'module' object has no attribute 'UpdateDataSource'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 374, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/command.py", line 54, in run
    self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/complete.py", line 186, in take_action
    dicto.add_command(command, self.get_actions(command))
  File "/usr/lib/python2.7/site-packages/cliff/complete.py", line 163, in get_actions
    the_cmd = self.app.command_manager.find_command(command)
  File "/usr/lib/python2.7/site-packages/cliff/commandmanager.py", line 75, in find_command
    cmd_factory = cmd_ep.resolve()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2365, in resolve
    raise ImportError(str(exc))
ImportError: 'module' object has no attribute 'UpdateDataSource'
DEBUG: openstackclient.shell clean_up CompleteCommand: 'module' object has no attribute 'UpdateDataSource'
ERROR: openstackclient.shell Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/openstackclient/shell.py", line 152, in run
    return super(OpenStackShell, self).run(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 255, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 374, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/command.py", line 54, in run
    self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/complete.py", line 186, in take_action
    dicto.add_command(command, self.get_actions(command))
  File "/usr/lib/python2.7/site-packages/cliff/complete.py", line 163, in get_actions
    the_cmd = self.app.command_manager.find_command(command)
  File "/usr/lib/python2.7/site-packages/cliff/commandmanager.py", line 75, in find_command
    cmd_factory = cmd_ep.resolve()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2365, in resolve
    raise ImportError(str(exc))
ImportError: 'module' object has no attribute 'UpdateDataSource'

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

looks like its related to saharaclient: https://github.com/openstack/python-saharaclient/blob/master/setup.cfg#L46

Probably because the entry point doesn't exist, there's no UpdateDataSource in this file: https://github.com/openstack/python-saharaclient/blob/master/saharaclient/osc/v1/data_sources.py

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

I put up a patch to remove the entry point: https://review.openstack.org/#/c/225956/

it would require another release of saharaclient of course, for the error to fully be resolved in devstack

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

https://review.openstack.org/#/c/221714/ is a fix that adds UpdateDataSource code, so either should resolve this bug. But at the moment the saharaclient gate is completely borked.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-saharaclient (master)

Reviewed: https://review.openstack.org/225956
Committed: https://git.openstack.org/cgit/openstack/python-saharaclient/commit/?id=7da54874704ce1086086c93bc4096fcded590959
Submitter: Jenkins
Branch: master

commit 7da54874704ce1086086c93bc4096fcded590959
Author: Steve Martinelli <email address hidden>
Date: Mon Sep 21 13:25:12 2015 -0400

    Remove `data source update` from setup.cfg

    Looks like this was added prematurely, as this entry point does
    not point to any class.

    Change-Id: I67c2d7a6be76a8a7be0e386419b69ca0ad8064d1
    Closes-Bug: #1498038

Changed in python-saharaclient:
status: New → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-saharaclient (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/227373

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-saharaclient (stable/liberty)

Reviewed: https://review.openstack.org/227373
Committed: https://git.openstack.org/cgit/openstack/python-saharaclient/commit/?id=da1d4cbf354b4a22ad2318e480a64e7c766611f9
Submitter: Jenkins
Branch: stable/liberty

commit da1d4cbf354b4a22ad2318e480a64e7c766611f9
Author: Steve Martinelli <email address hidden>
Date: Mon Sep 21 13:25:12 2015 -0400

    Remove `data source update` from setup.cfg

    Looks like this was added prematurely, as this entry point does
    not point to any class.

    Change-Id: I67c2d7a6be76a8a7be0e386419b69ca0ad8064d1
    Closes-Bug: #1498038
    (cherry picked from commit 7da54874704ce1086086c93bc4096fcded590959)

tags: added: in-stable-liberty
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/python-saharaclient 0.12.0

This issue was fixed in the openstack/python-saharaclient 0.12.0 release.

Changed in python-saharaclient:
status: Fix Committed → Fix Released
importance: Undecided → High
milestone: none → 0.12.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-saharaclient 0.11.1

This issue was fixed in the openstack/python-saharaclient 0.11.1 release.

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.