* Updated striker-parse-oui to only run if/when the system has been running for at least one hour.

Signed-off-by: Digimer <digimer@alteeve.ca>
main
Digimer 3 years ago
parent b4362eb643
commit f2d06fa9b1
  1. 47
      notes
  2. 1
      share/words.xml
  3. 4
      tools/anvil-daemon
  4. 15
      tools/striker-parse-oui

47
notes

@ -15,6 +15,13 @@ snmp -S enable -c1 private -a1 writeplus
snmp -S enable -c2 public -a2 writeplus
/root/ci-tools/ci-destroy-anvil-bm-vm
/root/ci-tools/ci-setup-anvil-bm-vm rhel-8 ci ci
watch 'echo "striker 1"; ssh root@an-striker01 "grep ^database /etc/anvil/anvil.conf | grep host"; echo "striker 2"; ssh root@an-striker02 "grep ^database /etc/anvil/anvil.conf | grep host"; echo "node 1"; ssh root@an-a01n01 "grep ^database /etc/anvil/anvil.conf | grep host"; echo "node 2"; ssh root@an-a01n02 "grep ^database /etc/anvil/anvil.conf | grep host"; echo "dr 1"; ssh root@an-a01dr01 "grep ^database /etc/anvil/anvil.conf | grep host";'
Anvil! to Anvil! live migration;
1. Create LVs
2. Make sure /etc/hosts is populated
@ -66,18 +73,6 @@ export python=python3
============
DISABLE KSM!
- https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_tuning_and_optimization_guide/chap-ksm
NEXT; -
RHEL 8 package changes:
chrony replaces ntp
cockpit replaces virt-manager (deprecated)
e1000e replaces e1000 driver
tmux replaces screen
iproute2 replaces bridge-utils (See "ip link" and man bridge.)
==] UEFI Setup [======================================================================
ignoredisk --only-use=vdb,vda
@ -120,6 +115,9 @@ x = Network;
- SN = 100 + network
ie: SN1 = 10.101.y.z
SN2 = 10.102.y.z
- MN = 199 (only 1, always back-to-back between nodes 1 and 2)
ie: MN1 = 10.199.y.z
y = Device Type.
Foudation Pack;
@ -149,14 +147,29 @@ RHEL 8 Firewall
=============================
### Nodes
* BCN Ports
TCP 22 sshd
TCP 2224 pcsd It is crucial to open port 2224 in such a way that pcs from any node can talk to all nodes in the cluster, including itself.
UDP 5404 corosync Required on corosync nodes if corosync is configured for multicast UDP
UDP 5405 corosync Required on all corosync nodes (needed by corosync)
TCP 5900+ vnc
TCP 49152-49215 virsh live migration - migration_port_min and migration_port_max attributes in the /etc/libvirt/qemu.conf
* SN Ports (Pull ports from DRBD resource config)
TCP 7788+ drbd 1 port per resource
* IFN Ports
TCP 22 sshd
MN Ports
TCP 49152-49215 virsh mn live migration - migration_port_min and migration_port_max attributes in the /etc/libvirt/qemu.conf
Ports we care about
Porto Number Used by Nets Description
TCP 2224 pcsd bcn It is crucial to open port 2224 in such a way that pcs from any node can talk to all nodes in the cluster, including itself.
UDP 5404 corosync bcn Required on corosync nodes if corosync is configured for multicast UDP
UDP 5405 corosync bcn Required on all corosync nodes (needed by corosync)
TCP 7788+ drbd sn 1 port per resource
TCP 49152-49215 virsh bcn live migration - migration_port_min and migration_port_max attributes in the /etc/libvirt/qemu.conf
NOTE: DHCP listens to raw sockets and ignores firewalld rules. We need to stop dhcpd directly - https://kb.isc.org/docs/aa-00378

@ -2127,6 +2127,7 @@ The file: [#!variable!file!#] needs to be updated. The difference is:
<key name="log_0703">The timestamp has been updated from: [#!variable!old_time!#] to: [#!variable!new_time!#].</key>
<key name="log_0704"><![CDATA[[ Error ] - The method Database->read_state() was called but both the 'state_name' and 'state_uuid' parameters were not passed or both were empty.]]></key>
<key name="log_0705">Forcing the dailing resync and checking to clear records in the history schema no longer in public schema.</key>
<key name="log_0706">Updating the OUI list will happen after the system has been up for at least an hour. You can force an update now by running 'striker-parse-oui --force' at the command line.</key>
<!-- Messages for users (less technical than log entries), though sometimes used for logs, too. -->
<key name="message_0001">The host name: [#!variable!target!#] does not resolve to an IP address.</key>

@ -698,8 +698,8 @@ sub handle_periodic_tasks
# Now check to see if it's time to run daily tasks.
if ($now_time >= $anvil->data->{timing}{next_daily_check})
{
# Make sure ksm and ksmtuned are disabled.
foreach my $daemon ("ksm.service", "ksmtuned.service")
# Make sure ksm, ksmtuned and tuned are disabled.
foreach my $daemon ("ksm.service", "ksmtuned.service", "tuned.service")
{
my $status = $anvil->System->check_daemon({daemon => $daemon});
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => {

@ -152,11 +152,24 @@ sub check_if_time
my ($anvil) = @_;
# NOTE: We only scan once a day, unless 'force' is used.
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { "switches::force" => $anvil->data->{switches}{force} }});
if ($anvil->data->{switches}{force})
{
return(0);
}
elsif (not $anvil->data->{switches}{'job-uuid'})
# What's the uptime? If the uptime is less than an hour, don't run.
my $uptime = $anvil->Get->uptime;
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => { uptime => $uptime }});
if ($uptime < 3600)
{
# Don't run.
$anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 1, 'print' => 1, key => "log_0706"});
update_progress($anvil, 100, "log_0706");
$anvil->nice_exit({exit_code => 1});
}
if (not $anvil->data->{switches}{'job-uuid'})
{
# No job_uuid, so a manual call.
return(0);

Loading…
Cancel
Save