Rename the virtualization daemon to `pvcvd`.

This commit is contained in:
Joshua Boniface 2018-09-12 11:59:23 -04:00
parent a629d4898a
commit f29ba2f458
14 changed files with 23 additions and 23 deletions

2
debian/control vendored
View File

@ -6,7 +6,7 @@ Standards-Version: 3.9.8
Homepage: https://www.boniface.me Homepage: https://www.boniface.me
X-Python3-Version: >= 3.2 X-Python3-Version: >= 3.2
Package: pvc-virtdaemon Package: pvc-virtualization-daemon
Architecture: all Architecture: all
Depends: python3-kazoo, python3-libvirt, python3-psutil, python3-apscheduler, ipmitool, libvirt-daemon-system Depends: python3-kazoo, python3-libvirt, python3-psutil, python3-apscheduler, ipmitool, libvirt-daemon-system
Suggests: pvc-client Suggests: pvc-client

View File

@ -1,4 +0,0 @@
virtualization-daemon/pvcd.py usr/share/pvc
virtualization-daemon/pvcd.service lib/systemd/system
virtualization-daemon/pvcd.conf.sample etc/pvc
virtualization-daemon/pvcd usr/share/pvc

View File

@ -0,0 +1,4 @@
virtualization-daemon/pvcvd.py usr/share/pvc
virtualization-daemon/pvcvd.service lib/systemd/system
virtualization-daemon/pvcvd.conf.sample etc/pvc
virtualization-daemon/pvcvd usr/share/pvc

View File

@ -33,18 +33,18 @@ import time
import configparser import configparser
import apscheduler.schedulers.background import apscheduler.schedulers.background
import pvcd.ansiiprint as ansiiprint import pvcvd.ansiiprint as ansiiprint
import pvcd.zkhandler as zkhandler import pvcvd.zkhandler as zkhandler
import pvcd.VMInstance as VMInstance import pvcvd.VMInstance as VMInstance
import pvcd.NodeInstance as NodeInstance import pvcvd.NodeInstance as NodeInstance
print(ansiiprint.bold() + "pvcd - Parallel Virtual Cluster management daemon" + ansiiprint.end()) print(ansiiprint.bold() + "pvcvd - Parallel Virtual Cluster management daemon" + ansiiprint.end())
# Get the config file variable from the environment # Get the config file variable from the environment
try: try:
pvcd_config_file = os.environ['PVCD_CONFIG_FILE'] pvcvd_config_file = os.environ['PVCD_CONFIG_FILE']
except: except:
print('ERROR: The "PVCD_CONFIG_FILE" environment variable must be set before starting pvcd.') print('ERROR: The "PVCD_CONFIG_FILE" environment variable must be set before starting pvcvd.')
exit(1) exit(1)
myhostname = socket.gethostname() myhostname = socket.gethostname()
@ -64,11 +64,11 @@ config_values = [
'ipmi_username', 'ipmi_username',
'ipmi_password' 'ipmi_password'
] ]
def readConfig(pvcd_config_file, myhostname): def readConfig(pvcvd_config_file, myhostname):
print('Loading configuration from file {}'.format(pvcd_config_file)) print('Loading configuration from file {}'.format(pvcvd_config_file))
o_config = configparser.ConfigParser() o_config = configparser.ConfigParser()
o_config.read(pvcd_config_file) o_config.read(pvcvd_config_file)
config = {} config = {}
try: try:
@ -97,7 +97,7 @@ def readConfig(pvcd_config_file, myhostname):
return config return config
# Get config # Get config
config = readConfig(pvcd_config_file, myhostname) config = readConfig(pvcvd_config_file, myhostname)
# Check that libvirtd is listening TCP # Check that libvirtd is listening TCP
libvirt_check_name = "qemu+tcp://127.0.0.1:16509/system" libvirt_check_name = "qemu+tcp://127.0.0.1:16509/system"

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# NodeInstance.py - Class implementing a PVC node and run by pvcd # NodeInstance.py - Class implementing a PVC node and run by pvcvd
# Part of the Parallel Virtual Cluster (PVC) system # Part of the Parallel Virtual Cluster (PVC) system
# #
# Copyright (C) 2018 Joshua M. Boniface <joshua@boniface.me> # Copyright (C) 2018 Joshua M. Boniface <joshua@boniface.me>
@ -21,8 +21,8 @@
############################################################################### ###############################################################################
import os, sys, psutil, socket, time, libvirt, kazoo.client, threading, subprocess import os, sys, psutil, socket, time, libvirt, kazoo.client, threading, subprocess
import pvcd.ansiiprint as ansiiprint import pvcvd.ansiiprint as ansiiprint
import pvcd.zkhandler as zkhandler import pvcvd.zkhandler as zkhandler
class NodeInstance(): class NodeInstance():
# Initialization function # Initialization function

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# VMInstance.py - Class implementing a PVC virtual machine and run by pvcd # VMInstance.py - Class implementing a PVC virtual machine and run by pvcvd
# Part of the Parallel Virtual Cluster (PVC) system # Part of the Parallel Virtual Cluster (PVC) system
# #
# Copyright (C) 2018 Joshua M. Boniface <joshua@boniface.me> # Copyright (C) 2018 Joshua M. Boniface <joshua@boniface.me>
@ -21,8 +21,8 @@
############################################################################### ###############################################################################
import os, sys, uuid, socket, time, threading, libvirt, kazoo.client import os, sys, uuid, socket, time, threading, libvirt, kazoo.client
import pvcd.ansiiprint as ansiiprint import pvcvd.ansiiprint as ansiiprint
import pvcd.zkhandler as zkhandler import pvcvd.zkhandler as zkhandler
class VMInstance: class VMInstance:
# Initialization function # Initialization function

View File

@ -21,7 +21,7 @@
############################################################################### ###############################################################################
import kazoo.client import kazoo.client
import pvcd.ansiiprint as ansiiprint import pvcvd.ansiiprint as ansiiprint
# Child list function # Child list function
def listchildren(zk_conn, key): def listchildren(zk_conn, key):