Allow user to see which access rule is recent created or recent updated

Bug #1693701 reported by zhongjun
24
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
Revision history for this message
Goutham Pacha Ravi (gouthamr) wrote :
Download full text (4.8 KiB)

I can't reproduce this bug with the steps indicated in the bug report:

# Add a new rule that's valid:
stack@openstack2:/opt/stack/python-manilaclient$ manila access-allow be096291-27ea-47bc-a5a2-8b48884269a9 ip 1.1.1.0/24
+--------------+--------------------------------------+
| Property | Value |
+--------------+--------------------------------------+
| access_key | None |
| share_id | be096291-27ea-47bc-a5a2-8b48884269a9 |
| created_at | 2017-08-02T14:23:03.000000 |
| updated_at | None |
| access_type | ip |
| access_to | 1.1.1.0/24 |
| access_level | rw |
| state | queued_to_apply |
| id | 9549a577-266f-4200-aab5-b6a5516febf2 |
+--------------+--------------------------------------+

# Add an invalid rule:
stack@openstack2:/opt/stack/python-manilaclient$ manila access-allow be096291-27ea-47bc-a5a2-8b48884269a9 user test
+--------------+--------------------------------------+
| Property | Value |
+--------------+--------------------------------------+
| access_key | None |
| share_id | be096291-27ea-47bc-a5a2-8b48884269a9 |
| created_at | 2017-08-02T14:23:10.000000 |
| updated_at | None |
| access_type | user |
| access_to | test |
| access_level | rw |
| state | queued_to_apply |
| id | b093c1b0-f479-4b54-857a-b791bbb89a36 |
+--------------+--------------------------------------+

# Check access rules on the share:
stack@openstack2:/opt/stack/python-manilaclient$ manila access-list be096291-27ea-47bc-a5a2-8b48884269a9
+--------------------------------------+-------------+------------+--------------+--------+------------+----------------------------+------------+
| id | access_type | access_to | access_level | state | access_key | created_at | updated_at |
+--------------------------------------+-------------+------------+--------------+--------+------------+----------------------------+------------+
| 9549a577-266f-4200-aab5-b6a5516febf2 | ip | 1.1.1.0/24 | rw | active | None | 2017-08-02T14:23:03.000000 | None |
| b093c1b0-f479-4b54-857a-b791bbb89a36 | user | test | rw | error | None | 2017-08-02T14:23:10.000000 | None |
+--------------------------------------+-------------+------------+--------------+--------+------------+----------------------------+------------+

# Check access_rules_status on the share:
stack@openstack2:/opt/stack/python-manilaclient$ manila list --columns id,status,access_rules_status
+--------------------------------------+-----------+---------------------+
| Id | Status | Access_Rules_Status |
+--------------------------------------+-----------+----------...

Read more...

Changed in python-manilaclient:
status: New → Invalid
importance: Medium → Wishlist
Revision history for this message
zhongjun (jun-zhongjun) wrote :

@Goutham Pacha Ravi (gouthamr)
This is just want to show the 'created_at' and 'updated_at' time columns when we run access_list command, it has been fix in the following patch. https://bugs.launchpad.net/manila/+bug/1682795

When we do manila access-list, the 'created_at' and 'updated_at' time
should be shown to the user. And then the user could determine which
is the recent access rule. As designed, the recent access-allow
rule caused the error access-status of share instance.
The API change [1] has been merged.

https://review.openstack.org/#/c/468287/

zhongjun (jun-zhongjun)
Changed in python-manilaclient:
status: Invalid → 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.