aboutsummaryrefslogtreecommitdiffstats
path: root/patches/opnfv-fuel
diff options
context:
space:
mode:
authorCharalampos Kominos <Charalampos.Kominos@enea.com>2017-09-18 16:20:09 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-09-18 17:41:33 +0000
commite83bf78c4a0a90f242569f85a7c90ea1771b5d9c (patch)
tree941fa6ab419515621dca7cfadf3e4648a8d7b140 /patches/opnfv-fuel
parent4581e4c350bbeee71e6cf570b61c98bf3fa286c7 (diff)
p/fuel: edit libvirt.py with correct arch values
On AArch64 systems, ACPI should only be added to the domain XML by nova via libvirt driver when guest UEFI (AAVMF) is used. Change-Id: I462303b196366ddaa132b2a2ed6fe4af0e8e5f95 (cherry picked from commit 0ced943988c95f9e033dd5d14cfe54870c50fa04)
Diffstat (limited to 'patches/opnfv-fuel')
-rw-r--r--patches/opnfv-fuel/0001-mcp-salt-formulas-Add-enable-armband-formula.patch10
-rw-r--r--patches/opnfv-fuel/0004-classes-baremetal-AArch64-virtio-NIC-names-sync.patch56
-rw-r--r--patches/opnfv-fuel/0011-virtng.py-virt.sls-Extend-libvirt_domain.patch4
-rw-r--r--patches/opnfv-fuel/0015-aarch64-skip-configuration-of-hugepages.patch12
4 files changed, 41 insertions, 41 deletions
diff --git a/patches/opnfv-fuel/0001-mcp-salt-formulas-Add-enable-armband-formula.patch b/patches/opnfv-fuel/0001-mcp-salt-formulas-Add-enable-armband-formula.patch
index be6455aa..117c81df 100644
--- a/patches/opnfv-fuel/0001-mcp-salt-formulas-Add-enable-armband-formula.patch
+++ b/patches/opnfv-fuel/0001-mcp-salt-formulas-Add-enable-armband-formula.patch
@@ -60,17 +60,17 @@ index 0d733ba..bfedbae 100755
salt -C '* and not cfg01* and not mas01*' state.apply salt
diff --git a/mcp/config/states/openstack b/mcp/config/states/openstack
-index eaab135..050b648 100755
+index beb6abb..885f2ac 100755
--- a/mcp/config/states/openstack
+++ b/mcp/config/states/openstack
-@@ -31,3 +31,5 @@ salt -I 'ceilometer:server' state.sls ceilometer
+@@ -35,3 +35,5 @@ salt -I 'ceilometer:server' state.sls ceilometer
salt -I 'ceilometer:agent' state.sls ceilometer
salt -I 'horizon:server' state.sls horizon
+
+salt -I 'nova:compute' state.sls armband
diff --git a/mcp/config/states/openstack_ha b/mcp/config/states/openstack_ha
-index 8ca76e4..c0b8ee3 100755
+index 78da80a..dcceb02 100755
--- a/mcp/config/states/openstack_ha
+++ b/mcp/config/states/openstack_ha
@@ -41,6 +41,7 @@ salt -I 'neutron:server' state.sls neutron -b 1
@@ -137,7 +137,7 @@ index 0000000..a5b08da
+ video.type = 'vga'
diff --git a/mcp/salt-formulas/armband/files/nova-libvirt-AArch64-ACPI-depends-on-AAVMF.diff b/mcp/salt-formulas/armband/files/nova-libvirt-AArch64-ACPI-depends-on-AAVMF.diff
new file mode 100644
-index 0000000..bc3121f
+index 0000000..7c1b78a
--- /dev/null
+++ b/mcp/salt-formulas/armband/files/nova-libvirt-AArch64-ACPI-depends-on-AAVMF.diff
@@ -0,0 +1,45 @@
@@ -171,7 +171,7 @@ index 0000000..bc3121f
+ (virt_type == "xen" and guest.os_type == fields.VMMode.HVM)):
+- guest.features.append(vconfig.LibvirtConfigGuestFeatureACPI())
++ guestarch = libvirt_utils.get_arch(image_meta)
-++ if (guestarch not in (arch.ARMV7, arch.AARCH64) or
+++ if (guestarch not in (fields.Architecture.ARMV7, fields.Architecture.AARCH64) or
++ image_meta.properties.get('hw_firmware_type') == 'uefi'):
++ guest.features.append(vconfig.LibvirtConfigGuestFeatureACPI())
+ guest.features.append(vconfig.LibvirtConfigGuestFeatureAPIC())
diff --git a/patches/opnfv-fuel/0004-classes-baremetal-AArch64-virtio-NIC-names-sync.patch b/patches/opnfv-fuel/0004-classes-baremetal-AArch64-virtio-NIC-names-sync.patch
index 96e58139..d01c520c 100644
--- a/patches/opnfv-fuel/0004-classes-baremetal-AArch64-virtio-NIC-names-sync.patch
+++ b/patches/opnfv-fuel/0004-classes-baremetal-AArch64-virtio-NIC-names-sync.patch
@@ -67,7 +67,7 @@ index 3f72e18..bd439a4 100644
master:
accept_policy: open_mode
diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/infra/kvm.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/infra/kvm.yml
-index 41366f3..766a495 100644
+index acd6a6d..76e32bc 100644
--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/infra/kvm.yml
+++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/infra/kvm.yml
@@ -25,7 +25,8 @@ parameters:
@@ -80,7 +80,7 @@ index 41366f3..766a495 100644
salt:
control:
size: #RAM 4096,8192,16384,32768,65536
-@@ -123,7 +124,7 @@ parameters:
+@@ -139,7 +140,7 @@ parameters:
linux:
network:
interface:
@@ -89,7 +89,7 @@ index 41366f3..766a495 100644
enabled: true
type: eth
proto: manual
-@@ -131,6 +132,11 @@ parameters:
+@@ -147,6 +148,11 @@ parameters:
netmask: 255.255.255.0
name: ${_param:deploy_nic}
noifupdown: true
@@ -101,7 +101,7 @@ index 41366f3..766a495 100644
br-mgmt:
enabled: true
proto: dhcp
-@@ -141,13 +147,13 @@ parameters:
+@@ -157,13 +163,13 @@ parameters:
use_interfaces:
- ${_param:deploy_nic}
noifupdown: true
@@ -118,7 +118,7 @@ index 41366f3..766a495 100644
br-ctl:
enabled: true
type: bridge
-@@ -155,4 +161,4 @@ parameters:
+@@ -171,4 +177,4 @@ parameters:
address: ${_param:single_address}
netmask: 255.255.255.0
use_interfaces:
@@ -157,10 +157,10 @@ index 0a01af7..367343a 100644
type: eth
proto: static
diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/openstack/compute.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/openstack/compute.yml
-index 6d2c7f3..3dd94e6 100644
+index c5333fe..6f1162d 100644
--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/openstack/compute.yml
+++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/openstack/compute.yml
-@@ -23,10 +23,9 @@ parameters:
+@@ -24,10 +24,9 @@ parameters:
cluster_node03_hostname: ctl03
cluster_node03_address: ${_param:openstack_control_node03_address}
nova_vncproxy_url: https://${_param:cluster_public_host}:6080
@@ -173,7 +173,7 @@ index 6d2c7f3..3dd94e6 100644
interface_mtu: 1500
keepalived_vip_interface: br-ctl
keepalived_vip_virtual_router_id: 69
-@@ -61,12 +60,6 @@ parameters:
+@@ -71,12 +70,6 @@ parameters:
type: eth
proto: manual
name: ${_param:tenant_nic}
@@ -186,7 +186,7 @@ index 6d2c7f3..3dd94e6 100644
br-mesh:
enabled: true
type: bridge
-@@ -74,19 +67,19 @@ parameters:
+@@ -84,19 +77,19 @@ parameters:
netmask: 255.255.255.0
mtu: 1500
use_interfaces:
@@ -212,7 +212,7 @@ index 6d2c7f3..3dd94e6 100644
use_interfaces:
- ${_param:tenant_nic}
br-ctl:
-@@ -96,7 +89,7 @@ parameters:
+@@ -106,7 +99,7 @@ parameters:
address: ${_param:single_address}
netmask: 255.255.255.0
use_interfaces:
@@ -221,7 +221,7 @@ index 6d2c7f3..3dd94e6 100644
br-floating:
enabled: true
type: ovs_bridge
-@@ -113,7 +106,6 @@ parameters:
+@@ -123,7 +116,6 @@ parameters:
address: ${_param:external_address}
netmask: 255.255.255.0
use_interfaces:
@@ -267,7 +267,7 @@ index 9748c4c..a5317b1 100644
+ enp1s0: ${_param:linux_dhcp_interface}
+ enp2s0: ${_param:linux_single_interface}
diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/openstack/database.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/openstack/database.yml
-index 6c26d26..d74e5ad 100644
+index e61a469..03df92c 100644
--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/openstack/database.yml
+++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/openstack/database.yml
@@ -16,7 +16,7 @@ classes:
@@ -278,8 +278,8 @@ index 6c26d26..d74e5ad 100644
+ keepalived_vip_interface: enp2s0
keepalived_vip_virtual_router_id: 80
galera_server_cluster_name: openstack_cluster
- cluster_vip_address: ${_param:openstack_database_address}
-@@ -30,5 +30,5 @@ parameters:
+ galera_max_connections: 3072
+@@ -32,5 +32,5 @@ parameters:
linux:
network:
interface:
@@ -372,7 +372,7 @@ index a75b41d..3979fd1 100644
master:
accept_policy: open_mode
diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/infra/kvm.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/infra/kvm.yml
-index 5c8026f..ca1b44b 100644
+index 7550c1a..40e800f 100644
--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/infra/kvm.yml
+++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/infra/kvm.yml
@@ -25,7 +25,8 @@ parameters:
@@ -385,7 +385,7 @@ index 5c8026f..ca1b44b 100644
salt:
control:
size: #RAM 4096,8192,16384,32768,65536
-@@ -115,7 +116,7 @@ parameters:
+@@ -131,7 +132,7 @@ parameters:
linux:
network:
interface:
@@ -394,7 +394,7 @@ index 5c8026f..ca1b44b 100644
enabled: true
type: eth
proto: manual
-@@ -123,6 +124,11 @@ parameters:
+@@ -139,6 +140,11 @@ parameters:
netmask: 255.255.255.0
name: ${_param:deploy_nic}
noifupdown: true
@@ -406,7 +406,7 @@ index 5c8026f..ca1b44b 100644
br-mgmt:
enabled: true
proto: dhcp
-@@ -133,13 +139,13 @@ parameters:
+@@ -149,13 +155,13 @@ parameters:
use_interfaces:
- ${_param:deploy_nic}
noifupdown: true
@@ -423,7 +423,7 @@ index 5c8026f..ca1b44b 100644
br-ctl:
enabled: true
type: bridge
-@@ -147,4 +153,4 @@ parameters:
+@@ -163,4 +169,4 @@ parameters:
address: ${_param:single_address}
netmask: 255.255.255.0
use_interfaces:
@@ -449,10 +449,10 @@ index f77abea..37e8377 100644
# MaaS has issues using MTU > 1500 for PXE interface
pxe_interface_mtu: 1500
diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/compute.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/compute.yml
-index e11e35e..cea8c81 100644
+index 93a26b1..7f5a602 100644
--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/compute.yml
+++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/compute.yml
-@@ -22,9 +22,8 @@ parameters:
+@@ -23,9 +23,8 @@ parameters:
cluster_node03_hostname: ctl03
cluster_node03_address: ${_param:openstack_control_node03_address}
nova_vncproxy_url: https://${_param:cluster_public_host}:6080
@@ -464,7 +464,7 @@ index e11e35e..cea8c81 100644
linux_system_codename: xenial
interface_mtu: 1500
keepalived_vip_interface: br-ctl
-@@ -44,12 +43,6 @@ parameters:
+@@ -54,12 +53,6 @@ parameters:
type: eth
proto: manual
name: ${_param:tenant_nic}
@@ -477,7 +477,7 @@ index e11e35e..cea8c81 100644
br-mesh:
enabled: true
type: bridge
-@@ -57,19 +50,19 @@ parameters:
+@@ -67,19 +60,19 @@ parameters:
netmask: 255.255.255.0
mtu: 1500
use_interfaces:
@@ -503,7 +503,7 @@ index e11e35e..cea8c81 100644
use_interfaces:
- ${_param:tenant_nic}
br-ctl:
-@@ -79,7 +72,7 @@ parameters:
+@@ -89,7 +82,7 @@ parameters:
address: ${_param:single_address}
netmask: 255.255.255.0
use_interfaces:
@@ -512,7 +512,7 @@ index e11e35e..cea8c81 100644
br-floating:
enabled: true
type: ovs_bridge
-@@ -96,6 +89,6 @@ parameters:
+@@ -106,6 +99,6 @@ parameters:
address: ${_param:external_address}
netmask: 255.255.255.0
use_interfaces:
@@ -557,7 +557,7 @@ index 39cc073..18f622c 100644
+ enp1s0: ${_param:linux_dhcp_interface}
+ enp2s0: ${_param:linux_single_interface}
diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/database.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/database.yml
-index dabda49..7a6934b 100644
+index 4cb7397..c431ae0 100644
--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/database.yml
+++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/database.yml
@@ -16,7 +16,7 @@ classes:
@@ -568,8 +568,8 @@ index dabda49..7a6934b 100644
+ keepalived_vip_interface: enp2s0
keepalived_vip_virtual_router_id: 80
galera_server_cluster_name: openstack_cluster
- cluster_vip_address: ${_param:openstack_database_address}
-@@ -30,5 +30,5 @@ parameters:
+ galera_max_connections: 3072
+@@ -32,5 +32,5 @@ parameters:
linux:
network:
interface:
diff --git a/patches/opnfv-fuel/0011-virtng.py-virt.sls-Extend-libvirt_domain.patch b/patches/opnfv-fuel/0011-virtng.py-virt.sls-Extend-libvirt_domain.patch
index fba8be30..91acb494 100644
--- a/patches/opnfv-fuel/0011-virtng.py-virt.sls-Extend-libvirt_domain.patch
+++ b/patches/opnfv-fuel/0011-virtng.py-virt.sls-Extend-libvirt_domain.patch
@@ -160,7 +160,7 @@ index 46a9556..f6504ab 100644
+/usr/share/salt-formulas/env: 0103-virtng-module-Extend-libvirt_domain.patch
+/usr/share/salt-formulas/env: 0104-salt-control-virt-Extend-libvirt_domain.patch
diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/infra/kvm.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/infra/kvm.yml
-index 766a495..f072e0e 100644
+index 76e32bc..bd4234b 100644
--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/infra/kvm.yml
+++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/infra/kvm.yml
@@ -34,26 +34,41 @@ parameters:
@@ -216,7 +216,7 @@ index 766a495..f072e0e 100644
net_profile: default
cluster:
diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/infra/kvm.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/infra/kvm.yml
-index ca1b44b..78011a9 100644
+index 40e800f..27b1e07 100644
--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/infra/kvm.yml
+++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/infra/kvm.yml
@@ -34,26 +34,41 @@ parameters:
diff --git a/patches/opnfv-fuel/0015-aarch64-skip-configuration-of-hugepages.patch b/patches/opnfv-fuel/0015-aarch64-skip-configuration-of-hugepages.patch
index e2677d32..5b56848e 100644
--- a/patches/opnfv-fuel/0015-aarch64-skip-configuration-of-hugepages.patch
+++ b/patches/opnfv-fuel/0015-aarch64-skip-configuration-of-hugepages.patch
@@ -23,12 +23,12 @@ Signed-off-by: Charalampos Kominos <charalampos.kominos@enea.com>
4 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/openstack/compute.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/openstack/compute.yml
-index 3dd94e6..cfdba30 100644
+index 6f1162d..5e9f542 100644
--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/openstack/compute.yml
+++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-odl-ha/openstack/compute.yml
-@@ -4,8 +4,8 @@ classes:
- - system.linux.system.repo.saltstack.xenial
+@@ -5,8 +5,8 @@ classes:
- system.linux.storage.loopback
+ - system.glusterfs.client.cluster
- system.nova.compute.cluster
-- system.nova.compute.nfv.hugepages
-- system.nova.compute.nfv.cpu_pinning
@@ -59,12 +59,12 @@ index ad99447..ea95680 100644
glance_service_host: ${_param:openstack_control_address}
keystone_version: ${_param:openstack_version}
diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/compute.yml b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/compute.yml
-index cea8c81..3c48cff 100644
+index 7f5a602..4730124 100644
--- a/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/compute.yml
+++ b/mcp/reclass/classes/cluster/baremetal-mcp-ocata-ovs-ha/openstack/compute.yml
-@@ -4,8 +4,8 @@ classes:
- - system.linux.system.repo.saltstack.xenial
+@@ -5,8 +5,8 @@ classes:
- system.linux.storage.loopback
+ - system.glusterfs.client.cluster
- system.nova.compute.cluster
-- system.nova.compute.nfv.hugepages
-- system.nova.compute.nfv.cpu_pinning