Introduce a capsule driver in parallel with container driver.
Capsule logic goes to capsule driver and container logic goes to
container driver.
Change-Id: I0c3efdb0068cfa89b8cfc6cad68425838cd2e50f
* Remove get_container_name (this API is not used)
* Remove get_addresses (this API is not used)
* Remove get_host_info (this is a docker internal method)
Change-Id: I385f5f5526b2e61b7b11c05fadeab40c98a2c5cb
Move docker-specific code to DockerDriver subclass.
After the refactoring, generic code stays in base class and
docker-specific code is moved to docker driver subclass.
As a result, we can re-use the generic code in base class
if we introduce a non-docker driver in the future.
Change-Id: I4a68b58f46bc7eaac494909647b87ada7813a8eb
* Implement get_total_disk_for_container
* Implement get_available_nodes
* Implement node_support_disk_quota
Later, we will introduce another container driver and these default
implementation can be re-used.
Change-Id: I67d895844aada6c1743741e6d051aa25109fd1b9
This commit introduce the python-binding for iteracting with
CRI runtime via GRPC.
The client code is generated by protocol buffer [1] by using api.proto
in kubernetes/cri-api repo.
The generated CRI client code couldn't pass the pep8 check so this
commit also configure flake8 to skip the zun/criapi directory.
[1] https://developers.google.com/protocol-buffers/docs/pythontutorial
Implements: blueprint add-support-cri-runtime
Change-Id: I2e1a20b47fec5af1f4977148431e1135abd49812
Nova compute create resource provider based on hypervisor_hostname,
which is hypervisor-specific. We would like to be robust on finding
the resource providers.
Closes-Bug: #1858038
Change-Id: Icf217f7e3e75e9dc52a162cd6bfb5459ee8b1daa
We should let DEL request to succeed even if the DB record is not
found in database. In this case, we cannot retrieve the vif thus
ignoring the vif disconnect step.
Change-Id: I8207d7b624af17ddf002affb626cc4f1d8bdabec
The CNI plugin is an executable that interacts with the Zun
CNI daemon.
Implements: blueprint support-cni
Change-Id: Iafc8a12bec04136b0c50aedb4ea7789af324f39d
This field will be used by Zun to pass information to CNI plugin.
Change-Id: Id1beeae646cf41fa217424adf2df46fe588a25a0
Implements: blueprint support-cni
This object will be used by the Zun CNI plugin which is under
development.
Change-Id: I093fdfc5beb1ca45993b36c4c9512fa511773965
Implements: blueprint support-cni
There is a Network object defined in os_vif library. To avoid
name conflicting, we rename the object in Zun.
Change-Id: I3fe1d8a6c961745801b07612b8982940aa683b3a