diff --git a/Anvil/Tools/System.pm b/Anvil/Tools/System.pm index 1d837517..d4a28242 100644 --- a/Anvil/Tools/System.pm +++ b/Anvil/Tools/System.pm @@ -693,6 +693,9 @@ sub check_memory my $debug = defined $parameter->{debug} ? $parameter->{debug} : 3; $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => $debug, key => "log_0125", variables => { method => "System->check_memory()" }}); + ### TODO: Re-enable this when we're sure it's not being killed while processing files. + return(0); + my $program_name = defined $parameter->{program_name} ? $parameter->{program_name} : ""; $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { program_name => $program_name }}); if (not $program_name) diff --git a/share/words.xml b/share/words.xml index 0f3b4ec1..ef16a357 100644 --- a/share/words.xml +++ b/share/words.xml @@ -3250,7 +3250,7 @@ Proceed? [y/N] - Target: [#!variable!device_target!#], boot: [#!variable!say_boot!#], ISO: [#!variable!device_path!#] Subnodes: DR Hosts: - |- Name: [#!variable!host_name!#], UUID: [#!ariable!host_uuid!#] + |- Name: [#!variable!host_name!#], UUID: [#!variable!host_uuid!#] |- Volume: [#!variable!volume_number!#], backing device: [#!variable!backing_disk!#], DRBD minor: [#!variable!device_minor!#], size: [#!variable!volume_size!#] ^- In storage group: [#!variable!storage_group_name!#], size: [#!variable!storage_group_size!#], free: [#!variable!storage_group_free_space!#] Anvil! Node: [#!variable!anvil_name!#], UUID: [#!variable!anvil_uuid!#] - Description: [#!variable!anvil_description!#] diff --git a/tools/Makefile.am b/tools/Makefile.am index bdd4fddd..38f4a110 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -26,6 +26,7 @@ dist_sbin_SCRIPTS = \ anvil-manage-storage-groups \ anvil-manage-vnc-pipe \ anvil-migrate-server \ + anvil-monitor-network \ anvil-network-profiler \ anvil-parse-fence-agents \ anvil-pcs-wrapper \ diff --git a/tools/striker-collect-debug b/tools/striker-collect-debug index 1f5a5b08..121dab7b 100755 --- a/tools/striker-collect-debug +++ b/tools/striker-collect-debug @@ -40,6 +40,10 @@ $anvil->Get->switches({list => [ $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => $anvil->data->{switches}}); $anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 2, key => "log_0115", variables => { program => $THIS_FILE }}); +### TODO: Disable this before merging into PR +$anvil->Log->level({set => 2}); +$anvil->Log->secure({set => 1}); + # Connect to the database(s). If we have no connections, we'll proceed anyway as one of the 'run_once' tasks # is to setup the database server. $anvil->Database->connect(); @@ -551,8 +555,9 @@ sub collect_remote_data # If this is a node, grab the shared files. if ($this_host_type eq "node") { + ### NOTE: The pcs wrapper was timing out when dumping the CIB, hence statically calling pcs below. print "- Collecting the cluster information base (CIB)... "; - $shell_call = $anvil->data->{path}{exe}{pcs}." cluster cib > /tmp/cib.xml"; + $shell_call = "/usr/sbin/pcs cluster cib > /tmp/cib.xml"; $anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { shell_call => $shell_call }}); ($output, $return_code) = $anvil->System->call({shell_call => $shell_call}); diff --git a/units/anvil-daemon.service b/units/anvil-daemon.service index c9915ceb..889ca9cb 100644 --- a/units/anvil-daemon.service +++ b/units/anvil-daemon.service @@ -7,6 +7,7 @@ Type=simple ExecStart=/usr/sbin/anvil-daemon ExecStop=/bin/kill -WINCH ${MAINPID} Restart=always +RestartSec=60 [Install] WantedBy=multi-user.target diff --git a/units/scancore.service b/units/scancore.service index 17c33651..c9965798 100644 --- a/units/scancore.service +++ b/units/scancore.service @@ -7,6 +7,7 @@ Type=simple ExecStart=/usr/sbin/scancore ExecStop=/bin/kill -WINCH ${MAINPID} Restart=always +RestartSec=60 [Install] WantedBy=multi-user.target