summaryrefslogtreecommitdiffstats
path: root/patches/fuel-library/0000-Revert-Fix-building-ironic-bootstrap.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/fuel-library/0000-Revert-Fix-building-ironic-bootstrap.patch')
-rw-r--r--patches/fuel-library/0000-Revert-Fix-building-ironic-bootstrap.patch82
1 files changed, 82 insertions, 0 deletions
diff --git a/patches/fuel-library/0000-Revert-Fix-building-ironic-bootstrap.patch b/patches/fuel-library/0000-Revert-Fix-building-ironic-bootstrap.patch
new file mode 100644
index 00000000..652bb276
--- /dev/null
+++ b/patches/fuel-library/0000-Revert-Fix-building-ironic-bootstrap.patch
@@ -0,0 +1,82 @@
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+: Copyright (c) 2017 Enea AB and others.
+:
+: All rights reserved. This program and the accompanying materials
+: are made available under the terms of the Apache License, Version 2.0
+: which accompanies this distribution, and is available at
+: http://www.apache.org/licenses/LICENSE-2.0
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
+Date: Thu, 23 Mar 2017 15:57:02 +0100
+Subject: [PATCH] Revert "Fix building ironic bootstrap"
+
+This reverts commit c90b8a2fab0b8deab06d75b93394f32c60963be7.
+---
+ .../manifests/provision/build_image.pp | 34 +++++++++++-----------
+ 1 file changed, 17 insertions(+), 17 deletions(-)
+
+diff --git a/deployment/puppet/osnailyfacter/manifests/provision/build_image.pp b/deployment/puppet/osnailyfacter/manifests/provision/build_image.pp
+index b40f3e2..02fa0f0 100644
+--- a/deployment/puppet/osnailyfacter/manifests/provision/build_image.pp
++++ b/deployment/puppet/osnailyfacter/manifests/provision/build_image.pp
+@@ -3,9 +3,7 @@ class osnailyfacter::provision::build_image {
+ $data_file = "/var/lib/fuel/configs/${::cluster_id}/provision.yaml"
+ $data = loadyaml($data_file)
+
+- if $data['ironic']['enabled'] == true {
+- # TODO(vsaienko): Use the same system packages for fuel image and ironic bootstrap, but exclude
+- # not needed for ironic like nailgun-agent, etc...
++ if $data['ironic']['enabled'] == 'true' {
+ $ironic_packages = [
+ 'openssh-server',
+ 'ntp',
+@@ -17,7 +15,9 @@ class osnailyfacter::provision::build_image {
+ 'squashfs-tools',
+ 'linux-firmware',
+ 'msmtp-mta',
++ 'hpsa-dkms',
+ 'i40e-dkms',
++ 'linux-firmware-nonfree',
+ 'xz-utils',
+ 'linux-headers-generic',
+ ]
+@@ -29,25 +29,25 @@ class osnailyfacter::provision::build_image {
+ $out_dir = "/var/www/nailgun/bootstrap/ironic/${::cluster_id}/"
+ $out_params = "--output-dir ${out_dir}"
+
+- $ironic_extra_params = "--extra-dir /usr/share/ironic-fa-bootstrap-configs/ --no-compress --no-default-extra-dirs --no-default-packages"
+- $ironic_log_params = '--log-file /var/log/fuel-ironic-bootstrap-image-build.log'
++ $extra_params = "--extra-dir /usr/share/ironic-fa-bootstrap-configs/ --no-compress --no-default-extra-dirs --no-default-packages"
++ $log_params = '--log-file /var/log/fuel-ironic-bootstrap-image-build.log'
+
+ exec { 'generate_image_with_ironic':
+- command => "fuel-bootstrap build ${package_list} ${ssh_params} ${out_params} ${ironic_extra_params} ${ironic_log_params}",
++ command => "fuel-bootstrap build ${package_list} ${ssh_params} ${out_params} ${extra_params} ${log_params}",
+ path => ['/bin', '/usr/bin'],
+- timeout => 1800,
+- unless => "test -e /var/www/nailgun/bootstrap/ironic/${cluster_id}/vmlinuz",
++ unless => "test -e /var/www/nailgun/bootstrap/ironic/${::cluster_id}/vmlinuz",
+ }
+
+- }
+-
+- $build_dir = '--image_build_dir /var/lib/fuel/ibp'
+- $log_params = "--log-file /var/log/fuel-agent-env-${cluster_id}.log"
+- $extra_params = '--data_driver nailgun_build_image'
++ } else {
++ $build_dir = '--image_build_dir /var/lib/fuel/ibp'
++ $log_params = "--log-file /var/log/fuel-agent-env-${::cluster_id}.log"
++ $extra_params = '--data_driver nailgun_build_image'
+
+- exec { 'generate_image_with_fuel':
+- command => "fa_build_image ${build_dir} ${log_params} ${extra_params} --input_data_file ${data_file}",
+- path => ['/bin', '/usr/bin'],
+- timeout => 1800,
++ exec { 'generate_image_with_fuel':
++ command => "fa_build_image ${build_dir} ${log_params} ${extra_params} --input_data_file ${data_file}",
++ path => ['/bin', '/usr/bin'],
++ timeout => 1800,
++ unless => "test -e /var/www/nailgun/bootstrap/ironic/${::cluster_id}/vmlinuz",
++ }
+ }
+ }