Specify supported architectures for Ubuntu backports repository 83/48083/2
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Thu, 30 Nov 2017 10:46:45 +0000 (10:46 +0000)
committerRoss Brattain <ross.b.brattain@intel.com>
Fri, 22 Dec 2017 10:44:51 +0000 (10:44 +0000)
Currently Trusty (Ubuntu 14.04 LTS) and Xenial (Ubuntu 16.04 LTS) doesn't
have support for arch=ARM64 in backports repository:
- http://archive.ubuntu.com/ubuntu/dists/xenial-backports/
- http://archive.ubuntu.com/ubuntu/dists/trusty-backports/

During the Yardstick image building process, the repository is added to the
APT repository list. In order to avoid errors during the repository retrival,
the available architectures must be specified [1].

[1]https://github.com/opnfv/yardstick/blob/stable/euphrates/ansible/roles/add_custom_repos/templates/sources.list.j2#L4

JIRA: YARDSTICK-874

Change-Id: I7774189fbdd7d74ff5df29526ba0da2693b3b53a
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
ansible/roles/add_custom_repos/templates/sources.list.j2

index af741cb..4b50f45 100644 (file)
@@ -1,5 +1,5 @@
 {% if YARD_IMG_ARCH == "arm64" %}
 deb [arch={{ YARD_IMG_ARCH }}] http://ports.ubuntu.com/ {{ release }}-backports main restricted universe multiverse
 {% else %}
-deb http://archive.ubuntu.com/ubuntu/ {{ release }}-backports main restricted universe multiverse
+deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu/ {{ release }}-backports main restricted universe multiverse
 {% endif %}