Functional test test_ip_availability_show broken

Bug #1653139 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_ip_availability_show is broken for all current OpenStack SDK releases (>= 0.9.10).

openstack --debug ip availability show private
...
Request returned failure status: 500
HttpException: Internal Server Error
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/ip_availability.py", line 111, in take_action
    ignore_missing=False)
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/openstack/network/v2/_proxy.py", line 831, in find_network_ip_availability
    ignore_missing=ignore_missing)
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/openstack/proxy.py", line 92, in _find
    ignore_missing=ignore_missing)
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/openstack/resource.py", line 955, in find
    return cls.get_by_id(session, name_or_id, path_args=path_args)
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/openstack/resource.py", line 648, in get_by_id
    include_headers=include_headers)
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/openstack/resource.py", line 615, in get_data_by_id
    response = session.get(url, endpoint_filter=cls.service)
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/keystoneauth1/session.py", line 710, in get
    return self.request(url, 'GET', **kwargs)
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/openstack/session.py", line 64, in map_exceptions_wrapper
    http_status=e.http_status, cause=e)
HttpException: HttpException: Internal Server Error
clean_up ShowIPAvailability: HttpException: Internal Server Error
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/ip_availability.py", line 111, in take_action
    ignore_missing=False)
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/openstack/network/v2/_proxy.py", line 831, in find_network_ip_availability
    ignore_missing=ignore_missing)
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/openstack/proxy.py", line 92, in _find
    ignore_missing=ignore_missing)
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/openstack/resource.py", line 955, in find
    return cls.get_by_id(session, name_or_id, path_args=path_args)
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/openstack/resource.py", line 648, in get_by_id
    include_headers=include_headers)
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/openstack/resource.py", line 615, in get_data_by_id
    response = session.get(url, endpoint_filter=cls.service)
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/keystoneauth1/session.py", line 710, in get
    return self.request(url, 'GET', **kwargs)
  File "/Users/dtroyer/src/openstack/python-openstackclient/.tox/functional/lib/python2.7/site-packages/openstack/session.py", line 64, in map_exceptions_wrapper
    http_status=e.http_status, cause=e)
HttpException: HttpException: Internal Server Error

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

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/417286
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=99aeff4967c9cd1cb01408993eff72c4fcbada7d
Submitter: Jenkins
Branch: master

commit 99aeff4967c9cd1cb01408993eff72c4fcbada7d
Author: Huanxuan Ao <email address hidden>
Date: Fri Jan 6 12:33:41 2017 +0800

    Fix "ip availability show" command

    SDK refactor broken ip availability show functional
    test, We can not find a ip availability by network
    name but only network ID, so we find network and
    get the ID first, then find the ip availability
    by the network ID.

    Closes-Bug: 1653139
    Change-Id: I246163fb875e2cdb9e5b091bac500a94268e8aa9

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.