Rename the virtualization daemon to `pvcvd`.
This commit is contained in:
parent
a629d4898a
commit
f29ba2f458
|
@ -6,7 +6,7 @@ Standards-Version: 3.9.8
|
|||
Homepage: https://www.boniface.me
|
||||
X-Python3-Version: >= 3.2
|
||||
|
||||
Package: pvc-virtdaemon
|
||||
Package: pvc-virtualization-daemon
|
||||
Architecture: all
|
||||
Depends: python3-kazoo, python3-libvirt, python3-psutil, python3-apscheduler, ipmitool, libvirt-daemon-system
|
||||
Suggests: pvc-client
|
||||
|
|
|
@ -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
|
|
@ -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
|
|
@ -33,18 +33,18 @@ import time
|
|||
import configparser
|
||||
import apscheduler.schedulers.background
|
||||
|
||||
import pvcd.ansiiprint as ansiiprint
|
||||
import pvcd.zkhandler as zkhandler
|
||||
import pvcd.VMInstance as VMInstance
|
||||
import pvcd.NodeInstance as NodeInstance
|
||||
import pvcvd.ansiiprint as ansiiprint
|
||||
import pvcvd.zkhandler as zkhandler
|
||||
import pvcvd.VMInstance as VMInstance
|
||||
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
|
||||
try:
|
||||
pvcd_config_file = os.environ['PVCD_CONFIG_FILE']
|
||||
pvcvd_config_file = os.environ['PVCD_CONFIG_FILE']
|
||||
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)
|
||||
|
||||
myhostname = socket.gethostname()
|
||||
|
@ -64,11 +64,11 @@ config_values = [
|
|||
'ipmi_username',
|
||||
'ipmi_password'
|
||||
]
|
||||
def readConfig(pvcd_config_file, myhostname):
|
||||
print('Loading configuration from file {}'.format(pvcd_config_file))
|
||||
def readConfig(pvcvd_config_file, myhostname):
|
||||
print('Loading configuration from file {}'.format(pvcvd_config_file))
|
||||
|
||||
o_config = configparser.ConfigParser()
|
||||
o_config.read(pvcd_config_file)
|
||||
o_config.read(pvcvd_config_file)
|
||||
config = {}
|
||||
|
||||
try:
|
||||
|
@ -97,7 +97,7 @@ def readConfig(pvcd_config_file, myhostname):
|
|||
return config
|
||||
|
||||
# Get config
|
||||
config = readConfig(pvcd_config_file, myhostname)
|
||||
config = readConfig(pvcvd_config_file, myhostname)
|
||||
|
||||
# Check that libvirtd is listening TCP
|
||||
libvirt_check_name = "qemu+tcp://127.0.0.1:16509/system"
|
|
@ -1,6 +1,6 @@
|
|||
#!/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
|
||||
#
|
||||
# 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 pvcd.ansiiprint as ansiiprint
|
||||
import pvcd.zkhandler as zkhandler
|
||||
import pvcvd.ansiiprint as ansiiprint
|
||||
import pvcvd.zkhandler as zkhandler
|
||||
|
||||
class NodeInstance():
|
||||
# Initialization function
|
|
@ -1,6 +1,6 @@
|
|||
#!/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
|
||||
#
|
||||
# Copyright (C) 2018 Joshua M. Boniface <joshua@boniface.me>
|
||||
|
@ -21,8 +21,8 @@
|
|||
###############################################################################
|
||||
|
||||
import os, sys, uuid, socket, time, threading, libvirt, kazoo.client
|
||||
import pvcd.ansiiprint as ansiiprint
|
||||
import pvcd.zkhandler as zkhandler
|
||||
import pvcvd.ansiiprint as ansiiprint
|
||||
import pvcvd.zkhandler as zkhandler
|
||||
|
||||
class VMInstance:
|
||||
# Initialization function
|
|
@ -21,7 +21,7 @@
|
|||
###############################################################################
|
||||
|
||||
import kazoo.client
|
||||
import pvcd.ansiiprint as ansiiprint
|
||||
import pvcvd.ansiiprint as ansiiprint
|
||||
|
||||
# Child list function
|
||||
def listchildren(zk_conn, key):
|
Loading…
Reference in New Issue