From ea26f65dd99a1d23fb640051025f741e08eed0e9 Mon Sep 17 00:00:00 2001 From: Stanislaw Kardach Date: Tue, 24 May 2016 11:24:27 +0200 Subject: Correct libvirt template patch Signed-off-by: Stanislaw Kardach --- ...4-Make-TestVM-creation-architecture-aware.patch | 56 +++++++++------------- 1 file changed, 22 insertions(+), 34 deletions(-) (limited to 'patches/fuel-library/0004-Make-TestVM-creation-architecture-aware.patch') diff --git a/patches/fuel-library/0004-Make-TestVM-creation-architecture-aware.patch b/patches/fuel-library/0004-Make-TestVM-creation-architecture-aware.patch index 37b10879..417727ec 100644 --- a/patches/fuel-library/0004-Make-TestVM-creation-architecture-aware.patch +++ b/patches/fuel-library/0004-Make-TestVM-creation-architecture-aware.patch @@ -1,15 +1,16 @@ +From ec3299c72eae195106092a646409564b5b3eb560 Mon Sep 17 00:00:00 2001 From: Stanislaw Kardach Date: Wed, 24 Feb 2016 20:08:24 +0100 -Subject: [PATCH] Make TestVM creation architecture aware +Subject: [PATCH 10/20] Make TestVM creation architecture aware This depends on cirros-testvm package to contain both amd64 and arm64 images. --- - deployment/puppet/openstack/manifests/img/cirros.pp | 8 ++++++-- - puppet/osnailyfacter/manifests/generate_vms/vm_config.pp | 11 +++++++++++ - deployment/puppet/osnailyfacter/templates/vm_libvirt.erb | 9 ++++++++- - files/fuel-migrate/fuel-migrate | 5 ++++- - 4 files changed, 29 insertions(+), 4 deletions(-) + deployment/puppet/openstack/manifests/img/cirros.pp | 8 ++++++-- + .../osnailyfacter/manifests/generate_vms/vm_config.pp | 11 +++++++++++ + deployment/puppet/osnailyfacter/templates/vm_libvirt.erb | 15 ++++++++++++++- + files/fuel-migrate/fuel-migrate | 5 ++++- + 4 files changed, 35 insertions(+), 4 deletions(-) diff --git a/deployment/puppet/openstack/manifests/img/cirros.pp b/deployment/puppet/openstack/manifests/img/cirros.pp index 84e202e..cff06e0 100644 @@ -44,10 +45,10 @@ index 84e202e..cff06e0 100644 } diff --git a/deployment/puppet/osnailyfacter/manifests/generate_vms/vm_config.pp b/deployment/puppet/osnailyfacter/manifests/generate_vms/vm_config.pp -index 6d5426a..da5954e 100644 +index 70fef32..dfefcbe 100644 --- a/deployment/puppet/osnailyfacter/manifests/generate_vms/vm_config.pp +++ b/deployment/puppet/osnailyfacter/manifests/generate_vms/vm_config.pp -@@ -11,6 +11,17 @@ define vm_config { +@@ -4,6 +4,17 @@ define osnailyfacter::generate_vms::vm_config( $details = $name $id = $details['id'] @@ -66,19 +67,25 @@ index 6d5426a..da5954e 100644 owner => 'root', group => 'root', diff --git a/deployment/puppet/osnailyfacter/templates/vm_libvirt.erb b/deployment/puppet/osnailyfacter/templates/vm_libvirt.erb -index ae2ba5b..2d030d9 100644 +index ae2ba5b..64e716d 100644 --- a/deployment/puppet/osnailyfacter/templates/vm_libvirt.erb +++ b/deployment/puppet/osnailyfacter/templates/vm_libvirt.erb -@@ -3,7 +3,7 @@ +@@ -3,14 +3,23 @@ <%= @details['mem'] %> <%= @details['cpu'] %> - hvm + hvm ++ <% if == 'aarch64' %> ++ /var/lib/nova/<%= @details['id'] %>_vm.kernel ++ /var/lib/nova/<%= @details['id'] %>_vm.initramfs ++ root=/dev/vda1 rw rootwait console=tty0 console=ttyS0 console=ttyAMA0 ++ <% else %> ++ <% end %> -@@ -11,6 +11,9 @@ + @@ -88,7 +95,7 @@ index ae2ba5b..2d030d9 100644 destroy -@@ -57,7 +60,11 @@ +@@ -57,7 +66,11 @@