fetch helper assumes amd64 arch (cannot use with ports such as ppc64el , ARM64)

Bug #1611134 reported by Ryan Beisner
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Charm Helpers
Fix Released
High
Alex Kavanagh
OpenStack Nova Compute Charm
Fix Released
High
Ryan Beisner
OpenStack Percona Cluster Charm
Fix Released
High
Ryan Beisner
percona-cluster (Juju Charms Collection)
Invalid
Medium
Unassigned

Bug Description

Fetch helper assumes amd64 arch. Cannot use the 'source' charm config option in alternate architectures, such as with ports on ppc64el.

2016-08-08 22:12:17 INFO install E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-proposed/main/binary-ppc64el/Packages

When it should be http://ports.ubuntu.com/ubuntu-ports/dists/xenial-proposed/main/binary-ppc64el

http://bazaar.launchpad.net/~charm-helpers/charm-helpers/devel/view/head:/charmhelpers/fetch/__init__.py#L263

Related branches

Ryan Beisner (1chb1n)
tags: added: powernv ppc64el
Revision history for this message
Ryan Beisner (1chb1n) wrote :

As a reference, here is an unrelated example of existing architecture detection in charm-helpers, which could be useful here.

http://bazaar.launchpad.net/~charm-helpers/charm-helpers/devel/view/head:/charmhelpers/contrib/database/mysql.py#L369

Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

Some additional info:

with source, it's just proposed. with openstack-origin, it's distro-proposed

http://bazaar.launchpad.net/~charm-helpers/charm-helpers/devel/view/head:/charmhelpers/fetch/__init__.py#L307

<beisner> the case i ran into was using the source: option, and the "proposed" value. but in inspecting the issue, it became clear that the same issue would affect the openstack-origin bits.
<tinwood> beisner, ahh, so it's a generic thing, rather than openstack thing.

James Page (james-page)
Changed in percona-cluster (Juju Charms Collection):
status: New → Triaged
importance: Undecided → Medium
Changed in charm-helpers:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Alex Kavanagh (ajkavanagh)
status: Triaged → In Progress
Revision history for this message
Alex Kavanagh (ajkavanagh) wrote :

It's in progress. I have a fix in charm-helpers, but it needs refactoring to work with some other changes in charm-helpers that landed before I could get it in.

James Page (james-page)
Changed in charm-percona-cluster:
importance: Undecided → Medium
status: New → Triaged
Changed in percona-cluster (Juju Charms Collection):
status: Triaged → Invalid
Revision history for this message
Ryan Beisner (1chb1n) wrote :

Also affects arm64, in a nova-compute use case:

ubuntu@node-ammonius:~$ sudo apt-get update
Get:1 http://archive.ubuntu.com/ubuntu xenial-proposed InRelease [253 kB]
Hit:2 http://ports.ubuntu.com/ubuntu-ports xenial InRelease
Get:3 http://ports.ubuntu.com/ubuntu-ports xenial-updates InRelease [102 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports xenial-security InRelease [102 kB]
Ign:5 http://archive.ubuntu.com/ubuntu xenial-proposed/main arm64 Packages
Get:6 http://archive.ubuntu.com/ubuntu xenial-proposed/main Translation-en [48.4 kB]
Ign:7 http://archive.ubuntu.com/ubuntu xenial-proposed/multiverse arm64 Packages
Get:8 http://archive.ubuntu.com/ubuntu xenial-proposed/multiverse Translation-en [1,760 B]
Get:9 http://ports.ubuntu.com/ubuntu-ports xenial-updates/main arm64 Packages [444 kB]
Ign:10 http://archive.ubuntu.com/ubuntu xenial-proposed/universe arm64 Packages
Get:11 http://archive.ubuntu.com/ubuntu xenial-proposed/universe Translation-en [23.8 kB]
Ign:5 http://archive.ubuntu.com/ubuntu xenial-proposed/main arm64 Packages
Get:12 http://ports.ubuntu.com/ubuntu-ports xenial-updates/main Translation-en [202 kB]
Ign:7 http://archive.ubuntu.com/ubuntu xenial-proposed/multiverse arm64 Packages
Get:13 http://ports.ubuntu.com/ubuntu-ports xenial-updates/universe arm64 Packages [412 kB]
Ign:10 http://archive.ubuntu.com/ubuntu xenial-proposed/universe arm64 Packages
Get:14 http://ports.ubuntu.com/ubuntu-ports xenial-updates/universe Translation-en [172 kB]
Ign:5 http://archive.ubuntu.com/ubuntu xenial-proposed/main arm64 Packages
Get:15 http://ports.ubuntu.com/ubuntu-ports xenial-security/main arm64 Packages [192 kB]
Ign:7 http://archive.ubuntu.com/ubuntu xenial-proposed/multiverse arm64 Packages
Get:16 http://ports.ubuntu.com/ubuntu-ports xenial-security/main Translation-en [99.7 kB]
Ign:10 http://archive.ubuntu.com/ubuntu xenial-proposed/universe arm64 Packages
Get:17 http://ports.ubuntu.com/ubuntu-ports xenial-security/universe arm64 Packages [104 kB]
Err:5 http://archive.ubuntu.com/ubuntu xenial-proposed/main arm64 Packages
  404 Not Found
