Permission denied error when deploying neutron-sriov-agent

Bug #1923467 reported by Kitrick Sheets
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Confirmed
Undecided
Unassigned
Ussuri
Fix Committed
Undecided
Unassigned

Bug Description

After enabling 'kolla_enable_neutron_sriov', service deployment fails with the following error:

fatal: [vs-os-comp-test-03]: FAILED! => {"msg": "Failed to get information on remote file (/etc/kolla/neutron-sriov-agent/sriov_agent.ini): Permission denied"}

The error appears to be a missing 'become: true' in the following task from the ansible/roles/neutron/tasks/config.yml playbook:

- name: Copying over sriov_agent.ini
  vars:
    service_name: "neutron-sriov-agent"
    neutron_sriov_agent: "{{ neutron_services[service_name] }}"
  merge_configs:
    sources:
      - "{{ role_path }}/templates/sriov_agent.ini.j2"
      - "{{ node_custom_config }}/neutron/sriov_agent.ini"
      - "{{ node_custom_config }}/neutron/{{ inventory_hostname }}/sriov_agent.ini"
    dest: "{{ node_config_directory }}/{{ service_name }}/sriov_agent.ini"
    mode: "0660"
  when:
    - neutron_sriov_agent.enabled | bool
    - neutron_sriov_agent.host_in_groups | bool
  notify:
    - "Restart {{ service_name }} container"

**Environment**
* OS
NAME="CentOS Linux"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"

* Kernel
4.18.0-240.10.1.el8_3.x86_64

* Docker image install type: binary
* Docker image distribution: ussuri

Revision history for this message
Michal Nasiadka (mnasiadka) wrote :
Changed in kolla-ansible:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/ussuri)

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/795157

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/ussuri)

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/795157
Committed: https://opendev.org/openstack/kolla-ansible/commit/6f3b611f34dfc1ef65517bfd0772d8eac6ef57db
Submitter: "Zuul (22348)"
Branch: stable/ussuri

commit 6f3b611f34dfc1ef65517bfd0772d8eac6ef57db
Author: Michał Nasiadka <email address hidden>
Date: Mon Jun 7 18:56:09 2021 +0200

    neutron: Add become for copying sriov_agent.ini

    This bug has been accidentally fixed in Victoria by [1].

    [1]: https://review.opendev.org/c/openstack/kolla-ansible/+/742627

    Closes-Bug: #1923467
    Change-Id: Ie09beb79938ffbcdb5193299511e6eef0b98a258

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/795456

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/train)

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/795456
Committed: https://opendev.org/openstack/kolla-ansible/commit/6966e6fae17d45d7497ff05b6a4456d402f0aa5b
Submitter: "Zuul (22348)"
Branch: stable/train

commit 6966e6fae17d45d7497ff05b6a4456d402f0aa5b
Author: Michał Nasiadka <email address hidden>
Date: Mon Jun 7 18:56:09 2021 +0200

    neutron: Add become for copying sriov_agent.ini

    This bug has been accidentally fixed in Victoria by [1].

    [1]: https://review.opendev.org/c/openstack/kolla-ansible/+/742627

    Closes-Bug: #1923467
    Change-Id: Ie09beb79938ffbcdb5193299511e6eef0b98a258
    (cherry picked from commit 6f3b611f34dfc1ef65517bfd0772d8eac6ef57db)

tags: added: in-stable-train
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 9.3.2

This issue was fixed in the openstack/kolla-ansible 9.3.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 10.3.0

This issue was fixed in the openstack/kolla-ansible 10.3.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.