HTTPClient initializes with wrong keystone credentials if master node wasn't working after revert

Bug #1407660 reported by Dennis Dmitriev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Dennis Dmitriev
5.1.x
Fix Released
High
Dennis Dmitriev
6.0.x
Fix Released
High
Dennis Dmitriev
6.1.x
Fix Released
High
Dennis Dmitriev

Bug Description

If 'KEYSTONE_PASSWORD' variable was changed, then the following issue might appear:

- HTTPClient initializes with new 'KEYSTONE_PASSWORD' at the start of the test;
- when master node hung after reverting a snapshot, it is restarted and wait until '_fuel_web.client.get_releases' gets the list of releases

The issue is that the reverted master node has a default keystone credentials while '_fuel_web.client.get_releases' tries authorize to keystone with new 'KEYSTONE_PASSWORD' and failed.

Example:
http://jenkins-product.srt.mirantis.net:8080/view/6.0_swarm/job/6.0.system_test.Ubuntu.deploy_neutron_gre_ha.rollback/31
http://jenkins-product.srt.mirantis.net:8080/view/6.0_swarm/job/6.0.system_test.CentOS.ceph_multinode_compact.upgrade/33

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (master)

Fix proposed to branch: master
Review: https://review.openstack.org/145081

Changed in fuel:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (stable/5.1)

Fix proposed to branch: stable/5.1
Review: https://review.openstack.org/145083

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (stable/6.0)

Fix proposed to branch: stable/6.0
Review: https://review.openstack.org/145084

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-main (master)

Reviewed: https://review.openstack.org/145081
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=a16a695df097036aaf470bf24ef07b0523492d94
Submitter: Jenkins
Branch: master

commit a16a695df097036aaf470bf24ef07b0523492d94
Author: Dennis Dmitriev <email address hidden>
Date: Tue Jan 6 00:41:13 2015 +0200

    Try change Keystone credentials before using protected Nailgun API

    If 'KEYSTONE_PASSWORD' changed, HTTPClient initialazes with a new
    password. Nailgun API cannot be used on reverted environment until
    Keystone password be changed from default to new one.

    - use _wait() until Keystone password be changed
    - check if reverted snapshot version is 5.x.x and use apropriate
    fuel cli options for this version.

    Change-Id: I00afddbab278c1ee82a968ba007ee5996c96188e
    Closes-Bug: #1407660

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-main (stable/6.0)

Reviewed: https://review.openstack.org/145084
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=c05806d53e9859ed5c4c54e5add8964265b01938
Submitter: Jenkins
Branch: stable/6.0

commit c05806d53e9859ed5c4c54e5add8964265b01938
Author: Dennis Dmitriev <email address hidden>
Date: Fri Jan 9 01:12:19 2015 +0200

    Try change Keystone credentials before using protected Nailgun API

    If 'KEYSTONE_PASSWORD' changed, HTTPClient initialazes with a new
    password. Nailgun API cannot be used on reverted environment until
    Keystone password be changed from default to new one.

    - use _wait() until Keystone password be changed
    - check if reverted snapshot version is 5.x.x and use apropriate
    fuel cli options for this version.

    Change-Id: I00afddbab278c1ee82a968ba007ee5996c96188e
    Closes-Bug: #1407660

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-main (stable/5.1)

Reviewed: https://review.openstack.org/145083
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=2dfdbae8682ec3e8a0343eb9ac5291b65a87c4d1
Submitter: Jenkins
Branch: stable/5.1

commit 2dfdbae8682ec3e8a0343eb9ac5291b65a87c4d1
Author: Dennis Dmitriev <email address hidden>
Date: Tue Jan 6 00:55:03 2015 +0200

    Try change Keystone credentials before using protected Nailgun API

    If 'KEYSTONE_PASSWORD' changed, HTTPClient initialazes with a new
    password. Nailgun API cannot be used on reverted environment until
    Keystone password be changed from default to new one.

    - use _wait() until Keystone password be changed
    - use apropriate fuel cli options for 5.x.x version.

    Change-Id: Ibe06ac9630485a9589788948d70f972c88da5371
    Closes-Bug: #1407660

tags: added: system-test-not-required
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.