rabbitmq build fails on ubuntu 22.04 due to dl.cloudsmith.io wants payment

Bug #2037469 reported by Konstantin Davydov
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla
Status tracked in Bobcat
Antelope
Fix Committed
High
Unassigned
Bobcat
Fix Released
High
Michal Nasiadka
Yoga
Fix Committed
High
Unassigned
Zed
Fix Committed
High
Unassigned

Bug Description

Hi, good morning

**Bug Report**
I was trying to build rabbitmq for openstack stable/zed using kolla(16.1.0) on Ubuntu 22.04. It was failing due to https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/debian is not working, it returns "ERROR 402: Payment Required."

**Expected result**:
after running kolla-build
...
INFO:kolla.common.utils:=========================
INFO:kolla.common.utils:Successfully built images
INFO:kolla.common.utils:=========================
INFO:kolla.common.utils:base
INFO:kolla.common.utils:rabbitmq
INFO:kolla.common.utils:=========================================

**Actual result**:
...
INFO:kolla.common.utils:===========================
INFO:kolla.common.utils:Images that failed to build
INFO:kolla.common.utils:===========================
ERROR:kolla.common.utils:rabbitmq Failed with status: error
INFO:kolla.common.utils:=========================================

**How to reproduce**:
# pip3 install kolla
# kolla-build --base ubuntu --profile infra --openstack-release zed

