Skip to contentSkip to conversation

tools/python: Remove some legacy scripts

PATCH In review Andrew Cooper 2 participants 2 messages Jun 17, 2014 – Jun 18, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/python: Remove some legacy scripts

Nothing in scripts/ is referenced by the current Xen build system. It is a legacy version of the XenAPI bindings, other parts of which have already been removed from the tree.

Additionally, prevent the install target from creating an $(SBINDIR) directory but putting nothing in it. This appears to be something missed when removing Xend.

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
---
 tools/python/Makefile                   |    2 -
 tools/python/README.XendConfig          |  160 ------
 tools/python/README.sxpcfg              |  114 -----
 tools/python/scripts/README             |   49 --
 tools/python/scripts/README.lifecycle   |  136 -----
 tools/python/scripts/test_hvm_create.py |  178 -------
 tools/python/scripts/test_vm_create.py  |  211 --------
 tools/python/scripts/xapi.domcfg.py     |   37 --
 tools/python/scripts/xapi.py            |  854 -------------------------------
 tools/python/scripts/xapi.vbdcfg.py     |   12 -
 tools/python/scripts/xapi.vdicfg.py     |    6 -
 tools/python/scripts/xapi.vifcfg.py     |   10 -
 tools/python/scripts/xapi.vtpmcfg.py    |    3 -
 13 files changed, 1772 deletions(-)
 delete mode 100644 tools/python/README.XendConfig
 delete mode 100644 tools/python/README.sxpcfg
 delete mode 100644 tools/python/scripts/README
 delete mode 100644 tools/python/scripts/README.lifecycle
 delete mode 100644 tools/python/scripts/test_hvm_create.py
 delete mode 100644 tools/python/scripts/test_vm_create.py
 delete mode 100644 tools/python/scripts/xapi.domcfg.py
 delete mode 100644 tools/python/scripts/xapi.py
 delete mode 100644 tools/python/scripts/xapi.vbdcfg.py
 delete mode 100644 tools/python/scripts/xapi.vdicfg.py
 delete mode 100644 tools/python/scripts/xapi.vifcfg.py
 delete mode 100644 tools/python/scripts/xapi.vtpmcfg.py
tools/python/Makefile +0 -2
index c433cbe..eee746d 100644
@@ -23,8 +23,6 @@ install:
 	CC="$(CC)" CFLAGS="$(CFLAGS) $(APPEND_LDFLAGS)" $(PYTHON) setup.py install \
 		$(PYTHON_PREFIX_ARG) --root="$(DESTDIR)" --force
 
-	$(INSTALL_DIR) $(DESTDIR)$(SBINDIR)
-
 .PHONY: test
 test:
 	export LD_LIBRARY_PATH=$$(readlink -f ../libxc):$$(readlink -f ../xenstore); $(PYTHON) test.py -b -u
tools/python/README.XendConfig deleted +0 -160

160 lines not on this page · raw message

tools/python/README.sxpcfg deleted +0 -114

114 lines not on this page · raw message

tools/python/scripts/README deleted +0 -49

49 lines not on this page · raw message

tools/python/scripts/README.lifecycle deleted +0 -136

136 lines not on this page · raw message

tools/python/scripts/test_hvm_create.py deleted +0 -178

178 lines not on this page · raw message

tools/python/scripts/test_vm_create.py deleted +0 -211

211 lines not on this page · raw message

tools/python/scripts/xapi.domcfg.py deleted +0 -37
deleted file mode 100644
index d7b8ae5..0000000
@@ -1,37 +0,0 @@
-#
-# VM Configuration for Xen API
-#
-
-name_label =  'GentooAPI'
-name_description =  'Gentoo VM via API'
-user_version =  1
-is_a_template =  False
-memory_static_max =  32
-memory_dynamic_max =  32
-memory_dynamic_min =  32
-memory_static_min =  32
-VCPUs_policy =  ''
-VCPUs_params =  ''
-VCPUS_features_required =  ''
-VCPUs_features_can_use =  ''
-VCPUs_features_force_on =  ''
-VCPUs_features_force_off =  ''
-actions_after_shutdown =  'destroy'
-actions_after_reboot =  'restart'
-actions_after_suspend =  'destroy'
-actions_after_crash =  'restart'
-bios_boot =  ''
-platform_std_VGA =  False
-platform_serial =  ''
-platform_localtime =  False
-platform_clock_offset =  False
-platform_enable_audio =  False
-builder =  'linux'
-boot_method =  '' # this will remove the kernel/initrd ??
-kernel_kernel =  '/boot/vmlinuz-2.6.16.29-xen'
-kernel_initrd =  '/root/initrd-2.6.16.29-xen.img'
-kernel_args =  'root=/dev/sda1 ro'
-grub_cmdline =  ''
-PCI_bus =  ''
-other_config =  ''
-
tools/python/scripts/xapi.py deleted +0 -854

854 lines not on this page · raw message

tools/python/scripts/xapi.vbdcfg.py deleted +0 -12
deleted file mode 100644
index 82dcaf8..0000000
@@ -1,12 +0,0 @@
-#
-# Virtual Block Device (VBD) Xen API Configuration
-# 
-# Note: There is a non-API field here called "image" which is a backwards
-#       compat addition so you can mount to old images.
-# 
-
-VDI =  ''
-device = 'sda1'
-mode = 'RW'
-driver = 'paravirtualised'
-image = 'file:/root/gentoo.amd64.img'
tools/python/scripts/xapi.vdicfg.py deleted +0 -6
deleted file mode 100644
index cb63653..0000000
@@ -1,6 +0,0 @@
-name_label = 'VDI 1'
-name_description = ''
-virtual_size = 10 * 1024 * 1024 * 1024
-type = 'system'
-sharable = False
-read_only = False
tools/python/scripts/xapi.vifcfg.py deleted +0 -10
deleted file mode 100644
index f421224..0000000
@@ -1,10 +0,0 @@
-#
-# Virtual Network Interface Configuration for the Xen API
-#
-
-name = ''
-type = 'paravirtualised'
-#device = 'eth0' # this is the dom0 device, not domU!
-network = '' # ignored
-MAC = ''
-MTU = '1500'
tools/python/scripts/xapi.vtpmcfg.py deleted +0 -3
deleted file mode 100644
index 7c419ba..0000000
@@ -1,3 +0,0 @@
-type = 'paravirtualised'
-backend = 'Domain-0'
-instance = 1
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 11 lines · Andrew Cooper

Nothing in scripts/ is referenced by the current Xen build system. It is a legacy version of the XenAPI bindings, other parts of which have already been removed from the tree.

Additionally, prevent the install target from creating an $(SBINDIR) directory but putting nothing in it. This appears to be something missed when removing Xend.

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>

Acked + applied.