diff options
author | Florin Dumitrascu <florin.dumitrascu@enea.com> | 2016-03-13 18:49:38 +0100 |
---|---|---|
committer | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2016-05-02 13:23:19 +0000 |
commit | 430ca5fb3be140238665d19124b861e5226fddaa (patch) | |
tree | 79ec69ccb6f19278ac7f0d025fdab9e0f2cbe57b /patches/fuel-library/0003-Make-qemu-kvm-architecture-aware.patch | |
parent | 1732427ab05ed1301bf9d53fcf47128f44d04811 (diff) |
Initial code commit
This brings initial code base for Armband project that allows building
an OPNFV Fuel 8 iso based on Brahmaputra components to be deployed on
arm64 servers.
Signed-off-by: Stanislaw Kardach <kda@semihalf.com>
Signed-off-by: Alexandru Avadanii <alexandru.avadanii@enea.com>
Signed-off-by: Florin Dumitrascu <florin.dumitrascu@enea.com>
JIRA:FUEL-39
(cherry picked from commit c715e7bb460f499f4fd20f7ab000d7a6d670636a)
Change-Id: Ic4ed6e6dfbe396d4c8c40357848aae0e158397da
Diffstat (limited to 'patches/fuel-library/0003-Make-qemu-kvm-architecture-aware.patch')
-rw-r--r-- | patches/fuel-library/0003-Make-qemu-kvm-architecture-aware.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/patches/fuel-library/0003-Make-qemu-kvm-architecture-aware.patch b/patches/fuel-library/0003-Make-qemu-kvm-architecture-aware.patch new file mode 100644 index 00000000..00cd3c7a --- /dev/null +++ b/patches/fuel-library/0003-Make-qemu-kvm-architecture-aware.patch @@ -0,0 +1,33 @@ +From: Stanislaw Kardach <stanislaw.kardach@caviumnetworks.com> +Date: Wed, 24 Feb 2016 20:07:06 +0100 +Subject: [PATCH] Make qemu-kvm architecture aware + +--- + deployment/puppet/openstack/manifests/compute.pp | 9 +++++++-- + 1 file changed, 7 insertions(+), 2 deletions(-) + +diff --git a/deployment/puppet/openstack/manifests/compute.pp b/deployment/puppet/openstack/manifests/compute.pp +index b2339bc..4f380b8 100644 +--- a/deployment/puppet/openstack/manifests/compute.pp ++++ b/deployment/puppet/openstack/manifests/compute.pp +@@ -169,10 +169,15 @@ class openstack::compute ( + before => Augeas['libvirt-conf'], + } + ++ # Guard against some exotic distros with their `uname -m` ++ $arch = $::architecture ? { ++ 'arm64', 'aarch64' => 'aarch64', ++ default => 'x86_64', ++ } + # From legacy libvirt.pp + exec { 'symlink-qemu-kvm': +- command => '/bin/ln -sf /usr/libexec/qemu-kvm /usr/bin/qemu-system-x86_64', +- creates => '/usr/bin/qemu-system-x86_64', ++ command => "/bin/ln -sf /usr/libexec/qemu-kvm /usr/bin/qemu-system-${arch}", ++ creates => "/usr/bin/qemu-system-${arch}", + } + + package { 'avahi': +-- +1.9.1 + |