rbac: build-14-perms2-global_access setting to 7 failing

Bug #1609558 reported by shajuvk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R3.1
Fix Committed
High
Deepinder Setia
Trunk
Fix Committed
High
Deepinder Setia

Bug Description

root@a5s8:/opt/contrail/utils# python chmod2.py --type virtual-network --name default-domain:tenant1:vn1-tenant1 --global-access 7
API Server = 127.0.0.1:8082
global_access = 7
Keystone credentials admin/contrail123/admin
Type = virtual-network
Name = default-domain:tenant1:vn1-tenant1
Cur perms 4d2b5157534b4286941793d5d6a919e7/7 6 []
Traceback (most recent call last):
  File "chmod2.py", line 192, in <module>
    share = share_list)
  File "chmod2.py", line 82, in set_perms
    rv = vnc.chmod(obj.get_uuid(), owner, owner_access, share, global_access)
  File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 1184, in chmod
    self._action_uri['chmod'], data=json.dumps(payload))
  File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 707, in _request_server
    retry_count=retry_count)
  File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 768, in _request
    raise BadRequest(status, content)
cfgm_common.exceptions.BadRequest: HTTP Status: 400 Content: Bad Request, invalid global_access value

it works if less than 7

root@a5s8:/opt/contrail/utils# python chmod2.py --type virtual-network --name default-domain:tenant1:vn1-tenant1 --global-access 6
API Server = 127.0.0.1:8082
global_access = 6
Keystone credentials admin/contrail123/admin
Type = virtual-network
Name = default-domain:tenant1:vn1-tenant1
Cur perms 4d2b5157534b4286941793d5d6a919e7/7 7 []
New perms 4d2b5157534b4286941793d5d6a919e7/7 6 []

shajuvk (shajuvk)
information type: Proprietary → Public
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/22825
Submitter: Deepinder Setia (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/22825
Committed: http://github.org/Juniper/contrail-controller/commit/9ec8624e7f9f6cc76c7b6b81d60e3cdf206e2fee
Submitter: Zuul
Branch: master

commit 9ec8624e7f9f6cc76c7b6b81d60e3cdf206e2fee
Author: Deepinder Setia <email address hidden>
Date: Wed Aug 3 16:43:46 2016 -0700

Accept 7 as valid value of global access (PERMS_RWX)

Change-Id: I9f4e39b5887c6899c16f2617d1fa6c782972ac70
Closes-Bug: #1609558

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.1

Review in progress for https://review.opencontrail.org/22960
Submitter: Deepinder Setia (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/22960
Committed: http://github.org/Juniper/contrail-controller/commit/4160731743722c1176aba7175e547145783b77e9
Submitter: Zuul
Branch: R3.1

commit 4160731743722c1176aba7175e547145783b77e9
Author: Deepinder Setia <email address hidden>
Date: Wed Aug 3 16:43:46 2016 -0700

Accept 7 as valid value of global access (PERMS_RWX)

Change-Id: I9f4e39b5887c6899c16f2617d1fa6c782972ac70
Closes-Bug: #1609558

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.