Comment 3 for bug 1636604

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_nova (master)

Reviewed: https://review.openstack.org/391295
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_nova/commit/?id=1d4c3ad6ece7648d7329c5a6bfd42ed9b53b3022
Submitter: Jenkins
Branch: master

commit 1d4c3ad6ece7648d7329c5a6bfd42ed9b53b3022
Author: Paulo Matias <email address hidden>
Date: Thu Oct 27 17:24:50 2016 -0200

    Fix permissions for the Nova lock directory in systemd

    The directory set as `lock_path` in `nova.conf` must be created with
    the nova system user as its owner, otherwise the VIF plugin would fail
    to acquire a lock when launching an instance.

    Here we set up systemd to create this directory with correct owner and
    permissions, besides moving its path to a `nova_lock_path` variable.

    Apparently, the `/var/lock/{{ item.value.service_name }}` directory,
    which is also created by `nova-systemd-tempfiles.j2`, is not needed at
    all. But as this patch is intended to be backported to a stable release,
    we keep it by now to avoid any unforeseen issues.

    Change-Id: I9886778eddc23f0f71dfdfc87f4f715054946b3d
    Closes-Bug: #1636604