[AArch64] Pin armband repo with highest prio 31/59431/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 2 Jul 2018 12:45:57 +0000 (14:45 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 2 Jul 2018 12:56:35 +0000 (14:56 +0200)
Mirantis repositories shadow certain packages from Armband repos
(e.g. qemu-efi) if pinning is not set.
Since MaaS does not allow configuring repo priorities via its API,
use Salt pillar data to re-define the Armband repo and set its prio.

Change-Id: Ic743f4b684b3f13552792f5f04097fac73171b37
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
mcp/config/scenario/defaults.yaml
mcp/reclass/classes/cluster/mcp-common-ha/openstack_init.yml.j2

index dff018f..05e8696 100644 (file)
@@ -40,7 +40,7 @@ aarch64:
       repos:
         # <repo name> <repo prio> deb [arch=<arch>] <repo url> <repo dist> <repo comp>
         - saltstack 500 deb [arch=amd64] http://repo.saltstack.com/apt/ubuntu/16.04/amd64/2016.11 xenial main
-        - armband 1100 deb [arch=arm64] http://linux.enea.com/mcp-repos/queens/xenial queens-armband main
+        - armband 1201 deb [arch=arm64] http://linux.enea.com/mcp-repos/queens/xenial queens-armband main
     pkg:
       install:
         - linux-generic-hwe-16.04
index d070cf3..b0f28f9 100644 (file)
@@ -252,6 +252,14 @@ parameters:
             - pin: 'release o=Canonical'
               priority: 1200
               package: 'python-pymysql libvirt* *qemu*'
+{%- if 'aarch64' in nm.cluster.arch %}
+        armband_3:  # Should be in sync with the repo config generated via curtin/MaaS
+          source: "deb http://linux.enea.com/mcp-repos/${_param:openstack_version}/${_param:linux_system_codename} ${_param:openstack_version}-armband main"
+          pin:
+            - pin: 'release a=${_param:openstack_version}-armband'
+              priority: 1201
+              package: '*'
+{%- endif %}
       kernel:
         sysctl:
           net.ipv4.tcp_congestion_control: yeah