aboutsummaryrefslogtreecommitdiffstats
path: root/patches/opnfv-fuel/0006-libvirt-Use-libvirt-unix_sock_group.patch
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-12-28 18:41:09 +0100
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2018-01-05 23:14:01 +0100
commit0e8a4fc5a553bb55c22590c0620ebfd770394e96 (patch)
tree58fdd861d2efbe06bf2749aadcf31a60ccdfbe39 /patches/opnfv-fuel/0006-libvirt-Use-libvirt-unix_sock_group.patch
parent11f5bc3ca9191039b9b22e2da8a6e29538d2f6ea (diff)
MaaS: preseed Armband repo via curtin
Instead of installing upstream vanilla kernel from Ubuntu just to upgrade to the one from Armband repo later, preseed Armband repo config via curtin. This allows us to drop a kernel update cycle, thus saving a few minutes at each deploy. While at it, switch salt repo addition to use the maas region reclass section instead of adding a dedicated mechanism for it in the curtin template (only for arm64). [ stable/ euphrates ] Preseed all Armband repos, since Ocata does not have a "common" repo. JIRA: ARMBAND-280 Change-Id: Iad5953a7de80d728f11a4ce3113bd7725100c31c Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com> (cherry picked from commit 648ec98613d31e3d9701b9ac1d87aed640b245f3)
Diffstat (limited to 'patches/opnfv-fuel/0006-libvirt-Use-libvirt-unix_sock_group.patch')
-rw-r--r--patches/opnfv-fuel/0006-libvirt-Use-libvirt-unix_sock_group.patch58
1 files changed, 58 insertions, 0 deletions
diff --git a/patches/opnfv-fuel/0006-libvirt-Use-libvirt-unix_sock_group.patch b/patches/opnfv-fuel/0006-libvirt-Use-libvirt-unix_sock_group.patch
new file mode 100644
index 00000000..103fcb2d
--- /dev/null
+++ b/patches/opnfv-fuel/0006-libvirt-Use-libvirt-unix_sock_group.patch
@@ -0,0 +1,58 @@
+::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
+: 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: Sun, 20 Aug 2017 18:18:53 +0200
+Subject: [PATCH] libvirt: Use "libvirt" unix_sock_group
+
+On AArch64, libvirt 3.x is used, which uses "libvirt" by default,
+so change old "libvirtd" in <libvirt/files/libvirtd.conf.Debian>.
+
+Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
+---
+ ...libvirt-unix_sock_group-s-libvirtd-libvirt.patch | 21 +++++++++++++++++++++
+ mcp/patches/patches.list | 1 +
+ 2 files changed, 22 insertions(+)
+ create mode 100644 mcp/patches/0102-libvirt-unix_sock_group-s-libvirtd-libvirt.patch
+
+diff --git a/mcp/patches/0102-libvirt-unix_sock_group-s-libvirtd-libvirt.patch b/mcp/patches/0102-libvirt-unix_sock_group-s-libvirtd-libvirt.patch
+new file mode 100644
+index 0000000..34d7cb4
+--- /dev/null
++++ b/mcp/patches/0102-libvirt-unix_sock_group-s-libvirtd-libvirt.patch
+@@ -0,0 +1,21 @@
++From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
++Date: Sun, 20 Aug 2017 02:03:01 +0200
++Subject: [PATCH] libvirt: unix_sock_group: s/libvirtd/libvirt/
++
++On AArch64, libvirt 3.x is used, which uses "libvirt" by default.
++
++Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
++---
++
++diff --git a/libvirt/files/libvirtd.conf.Debian b/libvirt/files/libvirtd.conf.Debian
++--- a/libvirt/files/libvirtd.conf.Debian
+++++ b/libvirt/files/libvirtd.conf.Debian
++@@ -81,7 +81,7 @@
++ # without becoming root.
++ #
++ # This is restricted to 'root' by default.
++-unix_sock_group = "{{ server.get('unix_sock_group', 'libvirtd') }}"
+++unix_sock_group = "{{ server.get('unix_sock_group', 'libvirt') }}"
++
++ # Set the UNIX socket permissions for the R/O socket. This is used
++ # for monitoring VM status only
+diff --git a/mcp/patches/patches.list b/mcp/patches/patches.list
+index a2f6a19..36e7f73 100644
+--- a/mcp/patches/patches.list
++++ b/mcp/patches/patches.list
+@@ -17,3 +17,4 @@
+ /usr/share/salt-formulas/env: 0011-maas-region-interface-default-mode-DHCP.patch
+ /usr/share/salt-formulas/env: 0012-linux.storage.lvm-Disable-filter.patch
+ /usr/share/salt-formulas/env: 0101-maas-Add-curtin_userdata_arm64_generic_xenial.patch
++/usr/share/salt-formulas/env: 0102-libvirt-unix_sock_group-s-libvirtd-libvirt.patch