Destination directory /etc/containers does not exist

Bug #1955962 reported by chandan kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Unassigned

Bug Description

CS9 master container multinode job is failing during overcloud deploy with following errors:

```
TASK | Run podman install
2021-12-28 22:42:35 | 2021-12-28 22:42:35.166076 | fa163e30-b951-9c80-bae6-0000000006d2 | TIMING | Run podman install | centos-9-stream-ovh-bhs1-0027841210 | 0:03:20.926817 | 0.03s
2021-12-28 22:42:35 | 2021-12-28 22:42:35.218430 | fa163e30-b951-9c80-bae6-0000000007c4 | TASK | Gather variables for each operating system
2021-12-28 22:42:35 | 2021-12-28 22:42:35.281353 | fa163e30-b951-9c80-bae6-0000000007c4 | OK | Gather variables for each operating system | centos-9-stream-ovh-bhs1-0027841210 | item=/usr/share/ansible/roles/tripleo_podman/vars/redhat-9.yml
2021-12-28 22:42:35 | 2021-12-28 22:42:35.283122 | fa163e30-b951-9c80-bae6-0000000007c4 | TIMING | tripleo_podman : Gather variables for each operating system | centos-9-stream-ovh-bhs1-0027841210 | 0:03:21.043890 | 0.06s
2021-12-28 22:42:35 | 2021-12-28 22:42:35.285746 | fa163e30-b951-9c80-bae6-0000000007c4 | TIMING | tripleo_podman : Gather variables for each operating system | centos-9-stream-ovh-bhs1-0027841210 | 0:03:21.046522 | 0.07s
2021-12-28 22:42:35 | 2021-12-28 22:42:35.296252 | fa163e30-b951-9c80-bae6-0000000007c6 | TASK | ensure podman and deps are installed
2021-12-28 22:42:36 | 2021-12-28 22:42:36.250483 | fa163e30-b951-9c80-bae6-0000000007c6 | OK | ensure podman and deps are installed | centos-9-stream-ovh-bhs1-0027841210
2021-12-28 22:42:36 | 2021-12-28 22:42:36.252004 | fa163e30-b951-9c80-bae6-0000000007c6 | TIMING | tripleo_podman : ensure podman and deps are installed | centos-9-stream-ovh-bhs1-0027841210 | 0:03:22.012769 | 0.95s
2021-12-28 22:42:36 | 2021-12-28 22:42:36.263713 | fa163e30-b951-9c80-bae6-0000000007c7 | TASK | Ensure we get the ansible interfaces facts
2021-12-28 22:42:36 | 2021-12-28 22:42:36.793598 | fa163e30-b951-9c80-bae6-0000000007c7 | OK | Ensure we get the ansible interfaces facts | centos-9-stream-ovh-bhs1-0027841210
2021-12-28 22:42:36 | 2021-12-28 22:42:36.795028 | fa163e30-b951-9c80-bae6-0000000007c7 | TIMING | tripleo_podman : Ensure we get the ansible interfaces facts | centos-9-stream-ovh-bhs1-0027841210 | 0:03:22.555786 | 0.53s
2021-12-28 22:42:36 | 2021-12-28 22:42:36.806785 | fa163e30-b951-9c80-bae6-0000000007c8 | TASK | Delete legacy cni0 interface (podman < 1.6)
2021-12-28 22:42:36 | 2021-12-28 22:42:36.826988 | fa163e30-b951-9c80-bae6-0000000007c8 | SKIPPED | Delete legacy cni0 interface (podman < 1.6) | centos-9-stream-ovh-bhs1-0027841210
2021-12-28 22:42:36 | 2021-12-28 22:42:36.828563 | fa163e30-b951-9c80-bae6-0000000007c8 | TIMING | tripleo_podman : Delete legacy cni0 interface (podman < 1.6) | centos-9-stream-ovh-bhs1-0027841210 | 0:03:22.589322 | 0.02s
2021-12-28 22:42:36 | 2021-12-28 22:42:36.839901 | fa163e30-b951-9c80-bae6-0000000007ca | TASK | Make sure /etc/cni/net.d folder exists
2021-12-28 22:42:37 | 2021-12-28 22:42:37.166507 | fa163e30-b951-9c80-bae6-0000000007ca | CHANGED | Make sure /etc/cni/net.d folder exists | centos-9-stream-ovh-bhs1-0027841210
2021-12-28 22:42:37 | 2021-12-28 22:42:37.167974 | fa163e30-b951-9c80-bae6-0000000007ca | TIMING | tripleo_podman : Make sure /etc/cni/net.d folder exists | centos-9-stream-ovh-bhs1-0027841210 | 0:03:22.928730 | 0.33s
2021-12-28 22:42:37 | 2021-12-28 22:42:37.179008 | fa163e30-b951-9c80-bae6-0000000007cb | TASK | Update default network configuration if possible
2021-12-28 22:42:38 | 2021-12-28 22:42:38.012827 | fa163e30-b951-9c80-bae6-0000000007cb | CHANGED | Update default network configuration if possible | centos-9-stream-ovh-bhs1-0027841210
2021-12-28 22:42:38 | 2021-12-28 22:42:38.014184 | fa163e30-b951-9c80-bae6-0000000007cb | TIMING | tripleo_podman : Update default network configuration if possible | centos-9-stream-ovh-bhs1-0027841210 | 0:03:23.774939 | 0.83s
2021-12-28 22:42:38 | 2021-12-28 22:42:38.027002 | fa163e30-b951-9c80-bae6-0000000007cc | TASK | Write containers registries.conf
2021-12-28 22:42:38 | 2021-12-28 22:42:38.836900 | fa163e30-b951-9c80-bae6-0000000007cc | FATAL | Write containers registries.conf | centos-9-stream-ovh-bhs1-0027841210 | error={"changed": false, "checksum": "b4c6cfaedce5f0ae5fb0a16294f6c1f48187601e", "msg": "Destination directory /etc/containers does not exist"}
2021-12-28 22:42:38 | 2021-12-28 22:42:38.839075 | fa163e30-b951-9c80-bae6-0000000007cc | TIMING | tripleo_podman : Write containers registries.conf | centos-9-stream-ovh-bhs1-0027841210 | 0:03:24.599842 | 0.81s
2021-12-28 22:42:38 |
```

