placement in neutron_lib could not process keystone exceptions.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
New
|
Undecided
|
Unassigned |
Bug Description
For stein/stable, routed network which enable placement client.
I could not find root cause though, but the current situation looks like this.
- neutron_
- since IPV4_RESOURCE_CLASS is not created yet, keystoneauth1 emit NotFound exception.
- (weird) keystoneauth1 does sereilize error response from placement
- in keystoneauth1/
- I think placement way is right from the reference (http://
- get_inventory() does not change NotFound exception to PlacementResour
- final exception which user encounter is
2020-02-10 10:00:20.757 24507 DEBUG neutron.
I'm not sure how others use placement api in neutron bacause it occurs every logics.
Thanks
Another interface mismatch.
When placement API in neutron was trying to associate host in the created aggregate, it serialized a payload with uuid list.
But from placement API 1.19 aggregate association API expect object type. (placement/ schemas/ aggregate. py PUT_AGGREGATES_ SCHEMA_ V1_19)
The result is that host could not registered to host aggregate emitting below exception.
2020-02-10 14:36:54.252 28845 DEBUG placement. wsgi_wrapper [req-bf6e64f6- 63bf-43c6- b6d8-8856817c19 20 3bd0c1cbe8f140c f982e1ffc22ef98 42 3f7b5c5c19a84d1 0984d49ab122656 9f - default default] Placement API returning an error response: JSON does not validate: ['e65a8fe8- 562a-400d- 8711-369ed6ffc7 af'] is not of type 'object'
Failed validating 'type' in schema: lProperties' : False,
'type' : 'string'},
'type': 'array',
'uniqueItems' : True},
' resource_ provider_ generation' : {'type': 'integer'}}, provider_ generation' ],
{'additiona
'properties': {'aggregates': {'items': {'format': 'uuid',
'required': ['aggregates', 'resource_
'type': 'object'}
On instance: 562a-400d- 8711-369ed6ffc7 af'] call_func /opt/openstack/ src/placement/ placement/ wsgi_wrapper. py:31
['e65a8fe8-