UCA(newton): Deprecation warnings for openstackclient due out-of-date mistralclient

Bug #1634579 reported by Dr. Jens Harbott
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient (Ubuntu)
Fix Released
Medium
James Page

Bug Description

This happens for every command and is nothing a user can fix:

# openstack --version
WARNING: openstackclient.common.utils is deprecated and will be removed after Jun 2017. Please use osc_lib.utils
openstack 3.2.0
# apt policy python-openstackclient
python-openstackclient:
  Installed: 3.2.0-0ubuntu2~cloud0
  Candidate: 3.2.0-0ubuntu2~cloud0
  Version table:
 *** 3.2.0-0ubuntu2~cloud0 500
        500 http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/newton/main amd64 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Chuck Short (zulcss) wrote :

This is fixed in later versions of openstackclient.

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

Thanks for the bug report.

I'm not able to reproduce this with 3.2.0-0ubuntu2~cloud0 from the newton cloud archive.

It appears that for some reason the following file is still being imported in your case:
/usr/lib/python2.7/dist-packages/openstackclient/common/utils.py

Can you run with the following and see if we can find where that's being imported?
python -m trace --trace /usr/bin/openstack --version | grep import | grep common | grep utils

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

Sorry for the late reply, I have now been able to find the culprit by selectively removing all the python-*client packages that I had installed, the error comes from

python-mistralclient-1:2.0.0-3

Checking upstream code, the error also happens with the current openstackclient and that mistralclient version, it is fixed in python-mistralclient==2.1.0.

So I think the proper solution would be to install the newer client package from yakkety into the cloud archive, too.

Revision history for this message
James Page (james-page) wrote :

Good spot - backporting the 2.1.1 release in yakkety for newton UCA right now.

Changed in python-openstackclient (Ubuntu):
status: Confirmed → In Progress
importance: Undecided → Medium
assignee: nobody → James Page (james-page)
status: In Progress → Fix Committed
summary: - Deprecation warnings for openstackclient
+ UCA(newton): Deprecation warnings for openstackclient due out-of-date
+ mistralclient
kobig (kobi.ginon)
Changed in python-openstackclient (Ubuntu):
status: Fix Committed → Fix Released
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.