3.10.0 release openstack port list failing if nova not installed

Bug #1688194 reported by Vasyl Saienko on 2017-05-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Undecided
Unassigned

Bug Description

Starting with 3.10.0 release python-openstackclient 'openstack port list' failing with the following traceback on installations without nova.
This breaks all CI that uses installations without nova for example:
Ironic: http://logs.openstack.org/20/462020/7/check/gate-ironic-dsvm-standalone-ubuntu-xenial/570d3f1/logs/devstacklog.txt.gz#_2017-05-04_01_48_35_104
networking-generic-switch: http://logs.openstack.org/85/454385/3/check/gate-networking-generic-switch-dsvm-tempest/43fcabc/logs/devstacklog.txt.gz#_2017-05-03_22_11_51_298

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/shell.py", line 135, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 279, in run
    result = self.run_subcommand(remainder)
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/shell.py", line 180, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/local/lib/python2.7/dist-packages/cliff/display.py", line 112, in run
    column_names, data = self.take_action(parsed_args)
  File "/opt/stack/new/python-openstackclient/openstackclient/network/v2/port.py", line 522, in take_action
    compute_client = self.app.client_manager.compute
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/clientmanager.py", line 47, in __get__
    self._handle = self.factory(instance)
  File "/opt/stack/new/python-openstackclient/openstackclient/compute/client.py", line 98, in make_client
    interface=instance.interface,
  File "/usr/local/lib/python2.7/dist-packages/osc_lib/clientmanager.py", line 263, in get_endpoint_for_service_type
    interface=interface,
  File "/usr/local/lib/python2.7/dist-packages/positional/__init__.py", line 101, in inner
    return wrapped(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/keystoneauth1/access/service_catalog.py", line 228, in url_for
    raise exceptions.EndpointNotFound(msg)
EndpointNotFound: public endpoint for compute service in RegionOne region not found

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

Vasyl Saienko (vsaienko) wrote :

permanent fix to openstackclient: https://review.openstack.org/462423
block 3.10.0 version in global-requirements: https://review.openstack.org/462425

Reviewed: https://review.openstack.org/462423
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=c69304e3d365dc2c67fab298eba0b9097d3819da
Submitter: Jenkins
Branch: master

commit c69304e3d365dc2c67fab298eba0b9097d3819da
Author: Vasyl Saienko <email address hidden>
Date: Thu May 4 10:48:11 2017 +0300

    Do not always init compute_client when doint port list

    This patch ensures that compute client is initialized only when needed
    (--server arg is passed) to openstack port list command. Otherwise it
    leads to failures on installations without Nova.

    Change-Id: I102683461daa2f7d05dd9d7a3ec72de551c65ca9
    Closes-Bug: #1688194

Changed in python-openstackclient:
status: New → Fix Released

This issue was fixed in the openstack/python-openstackclient 3.11.0 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers