Upgrading openstacksdk to newest (0.10.0) version causes problems in OSC network commands

Bug #1743772 reported by Annie Melen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Incomplete
Undecided
Unassigned

Bug Description

I have successfully installed Openstack Pike on Ubuntu 16.04.3 LTS, but yesterday I encountered the folowing bug...
Upgrading openstacksdk package from 0.9.19 to newest 0.10.0 version causes the error in openstackclient network commands:

$ openstack network list
'NoneType' object has no attribute 'name'
$ openstack network agent list
'NoneType' object has no attribute 'name'

However, such commands via neutron-cli executed without any errors:

$ neutron net-list
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+--------------------------------------+---------------------+----------------------------------+--------------------------------------------------------+
| id | name | tenant_id | subnets |
+--------------------------------------+---------------------+----------------------------------+--------------------------------------------------------+
| 031fc202-4312-4ca8-a610-30e340cdb9df | ExternalNet-1 | 8568f73979a148f4856fbba225107f44 | 55e6cbbb-a0ec-4aba-8776-546da20ffe9f 10.0.210.0/23 |
| 6ae99ab2-084c-4d44-8893-1e36ca2973b5 | ExternalNet-2 | 8568f73979a148f4856fbba225107f44 | 930a98a7-b159-46bc-8e4d-db7c5ceba2df 10.0.212.0/23 |
+--------------------------------------+---------------------+----------------------------------+--------------------------------------------------------+

Downgrading openstacksdk package (via pip) back to 0.9.19 version solves this problem.

Current version of python-openstackclient is 3.12.0.

Annie Melen (anniemelen)
affects: python-openstackclient → python-openstacksdk
affects: python-openstacksdk → python-openstackclient
Annie Melen (anniemelen)
description: updated
Annie Melen (anniemelen)
tags: added: pike
tags: added: neutron openstack-utils openstacksdk
no longer affects: python-openstacksdk
Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

It seems that this happens when there is a version mismatch between sdk and client. Upgrading python-openstackclient to 3.13.0 solves the issue for me.

Changed in python-openstackclient:
status: New → Incomplete
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.