project read by fq_name should also be able to sync the project from keystone

Bug #1353325 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R1.1
Won't Fix
Low
Hampapur Ajay
Trunk
New
Low
Hampapur Ajay

Bug Description

Currently the VNC project_read() syncs the project only when UUID in specified. But it fails if fq-name is used.

>>> vh=VncApi()
>>> vh.project_read(fq_name=['default-domain','admin'])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/vnc_api/gen/vnc_api_client_gen.py", line 4977, in project_read
    (args_ok, result) = self._read_args_to_id('project', fq_name, fq_name_str, id, ifmap_id)
  File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 302, in _read_args_to_id
    return (True, self.fq_name_to_id(obj_type, fq_name))
  File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 387, in fq_name_to_id
    content = self._request_server(rest.OP_POST, uri, data=json_body)
  File "/usr/lib/python2.7/dist-packages/vnc_api/vnc_api.py", line 346, in _request_server
    % (op, url, data, content))
cfgm_common.exceptions.NoIdError: Unknown id: Error: oper 1 url /fqname-to-id body {"fq_name": ["default-domain", "admin"], "type": "project"} response Name [u'default-domain', u'admin'] not found
>>>
——
After creating a network in admin :

>>> vh.project_read(fq_name=['default-domain','admin'])
<vnc_api.gen.resource_client.Project object at 0x23bfcd0>
>>>

Tags: config
Changed in juniperopenstack:
milestone: r1.10-fcs → none
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.