Fix SshHostPubKeyDeployment on containerized nova-compute.
authorOliver Walsh <owalsh@redhat.com>
Mon, 15 May 2017 20:21:57 +0000 (21:21 +0100)
committerOliver Walsh <owalsh@redhat.com>
Mon, 15 May 2017 20:32:38 +0000 (21:32 +0100)
This is failing since https://review.openstack.org/458672 merged
because the ssh host keys are not mapped to the container.

Change-Id: Ie868654f13bee04da642337cc344871903f40473
Closes-bug: #1690911

docker/firstboot/start_docker_agents.sh

index 1c5cc18..7d22749 100755 (executable)
@@ -36,7 +36,8 @@ AGENT_COMMAND_MOUNTS="\
 -v /usr/lib64/libseccomp.so.2:/usr/lib64/libseccomp.so.2 \
 -v /usr/bin/docker:/usr/bin/docker \
 -v /usr/bin/docker-current:/usr/bin/docker-current \
--v /var/lib/os-collect-config:/var/lib/os-collect-config"
+-v /var/lib/os-collect-config:/var/lib/os-collect-config \
+-v /etc/ssh:/etc/ssh"
 
 # heat-docker-agents service
 cat <<EOF > /etc/systemd/system/heat-docker-agents.service