Add polkit rule to allow kolla nova user access to libvirtd socket on docker host
authorOliver Walsh <owalsh@redhat.com>
Tue, 6 Jun 2017 11:12:43 +0000 (12:12 +0100)
committerOliver Walsh <owalsh@redhat.com>
Tue, 6 Jun 2017 20:49:08 +0000 (21:49 +0100)
commit016cef3ea729e1e3aed948ff3d07d650a5d92884
treede4b21db077d14e70a1ab0a7745d48b31dff7a2b
parent0a75929adeea9ea7a53ad5a45c9bb1f1b6962b9b
Add polkit rule to allow kolla nova user access to libvirtd socket on docker host

The polkit rules are currently evaluated in the context of the docker host.
As a result the check fails for the kolla nova compute user, as the uids are not
consistent with the host uids (in fact we probably can't assume a nova user exists
on the docker host).

As a short-term workaround a 'docker_nova' user group is created on the docker host
and the polkit rule is updated to grant this user access to the libvirtd socket.

Longer term solution probably requires running polkitd in a container too.

Change-Id: I91be1f1eacf8eed9017bbfef393ee2d66771e8d6
Related-bug: #1693844
manifests/profile/base/docker.pp
spec/classes/tripleo_profile_base_docker_spec.rb