Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
d2c0d868c4 | |||
d63e757c32 | |||
5d08ad9573 |
2
debian/control
vendored
2
debian/control
vendored
@ -8,7 +8,7 @@ X-Python3-Version: >= 3.2
|
|||||||
|
|
||||||
Package: pvc-daemon-node
|
Package: pvc-daemon-node
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: systemd, pvc-daemon-common, python3-kazoo, python3-psutil, python3-apscheduler, python3-libvirt, python3-psycopg2, python3-dnspython, python3-yaml, python3-distutils, python3-rados, ipmitool, libvirt-daemon-system, arping, vlan, bridge-utils, dnsmasq, nftables, pdns-server, pdns-backend-pgsql
|
Depends: systemd, pvc-daemon-common, python3-kazoo, python3-psutil, python3-apscheduler, python3-libvirt, python3-psycopg2, python3-dnspython, python3-yaml, python3-distutils, python3-rados, python3-gevent, ipmitool, libvirt-daemon-system, arping, vlan, bridge-utils, dnsmasq, nftables, pdns-server, pdns-backend-pgsql
|
||||||
Suggests: pvc-client-api, pvc-client-cli
|
Suggests: pvc-client-api, pvc-client-cli
|
||||||
Description: Parallel Virtual Cluster node daemon (Python 3)
|
Description: Parallel Virtual Cluster node daemon (Python 3)
|
||||||
A KVM/Zookeeper/Ceph-based VM and private cloud manager
|
A KVM/Zookeeper/Ceph-based VM and private cloud manager
|
||||||
|
@ -35,7 +35,7 @@ def fenceNode(node_name, zk_conn, config, logger):
|
|||||||
failcount = 0
|
failcount = 0
|
||||||
while failcount < failcount_limit:
|
while failcount < failcount_limit:
|
||||||
# Wait 5 seconds
|
# Wait 5 seconds
|
||||||
time.sleep(config.keepalive_interval)
|
time.sleep(config['keepalive_interval'])
|
||||||
# Get the state
|
# Get the state
|
||||||
node_daemon_state = zkhandler.readdata(zk_conn, '/nodes/{}/daemonstate'.format(node_name))
|
node_daemon_state = zkhandler.readdata(zk_conn, '/nodes/{}/daemonstate'.format(node_name))
|
||||||
# Is it still 'dead'
|
# Is it still 'dead'
|
||||||
@ -57,7 +57,7 @@ def fenceNode(node_name, zk_conn, config, logger):
|
|||||||
# Shoot it in the head
|
# Shoot it in the head
|
||||||
fence_status = rebootViaIPMI(ipmi_hostname, ipmi_username, ipmi_password, logger)
|
fence_status = rebootViaIPMI(ipmi_hostname, ipmi_username, ipmi_password, logger)
|
||||||
# Hold to ensure the fence takes effect and system stabilizes
|
# Hold to ensure the fence takes effect and system stabilizes
|
||||||
time.sleep(config.keepalive_interval * 2)
|
time.sleep(config['keepalive_interval'] * 2)
|
||||||
|
|
||||||
# Force into secondary network state if needed
|
# Force into secondary network state if needed
|
||||||
if node_name in config['coordinators']:
|
if node_name in config['coordinators']:
|
||||||
|
Reference in New Issue
Block a user