Project admin user can disable his only project and can`t login back

Bug #1418931 reported by Kyrylo Romanenko
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
Medium
Paul Karikh
5.1.x
Won't Fix
Medium
Alexey Khivin
6.0.x
Won't Fix
Medium
Alexey Khivin

Bug Description

Project admin user can disable his only project and then can`t to relogin back.

Steps:
1. Logged-in to Horizon as admin.
2. Created user "barsik".
3. Then edited project named "services": added "barsik" as "_member_" and "admin" there.
4. Logout.
5. Logged-in as "barsik".
6. Go to Identity -> Projects.
7. Set project "services" Enabled=False by checkbox.
 Get red popup Error: Not authorized to do this operation. It`s quite expected to be not able to do this.
 Cancel action by "X" button
 (screenshot frame 1)
Got error: Error: Unauthorized: Unable to retrieve project list.
Also could not to retrieve contents of any another page with errors like this.

8. Logout
9. Try to login back as "barsik".

Could not login back (screenshot frame 2): Unable to authenticate to any available projects.

10. Login back as admin. See that project "services" is disabled.
(screenshot frame 3)

Environment:
MOS 6.1 build
{"build_id": "2015-02-01_22-55-01", "ostf_sha": "c9100263140008abfcc2704732e98fbdfd644068", "build_number": "92", "release_versions": {"2014.2-6.1": {"VERSION": {"build_id": "2015-02-01_22-55-01", "ostf_sha": "c9100263140008abfcc2704732e98fbdfd644068", "build_number": "92", "api": "1.0", "nailgun_sha": "c0932eb5c2aa7fd1e13a999cb1b4bf5aff101c3b", "production": "docker", "python-fuelclient_sha": "2ea7b3e91c1d2ff85110bf5abb161a6f4e537358", "astute_sha": "ed5270bf9c6c1234797e00bd7d4dd3213253a413", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "", "fuellib_sha": "c5e4a0410ba66f9e9911f62b3b71c0b9c29aed6e"}}}, "auth_required": true, "api": "1.0", "nailgun_sha": "c0932eb5c2aa7fd1e13a999cb1b4bf5aff101c3b", "production": "docker", "python-fuelclient_sha": "2ea7b3e91c1d2ff85110bf5abb161a6f4e537358", "astute_sha": "ed5270bf9c6c1234797e00bd7d4dd3213253a413", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "", "fuellib_sha": "c5e4a0410ba66f9e9911f62b3b71c0b9c29aed6e"}

Tags: horizon
Revision history for this message
Kyrylo Romanenko (kromanenko) wrote :
description: updated
Revision history for this message
Timur Sufiev (tsufiev-x) wrote :
Changed in mos:
importance: Undecided → Medium
assignee: nobody → Paul Karikh (pkarikh)
milestone: none → 6.1
Changed in mos:
status: New → Confirmed
Revision history for this message
Dmitry Mescheryakov (dmitrymex) wrote :

This is a medium issue, so we are not going to fix it in maintenance releases

Timur Sufiev (tsufiev-x)
Changed in mos:
status: Confirmed → Fix Committed
Revision history for this message
Paul Karikh (pkarikh) wrote :
Revision history for this message
Kyrylo Romanenko (kromanenko) wrote :

Verified. Now user can not disable his current project.
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "6.1"
  api: "1.0"
  build_number: "260"
  build_id: "2015-03-31_22-54-44"
  nailgun_sha: "51ddbe0a2e379e82af531b1c6d45fd386d2f894e"
  python-fuelclient_sha: "9b0b6ab2f09ff75445550b7210104e21df5d8cd6"
  astute_sha: "7292fc2a673cb1c32a688a46fd4836ca0500a957"
  fuellib_sha: "27459a89cdac078ec4046a442a11d750c5eccc2e"
  ostf_sha: "1c7f799cb0e159737d1f910b13e4073b16d1eb8c"
  fuelmain_sha: "178812b1971a900c49a8afc1688afd7475a6ffbb"

Changed in mos:
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.