f/antelope: downloader: Failed to download python-prometheus-client

Bug #2036291 reported by Luan Nunes Utimura
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
High
Luan Nunes Utimura

Bug Description

Brief Description
-----------------
It has been observed that `python-prometheus-client` is failing to download after being added to the `containers` binaries list.

Severity
--------
Critical.

Steps to Reproduce
------------------
Run `downloader`.

Expected Behavior
------------------
All binaries are downloaded successfully.

Actual Behavior
----------------
`python-prometheus-client` fails to download.

Reproducibility
---------------
Reproducible.

System Configuration
--------------------
N/A.

Branch/Pull Time/Commit
-----------------------
`f/antelope` branch.

Last Pass
---------
N/A.

Timestamp/Logs
--------------
```
[2023-09-15T16:43:36.922Z] 2023-09-15 16:43:36,678 - repo_manager - ERROR: Error: [Errno 2] No such file or directory: '/import/mirrors/starlingx/binaries/python-prometheus-client_0.7.1-1.1_all.deb'
[2023-09-15T16:43:36.922Z] 2023-09-15 16:43:36,678 - repo_manager - ERROR: Error: [Errno 2] No such file or directory: '/import/mirrors/starlingx/binaries/python-prometheus-client_0.7.1-1.1_all.deb'
[2023-09-15T16:43:36.922Z] 2023-09-15 16:43:36,678 - repo_manager - ERROR: Binary package /import/mirrors/starlingx/binaries/python-prometheus-client_0.7.1-1.1_all.deb read error.
[2023-09-15T16:43:36.922Z] 2023-09-15 16:43:36,678 - repo_manager - ERROR: Binary package /import/mirrors/starlingx/binaries/python-prometheus-client_0.7.1-1.1_all.deb read error.
[2023-09-15T16:43:36.922Z] 2023-09-15 16:43:36,678 - downloader - ERROR: Binary package error.
[2023-09-15T16:43:36.922Z] 2023-09-15 16:43:36,678 - downloader - ERROR: Exception on uploading /import/mirrors/starlingx/binaries/python-prometheus-client_0.7.1-1.1_all.deb to deb-local-binary-containers
```

Test Activity
-------------
Daily Build.

Workaround
----------
N/A.

tags: added: stx.9.0
summary: - f/antelope: downloader: Fail to download python-prometheus-client
+ f/antelope: downloader: Failed to download python-prometheus-client
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tools (f/antelope)

Fix proposed to branch: f/antelope
Review: https://review.opendev.org/c/starlingx/tools/+/895525

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tools (f/antelope)

Reviewed: https://review.opendev.org/c/starlingx/tools/+/895525
Committed: https://opendev.org/starlingx/tools/commit/38960acdbd39a227625d0c6d731389a589e73d4b
Submitter: "Zuul (22348)"
Branch: f/antelope

commit 38960acdbd39a227625d0c6d731389a589e73d4b
Author: Luan Nunes Utimura <email address hidden>
Date: Fri Sep 15 20:18:44 2023 -0300

    containers: Fix python-prometheus-client entry

    It has been observed that `python-prometheus-client` is failing to
    download after being added to the `containers` binaries list [1].

    According to snapshot.debian.org [2], the binary for this package
    is called `python3-prometheus-client`, and not
    `python-prometheus-client`.

    Changing the name in the `os-std.lst` file seems to solve the problem.

    Note: Since this binary is required for the exclusive build of the
          `stx-ceph-manager` container image, I took the opportunity to try
          to build it after fixing the `downloader`.

          To my surprise, the image build was still failing due to a missing
          package in the `containers` layer: `python3-oslo.messaging`.

          So, since we are already updating this file, I took the
          opportunity to add this missing binary as well.

          (I decided to go with a version compatible with OpenStack
          Victoria, which is what the platform uses)

    [1] https://review.opendev.org/c/starlingx/tools/+/894921
    [2] https://snapshot.debian.org/package/python-prometheus-client/0.7.1-1.1/

    Test Plan:
    PASS - Run `downloader`
    PASS - Build `stx-debian` base image
    PASS - Build `stx-ceph-manager` container image

    Closes-Bug: 2036291

    Change-Id: I6af526e7fc014228401114baeb2fb0fdce8310a4
    Signed-off-by: Luan Nunes Utimura <email address hidden>

tags: added: in-f-antelope
tags: added: stx.distro.openstack
Changed in starlingx:
assignee: nobody → Luan Nunes Utimura (lutimura)
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tools (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/tools/+/896778

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

Reviewed: https://review.opendev.org/c/starlingx/tools/+/896778
Committed: https://opendev.org/starlingx/tools/commit/d2445ffc78a60c919e35fd01c02daabb922780a5
Submitter: "Zuul (22348)"
Branch: master

commit d2445ffc78a60c919e35fd01c02daabb922780a5
Author: Luan Nunes Utimura <email address hidden>
Date: Fri Sep 15 20:18:44 2023 -0300

    containers: Fix python-prometheus-client entry

    It has been observed that `python-prometheus-client` is failing to
    download after being added to the `containers` binaries list [1].

    According to snapshot.debian.org [2], the binary for this package
    is called `python3-prometheus-client`, and not
    `python-prometheus-client`.

    Changing the name in the `os-std.lst` file seems to solve the problem.

    Note: Since this binary is required for the exclusive build of the
          `stx-ceph-manager` container image, I took the opportunity to try
          to build it after fixing the `downloader`.

          To my surprise, the image build was still failing due to a missing
          package in the `containers` layer: `python3-oslo.messaging`.

          So, since we are already updating this file, I took the
          opportunity to add this missing binary as well.

          (I decided to go with a version compatible with OpenStack
          Victoria, which is what the platform uses)

    [1] https://review.opendev.org/c/starlingx/tools/+/894921
    [2] https://snapshot.debian.org/package/python-prometheus-client/0.7.1-1.1/

    Test Plan:
    PASS - Run `downloader`
    PASS - Build `stx-debian` base image
    PASS - Build `stx-ceph-manager` container image

    Closes-Bug: 2036291

    Change-Id: I6af526e7fc014228401114baeb2fb0fdce8310a4
    Signed-off-by: Luan Nunes Utimura <email address hidden>
    (cherry picked from commit 38960acdbd39a227625d0c6d731389a589e73d4b)
    Signed-off-by: Lucas de Ataides <email address hidden>

Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → High
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.