grant-revoke: reenabled users missing from list-users

Bug #1609494 reported by Curtis Hovey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Critical
Andrew Wilkins
juju-ci-tools
Invalid
Critical
Unassigned

Bug Description

As seen at
   http://reports.vapour.ws/releases/issue/57a22149749a564903b6bcda

The user-list
JujuAssertionError: [
{u'user-name': u'admin', u'display-name': u'admin'},
{u'user-name': u'readuser', u'display-name': u''}]

does not match the list of users in user_list_admin_read_write
[{u'user-name': u'admin', u'display-name': u'admin'},
 {u'user-name': u'readuser', u'display-name': u'',
 {u'user-name"' u'writeuser', u'display-name': u''}}]

after enabling a previously disabled the user named 'writeuser'

Revision history for this message
Curtis Hovey (sinzui) wrote :

This test case doesn't match my expectations. If I disable a user don't expect the user to still be in the list.

Changed in juju-ci-tools:
status: New → Triaged
importance: Undecided → Critical
Revision history for this message
Curtis Hovey (sinzui) wrote :

This test failures co-inside with a change to the test, not juju. I think the test is wrong.

Changed in juju-core:
status: Triaged → Incomplete
Revision history for this message
Richard Harding (rharding) wrote :

+1 I would expect the user to be there but that there was new metadata indicating a deactivated status of some sort.

Revision history for this message
Curtis Hovey (sinzui) wrote :

The rules for disabled users were changed/fixed in https://github.com/juju/juju/commit/4d37bf304cb18f650c944e0f2a6f5390f25273ff

Revision history for this message
Curtis Hovey (sinzui) wrote :

The test error is reporting that a users can be disabled. The user will be removed from the list. But when the user is enabled, the user is not restored to the list. the user is missing.

summary: - grant-revoke: disabled user still in admin read-write
+ grant-revoke: reenabled users missing from list-users
description: updated
Changed in juju-ci-tools:
status: Triaged → Invalid
Changed in juju-core:
status: Incomplete → Triaged
assignee: nobody → Reed O'Brien (reedobrien)
tags: added: blocker
Revision history for this message
Andrew Wilkins (axwalk) wrote :
tags: removed: blocker
Curtis Hovey (sinzui)
Changed in juju-core:
milestone: 2.0-beta14 → 2.0-beta15
Changed in juju-core:
assignee: Reed O'Brien (reedobrien) → Andrew Wilkins (axwalk)
status: Triaged → In Progress
Revision history for this message
Reed O'Brien (reedobrien) wrote :

axwalk noted this is fixed in comment 6 -- https://bugs.launchpad.net/juju-core/+bug/1609494/comments/6

Andrew Wilkins (axwalk)
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
affects: juju-core → juju
Changed in juju:
milestone: 2.0-beta15 → none
milestone: none → 2.0-beta15
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.