Passing "--extra-property" to openstack network rbac fails with error 400

Bug #2099717 reported by Wesley De Arburn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
New
Undecided
Unassigned

Bug Description

Hi,

Using the "--extra-property" with the "network rbac create" command fails (400).

---
$ openstack --version
openstack 6.6.1

$ openstack network rbac create --project myproject --action access_as_shared --target-project '111111' --type network --extra-property name='request',value='john' '123456'
BadRequestException: 400: Client Error for url: https://osk:9696/v2.0/rbac-policies, Unrecognized attribute(s) 'request'
---

Is this expected ?

Thanks,
W.

Tags: network
Revision history for this message
djp (dimsssss) wrote :

I run
openstack network rbac create --debug --project demo --action access_as_shared --target-project 'demo' --type network --extra-property name='request',value='john' 'private'.

The result was the following:
RESP BODY: {"NeutronError": {"type": "HTTPBadRequest", "message": "Unrecognized attribute(s) 'request'", "detail": ""}}

Revision history for this message
Alexey Stupnikov (astupnikov) wrote :

It doesn't look like proper format was used
  --extra-property type=<property_type>,name=<property_name>,value=<property_value>
                        Additional parameters can be passed using this property. Default type of the extra property is string ('str'),
                        but other types can be used as well. Available types are: 'dict', 'list', 'str', 'bool', 'int'. In case of
                        'list' type, 'value' can be semicolon-separated list of values. For 'dict' value is semicolon-separated list
                        of the key:value pairs.

Changed in python-openstackclient:
status: New → Incomplete
Changed in python-openstackclient:
status: Incomplete → Invalid
Revision history for this message
Wesley De Arburn (makwes) wrote :

Hi,

What would be the correct syntax in this case ? I review my command and tested it again with same error message.

---
$ openstack --version
openstack 8.2.0

$ openstack network rbac create --project myproject --action access_as_shared --target-project random_project --type network --extra-property str='str',name='request',value='ticketnumber' 'my_private_project'

RESP BODY: {"NeutronError": {"message": "Unrecognized attribute(s) 'request'", "type": "HTTPBadRequest", "detail": ""}}

BadRequestException: 400: Client Error for url: https://api-emea-west-pdc-z01.cloud.ubisoft.com:9696/v2.0/rbac-policies, Unrecognized attribute(s) 'request'
---

Changed in python-openstackclient:
status: Invalid → New
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.