**Environment**:
OS: Ubuntu 22.04.3 LTS (5.15.0-84-generic #93-Ubuntu)
Docker: 24.0.5
Kolla: from pip 16.1.0

**Proposed change**:
modify ./kolla/template/repos.yaml as per specified in https://www.rabbitmq.com/install-debian.html#apt-quick-start-cloudsmith, i.e:
---
@@ -72,7 +72,7 @@
     component: ""
     gpg_key: "proxysql.asc"
   rabbitmq:
- url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/debian"
+ url: "https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu"
     suite: "bullseye"
     component: "main"
     gpg_key: "rabbitmq.gpg"
@@ -119,7 +119,7 @@
     component: ""
     gpg_key: "proxysql.asc"
   rabbitmq:
- url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/debian"
+ url: "https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/debian"
     suite: "bullseye"
     component: "main"
     gpg_key: "rabbitmq.gpg"
@@ -202,7 +202,7 @@
     component: ""
     gpg_key: "proxysql.asc"
   rabbitmq:
- url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/ubuntu"
+ url: "https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu"
     suite: "jammy"
     component: "main"
     gpg_key: "rabbitmq.gpg"
@@ -249,7 +249,7 @@
     component: ""
     gpg_key: "proxysql.asc"
   rabbitmq:
- url: "https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/ubuntu"
+ url: "https://ppa1.novemberain.com/rabbitmq/rabbitmq-server/deb/ubuntu"
     suite: "jammy"
     component: "main"
     gpg_key: "rabbitmq.gpg"
---

Tags: rabbitmq
Revision history for this message
Konstantin Davydov (konstantin-davydov) wrote :

from rabbitmq.log:

INFO:kolla.common.utils.rabbitmq:Reading package lists...
INFO:kolla.common.utils.rabbitmq:ESC[91mE: Failed to fetch https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/ubuntu/dists/jammy/InRelease 402 Payment Required [IP: 172.18.67.250 3128]

INFO:kolla.common.utils.rabbitmq:Get:17 https://mirrors.sdu.edu.cn/ubuntu jammy/main amd64 Packages [1,792 kB]
INFO:kolla.common.utils.rabbitmq:Reading package lists...
INFO:kolla.common.utils.rabbitmq:ESC[91mE: Failed to fetch https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/ubuntu/dists/jammy/InRelease 402 Payment Required [IP: 172.18.67.250 3128]
INFO:kolla.common.utils.rabbitmq:E: The repository 'https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/ubuntu jammy InRelease' is not signed.
INFO:kolla.common.utils.rabbitmq:ESC[0m
INFO:kolla.common.utils.rabbitmq:Removing intermediate container 6e77261eae2f
ERROR:kolla.common.utils.rabbitmq:Error'd with the following message
ERROR:kolla.common.utils.rabbitmq:The command '/bin/sh -c apt-get --error-on=any update && apt-get -y install --no-install-recommends logrotate rabbitmq-server && apt-get clean && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

Revision history for this message
Stefan Pinter (nidrix-glandda) wrote :

this is related to: https://github.com/rabbitmq/rabbitmq-server/discussions/9526

i am unsure where this mirror can be changed though...

Revision history for this message
Maksim Malchuk (mmalchuk) wrote :

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/kolla/+/896616

Changed in kolla:
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.opendev.org/c/openstack/kolla/+/896616
Committed: https://opendev.org/openstack/kolla/commit/47b593d1e5531c693dde3e111ed3be91c60c41be
Submitter: "Zuul (22348)"
Branch: master

commit 47b593d1e5531c693dde3e111ed3be91c60c41be
Author: Michal Nasiadka <email address hidden>
Date: Wed Sep 27 08:12:10 2023 +0000

    rabbitmq: Use novemberain repos for Debian/Ubuntu

    CloudSmith is over budget, see [1].

    As mentionedin in [2] - we're using amd64 packages on aarch64,
    since the community mirror does not mirror aarch64 - and the packages
    should be really marked as noarch.

    [1]: https://github.com/rabbitmq/rabbitmq-server/discussions/9526
    [2]: https://github.com/rabbitmq/rabbitmq-server/discussions/9553

    Closes-Bug: #2037469

    Change-Id: I83179ce5d53fed6cfe7f5fcbf6fdecd7199baa36

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

Fix proposed to branch: stable/2023.1
Review: https://review.opendev.org/c/openstack/kolla/+/896847

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

Fix proposed to branch: stable/zed
Review: https://review.opendev.org/c/openstack/kolla/+/896850

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

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/kolla/+/896851

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

Reviewed: https://review.opendev.org/c/openstack/kolla/+/896847
Committed: https://opendev.org/openstack/kolla/commit/0e6676cb0b9908e53eb1f5aee4c22aec2a1c1e4d
Submitter: "Zuul (22348)"
Branch: stable/2023.1

commit 0e6676cb0b9908e53eb1f5aee4c22aec2a1c1e4d
Author: Michal Nasiadka <email address hidden>
Date: Wed Sep 27 08:12:10 2023 +0000

    rabbitmq: Use novemberain repos for Debian/Ubuntu

    CloudSmith is over budget, see [1].

    As mentionedin in [2] - we're using amd64 packages on aarch64,
    since the community mirror does not mirror aarch64 - and the packages
    should be really marked as noarch.

    [3] has also been incorporated in this backport

    [1]: https://github.com/rabbitmq/rabbitmq-server/discussions/9526
    [2]: https://github.com/rabbitmq/rabbitmq-server/discussions/9553
    [3]: https://review.opendev.org/c/openstack/kolla/+/896927

    Closes-Bug: #2037469

    Change-Id: I83179ce5d53fed6cfe7f5fcbf6fdecd7199baa36
    (cherry picked from commit 47b593d1e5531c693dde3e111ed3be91c60c41be)

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

Reviewed: https://review.opendev.org/c/openstack/kolla/+/896850
Committed: https://opendev.org/openstack/kolla/commit/d67fd2fcbc38cde5351f6e41c579758be71cd5d6
Submitter: "Zuul (22348)"
Branch: stable/zed

commit d67fd2fcbc38cde5351f6e41c579758be71cd5d6
Author: Michal Nasiadka <email address hidden>
Date: Wed Sep 27 08:12:10 2023 +0000

    rabbitmq: Use novemberain repos for Debian/Ubuntu

    CloudSmith is over budget, see [1].

    As mentionedin in [2] - we're using amd64 packages on aarch64,
    since the community mirror does not mirror aarch64 - and the packages
    should be really marked as noarch.

    [3] has also been incorporated in this backport

    [1]: https://github.com/rabbitmq/rabbitmq-server/discussions/9526
    [2]: https://github.com/rabbitmq/rabbitmq-server/discussions/9553
    [3]: https://review.opendev.org/c/openstack/kolla/+/896927

    Closes-Bug: #2037469

    Change-Id: I83179ce5d53fed6cfe7f5fcbf6fdecd7199baa36
    (cherry picked from commit 47b593d1e5531c693dde3e111ed3be91c60c41be)

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

Reviewed: https://review.opendev.org/c/openstack/kolla/+/896851
Committed: https://opendev.org/openstack/kolla/commit/06f9ddef875ee8eee2c7165b90b1ba979367a3a0
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit 06f9ddef875ee8eee2c7165b90b1ba979367a3a0
Author: Michal Nasiadka <email address hidden>
Date: Wed Sep 27 08:12:10 2023 +0000

    rabbitmq: Use novemberain repos for Debian/Ubuntu

    CloudSmith is over budget, see [1].

    As mentionedin in [2] - we're using amd64 packages on aarch64,
    since the community mirror does not mirror aarch64 - and the packages
    should be really marked as noarch.

    [3] has also been incorporated in this backport

    [1]: https://github.com/rabbitmq/rabbitmq-server/discussions/9526
    [2]: https://github.com/rabbitmq/rabbitmq-server/discussions/9553
    [3]: https://review.opendev.org/c/openstack/kolla/+/896927

    Closes-Bug: #2037469

    Change-Id: I83179ce5d53fed6cfe7f5fcbf6fdecd7199baa36
    (cherry picked from commit 47b593d1e5531c693dde3e111ed3be91c60c41be)

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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