Get:18 http://ports.ubuntu.com/ubuntu-ports xenial-security/universe Translation-en [54.4 kB]
Ign:7 http://archive.ubuntu.com/ubuntu xenial-proposed/multiverse arm64 Packages
Ign:10 http://archive.ubuntu.com/ubuntu xenial-proposed/universe arm64 Packages
Fetched 2,209 kB in 1s (1,275 kB/s)
Reading package lists... Done
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-proposed/main/binary-arm64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
ubuntu@node-ammonius:~$

tags: added: arm64
Changed in charm-nova-compute:
status: New → Confirmed
status: Confirmed → Triaged
Raghuram Kota (rkota)
summary: - fetch helper assumes amd64 arch (cannot use with ports such as ppc64el)
+ fetch helper assumes amd64 arch (cannot use with ports such as ppc64el ,
+ ARM64)
Ryan Beisner (1chb1n)
Changed in charm-nova-compute:
importance: Undecided → High
Changed in charm-helpers:
importance: Medium → High
Changed in charm-nova-compute:
assignee: nobody → Ryan Beisner (1chb1n)
Changed in charm-percona-cluster:
assignee: nobody → Ryan Beisner (1chb1n)
importance: Medium → High
Ryan Beisner (1chb1n)
Changed in charm-helpers:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-percona-cluster (master)

Fix proposed to branch: master
Review: https://review.openstack.org/468082

Changed in charm-percona-cluster:
status: Triaged → In Progress
Changed in charm-nova-compute:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-nova-compute (master)

Fix proposed to branch: master
Review: https://review.openstack.org/468083

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

Reviewed: https://review.openstack.org/468082
Committed: https://git.openstack.org/cgit/openstack/charm-percona-cluster/commit/?id=df0bb6080333521418c9fa740f7a46688142304b
Submitter: Jenkins
Branch: master

commit df0bb6080333521418c9fa740f7a46688142304b
Author: Ryan Beisner <email address hidden>
Date: Thu May 25 11:05:28 2017 -0500

    Resync charm-helpers for sources repo ports fix

    Change-Id: I9c562c0e23fcde2745794fca221c210223874241
    Closes-bug: #1611134

Changed in charm-percona-cluster:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-nova-compute (master)

Reviewed: https://review.openstack.org/468083
Committed: https://git.openstack.org/cgit/openstack/charm-nova-compute/commit/?id=ee91c2f75b1bb9d1681d764217da267fa5f6d8e8
Submitter: Jenkins
Branch: master

commit ee91c2f75b1bb9d1681d764217da267fa5f6d8e8
Author: Ryan Beisner <email address hidden>
Date: Thu May 25 11:08:42 2017 -0500

    Resync charm-helpers for sources repo ports fix

    Change-Id: I856733567c8d4d023c630563f0a0808361e86fa5
    Closes-bug: #1611134

Changed in charm-nova-compute:
status: In Progress → Fix Committed
Revision history for this message
Ryan Beisner (1chb1n) wrote :

Fixes for the repo/ports issue are landed in the next/master version of the charms, and are set to be released along with the 16.08 OpenStack Charms release.

https://review.openstack.org/#/q/topic:bug/1611134

Changed in charm-nova-compute:
milestone: none → 17.08
Changed in charm-percona-cluster:
milestone: none → 17.08
James Page (james-page)
Changed in charm-percona-cluster:
status: Fix Committed → Fix Released
Changed in charm-nova-compute:
status: Fix Committed → Fix Released
Changed in charm-helpers:
status: Fix Committed → Fix Released
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.