fuel-octane uses the deprecated keystone command line client instead of openstack

Bug #1566444 reported by Ilya Kharin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Confirmed
High
Unassigned
Mitaka
Confirmed
High
Registry Administrators

Bug Description

The upgrade-env command uses the deprecate keystone client instead of the openstack client to obtain the id of the service tenant.

Steps to reproduce:
1. Upgrade the master node to 9.0
2. Start the upgrade procedure of the specified environment:
    $ octane upgrade-env <env id>

Expected results:
This command will provide ID of newly created environment with the same settings.

Actual result:
This command fails with the traceback:

2016-04-05 14:59:35 INFO octane.util.subprocess Started process sh[at node-1]: sh -c '. /root/openrc; keystone --os-password=admin tenant-get services'
2016-04-05 14:59:39 ERROR octane.util.subprocess sh[at node-1] stderr: /usr/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.
2016-04-05 14:59:39 ERROR octane.util.subprocess sh[at node-1] stderr: 'python-keystoneclient.', DeprecationWarning)
2016-04-05 14:59:39 ERROR octane.util.subprocess sh[at node-1] stderr: /usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py:156: DeprecationWarning: Constructing an instance of the keystoneclient.v2_0.client.Client class without a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
2016-04-05 14:59:39 ERROR octane.util.subprocess sh[at node-1] stderr: 'the 2.0.0 release.', DeprecationWarning)
2016-04-05 14:59:39 ERROR octane.util.subprocess sh[at node-1] stderr: /usr/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py:158: DeprecationWarning: Using the 'tenant_name' argument is deprecated in version '1.7.0' and will be removed in version '2.0.0', please use the 'project_name' argument instead
2016-04-05 14:59:39 ERROR octane.util.subprocess sh[at node-1] stderr: super(Client, self).__init__(**kwargs)
2016-04-05 14:59:39 ERROR octane.util.subprocess sh[at node-1] stderr: /usr/lib/python2.7/dist-packages/debtcollector/renames.py:45: DeprecationWarning: Using the 'tenant_id' argument is deprecated in version '1.7.0' and will be removed in version '2.0.0', please use the 'project_id' argument instead
2016-04-05 14:59:39 ERROR octane.util.subprocess sh[at node-1] stderr: return f(*args, **kwargs)
2016-04-05 14:59:39 ERROR octane.util.subprocess sh[at node-1] stderr: /usr/lib/python2.7/dist-packages/keystoneclient/httpclient.py:371: DeprecationWarning: Constructing an HTTPClient instance without using a session is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.
2016-04-05 14:59:39 ERROR octane.util.subprocess sh[at node-1] stderr: 'the 2.0.0 release.', DeprecationWarning)
2016-04-05 14:59:39 ERROR octane.util.subprocess sh[at node-1] stderr: /usr/lib/python2.7/dist-packages/keystoneclient/session.py:140: DeprecationWarning: keystoneclient.session.Session is deprecated as of the 2.1.0 release in favor of keystoneauth1.session.Session. It will be removed in future releases.
2016-04-05 14:59:39 ERROR octane.util.subprocess sh[at node-1] stderr: DeprecationWarning)
2016-04-05 14:59:39 ERROR octane.util.subprocess sh[at node-1] stderr: /usr/lib/python2.7/dist-packages/keystoneclient/auth/identity/base.py:56: DeprecationWarning: keystoneclient auth plugins are deprecated as of the 2.1.0 release in favor of keystoneauth1 plugins. They will be removed in future releases.
2016-04-05 14:59:39 ERROR octane.util.subprocess sh[at node-1] stderr: 'in future releases.', DeprecationWarning)
2016-04-05 14:59:39 ERROR octane.util.subprocess sh[at node-1] stderr: Authorization Failed: The resource could not be found. (HTTP 404)

Workaround:
Modify octane to use the openstack client instead of the keystone client.

Changed in fuel:
milestone: none → 9.0
assignee: nobody → Fuel Python Team (fuel-python)
importance: Undecided → High
status: New → Confirmed
tags: added: area-python
Dmitry Pyzhov (dpyzhov)
tags: added: team-upgrades
Changed in fuel:
milestone: 9.0 → 10.0
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Fuel Octane (fuel-octane-team)
Revision history for this message
Oleg S. Gelbukh (gelbuhos) wrote :

Closed as duplicate of 1572019: https://bugs.launchpad.net/fuel/+bug/1572019

Curtis Hovey (sinzui)
Changed in fuel:
assignee: Registry Administrators (registry) → nobody
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.