Failed to import plugin clustering

Bug #1845246 reported by Jared Baker
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Cloud Archive
Fix Released
Low
Unassigned
Rocky
Fix Released
Low
Unassigned
Stein
Fix Released
Low
Unassigned
Train
Fix Released
Low
Unassigned
python-openstackclient (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

When running any openstack client command I am provided with the following error, including the correct output of the command.

Example:

openstack image list
WARNING: Failed to import plugin clustering.
+--------------------------------------+-------------+--------+
| ID | Name | Status |
+--------------------------------------+-------------+--------+
| e7180a98-9630-4128-a457-48b272d819bb | cirros | active |
| d3de179b-96b6-4cb5-835d-a36d3d1a6169 | cirros-good | active |
+--------------------------------------+-------------+--------+

lsb_release -rd
Description: Ubuntu 18.04.3 LTS
Release: 18.04

openstack --version
WARNING: Failed to import plugin clustering.
openstack 3.18.0

dpkg -l | grep python3-openstackclient
ii python3-openstackclient 3.18.0-0ubuntu1~cloud0 all OpenStack Command-line Client - Python 3.x

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-openstackclient (Ubuntu):
status: New → Confirmed
Revision history for this message
Corey Bryant (corey.bryant) wrote :

This may simply just be python3-openstackclient needing a run-time dependency on python3-senlinclient.

Revision history for this message
Jared Baker (shubjero) wrote :
Download full text (6.0 KiB)

Hi Corey,

Looks like python3-senlinclient is already installed (but we dont use senlin). I would remove it but it wants to pull out all the openstack heat packages, which we use.

root@lab-controller:~# dpkg -l | grep -i python3 | grep -i client
ii python3-amqp 2.4.0-1~cloud0 all Low-level AMQP client (Python3 version)
ii python3-aodhclient 1.0.0-0ubuntu1 all OpenStack Alarming as a Service - Python 3.x client
ii python3-barbicanclient 4.6.0-0ubuntu1 all OpenStack Key Management API client - Python 3.x
ii python3-blazarclient 2.1.0-0ubuntu1~cloud0 all OpenStack Reservation Service API client - Python 3
ii python3-ceilometerclient 2.9.0-0ubuntu1 all Client library for Openstack Ceilometer API server - Python 3.x
ii python3-cinderclient 1:4.1.0-0ubuntu1~cloud0 all Python bindings to the OpenStack Volume API - Python 3.x
ii python3-designateclient 2.9.0-0ubuntu1 all client library for the OpenStack Designate API - Python 3.x
ii python3-glanceclient 1:2.16.0-0ubuntu1~cloud0 all Client library for Openstack glance server - Python 3.x
ii python3-gnocchiclient 7.0.1-0ubuntu1 all bindings to the OpenStack Gnocchi API - Python 3.x
ii python3-heatclient 1.17.0-0ubuntu1~cloud0 all client library and CLI for OpenStack Heat - Python 3.x
ii python3-httplib2 0.9.2+dfsg-1ubuntu0.1 all comprehensive HTTP client library written for Python3
ii python3-keystoneclient 1:3.19.0-0ubuntu1~cloud0 all client library for the OpenStack Keystone API - Python 3.x
ii python3-magnumclient 2.8.0-0ubuntu1 all client library for Magnum API - Python 3.x
ii python3-manilaclient 1.27.0-0ubuntu1~cloud0 all OpenStack shared file system as a service - Python 3.x client
ii python3-memcache 1.59-1~cloud0 all pure Python memcached client - Python 3.x
ii python3-mistralclient 1:3.3.0-0ubuntu1 all OpenStack Workflow as a Service client - Python 3.x
ii python3-monascaclient 1.14.0-0ubuntu1~cloud0 all client bindings for the Monasca API - Python 3.x
ii python3-neutronclient 1:6.7.0-0ubuntu1 all client API library for Neutron - Python 3.x
ii python3-novaclient 2:13.0.0-0ubuntu1~cloud0 all client library for OpenStack Compute API - 3.x
ii python3-octaviaclient 1.8.0-0ubuntu1~cloud0 ...

Read more...

Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

Seems this is a version mismatch issue, I can reproduce this in a virtualenv with

python-openstackclient==3.18.0
python-senlinclient==1.7.0

The issue simply seems to be that senlinclient needs to be updated for stein, 1.7.0 is from rocky or older, if I install 1.9.0 or newer, the issue goes away. See https://releases.openstack.org/stein/index.html#stein-python-senlinclient

Revision history for this message
Corey Bryant (corey.bryant) wrote :

The cloud archive was missing the python-senlinclient backports for rocky, stein, and train so backported those packages. These are now available in corresponding -proposed pockets for testing:

Train: 1.11.0-0ubuntu1~cloud0
Stein: 1.9.0-0ubuntu1~cloud0
Rocky: 1.7.0-2ubuntu1~cloud0

sudo add-apt-repository cloud-archive:train-proposed
sudo add-apt-repository cloud-archive:stein-proposed
sudo add-apt-repository cloud-archive:rocky-proposed

It appears this fixes the issue for stein and train but not for rocky.

Thanks,
Corey

Revision history for this message
Corey Bryant (corey.bryant) wrote :

If anyone else would like to give this a test, please do so and report your findings back to this bug. Please note these packages are on their way to -proposed pockets and will be published within the next couple of hours.

Changed in python-openstackclient (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Jared Baker (shubjero) wrote :

Installed python3-senlinclient from stein-proposed

root@lab-controller:~# apt-cache policy python3-senlinclient
python3-senlinclient:
  Installed: 1.9.0-0ubuntu1~cloud0
  Candidate: 1.9.0-0ubuntu1~cloud0
  Version table:
 *** 1.9.0-0ubuntu1~cloud0 500
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu bionic-proposed/stein/main amd64 Packages
        100 /var/lib/dpkg/status
     1.7.0-0ubuntu2 500
        500 http://nova.clouds.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages

Cluster warning is now gone!

root@lab-controller:~# openstack image list
+--------------------------------------+-------------+--------+
| ID | Name | Status |
+--------------------------------------+-------------+--------+
| d3de179b-96b6-4cb5-835d-a36d3d1a6169 | cirros-good | active |
+--------------------------------------+-------------+--------+

root@lab-controller:~# openstack network list
+--------------------------------------+-----------------------+--------------------------------------+
| ID | Name | Subnets |
+--------------------------------------+-----------------------+--------------------------------------+
| 0f93a695-7a26-4835-903c-f7c55aceba17 | collaboratory_network | 2ba49081-89b4-4cc3-9189-ee4d46550b60 |
| 1513a1a7-df84-448e-ae7e-8e6ec4fbe328 | cheeseburgers | 4badc741-5d50-4fc4-a600-b47b69ecee8e |
| 5d2fa413-6ce5-43d4-aa2d-646025185eb8 | lab_network | 4ef39d3f-2e81-424b-89c7-611979c9aaa1 |
+--------------------------------------+-----------------------+--------------------------------------+

Thank you Corey

Revision history for this message
Corey Bryant (corey.bryant) wrote :

I've verified this is fixed in train-proposed:

ubuntu@coreycb-bastion:~$ apt policy python3-senlinclient
python3-senlinclient:
  Installed: 1.11.0-0ubuntu1~cloud0
  Candidate: 1.11.0-0ubuntu1~cloud0
  Version table:
 *** 1.11.0-0ubuntu1~cloud0 500
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu bionic-proposed/train/main amd64 Packages
        100 /var/lib/dpkg/status
     1.7.0-0ubuntu2 500
        500 http://nova.clouds.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages

ubuntu@coreycb-bastion:~$ openstack image list
+--------------------------------------+-------------------------------------------------------------------+--------+
| ID | Name | Status |
+--------------------------------------+-------------------------------------------------------------------+--------+
| 82d21b31-0165-4052-bc8c-ad64221a87d2 | auto-sync/ubuntu-bionic-18.04-amd64-server-20191021-disk1.img | active |
...

Changed in cloud-archive:
status: Fix Committed → Fix Released
Revision history for this message
Corey Bryant (corey.bryant) wrote :

python-senlinclient 1.7.0-2ubuntu1~cloud0 is now available in rocky-updates.

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.