Unlock settings tab: Changes of openstack admin user do not purge previous users

Bug #1578348 reported by Tatyanka
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Stanislaw Bogatkin
Mitaka
Fix Released
High
Stanislaw Bogatkin

Bug Description

Detailed bug description:
Unlock settings tab: Changes in openstack data do not replaced existing one, they just extend it
Steps to reproduce:
1. Setup master node
2. Create any environment
3. Go to settings tab and put next data for openstack user: admin rados, password : rados, project: rados
4. Deploy environment
5. For ready environment - go to the setting tab and change openstack data to something else: admin test-123, password: test 123, project test 123
6. Redeploy
7. ssh on ready controller, check keystone project list, check keystone user list ---> RADOS user/project is present here
8. Change openrc for usage of rados user/password, get project/user list / update password for new user test123 -----> rados user is active and has admin permission for all operation

Expected results:
Old admin user were replaced with new one(from updated settings data) so it should not be active/existing after successful re-deployment

Actual result:
It is still here and has admine permission , so can easily update password/tenant for new admin user
http://paste.openstack.org/show/496134/

Version:
[root@nailgun ~]# shotgun2 short-report
cat /etc/fuel_build_id:
 250
cat /etc/fuel_build_number:
 250
cat /etc/fuel_release:
 9.0
cat /etc/fuel_openstack_version:
 mitaka-9.0
rpm -qa | egrep 'fuel|astute|network-checker|nailgun|packetary|shotgun':
 fuel-release-9.0.0-1.mos6341.noarch
 fuel-misc-9.0.0-1.mos8322.noarch
 fuel-mirror-9.0.0-1.mos133.noarch
 shotgun-9.0.0-1.mos88.noarch
 fuel-openstack-metadata-9.0.0-1.mos8669.noarch
 fuel-notify-9.0.0-1.mos8322.noarch
 fuel-ostf-9.0.0-1.mos926.noarch
 fuel-provisioning-scripts-9.0.0-1.mos8669.noarch
 python-fuelclient-9.0.0-1.mos312.noarch
 fuel-9.0.0-1.mos6341.noarch
 fuel-utils-9.0.0-1.mos8322.noarch
 fuel-nailgun-9.0.0-1.mos8669.noarch
 rubygem-astute-9.0.0-1.mos740.noarch
 fuel-library9.0-9.0.0-1.mos8322.noarch
 network-checker-9.0.0-1.mos72.x86_64
 fuel-agent-9.0.0-1.mos273.noarch
 fuel-ui-9.0.0-1.mos2676.noarch
 fuel-setup-9.0.0-1.mos6341.noarch
 nailgun-mcagents-9.0.0-1.mos740.noarch
 python-packetary-9.0.0-1.mos133.noarch
 fuelmenu-9.0.0-1.mos269.noarch
 fuel-bootstrap-cli-9.0.0-1.mos273.noarch
 fuel-migrate-9.0.0-1.mos8322.noarch
[root@nailgun ~]#

Version: iso 250

Revision history for this message
Tatyanka (tatyana-leontovich) wrote :

Set to high according to issue leads to bad user UX as well as some admin data became unsafely

Changed in fuel:
milestone: none → 10.0
importance: Undecided → Medium
importance: Medium → High
assignee: nobody → Alexey Shtokolov (ashtokolov)
Changed in fuel:
status: New → Confirmed
Revision history for this message
Tatyanka (tatyana-leontovich) wrote :
Dmitry Pyzhov (dpyzhov)
tags: added: area-python
Changed in fuel:
assignee: Alexey Shtokolov (ashtokolov) → Fuel Toolbox (fuel-toolbox)
Changed in fuel:
assignee: Fuel Toolbox (fuel-toolbox) → Stanislaw Bogatkin (sbogatkin)
Revision history for this message
Stanislaw Bogatkin (sbogatkin) wrote :

ETA: 2016.06.02

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

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

Changed in fuel:
status: Confirmed → In Progress
summary: - Unlock settings tab: Changes in openstack data do not replaced existing
- one, they just extend it
+ Unlock settings tab: Changes of openstack admin user do not purge
+ previous users
Changed in fuel:
assignee: Stanislaw Bogatkin (sbogatkin) → Alexey Shtokolov (ashtokolov)
Changed in fuel:
assignee: Alexey Shtokolov (ashtokolov) → Vladimir Kuklin (vkuklin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-web (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/327047

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-web (stable/mitaka)

Related fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/327052

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/327047
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=3305e1dccea502bcf3207e56f2139190dde1c80a
Submitter: Jenkins
Branch: master

commit 3305e1dccea502bcf3207e56f2139190dde1c80a
Author: Bulat Gaifullin <email address hidden>
Date: Wed Jun 8 15:00:04 2016 +0300

    If old context is not present returns empty dict

    The old context shall be instance of dict, because
    library tasks expects instance of dict

    Change-Id: I9980310a7a180252afb14810717165b95f6ffdbf
    Related-Bug: 1578348

tags: added: in-stable-mitaka
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-web (stable/mitaka)

Reviewed: https://review.openstack.org/327052
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=5d442c3210db81e88d6dd2e96066c4de2ba1abe6
Submitter: Jenkins
Branch: stable/mitaka

commit 5d442c3210db81e88d6dd2e96066c4de2ba1abe6
Author: Bulat Gaifullin <email address hidden>
Date: Wed Jun 8 15:00:04 2016 +0300

    If old context is not present returns empty dict

    The old context shall be instance of dict, because
    library tasks expects instance of dict

    Change-Id: I9980310a7a180252afb14810717165b95f6ffdbf
    Related-Bug: 1578348

tags: added: move-to-mu
removed: in-stable-mitaka
Changed in fuel:
assignee: Vladimir Kuklin (vkuklin) → Stanislaw Bogatkin (sbogatkin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/323982
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=0a36a3bb8cb65dba7896d2edb72c122f13d63596
Submitter: Jenkins
Branch: master

commit 0a36a3bb8cb65dba7896d2edb72c122f13d63596
Author: Stanislaw Bogatkin <email address hidden>
Date: Wed Jun 1 18:30:23 2016 +0300

    Purge old openstack admin access user if changed

    If operator has changed admin user, old one will now be stored in
    /etc/hiera/old_admin_user.yaml as an access hash. Then it will be
    deleted after new user creation.

    Change-Id: I30213c02c4a370aee9db1597cf32dd8f08ae6539
    Closes-Bug: #1578348

Changed in fuel:
status: In Progress → Fix Committed
Dmitry Pyzhov (dpyzhov)
tags: added: 9.1-proposed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/353462

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

Reviewed: https://review.openstack.org/353462
Committed: https://git.openstack.org/cgit/openstack/fuel-library/commit/?id=e905ddeb3e5df24e22bd8a96e033b9a1765b82d5
Submitter: Jenkins
Branch: stable/mitaka

commit e905ddeb3e5df24e22bd8a96e033b9a1765b82d5
Author: Stanislaw Bogatkin <email address hidden>
Date: Wed Jun 1 18:30:23 2016 +0300

    Purge old openstack admin access user if changed

    If operator has changed admin user, old one will now be stored in
    /etc/hiera/old_admin_user.yaml as an access hash. Then it will be
    deleted after new user creation.

    Change-Id: I30213c02c4a370aee9db1597cf32dd8f08ae6539
    Closes-Bug: #1578348
    (cherry picked from commit 0a36a3bb8cb65dba7896d2edb72c122f13d63596)

tags: added: on-verification
Revision history for this message
TatyanaGladysheva (tgladysheva) wrote :

Verified on 9.1 snapshot #222.

tags: removed: on-verification
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.