Functional test test_network_service_provider_list broken

Bug #1653138 reported by Dean Troyer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Critical
prameswar

Bug Description

The functional test test_network_service_provider_list is broken for all current OpenStack SDK releases (>= 0.9.10).

openstack --debug network service provider list
...
Network client initialized using OpenStack SDK: <openstack.network.v2._proxy.Proxy object at 0x1068325d0>
'Proxy' object has no attribute 'service_providers'
Traceback (most recent call last):
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/cliff/display.py", line 112, in run
    column_names, data = self.take_action(parsed_args)
  File "/Users/dtroyer/src/openstack/python-openstackclient/openstackclient/network/v2/network_service_provider.py", line 37, in take_action
    data = client.service_providers()
AttributeError: 'Proxy' object has no attribute 'service_providers'
clean_up ListNetworkServiceProvider: 'Proxy' object has no attribute 'service_providers'
Traceback (most recent call last):
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/osc_lib/shell.py", line 135, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/cliff/app.py", line 279, in run
    result = self.run_subcommand(remainder)
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/osc_lib/shell.py", line 180, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/cliff/display.py", line 112, in run
    column_names, data = self.take_action(parsed_args)
  File "/Users/dtroyer/src/openstack/python-openstackclient/openstackclient/network/v2/network_service_provider.py", line 37, in take_action
    data = client.service_providers()
AttributeError: 'Proxy' object has no attribute 'service_providers'

Original review: https://review.openstack.org/#/c/381342/

Verified not working with OpenStack SDK 0.9.10, 0.9.11

prameswar (prameswar)
Changed in python-openstackclient:
assignee: nobody → prameswar (prameswar)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

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

commit d80b1465e6ea6019531a2bd1df4599e28afdebf4
Author: Huanxuan Ao <email address hidden>
Date: Fri Jan 6 13:14:37 2017 +0800

    Fix network service provider functional test

    SDK refactor broken network service provider
    functional test, tested this command works,
    but there is a error in the funtional test,
    so fix it.

    Change-Id: I783c58cedd39a05b665e47709b2b5321871e558b
    Closes-Bug: 1653138

Changed in python-openstackclient:
status: Confirmed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-openstackclient 3.7.0

This issue was fixed in the openstack/python-openstackclient 3.7.0 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.