[Openstack] neutron python client stopped working
Manuel Sopena Ballesteros
manuel.sb at garvan.org.au
Thu Nov 15 07:52:45 UTC 2018
Hi,
This looks like a stupid thing but I can't make it to work. For some reason I can't run any openstack cli command related to neutron, however using neutron cli seems to work so I am guessing this is just affecting the the python client. I tried pip uninstall and install it again with no success. I am using Rocky deployed through kolla-ansible
[root at openstack-deployment ~]# pip show python-neutronclient
Name: python-neutronclient
Version: 6.10.0
Summary: CLI and Client Library for OpenStack Networking
Home-page: https://docs.openstack.org/python-neutronclient/latest/
Author: OpenStack Networking Project
Author-email: openstack-dev at lists.openstack.org
License: UNKNOWN
Location: /usr/lib/python2.7/site-packages
Requires: osc-lib, Babel, oslo.i18n, oslo.utils, oslo.serialization, requests, netaddr, iso8601, python-keystoneclient, cliff, keystoneauth1, oslo.log, os-client-config, six, pbr, debtcollector, simplejson
Required-by:
[root at openstack-deployment ~]# openstack server list
+--------------------------------------+----------------+--------+---------------------------------------+-------------+-----------+
| ID | Name | Status | Networks | Image | Flavor |
+--------------------------------------+----------------+--------+---------------------------------------+-------------+-----------+
| 6e079312-b067-4cf0-870a-c6e452b57d5c | test_gpu_small | ACTIVE | private=192.168.1.108, 129.94.120.182 | ubuntu18.04 | gpu.small |
| bd977544-a088-4365-8bed-128daca1e820 | test_gpu_large | ACTIVE | private=192.168.1.117, 129.94.120.186 | ubuntu18.04 | gpu.large |
| db439705-5b57-4a05-9bc3-74ff0f88bf87 | test | ACTIVE | private=192.168.1.120, 129.94.120.181 | cirros | m1.tiny |
+--------------------------------------+----------------+--------+---------------------------------------+-------------+-----------+
[root at openstack-deployment ~]# openstack network list
__init__() got an unexpected keyword argument 'retriable_status_codes'
[root at openstack-deployment ~]# openstack subnet list
__init__() got an unexpected keyword argument 'retriable_status_codes'
[root at openstack-deployment ~]# openstack port list
__init__() got an unexpected keyword argument 'retriable_status_codes'
[root at openstack-deployment ~]# neutron port-list
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+--------------------------------------+------+----------------------------------+-------------------+---------------------------------------------------------------------------------------+
| id | name | tenant_id | mac_address | fixed_ips |
+--------------------------------------+------+----------------------------------+-------------------+---------------------------------------------------------------------------------------+
| 305c8e83-08ca-4df0-b6e4-984cc31f8f0b | | | fa:16:3e:c8:7f:34 | {"subnet_id": "7d5f5405-8b3b-4ebc-8bf3-9f9be196e1a5", "ip_address": "129.94.120.186"} |
| 569ec2d3-c1f7-41c8-a7cb-a20d4d721634 | | abc29399b91d423088549d7446766573 | fa:16:3e:e2:9a:98 | {"subnet_id": "13fd3ed8-988e-407b-955b-e6f749b8f8a3", "ip_address": "192.168.1.108"} |
| 70b16d5b-648b-40fc-9b44-4cb1d13e80e4 | | | fa:16:3e:15:8c:70 | {"subnet_id": "7d5f5405-8b3b-4ebc-8bf3-9f9be196e1a5", "ip_address": "129.94.120.182"} |
| 7cf3f895-b6f8-4b08-9c92-1909b956425a | | abc29399b91d423088549d7446766573 | fa:16:3e:75:29:a4 | {"subnet_id": "13fd3ed8-988e-407b-955b-e6f749b8f8a3", "ip_address": "192.168.1.117"} |
| b4f86f58-66f9-4961-851b-3627cccfbfbe | | | fa:16:3e:a7:bd:6c | {"subnet_id": "7d5f5405-8b3b-4ebc-8bf3-9f9be196e1a5", "ip_address": "129.94.120.181"} |
| d5d0e2d0-42c3-4438-862a-d5908932daba | | abc29399b91d423088549d7446766573 | fa:16:3e:55:ef:95 | {"subnet_id": "13fd3ed8-988e-407b-955b-e6f749b8f8a3", "ip_address": "192.168.1.100"} |
| dc22e1ba-1776-467c-a511-8c68ee16520f | | | fa:16:3e:76:13:ee | {"subnet_id": "7d5f5405-8b3b-4ebc-8bf3-9f9be196e1a5", "ip_address": "129.94.120.184"} |
| e18bcf54-302c-4424-a0a1-2c558c7ef5eb | | abc29399b91d423088549d7446766573 | fa:16:3e:82:e8:ac | {"subnet_id": "13fd3ed8-988e-407b-955b-e6f749b8f8a3", "ip_address": "192.168.1.120"} |
| f225fa78-9683-4d89-bbc8-67ff80513a56 | | abc29399b91d423088549d7446766573 | fa:16:3e:dd:52:d8 | {"subnet_id": "13fd3ed8-988e-407b-955b-e6f749b8f8a3", "ip_address": "192.168.1.1"} |
+--------------------------------------+------+----------------------------------+-------------------+---------------------------------------------------------------------------------------+
[root at openstack-deployment ~]# neutron subnet-list
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+--------------------------------------+---------------+----------------------------------+-------------------+------------------------------------------------------+
| id | name | tenant_id | cidr | allocation_pools |
+--------------------------------------+---------------+----------------------------------+-------------------+------------------------------------------------------+
| 13fd3ed8-988e-407b-955b-e6f749b8f8a3 | privatesubnet | abc29399b91d423088549d7446766573 | 192.168.1.0/24 | {"start": "192.168.1.100", "end": "192.168.1.199"} |
| 7d5f5405-8b3b-4ebc-8bf3-9f9be196e1a5 | publicsubnet | abc29399b91d423088549d7446766573 | 129.94.120.128/26 | {"start": "129.94.120.181", "end": "129.94.120.190"} |
+--------------------------------------+---------------+----------------------------------+-------------------+------------------------------------------------------+
How can I make openstack client to work again with neutron commands?
Thank you very much
Manuel Sopena Ballesteros | Big data Engineer
Garvan Institute of Medical Research
The Kinghorn Cancer Centre, 370 Victoria Street, Darlinghurst, NSW 2010
T: + 61 (0)2 9355 5760 | F: +61 (0)2 9295 8507 | E: manuel.sb at garvan.org.au<mailto:manuel.sb at garvan.org.au>
NOTICE
Please consider the environment before printing this email. This message and any attachments are intended for the addressee named and may contain legally privileged/confidential/copyright information. If you are not the intended recipient, you should not read, use, disclose, copy or distribute this communication. If you have received this message in error please notify us at once by return email and then delete both messages. We accept no liability for the distribution of viruses or similar in electronic communications. This notice should not be removed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20181115/7f3bd098/attachment-0001.html>
More information about the Openstack
mailing list