Dan Kenigsberg has uploaded a new change for review. Change subject: vdsm_reg/define.py: drop unused file ......................................................................
vdsm_reg/define.py: drop unused file Change-Id: I7bc1e13af78debfdb518156f874b554492dfa8e0 Signed-off-by: Dan Kenigsberg <[email protected]> --- M Makefile.am M vdsm.spec.in M vdsm_reg/Makefile.am D vdsm_reg/define.py 4 files changed, 0 insertions(+), 121 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/06/9806/1 diff --git a/Makefile.am b/Makefile.am index fa28ee1..b2faa14 100644 --- a/Makefile.am +++ b/Makefile.am @@ -95,7 +95,6 @@ vdsm_hooks/sriov/before_vm_start.py \ vdsm_hooks/vhostmd \ vdsm_reg/createDaemon.py \ - vdsm_reg/define.py \ $(NULL) PEP8_BLACKLIST = apiData.py,config.py,constants.py diff --git a/vdsm.spec.in b/vdsm.spec.in index 465d548..9830afe 100644 --- a/vdsm.spec.in +++ b/vdsm.spec.in @@ -945,7 +945,6 @@ %{_unitdir}/vdsm-reg.service %endif %{_datadir}/%{vdsm_reg}/vdsm-reg-setup -%{_datadir}/%{vdsm_reg}/define.py* %{_datadir}/%{vdsm_reg}/vdsm-complete %{_datadir}/%{vdsm_reg}/vdsm-gen-cert %{_datadir}/%{vdsm_reg}/vdsm-upgrade diff --git a/vdsm_reg/Makefile.am b/vdsm_reg/Makefile.am index 5098374..aebfc3d 100644 --- a/vdsm_reg/Makefile.am +++ b/vdsm_reg/Makefile.am @@ -24,7 +24,6 @@ dist_vdsmreg_PYTHON = \ createDaemon.py \ - define.py \ register-to-engine.py dist_ovirtsetup_PYTHON = \ diff --git a/vdsm_reg/define.py b/vdsm_reg/define.py deleted file mode 100644 index 707adae..0000000 --- a/vdsm_reg/define.py +++ /dev/null @@ -1,118 +0,0 @@ -# -# Copyright 2011 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 -# - -errCode = { - 'noVM': {'status': - {'code': 1, - 'message': - 'Desktop does not exist'}}, - 'nfsErr': {'status': - {'code': 3, - 'message': - 'Image repository access timeout'}}, - 'exist': {'status': - {'code': 4, - 'message': - 'Desktop already exists'}}, - 'noVmType': {'status': - {'code': 5, - 'message': - 'Unsupported virtual machine type'}}, - 'down': {'status': - {'code': 6, - 'message': - 'Desktop is down'}}, - 'copyerr': {'status': - {'code': 7, - 'message': - 'Copy failed'}}, - 'sparse': {'status': - {'code': 8, - 'message': - 'Sparse creation failed'}}, - 'createErr': {'status': - {'code': 9, - 'message': - 'Error creating the requested Desktop'}}, - 'noConPeer': {'status': - {'code': 10, - 'message': - 'Could not connect to peer VDS'}}, - 'MissParam': {'status': - {'code': 11, - 'message': - 'Missing required parameter'}}, - 'migrateErr': {'status': - {'code': 12, - 'message': - 'Fatal error during migration'}}, - 'imageErr': {'status': - {'code': 13, - 'message': - 'Drive image file could not be found'}}, - 'outOfMem': {'status': - {'code': 14, - 'message': - 'Not enough free memory to create Desktop'}}, - 'unexpected': {'status': - {'code': 16, - 'message': - 'Unexpected exception'}}, - 'unsupFormat': {'status': - {'code': 17, - 'message': - 'Unsupported image format'}}, - 'ticketErr': {'status': - {'code': 18, - 'message': - 'Error while setting spice ticket'}}, - 'recovery': {'status': - {'code': 100, - 'message': - 'Recovering from crash or still initializing'}}, - 'installErr': {'status': - {'code': 101, - 'message': - 'Vds not operational. ' - 'Check logs, repair it, and restart'}}, - 'tmp': {} -} -doneCode = {'code': 0, 'message': 'Done'} -nullCode = {'code': 0, 'message': ''} - - -#confFile = 'vdsm.conf' -loggerConf = 'logger.conf' -installPath = '/usr/share/vdsm/' -relPath = './' - -Kbytes = 1024 -Mbytes = 1024 * Kbytes - -drives = ['hda', 'hdb', 'hdc', 'hdd', 'cdrom'] -requiredParams = ['vmId', 'hda', 'memSize', 'macAddr', 'display'] - - -class myException(Exception): - pass - -#exitCodes -ERROR = 1 -NORMAL = 0 -- To view, visit http://gerrit.ovirt.org/9806 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7bc1e13af78debfdb518156f874b554492dfa8e0 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Dan Kenigsberg <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
