Allow user to see which access rule is recent created or recent updated
Bug #1693701 reported by
zhongjun
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-manilaclient |
Fix Released
|
Wishlist
|
NidhiMittalHada |
Bug Description
Do as the following sequence,
1.manila access-allow user1 , the share instance access-status is active.
2.manila access-allow user2, the share instance access-status is error.
3.manila access-deny user1, the share instance access-status is active.
At last, the status of share instance access-status is active, but the wrong acess rule is still in.
If the user could see the created and updated time of share access. The user may select it and deny it.
Changed in python-manilaclient: | |
assignee: | nobody → NidhiMittalHada (nidhimittal19) |
Changed in python-manilaclient: | |
importance: | Undecided → Medium |
Changed in python-manilaclient: | |
status: | Invalid → Fix Released |
To post a comment you must log in.
I can't reproduce this bug with the steps indicated in the bug report:
# Add a new rule that's valid: 2:/opt/ stack/python- manilaclient$ manila access-allow be096291- 27ea-47bc- a5a2-8b48884269 a9 ip 1.1.1.0/24 ------- -+----- ------- ------- ------- ------- -----+ ------- -+----- ------- ------- ------- ------- -----+ 27ea-47bc- a5a2-8b48884269 a9 | 02T14:23: 03.000000 | 266f-4200- aab5-b6a5516feb f2 | ------- -+----- ------- ------- ------- ------- -----+
stack@openstack
+------
| Property | Value |
+------
| access_key | None |
| share_id | be096291-
| created_at | 2017-08-
| updated_at | None |
| access_type | ip |
| access_to | 1.1.1.0/24 |
| access_level | rw |
| state | queued_to_apply |
| id | 9549a577-
+------
# Add an invalid rule: 2:/opt/ stack/python- manilaclient$ manila access-allow be096291- 27ea-47bc- a5a2-8b48884269 a9 user test ------- -+----- ------- ------- ------- ------- -----+ ------- -+----- ------- ------- ------- ------- -----+ 27ea-47bc- a5a2-8b48884269 a9 | 02T14:23: 10.000000 | f479-4b54- 857a-b791bbb89a 36 | ------- -+----- ------- ------- ------- ------- -----+
stack@openstack
+------
| Property | Value |
+------
| access_key | None |
| share_id | be096291-
| created_at | 2017-08-
| updated_at | None |
| access_type | user |
| access_to | test |
| access_level | rw |
| state | queued_to_apply |
| id | b093c1b0-
+------
# Check access rules on the share: 2:/opt/ stack/python- manilaclient$ manila access-list be096291- 27ea-47bc- a5a2-8b48884269 a9 ------- ------- ------- ------- ----+-- ------- ----+-- ------- ---+--- ------- ----+-- ------+ ------- -----+- ------- ------- ------- ------+ ------- -----+ ------- ------- ------- ------- ----+-- ------- ----+-- ------- ---+--- ------- ----+-- ------+ ------- -----+- ------- ------- ------- ------+ ------- -----+ 266f-4200- aab5-b6a5516feb f2 | ip | 1.1.1.0/24 | rw | active | None | 2017-08- 02T14:23: 03.000000 | None | f479-4b54- 857a-b791bbb89a 36 | user | test | rw | error | None | 2017-08- 02T14:23: 10.000000 | None | ------- ------- ------- ------- ----+-- ------- ----+-- ------- ---+--- ------- ----+-- ------+ ------- -----+- ------- ------- ------- ------+ ------- -----+
stack@openstack
+------
| id | access_type | access_to | access_level | state | access_key | created_at | updated_at |
+------
| 9549a577-
| b093c1b0-
+------
# Check access_rules_status on the share: 2:/opt/ stack/python- manilaclient$ manila list --columns id,status, access_ rules_status ------- ------- ------- ------- ----+-- ------- --+---- ------- ------- ---+ ------- ------- ------- ------- ----+-- ------- --+---- ------. ..
stack@openstack
+------
| Id | Status | Access_Rules_Status |
+------