Alon Bar-Lev has uploaded a new change for review.

Change subject: tune: move tuned plugin to new category
......................................................................

tune: move tuned plugin to new category

Change-Id: I66a89598e069ec2bb8f267d48a4e558089129a5c
Signed-off-by: Alon Bar-Lev <alo...@redhat.com>
---
M configure.ac
M po/POTFILES.in
M src/plugins/ovirt-host-deploy/Makefile.am
A src/plugins/ovirt-host-deploy/tune/Makefile.am
A src/plugins/ovirt-host-deploy/tune/__init__.py
R src/plugins/ovirt-host-deploy/tune/tuned.py
M src/plugins/ovirt-host-deploy/vdsm/Makefile.am
M src/plugins/ovirt-host-deploy/vdsm/__init__.py
8 files changed, 70 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-host-deploy refs/changes/80/9680/1

diff --git a/configure.ac b/configure.ac
index 4986f31..0de7e7b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -165,6 +165,7 @@
        src/plugins/ovirt-host-deploy/core/Makefile
        src/plugins/ovirt-host-deploy/vdsm/Makefile
        src/plugins/ovirt-host-deploy/vdsmhooks/Makefile
+       src/plugins/ovirt-host-deploy/tune/Makefile
        src/plugins/ovirt-host-deploy/node/Makefile
        src/plugins/ovirt-host-deploy/gluster/Makefile
        src/java/Makefile
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 7e0a044..9650f91 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -9,6 +9,8 @@
 ./src/plugins/ovirt-host-deploy/node/__init__.py
 ./src/plugins/ovirt-host-deploy/node/persist.py
 ./src/plugins/ovirt-host-deploy/node/vdsm_reg.py
+./src/plugins/ovirt-host-deploy/tune/__init__.py
+./src/plugins/ovirt-host-deploy/tune/tuned.py
 ./src/plugins/ovirt-host-deploy/vdsm/bridge.py
 ./src/plugins/ovirt-host-deploy/vdsm/hardware.py
 ./src/plugins/ovirt-host-deploy/vdsmhooks/hooks.py
@@ -17,5 +19,4 @@
 ./src/plugins/ovirt-host-deploy/vdsm/packages.py
 ./src/plugins/ovirt-host-deploy/vdsm/pki.py
 ./src/plugins/ovirt-host-deploy/vdsm/software.py
-./src/plugins/ovirt-host-deploy/vdsm/tuned.py
 ./src/plugins/ovirt-host-deploy/vdsm/vdsmid.py
diff --git a/src/plugins/ovirt-host-deploy/Makefile.am 
b/src/plugins/ovirt-host-deploy/Makefile.am
index ce405b7..32581ab 100644
--- a/src/plugins/ovirt-host-deploy/Makefile.am
+++ b/src/plugins/ovirt-host-deploy/Makefile.am
@@ -24,6 +24,7 @@
        core \
        vdsm \
        vdsmhooks \
+       tune \
        node \
        gluster
 
diff --git a/src/plugins/ovirt-host-deploy/tune/Makefile.am 
b/src/plugins/ovirt-host-deploy/tune/Makefile.am
new file mode 100644
index 0000000..bbf51c5
--- /dev/null
+++ b/src/plugins/ovirt-host-deploy/tune/Makefile.am
@@ -0,0 +1,34 @@
+#
+# ovirt-host-deploy -- ovirt host deployer
+# Copyright (C) 2012 Red Hat, Inc.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library 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
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+#
+
+include $(top_srcdir)/build/python.inc
+
+MAINTAINERCLEANFILES = \
+       $(srcdir)/Makefile.in
+
+mydir=$(ovirthostdeployplugindir)/ovirt-host-deploy/tune
+dist_my_PYTHON = \
+       __init__.py \
+       tuned.py
+
+clean-local: \
+       python-clean
+
+all-local: \
+       python-syntax-check
diff --git a/src/plugins/ovirt-host-deploy/tune/__init__.py 
b/src/plugins/ovirt-host-deploy/tune/__init__.py
new file mode 100644
index 0000000..8623059
--- /dev/null
+++ b/src/plugins/ovirt-host-deploy/tune/__init__.py
@@ -0,0 +1,32 @@
+#
+# ovirt-host-deploy -- ovirt host deployer
+# Copyright (C) 2012 Red Hat, Inc.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library 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
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+#
+
+
+"""vdsm plugin."""
+
+
+from otopi import util
+
+
+from . import tuned
+
+
+@util.export
+def createPlugins(context):
+    tuned.Plugin(context=context)
diff --git a/src/plugins/ovirt-host-deploy/vdsm/tuned.py 
b/src/plugins/ovirt-host-deploy/tune/tuned.py
similarity index 100%
rename from src/plugins/ovirt-host-deploy/vdsm/tuned.py
rename to src/plugins/ovirt-host-deploy/tune/tuned.py
diff --git a/src/plugins/ovirt-host-deploy/vdsm/Makefile.am 
b/src/plugins/ovirt-host-deploy/vdsm/Makefile.am
index b9874ed..80241e9 100644
--- a/src/plugins/ovirt-host-deploy/vdsm/Makefile.am
+++ b/src/plugins/ovirt-host-deploy/vdsm/Makefile.am
@@ -30,7 +30,6 @@
        hardware.py \
        software.py \
        packages.py \
-       tuned.py \
        config.py \
        bridge.py
 
diff --git a/src/plugins/ovirt-host-deploy/vdsm/__init__.py 
b/src/plugins/ovirt-host-deploy/vdsm/__init__.py
index 8e0dbea..1e0ceab 100644
--- a/src/plugins/ovirt-host-deploy/vdsm/__init__.py
+++ b/src/plugins/ovirt-host-deploy/vdsm/__init__.py
@@ -29,7 +29,6 @@
 from . import hardware
 from . import software
 from . import packages
-from . import tuned
 from . import config
 from . import bridge
 
@@ -41,6 +40,5 @@
     hardware.Plugin(context=context)
     software.Plugin(context=context)
     packages.Plugin(context=context)
-    tuned.Plugin(context=context)
     config.Plugin(context=context)
     bridge.Plugin(context=context)


--
To view, visit http://gerrit.ovirt.org/9680
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I66a89598e069ec2bb8f267d48a4e558089129a5c
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-host-deploy
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to