python compute-api package
Bug #1310804 reported by
Pedro Marques
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenContrail |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Currently, the python API binding that informs the compute-node agent when a port is added or removed is part of the nova-driver package. This code is also used in Xen drivers (Cloudstack), neutron vif driver and network namespace provisioning (w/o OpenStack).
This functionality should be made into an independent library and include the methods necessary to convert between uuid format and the binary string representation expected by the thrift interface.
Proposal is to create a python package called contrail-
The following is an example of a class that would provide this API: /github. com/pedro- r-marques/ nova-docker/ blob/opencontra il/novadocker/ virt/docker/ opencontrail_ api.py
https:/
Missing in the code above is the functionality found in the nova-vif-driver: being able to have a periodic check that verifies that the agent is still up, have a dictionary with the ports.
The intent here is to build a package that follows the convention of having
top-dir/
setup.py
top_dir/files
top_dir/gen_py
top_dir/tests
And use as much as possible the same structure that the nova package is using and we are copying to the api-server.