Cinder back-end support for containers
Currently the Nova Docker Driver doesn't support the --block-
At the same time, docker doesn't support attach volume when containers are running.
Due to this, the containers not support persistence the user date in the IPSAN etc.
This Blueprint is to provide this missing functionality when boot containers in Nova Docker Driver.
Whiteboard
Cinder back-end support for containers (with IPSAN)
=======
Requirement Description:
===================
1.Presently the Nova Docker Driver doesn't support persistence the user date (use cinder back-end)when boot containers.
Below is a proposed solution.
Design:
======
1. With this fix, the nova-docker supports --block-
Code fix Description :
===============
This Fix contains one additional method and modifies the exist method.
# This method is used for connecting the bdms, and return the mapping the devices.
def _get_guest_
At the same time, it adds volume_drivers for the docker.
docker_
'iscsi=
]
# This method add support for the devices
self.
Test Description:
============
Apart from the Unit test execution, below is a manual way to verify the working functionality by the tester.
1. Create a cinder volume using openstack
#cinder create --display-name vol-test 1
/etc/cinder/
[lvmdriver-1]
iscsi_helper = tgtadm
volume_group = stack-volumes-
volume_driver = cinder.
volume_backend_name = lvmdriver-1
2. Create containers useing the above VOL-ID
nova boot test-vol --flavor 2 --image cirros:latest --nic net-id=
Note:
There is a bug in the kilo, must fix bug with two patches: one is already in kilo, another patch client is not fix yet.
https:/
The python-novaclient patch
https:/
3. Verify the container device mapping
#docker inspect CONTAINER-ID
"Devices": [
{
}
]
4. Verify the iscsi mession
#iscsiadm -m session |grep $VOL-ID
5. Verify that the device can be used and the attach info in cinder is right.
#dd if=/dev/vdx of=/home/c.file bs=512 count=1
[root@localhost iscsi]# cinder list
+------
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
| 79c9c916-
| c2e42831-
+------
Gerrit topic: https:/
Addressed by: https:/
Cinder back-end support for containers