Martin Polednik has uploaded a new change for review. Change subject: faqemu: merge with fakearch ......................................................................
faqemu: merge with fakearch Faqemu and fakearch hooks accomplished very similar things. It therefore makes sense to merge updated faqemu with fakearch, leaving only fakearch as it's name is more descriptive. The new fakearch hook is therefore able to fake the caps and VM creation to create the illusion of running under different architecture. Change-Id: I5c603874d30cd43c6de7cc1ab0b819ffa0c5f20d Signed-off-by: Martin Polednik <[email protected]> --- M configure.ac M debian/Makefile.am M debian/control D debian/vdsm-hook-faqemu.docs D debian/vdsm-hook-faqemu.install M vdsm.spec.in M vdsm_hooks/Makefile.am M vdsm_hooks/fakearch/Makefile.am R vdsm_hooks/fakearch/before_vm_start.py D vdsm_hooks/faqemu/Makefile.am 10 files changed, 9 insertions(+), 67 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/62/46962/1 diff --git a/configure.ac b/configure.ac index 245fe7e..05205c9 100644 --- a/configure.ac +++ b/configure.ac @@ -371,7 +371,6 @@ vdsm_hooks/extnet/Makefile vdsm_hooks/fakearch/Makefile vdsm_hooks/fakevmstats/Makefile - vdsm_hooks/faqemu/Makefile vdsm_hooks/fileinject/Makefile vdsm_hooks/floppy/Makefile vdsm_hooks/hostusb/Makefile diff --git a/debian/Makefile.am b/debian/Makefile.am index d16f3df..f3ec90e 100644 --- a/debian/Makefile.am +++ b/debian/Makefile.am @@ -47,8 +47,6 @@ vdsm-hook-fakearch.install \ vdsm-hook-fakevmstats.docs \ vdsm-hook-fakevmstats.install \ - vdsm-hook-faqemu.docs \ - vdsm-hook-faqemu.install \ vdsm-hook-fileinject.docs \ vdsm-hook-fileinject.install \ vdsm-hook-floppy.docs \ diff --git a/debian/control b/debian/control index dc2082e..7de0439 100644 --- a/debian/control +++ b/debian/control @@ -163,15 +163,6 @@ Description: VDSM hook set for interaction with vhostmd VDSM hook to use vhostmd per VM according to Virtualization Manager requests. -Package: vdsm-hook-faqemu -Architecture: all -Depends: ${shlibs:Depends}, ${misc:Depends}, python (>=2.7.3), vdsm (>= ${source:Version}) -Description: Fake qemu process for VDSM quality assurance - VDSM hook used for testing VDSM with multiple fake virtual machines without - running real guests. - To enable this hook on your host, set vars.fake_kvm_support=True in your - /etc/vdsm/vdsm.conf before adding the host to ovirt-Engine. - Package: vdsm-hook-directlun Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, python (>=2.7.3), vdsm (>= ${source:Version}) diff --git a/debian/vdsm-hook-faqemu.docs b/debian/vdsm-hook-faqemu.docs deleted file mode 100644 index 5ecd9c6..0000000 --- a/debian/vdsm-hook-faqemu.docs +++ /dev/null @@ -1 +0,0 @@ -COPYING diff --git a/debian/vdsm-hook-faqemu.install b/debian/vdsm-hook-faqemu.install deleted file mode 100644 index 578d1e4..0000000 --- a/debian/vdsm-hook-faqemu.install +++ /dev/null @@ -1 +0,0 @@ -usr/libexec/vdsm/hooks/before_vm_start/10_faqemu diff --git a/vdsm.spec.in b/vdsm.spec.in index 383fa95..4500f06 100644 --- a/vdsm.spec.in +++ b/vdsm.spec.in @@ -354,16 +354,6 @@ VDSM hook to use vhostmd per VM according to Virtualization Manager requests. %endif -%package hook-faqemu -Summary: Fake qemu process for VDSM quality assurance -Requires: %{name} - -%description hook-faqemu -VDSM hook used for testing VDSM with multiple fake virtual machines without -running real guests. -To enable this hook on your host, set vars.fake_kvm_support=True in your -/etc/vdsm/vdsm.conf before adding the host to ovirt-Engine. - %package hook-directlun Summary: Direct LUN support for VDSM @@ -407,7 +397,8 @@ %description hook-fakearch VDSM hook that intercepts capabilities returned by VDSM to allow faking the -target architecture. +target architecture. Also modifies VM to run under the host architecture even +when other architecture is requested. To enable this hook on your host, set vars.fake_kvm_support=true and target architecture in vars.fake_kvm_architecture in your /etc/vdsm/vdsm.conf. @@ -1160,6 +1151,7 @@ %files hook-fakearch %defattr(-, root, root, -) %{_libexecdir}/%{vdsm_name}/hooks/after_get_caps/10_fakearch +%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/10_fakearch %files hook-openstacknet %defattr(-, root, root, -) @@ -1393,11 +1385,6 @@ %{python_sitelib}/%{vdsm_name}/infra/sigutils/__init__.py* %{python_sitelib}/%{vdsm_name}/infra/zombiereaper/__init__.py* %{python_sitelib}/%{vdsm_name}/infra/__init__.py* - -%files hook-faqemu -%defattr(-, root, root, -) -%license COPYING -%{_libexecdir}/%{vdsm_name}/hooks/before_vm_start/10_faqemu %if 0%{?with_gluster} %files gluster diff --git a/vdsm_hooks/Makefile.am b/vdsm_hooks/Makefile.am index 3148e23..9e0fecd 100644 --- a/vdsm_hooks/Makefile.am +++ b/vdsm_hooks/Makefile.am @@ -21,7 +21,6 @@ SUBDIRS = \ ethtool_options \ fakearch\ - faqemu \ ipv6 \ macspoof \ openstacknet \ diff --git a/vdsm_hooks/fakearch/Makefile.am b/vdsm_hooks/fakearch/Makefile.am index 22fe107..7737313 100644 --- a/vdsm_hooks/fakearch/Makefile.am +++ b/vdsm_hooks/fakearch/Makefile.am @@ -24,12 +24,17 @@ config.log EXTRA_DIST = \ - after_get_caps.py + after_get_caps.py \ + before_vm_start.py install-data-local: $(MKDIR_P) $(DESTDIR)$(vdsmhooksdir)/after_get_caps $(INSTALL_SCRIPT) $(srcdir)/after_get_caps.py \ $(DESTDIR)$(vdsmhooksdir)/after_get_caps/10_fakearch + $(MKDIR_P) $(DESTDIR)$(vdsmhooksdir)/before_vm_start + $(INSTALL_SCRIPT) $(srcdir)/before_vm_start.py \ + $(DESTDIR)$(vdsmhooksdir)/before_vm_start/10_fakearch uninstall-local: $(RM) $(DESTDIR)$(vdsmhooksdir)/after_get_caps/10_fakearch + $(RM) $(DESTDIR)$(vdsmhooksdir)/before_vm_start/10_fakearch diff --git a/vdsm_hooks/faqemu/before_vm_start.py b/vdsm_hooks/fakearch/before_vm_start.py similarity index 100% rename from vdsm_hooks/faqemu/before_vm_start.py rename to vdsm_hooks/fakearch/before_vm_start.py diff --git a/vdsm_hooks/faqemu/Makefile.am b/vdsm_hooks/faqemu/Makefile.am deleted file mode 100644 index 3e1b0c0..0000000 --- a/vdsm_hooks/faqemu/Makefile.am +++ /dev/null @@ -1,35 +0,0 @@ -# -# Copyright 2011-2012 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# Refer to the README and COPYING files for full details of the license -# - -include $(top_srcdir)/build-aux/Makefile.subs - -CLEANFILES = \ - config.log - -EXTRA_DIST = \ - before_vm_start.py - -install-data-local: - $(MKDIR_P) $(DESTDIR)$(vdsmhooksdir)/before_vm_start - $(INSTALL_SCRIPT) $(srcdir)/before_vm_start.py \ - $(DESTDIR)$(vdsmhooksdir)/before_vm_start/10_faqemu - -uninstall-local: - $(RM) $(DESTDIR)$(vdsmhooksdir)/before_vm_start/10_faqemu -- To view, visit https://gerrit.ovirt.org/46962 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5c603874d30cd43c6de7cc1ab0b819ffa0c5f20d Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Martin Polednik <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
