aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2016-05-10 21:18:50 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-05-10 21:18:50 +0000
commitc22da9944a2e3324cd97d571d35f661615afe1a8 (patch)
treefa0eb94413a2babee74713307cd1bde71f552d1d
parent7f93a8cf5b97a4e9b606930ab1c15b42ff580a32 (diff)
parentc73afc11396a8a11d14f2fb74ad616297a90fa1d (diff)
Merge "UX: Fix: rtc-efi blacklist for Ubuntu targets."
-rw-r--r--patches/fuel-agent/0010-target-Ubuntu-Blacklist-rtc-efi-if-not-supported.patch35
-rw-r--r--patches/fuel-library/0013-Allow-configuring-MySQL-WSREP-SST-provider.patch (renamed from patches/fuel-library/0014-Allow-configuring-MySQL-WSREP-SST-provider.patch)0
-rw-r--r--patches/fuel-library/0013-target-Ubuntu-Blacklist-rtc-efi-if-not-supported.patch51
3 files changed, 35 insertions, 51 deletions
diff --git a/patches/fuel-agent/0010-target-Ubuntu-Blacklist-rtc-efi-if-not-supported.patch b/patches/fuel-agent/0010-target-Ubuntu-Blacklist-rtc-efi-if-not-supported.patch
new file mode 100644
index 00000000..b0c32f4f
--- /dev/null
+++ b/patches/fuel-agent/0010-target-Ubuntu-Blacklist-rtc-efi-if-not-supported.patch
@@ -0,0 +1,35 @@
+From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
+Date: Mon, 9 May 2016 21:46:51 +0200
+Subject: [PATCH] target Ubuntu: Blacklist rtc-efi if not supported.
+
+Older ThunderX and possibly other UEFI-enabled targets do not support
+rtc-efi properly, so they end up filling dmesg with useless
+complaints about not being able to read system time.
+
+Target OS (Ubuntu) deployment already has a snippet that blacklists
+i2c_piix4 in certain scenarios, so provide a similar test for rtc_efi.
+---
+ cloud-init-templates/boothook_fuel_7.0_ubuntu.jinja2 | 10 ++++++++--
+ 1 file changed, 8 insertions(+), 2 deletions(-)
+
+diff --git a/cloud-init-templates/boothook_fuel_7.0_ubuntu.jinja2 b/cloud-init-templates/boothook_fuel_7.0_ubuntu.jinja2
+index 253be2d..9758376 100644
+--- a/cloud-init-templates/boothook_fuel_7.0_ubuntu.jinja2
++++ b/cloud-init-templates/boothook_fuel_7.0_ubuntu.jinja2
+@@ -49,8 +49,14 @@ cloud-init-per instance resolv_conf_head_nameserver /bin/sh -c 'echo nameserver
+ # configure black module lists
+ # virt-what should be installed
+ if [ ! -f /etc/modprobe.d/blacklist-i2c_piix4.conf ]; then
+- ( (virt-what | fgrep -q "virtualbox") && echo "blacklist i2c_piix4" >> /etc/modprobe.d/blacklist-i2c_piix4.conf || :) && update-initramfs -u -k all
+- modprobe -r i2c_piix4
++ ( (virt-what | fgrep -q "virtualbox") && \
++ ( echo "blacklist i2c_piix4" >> /etc/modprobe.d/blacklist-i2c_piix4.conf && \
++ update-initramfs -u -k all && modprobe -r i2c_piix4 ) || :)
++fi
++if [ ! -f /etc/modprobe.d/blacklist-rtc_efi.conf ]; then
++ ( /bin/cat /sys/class/rtc/rtc0/time > /dev/null 2>&1 ) || \
++ ( echo "blacklist rtc_efi" >> /target/etc/modprobe.d/blacklist-rtc_efi.conf && \
++ update-initramfs -u -k all && modprobe -r rtc_efi )
+ fi
+
+ cloud-init-per instance conntrack_ipv4 /bin/sh -c 'echo nf_conntrack_ipv4 | tee -a /etc/modules'
diff --git a/patches/fuel-library/0014-Allow-configuring-MySQL-WSREP-SST-provider.patch b/patches/fuel-library/0013-Allow-configuring-MySQL-WSREP-SST-provider.patch
index c7000ae8..c7000ae8 100644
--- a/patches/fuel-library/0014-Allow-configuring-MySQL-WSREP-SST-provider.patch
+++ b/patches/fuel-library/0013-Allow-configuring-MySQL-WSREP-SST-provider.patch
diff --git a/patches/fuel-library/0013-target-Ubuntu-Blacklist-rtc-efi-if-not-supported.patch b/patches/fuel-library/0013-target-Ubuntu-Blacklist-rtc-efi-if-not-supported.patch
deleted file mode 100644
index cfc1f6cb..00000000
--- a/patches/fuel-library/0013-target-Ubuntu-Blacklist-rtc-efi-if-not-supported.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
-Date: Sun, 17 Apr 2016 17:53:46 +0200
-Subject: [PATCH] target Ubuntu: Blacklist rtc-efi if not supported.
-
-Older ThunderX and possibly other UEFI-enabled targets do not support
-rtc-efi properly, so they end up filling dmesg with useless
-complaints about not being able to read system time.
-
-Target OS (Ubuntu) deployment already has a snippet that blacklists
-i2c_piix4 in certain scenarios, so provide a similar test for rtc_efi.
-
-update-initramfs is already invoked from i2c_piix4 snippet, so ommit
-explicitly calling it in rtc_efi fragment.
----
- deployment/puppet/cobbler/manifests/snippets.pp | 1 +
- deployment/puppet/cobbler/templates/preseed/ubuntu-1404.preseed.erb | 1 +
- .../puppet/cobbler/templates/snippets/ubuntu_blacklist_rtc_efi.erb | 1 +
- 3 files changed, 3 insertions(+)
- create mode 100644 deployment/puppet/cobbler/templates/snippets/ubuntu_blacklist_rtc_efi.erb
-
-diff --git a/deployment/puppet/cobbler/manifests/snippets.pp b/deployment/puppet/cobbler/manifests/snippets.pp
-index 46c76d0..5ab9a17 100644
---- a/deployment/puppet/cobbler/manifests/snippets.pp
-+++ b/deployment/puppet/cobbler/manifests/snippets.pp
-@@ -58,6 +58,7 @@ class cobbler::snippets {
- cobbler_snippet {"centos_static_net":}
- cobbler_snippet {"ofed_install_with_sriov":}
- cobbler_snippet {"ubuntu_authorized_keys":}
-+ cobbler_snippet {"ubuntu_blacklist_rtc_efi":}
- cobbler_snippet {"ubuntu_blacklist_i2c_piix4":}
- cobbler_snippet {"ubuntu_disable_pxe":}
- cobbler_snippet {"ubuntu_puppet_config":}
-diff --git a/deployment/puppet/cobbler/templates/preseed/ubuntu-1404.preseed.erb b/deployment/puppet/cobbler/templates/preseed/ubuntu-1404.preseed.erb
-index 65c6c69..8e17a0e 100644
---- a/deployment/puppet/cobbler/templates/preseed/ubuntu-1404.preseed.erb
-+++ b/deployment/puppet/cobbler/templates/preseed/ubuntu-1404.preseed.erb
-@@ -177,6 +177,7 @@ echo target > /target/etc/nailgun_systemtype && \
- $SNIPPET('ubuntu_authorized_keys')
- sed -i -e "/^\s*GSSAPICleanupCredentials yes/d" -e "/^\s*GSSAPIAuthentication yes/d" -e "s/.*PasswordAuthentication\ .*/PasswordAuthentication\ no/g" -e "/UseDNS/d" /target/etc/ssh/sshd_config && \
- echo "UseDNS no" >> /target/etc/ssh/sshd_config && \
-+$SNIPPET('ubuntu_blacklist_rtc_efi')
- $SNIPPET('ubuntu_blacklist_i2c_piix4')
- $SNIPPET('ubuntu_static_net')
- $SNIPPET('ofed_install_with_sriov')
-diff --git a/deployment/puppet/cobbler/templates/snippets/ubuntu_blacklist_rtc_efi.erb b/deployment/puppet/cobbler/templates/snippets/ubuntu_blacklist_rtc_efi.erb
-new file mode 100644
-index 0000000..902f142
---- /dev/null
-+++ b/deployment/puppet/cobbler/templates/snippets/ubuntu_blacklist_rtc_efi.erb
-@@ -0,0 +1 @@
-+( /bin/cat /sys/class/rtc/rtc0/time > /dev/null 2>&1 || echo "blacklist rtc_efi" >> /target/etc/modprobe.d/blacklist-rtc_efi.conf ) && \