No default ip-version for "ip availability list" command

Bug #1592761 reported by aohuanxuan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Undecided
aohuanxuan

Bug Description

There is not a default ip-version in "ip availability list" command, so there are some errors when we use the command without "--ip-version" option.
(openstack) ip availability list
+--------------------------------------+--------------+----------------------+----------+
| Network ID | Network Name | Total IPs | Used IPs |
+--------------------------------------+--------------+----------------------+----------+
| 4ea57678-cbdd-4a78-bab6-2c8556197db6 | public | 18446744073709551867 | 2 |
| b2ea9074-c559-4151-b2fb-bffb08af1e66 | private | 18446744073709551867 | 4 |
+--------------------------------------+--------------+----------------------+----------+
(openstack) ip availability list --ip-version 4
+--------------------------------------+--------------+-----------+----------+
| Network ID | Network Name | Total IPs | Used IPs |
+--------------------------------------+--------------+-----------+----------+
| 4ea57678-cbdd-4a78-bab6-2c8556197db6 | public | 253 | 1 |
| b2ea9074-c559-4151-b2fb-bffb08af1e66 | private | 253 | 2 |
+--------------------------------------+--------------+-----------+----------+
(openstack) ip availability list --ip-version 6
+--------------------------------------+--------------+----------------------+----------+
| Network ID | Network Name | Total IPs | Used IPs |
+--------------------------------------+--------------+----------------------+----------+
| 4ea57678-cbdd-4a78-bab6-2c8556197db6 | public | 18446744073709551614 | 1 |
| b2ea9074-c559-4151-b2fb-bffb08af1e66 | private | 18446744073709551614 | 2 |
+--------------------------------------+--------------+----------------------+----------+
We can see there are 3 different outputs.
Comparing with the output of the command in neutronclient.
(neutron) net-ip-availability-list
+--------------------------------------+--------------+-----------+----------+
| network_id | network_name | total_ips | used_ips |
+--------------------------------------+--------------+-----------+----------+
| 4ea57678-cbdd-4a78-bab6-2c8556197db6 | public | 253 | 1 |
| b2ea9074-c559-4151-b2fb-bffb08af1e66 | private | 253 | 2 |
+--------------------------------------+--------------+-----------+----------+
(neutron) net-ip-availability-list --ip-version 4
+--------------------------------------+--------------+-----------+----------+
| network_id | network_name | total_ips | used_ips |
+--------------------------------------+--------------+-----------+----------+
| 4ea57678-cbdd-4a78-bab6-2c8556197db6 | public | 253 | 1 |
| b2ea9074-c559-4151-b2fb-bffb08af1e66 | private | 253 | 2 |
+--------------------------------------+--------------+-----------+----------+
(neutron) net-ip-availability-list --ip-version 6
+--------------------------------------+--------------+----------------------+----------+
| network_id | network_name | total_ips | used_ips |
+--------------------------------------+--------------+----------------------+----------+
| 4ea57678-cbdd-4a78-bab6-2c8556197db6 | public | 18446744073709551614 | 1 |
| b2ea9074-c559-4151-b2fb-bffb08af1e66 | private | 18446744073709551614 | 2 |
+--------------------------------------+--------------+----------------------+----------+
We can find that if we use the "ip availability list" command of OSC without "--ip-version" option.
the output is wrong.
So, I think we need add the default ip-version for the "ip availability list" command in OSC.

aohuanxuan (huanxuan-ao)
Changed in python-openstackclient:
assignee: nobody → aohuanxuan (huanxuan-ao)
Changed in python-openstackclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

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

commit ca5e8e6c8540e457a620cc90d321a08e7417de32
Author: Huanxuan Ao <email address hidden>
Date: Wed Jun 15 13:57:39 2016 +0800

    Add default IP version and fix help messages for "ip availability list"

    There was not a default IP version in "ip availability list"
    command, if we used this command without "--ip-version" option,
    the output was different from the outputs with the option
    "--ip-version 4" and "--ip-version 6" and it is not right.
    This patch add default IP version (default is 4) in ``ip
    availability list`` command and make this command work properly
    without ``--ip-version`` option. And also fix the help message.

    Change-Id: Idc08ab6eaf05946eb2ab59bfb3d4497a383d987d
    Closes-Bug: #1592761

Changed in python-openstackclient:
status: In Progress → Fix Released
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/python-openstackclient 3.0.0

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