1 |
commit: 91eb61738b704880c88f8b3e58f234f290a62843 |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Nov 19 12:52:12 2017 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 12 17:05:46 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91eb6173 |
7 |
|
8 |
app-emulation/ganeti: remove unused patch |
9 |
|
10 |
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org> |
11 |
|
12 |
...st_agent-QEMU-Guest-Agent-sup.stable-2.17.patch | 122 --------------------- |
13 |
1 file changed, 122 deletions(-) |
14 |
|
15 |
diff --git a/app-emulation/ganeti/files/0001-kvm-use_guest_agent-QEMU-Guest-Agent-sup.stable-2.17.patch b/app-emulation/ganeti/files/0001-kvm-use_guest_agent-QEMU-Guest-Agent-sup.stable-2.17.patch |
16 |
deleted file mode 100644 |
17 |
index f7a664fa776..00000000000 |
18 |
--- a/app-emulation/ganeti/files/0001-kvm-use_guest_agent-QEMU-Guest-Agent-sup.stable-2.17.patch |
19 |
+++ /dev/null |
20 |
@@ -1,122 +0,0 @@ |
21 |
-From e91ae73f593115dba1f77af6a3af30cf2219f880 Mon Sep 17 00:00:00 2001 |
22 |
-Message-Id: <e91ae73f593115dba1f77af6a3af30cf2219f880.1483650125.git.robbat2@g.o> |
23 |
-From: "Robin H. Johnson" <robbat2@g.o> |
24 |
-Date: Thu, 29 Sep 2016 08:57:28 -0700 |
25 |
-Subject: [PATCH-2.17] kvm: use_guest_agent: QEMU Guest Agent support |
26 |
- |
27 |
-Implement the QEMU Guest Agent sockets, so that code/scripts on the |
28 |
-hypervisors can communicate with guest operating systems easily. |
29 |
- |
30 |
-Signed-off-by: Robin H. Johnson <robbat2@g.o> |
31 |
---- |
32 |
- lib/hypervisor/hv_kvm/__init__.py | 23 +++++++++++++++++++++++ |
33 |
- man/gnt-instance.rst | 7 +++++++ |
34 |
- src/Ganeti/Constants.hs | 5 +++++ |
35 |
- 3 files changed, 35 insertions(+) |
36 |
- |
37 |
-diff --git a/lib/hypervisor/hv_kvm/__init__.py b/lib/hypervisor/hv_kvm/__init__.py |
38 |
-index ac02ff56c..b865d6f3a 100644 |
39 |
---- a/lib/hypervisor/hv_kvm/__init__.py |
40 |
-+++ b/lib/hypervisor/hv_kvm/__init__.py |
41 |
-@@ -497,6 +497,7 @@ class KVMHypervisor(hv_base.BaseHypervisor): |
42 |
- constants.HV_MIGRATION_BANDWIDTH: hv_base.REQ_NONNEGATIVE_INT_CHECK, |
43 |
- constants.HV_MIGRATION_DOWNTIME: hv_base.REQ_NONNEGATIVE_INT_CHECK, |
44 |
- constants.HV_MIGRATION_MODE: hv_base.MIGRATION_MODE_CHECK, |
45 |
-+ constants.HV_USE_GUEST_AGENT: hv_base.NO_CHECK, |
46 |
- constants.HV_USE_LOCALTIME: hv_base.NO_CHECK, |
47 |
- constants.HV_DISK_CACHE: |
48 |
- hv_base.ParamInSet(True, constants.HT_VALID_CACHE_TYPES), |
49 |
-@@ -750,6 +751,13 @@ class KVMHypervisor(hv_base.BaseHypervisor): |
50 |
- """ |
51 |
- return utils.PathJoin(cls._CTRL_DIR, "%s.qmp" % instance_name) |
52 |
- |
53 |
-+ @classmethod |
54 |
-+ def _InstanceQemuGuestAgentMonitor(cls, instance_name): |
55 |
-+ """Returns the instance serial QEMU Guest Agent socket name |
56 |
-+ |
57 |
-+ """ |
58 |
-+ return utils.PathJoin(cls._CTRL_DIR, "%s.qga" % instance_name) |
59 |
-+ |
60 |
- @classmethod |
61 |
- def _InstanceKvmdMonitor(cls, instance_name): |
62 |
- """Returns the instance kvm daemon socket name |
63 |
-@@ -836,6 +844,7 @@ class KVMHypervisor(hv_base.BaseHypervisor): |
64 |
- utils.RemoveFile(cls._InstanceMonitor(instance_name)) |
65 |
- utils.RemoveFile(cls._InstanceSerial(instance_name)) |
66 |
- utils.RemoveFile(cls._InstanceQmpMonitor(instance_name)) |
67 |
-+ utils.RemoveFile(cls._InstanceQemuGuestAgentMonitor(instance_name)) |
68 |
- utils.RemoveFile(cls._InstanceKVMRuntime(instance_name)) |
69 |
- utils.RemoveFile(cls._InstanceKeymapFile(instance_name)) |
70 |
- uid_file = cls._InstanceUidFile(instance_name) |
71 |
-@@ -1544,6 +1553,20 @@ class KVMHypervisor(hv_base.BaseHypervisor): |
72 |
- if self._UUID_RE.search(kvmhelp): |
73 |
- kvm_cmd.extend(["-uuid", instance.uuid]) |
74 |
- |
75 |
-+ # Add guest agent socket |
76 |
-+ if hvp[constants.HV_USE_GUEST_AGENT]: |
77 |
-+ qga_addr = utils.GetFreeSlot(bus_slots[_PCI_BUS], reserve=True) |
78 |
-+ qga_pci_info = "bus=%s,addr=%s" % (_PCI_BUS, hex(qga_addr)) |
79 |
-+ qga_path = self._InstanceQemuGuestAgentMonitor(instance.name) |
80 |
-+ logging.info("KVM: Guest Agent available at %s", qga_path) |
81 |
-+ # The 'qga0' identified can change, but the 'org.qemu.guest_agent.0' string is |
82 |
-+ # the default expected by the Guest Agent. |
83 |
-+ kvm_cmd.extend([ |
84 |
-+ "-chardev", "socket,path=%s,server,nowait,id=qga0" % qga_path, |
85 |
-+ "-device", "virtio-serial,id=qga0,%s" % qga_pci_info, |
86 |
-+ "-device", "virtserialport,chardev=qga0,name=org.qemu.guest_agent.0", |
87 |
-+ ]) |
88 |
-+ |
89 |
- if hvp[constants.HV_KVM_EXTRA]: |
90 |
- kvm_cmd.extend(hvp[constants.HV_KVM_EXTRA].split(" ")) |
91 |
- |
92 |
-diff --git a/man/gnt-instance.rst b/man/gnt-instance.rst |
93 |
-index 283392cc8..493ae929d 100644 |
94 |
---- a/man/gnt-instance.rst |
95 |
-+++ b/man/gnt-instance.rst |
96 |
-@@ -545,6 +545,13 @@ viridian |
97 |
- viridian (Hyper-V) for this instance. The default is false, |
98 |
- disabling viridian support. |
99 |
- |
100 |
-+use\_guest\_agent |
101 |
-+ Valid for the KVM hypervisor. |
102 |
-+ |
103 |
-+ A boolean option that specifies if the hypervisor should enable |
104 |
-+ the QEMU Guest Agent protocol for this instance. By default, the |
105 |
-+ Guest Agent is disabled. |
106 |
-+ |
107 |
- use\_localtime |
108 |
- Valid for the Xen HVM and KVM hypervisors. |
109 |
- |
110 |
-diff --git a/src/Ganeti/Constants.hs b/src/Ganeti/Constants.hs |
111 |
-index 13bff2e71..7f43f89f9 100644 |
112 |
---- a/src/Ganeti/Constants.hs |
113 |
-+++ b/src/Ganeti/Constants.hs |
114 |
-@@ -1821,6 +1821,9 @@ hvUsbMouse = "usb_mouse" |
115 |
- hvUseBootloader :: String |
116 |
- hvUseBootloader = "use_bootloader" |
117 |
- |
118 |
-+hvUseGuestAgent :: String |
119 |
-+hvUseGuestAgent = "use_guest_agent" |
120 |
-+ |
121 |
- hvUseLocaltime :: String |
122 |
- hvUseLocaltime = "use_localtime" |
123 |
- |
124 |
-@@ -1955,6 +1958,7 @@ hvsParameterTypes = Map.fromList |
125 |
- , (hvUsbDevices, VTypeString) |
126 |
- , (hvUsbMouse, VTypeString) |
127 |
- , (hvUseBootloader, VTypeBool) |
128 |
-+ , (hvUseGuestAgent, VTypeBool) |
129 |
- , (hvUseLocaltime, VTypeBool) |
130 |
- , (hvVga, VTypeString) |
131 |
- , (hvVhostNet, VTypeBool) |
132 |
-@@ -4111,6 +4115,7 @@ hvcDefaults = |
133 |
- , (hvMigrationBandwidth, PyValueEx (32 :: Int)) |
134 |
- , (hvMigrationDowntime, PyValueEx (30 :: Int)) |
135 |
- , (hvMigrationMode, PyValueEx htMigrationLive) |
136 |
-+ , (hvUseGuestAgent, PyValueEx False) |
137 |
- , (hvUseLocaltime, PyValueEx False) |
138 |
- , (hvDiskCache, PyValueEx htCacheDefault) |
139 |
- , (hvSecurityModel, PyValueEx htSmNone) |
140 |
--- |
141 |
-2.11.0.rc2 |
142 |
- |