Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install rsync-daemon' returned 1: Error: Failed to download metadata for repo 'baseos

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

Bug Description

843787: Switch to ubi9 containers_base_image image | https://review.opendev.org/c/openstack/tripleo-ci/+/843787

Currently in content provider jobs, we are using centos-stream 9 container images.
https://review.opendev.org/c/openstack/tripleo-ci/+/843787 switches the same to ubi9 image and the standalone job is failing at following error in container-puppet-swift.

https://b310562373a188973e4d-6d67d1055c684f7187f360a048e3d766.ssl.cf2.rackcdn.com/843787/3/check/tripleo-ci-centos-9-standalone/5eaee52/logs/undercloud/var/log/extra/podman/containers/container-puppet-swift/stdout.log

```
Notice: Compiled catalog for standalone.localdomain in environment production in 1.51 seconds
<13>Jun 17 11:44:29 puppet-user: Error: Execution of '/usr/bin/dnf -d 0 -e 1 -y install rsync-daemon' returned 1: Error: Failed to download metadata for repo 'baseos': Cannot prepare internal mirrorlist: Status code: 404 for https://mirrors.centos.org/metalink?repo=centos-baseos-$stream&arch=x86_64&protocol=https,http (IP: 8.43.85.73)
```

and in regular standalone job using cs9 images are passing

https://4a7f5ef0be743400f196-c7536dfa7b436b536030acce802808b4.ssl.cf5.rackcdn.com/periodic/opendev.org/openstack/tripleo-ci/master/tripleo-ci-centos-9-standalone/786a430/logs/undercloud/var/log/extra/podman/containers/container-puppet-swift/stdout.log

```
Notice: Compiled catalog for standalone.localdomain in environment production in 1.29 seconds
<13>Jun 20 04:04:13 puppet-user: Notice: /Stage[main]/Rsync::Server/Package[rsync-daemon]/ensure: created
<13>Jun 20 04:04:13 puppet-user: Notice: /Stage[main]/Rsync::Server/Concat[/etc/rsyncd.conf]/File[/etc/rsyncd.conf]/content: content changed '{sha256}189b30972178b755e8e70eab81b1d261c4def61b342300f11760e6f2e706ff64' to '{sha256}d13ec59775a0badc59c06dd807208071501524651d2909ba2fbd4a4d78d1c779'
```

I checked the centos stream 9 and ubi 9 image there is no rsync-daemon package. It is only failing in job with ubi9 container base image. As per the error during runtime, this package is getting installed.

One of the solution for this one is to add rsync-daemon in the swift container.

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

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

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

Reviewed: https://review.opendev.org/c/openstack/tripleo-common/+/846608
Committed: https://opendev.org/openstack/tripleo-common/commit/253049a5a02f53e7e654bcc03783720e8cd70a8c
Submitter: "Zuul (22348)"
Branch: master

commit 253049a5a02f53e7e654bcc03783720e8cd70a8c
Author: Chandan Kumar (raukadah) <email address hidden>
Date: Mon Jun 20 17:29:07 2022 +0530

    Add rsync-daemon to swift container

    https://review.opendev.org/c/openstack/tripleo-ci/+/843787
    switches the container base image from cs9 to ubi9.

    The standalone deployment is failing while configuring
    swift in container-puppet-swift container while installing
    rsync-daemon.

    Adding rsync-daemon for the swift container fixes the issue.

    Closes-Bug: #1979204

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

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

Reviewed: https://review.opendev.org/c/openstack/tripleo-common/+/846993
Committed: https://opendev.org/openstack/tripleo-common/commit/5753087019e903aa783331ed92f434a556e2159e
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 5753087019e903aa783331ed92f434a556e2159e
Author: Chandan Kumar (raukadah) <email address hidden>
Date: Mon Jun 20 17:29:07 2022 +0530

    Add rsync-daemon to swift container

    https://review.opendev.org/c/openstack/tripleo-ci/+/843787
    switches the container base image from cs9 to ubi9.

    The standalone deployment is failing while configuring
    swift in container-puppet-swift container while installing
    rsync-daemon.

    Adding rsync-daemon for the swift container fixes the issue.

    Closes-Bug: #1979204

    Signed-off-by: Chandan Kumar (raukadah) <email address hidden>
    Change-Id: I782dd3d0d603bc0bc6d7cdebb6ed26e776d1562b
    (cherry picked from commit 253049a5a02f53e7e654bcc03783720e8cd70a8c)

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-heat-templates (master)

Change abandoned by "Ronelle Landy <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/846166
Reason: will reset the gate

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to tripleo-heat-templates (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/846166
Committed: https://opendev.org/openstack/tripleo-heat-templates/commit/13e84c4f5c28947c1aca7ad76f03b013a17ddf24
Submitter: "Zuul (22348)"
Branch: master

commit 13e84c4f5c28947c1aca7ad76f03b013a17ddf24
Author: Takashi Kajinami <email address hidden>
Date: Thu Jun 16 22:03:42 2022 +0900

    Swift: Do not enable the whole rsync::server class

    In puppet run for swift, we enable the entire rsync::server class and
    this sometimes results in unexpected package installation inside
    the container-puppet-swift container.

    Because we only need file/concat resources defined in the class since
    we get rid of xinetd for CentOS 9 and these resources are enabled by
    default, this change removes that entire class from tags.

    Related-Bug: #1979204
    Change-Id: I7e29a6e797155ca5c5aa27996a4e35e688061b6f

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-common 17.0.0

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