BY taking a look[2] at logs/subnode-1/etc

```

Name Last Modified Size
[ ] ../ Thu Jan 1 00:00:00 1970 0.0
[ ] ansible/ Tue Dec 28 22:48:16 2021 4.0K
[ ] ci/ Tue Dec 28 22:48:16 2021 4.0K
[ ] cloud/ Tue Dec 28 22:48:16 2021 4.0K
[ ] cni/ Tue Dec 28 22:48:16 2021 4.0K
[ ] default/ Tue Dec 28 22:48:16 2021 4.0K
[ ] dib-manifests/ Tue Dec 28 22:48:16 2021 4.0K
[ ] dnf/
```
/etc/containers directory does not exists

and
podman is also not getting installed.

Logs
[1]. https://59fbcc1686e550fd4a14-73c930168e2b5366764f1169d2ac4ce3.ssl.cf1.rackcdn.com/823100/2/check/tripleo-ci-centos-9-containers-multinode/b3dee1f/logs/undercloud/home/zuul/overcloud_deploy.log

[2]. https://59fbcc1686e550fd4a14-73c930168e2b5366764f1169d2ac4ce3.ssl.cf1.rackcdn.com/823100/2/check/tripleo-ci-centos-9-containers-multinode/b3dee1f/logs/subnode-1/etc/index.html

description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-ansible (master)
Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-ansible (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-ansible/+/823125
Committed: https://opendev.org/openstack/tripleo-ansible/commit/50b181ccf8ee2fd01580db3fdb1dbc18e546b21c
Submitter: "Zuul (22348)"
Branch: master

commit 50b181ccf8ee2fd01580db3fdb1dbc18e546b21c
Author: Chandan Kumar (raukadah) <email address hidden>
Date: Wed Dec 29 11:30:22 2021 +0530

    Sync vars from redhat.yml to redhat-9.yml

    In terms of EL9, it first loads redhat-9.yaml var and ignores
    the redhat.yaml var.
    It ignores the installation of podman packages and which further
    leads to missing directories.

    By syncing the required vars from redhat.yml to redhat-9.yml
    fixes the issue.

    Closes-Bug: #1955962

    Signed-off-by: Chandan Kumar (raukadah) <email address hidden>
    Change-Id: I6c520f31c8f7d720f090596faac0277faa00f90d

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-ansible (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/tripleo-ansible/+/823147

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

Reviewed: https://review.opendev.org/c/openstack/tripleo-ansible/+/823147
Committed: https://opendev.org/openstack/tripleo-ansible/commit/8c64593022f9df03efcab29192dce7194a4c1e06
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 8c64593022f9df03efcab29192dce7194a4c1e06
Author: Chandan Kumar (raukadah) <email address hidden>
Date: Wed Dec 29 11:30:22 2021 +0530

    Sync vars from redhat.yml to redhat-9.yml

    In terms of EL9, it first loads redhat-9.yaml var and ignores
    the redhat.yaml var.
    It ignores the installation of podman packages and which further
    leads to missing directories.

    By syncing the required vars from redhat.yml to redhat-9.yml
    fixes the issue.

    Closes-Bug: #1955962

    Signed-off-by: Chandan Kumar (raukadah) <email address hidden>
    Change-Id: I6c520f31c8f7d720f090596faac0277faa00f90d
    (cherry picked from commit 50b181ccf8ee2fd01580db3fdb1dbc18e546b21c)

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-ansible 4.2.0

This issue was fixed in the openstack/tripleo-ansible 4.2.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.