Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use rocky mirror script #1245

Merged
merged 5 commits into from
Feb 7, 2022
Merged

feat: use rocky mirror script #1245

merged 5 commits into from
Feb 7, 2022

Conversation

singingtelegram
Copy link
Member

No description provided.

@ocfjenkins
Copy link

ocfjenkins bot commented Feb 7, 2022

Errored hosts (0)

Changed hosts (1)

Unaffected hosts (78)


Changed hosts
diff for fallingrocks.ocf.berkeley.edu
*******************************************
  File[/etc/systemd/system/rocky.service] =>
   parameters =>
     content =>
      @@ -5,5 +5,5 @@
       User=mirrors
       Type=simple
      -ExecStart=/opt/mirrors/project/rocky/sync-archive
      +ExecStart=/opt/mirrors/project/rocky/sync-archive > /dev/null 2>&1
       # one day should be good enough for anyone
       RuntimeMaxSec=86400
*******************************************
  File[/etc/systemd/system/rocky.timer] =>
   parameters =>
     content =>
      @@ -5,5 +5,5 @@
      _
       [Timer]
      -OnCalendar=*-*-* 1/3:33:00
      +OnCalendar=*-*-* 1/4:33:00
      _
       [Install]
*******************************************
  Ocf::Systemd::Timer[rocky] =>
   parameters =>
     service_content =>
      @@ -5,5 +5,5 @@
       User=mirrors
       Type=simple
      -ExecStart=/opt/mirrors/project/rocky/sync-archive
      +ExecStart=/opt/mirrors/project/rocky/sync-archive > /dev/null 2>&1
       # one day should be good enough for anyone
       RuntimeMaxSec=86400
     timer_content =>
      @@ -5,5 +5,5 @@
      _
       [Timer]
      -OnCalendar=*-*-* 1/3:33:00
      +OnCalendar=*-*-* 1/4:33:00
      _
       [Install]
*******************************************
  Ocf_mirrors::Timer[rocky] =>
   parameters =>
     exec_start =>
      - /opt/mirrors/project/rocky/sync-archive
      + /opt/mirrors/project/rocky/sync-archive > /dev/null 2>&1
     hour =>
      - 1/3
      + 1/4
*******************************************
Unaffected hosts
acid.ocf.berkeley.edu
afterhours.ocf.berkeley.edu
anthrax.ocf.berkeley.edu
arsenic.ocf.berkeley.edu
asteroid.ocf.berkeley.edu
autocrat.ocf.berkeley.edu
avalanche.ocf.berkeley.edu
bedbugs.ocf.berkeley.edu
bigbang.ocf.berkeley.edu
bigrip.ocf.berkeley.edu
blackout.ocf.berkeley.edu
blight.ocf.berkeley.edu
blizzard.ocf.berkeley.edu
budgetcut.ocf.berkeley.edu
calamity.ocf.berkeley.edu
chaos.ocf.berkeley.edu
corruption.ocf.berkeley.edu
coup.ocf.berkeley.edu
cyanide.ocf.berkeley.edu
cyclone.ocf.berkeley.edu
dataloss.ocf.berkeley.edu
deadlock.ocf.berkeley.edu
death.ocf.berkeley.edu
dementors.ocf.berkeley.edu
democracy.ocf.berkeley.edu
destruction.ocf.berkeley.edu
drought.ocf.berkeley.edu
falsevacuum.ocf.berkeley.edu
famine.ocf.berkeley.edu
fire.ocf.berkeley.edu
firestorm.ocf.berkeley.edu
firewhirl.ocf.berkeley.edu
flood.ocf.berkeley.edu
fraud.ocf.berkeley.edu
fukushima.ocf.berkeley.edu
gridlock.ocf.berkeley.edu
hailstorm.ocf.berkeley.edu
headcrash.ocf.berkeley.edu
heatwave.ocf.berkeley.edu
hellfire.ocf.berkeley.edu
hozer-74.ocf.berkeley.edu
hurricane.ocf.berkeley.edu
invasion.ocf.berkeley.edu
jaws.ocf.berkeley.edu
lethe.ocf.berkeley.edu
lightning.ocf.berkeley.edu
lockdown.ocf.berkeley.edu
madcow.ocf.berkeley.edu
maelstrom.ocf.berkeley.edu
meteorstorm.ocf.berkeley.edu
nuke.ocf.berkeley.edu
outbreak.ocf.berkeley.edu
pandemic.ocf.berkeley.edu
panic.ocf.berkeley.edu
pestilence.ocf.berkeley.edu
pileup.ocf.berkeley.edu
plague.ocf.berkeley.edu
pox.ocf.berkeley.edu
reaper.ocf.berkeley.edu
riptide.ocf.berkeley.edu
scurvy.ocf.berkeley.edu
segfault.ocf.berkeley.edu
singularity.ocf.berkeley.edu
sinkhole.ocf.berkeley.edu
solarflare.ocf.berkeley.edu
supernova.ocf.berkeley.edu
surge.ocf.berkeley.edu
tempest.ocf.berkeley.edu
thunder.ocf.berkeley.edu
tsunami.ocf.berkeley.edu
typhoon.ocf.berkeley.edu
vampires.ocf.berkeley.edu
venom.ocf.berkeley.edu
war.ocf.berkeley.edu
whiteout.ocf.berkeley.edu
wildfire.ocf.berkeley.edu
worm.ocf.berkeley.edu
y2k.ocf.berkeley.edu

Jenkins

@@ -10,8 +10,8 @@

ocf_mirrors::timer {
'rocky':
exec_start => '/opt/mirrors/project/rocky/sync-archive',
hour => '1/3',
exec_start => '/opt/mirrors/project/rocky/sync-archive > /dev/null 2>&1',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why throw out the output? this gets stored in journalctl and could be useful to inspect if something goes wrong

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed, although the output is redirected to logfile

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like they have two "logs", one is intended to be public facing (saved in /opt/mirrors/project/rocky) and the other uses the logger command to write directly to the syslog. So I spoke a bit too soon here, it probably doesn't matter if we redirect the /dev/null or not, though it certainly doesn't hurt to keep stdout around in case it ends up being useful for debugging purposes later on.

@ocfjenkins
Copy link

ocfjenkins bot commented Feb 7, 2022

Errored hosts (0)

Changed hosts (1)

Unaffected hosts (78)


Changed hosts
diff for fallingrocks.ocf.berkeley.edu
*******************************************
  File[/etc/systemd/system/rocky.timer] =>
   parameters =>
     content =>
      @@ -5,5 +5,5 @@
      _
       [Timer]
      -OnCalendar=*-*-* 1/3:33:00
      +OnCalendar=*-*-* 1/4:33:00
      _
       [Install]
*******************************************
  Ocf::Systemd::Timer[rocky] =>
   parameters =>
     timer_content =>
      @@ -5,5 +5,5 @@
      _
       [Timer]
      -OnCalendar=*-*-* 1/3:33:00
      +OnCalendar=*-*-* 1/4:33:00
      _
       [Install]
*******************************************
  Ocf_mirrors::Timer[rocky] =>
   parameters =>
     hour =>
      - 1/3
      + 1/4
*******************************************
Unaffected hosts
acid.ocf.berkeley.edu
afterhours.ocf.berkeley.edu
anthrax.ocf.berkeley.edu
arsenic.ocf.berkeley.edu
asteroid.ocf.berkeley.edu
autocrat.ocf.berkeley.edu
avalanche.ocf.berkeley.edu
bedbugs.ocf.berkeley.edu
bigbang.ocf.berkeley.edu
bigrip.ocf.berkeley.edu
blackout.ocf.berkeley.edu
blight.ocf.berkeley.edu
blizzard.ocf.berkeley.edu
budgetcut.ocf.berkeley.edu
calamity.ocf.berkeley.edu
chaos.ocf.berkeley.edu
corruption.ocf.berkeley.edu
coup.ocf.berkeley.edu
cyanide.ocf.berkeley.edu
cyclone.ocf.berkeley.edu
dataloss.ocf.berkeley.edu
deadlock.ocf.berkeley.edu
death.ocf.berkeley.edu
dementors.ocf.berkeley.edu
democracy.ocf.berkeley.edu
destruction.ocf.berkeley.edu
drought.ocf.berkeley.edu
falsevacuum.ocf.berkeley.edu
famine.ocf.berkeley.edu
fire.ocf.berkeley.edu
firestorm.ocf.berkeley.edu
firewhirl.ocf.berkeley.edu
flood.ocf.berkeley.edu
fraud.ocf.berkeley.edu
fukushima.ocf.berkeley.edu
gridlock.ocf.berkeley.edu
hailstorm.ocf.berkeley.edu
headcrash.ocf.berkeley.edu
heatwave.ocf.berkeley.edu
hellfire.ocf.berkeley.edu
hozer-74.ocf.berkeley.edu
hurricane.ocf.berkeley.edu
invasion.ocf.berkeley.edu
jaws.ocf.berkeley.edu
lethe.ocf.berkeley.edu
lightning.ocf.berkeley.edu
lockdown.ocf.berkeley.edu
madcow.ocf.berkeley.edu
maelstrom.ocf.berkeley.edu
meteorstorm.ocf.berkeley.edu
nuke.ocf.berkeley.edu
outbreak.ocf.berkeley.edu
pandemic.ocf.berkeley.edu
panic.ocf.berkeley.edu
pestilence.ocf.berkeley.edu
pileup.ocf.berkeley.edu
plague.ocf.berkeley.edu
pox.ocf.berkeley.edu
reaper.ocf.berkeley.edu
riptide.ocf.berkeley.edu
scurvy.ocf.berkeley.edu
segfault.ocf.berkeley.edu
singularity.ocf.berkeley.edu
sinkhole.ocf.berkeley.edu
solarflare.ocf.berkeley.edu
supernova.ocf.berkeley.edu
surge.ocf.berkeley.edu
tempest.ocf.berkeley.edu
thunder.ocf.berkeley.edu
tsunami.ocf.berkeley.edu
typhoon.ocf.berkeley.edu
vampires.ocf.berkeley.edu
venom.ocf.berkeley.edu
war.ocf.berkeley.edu
whiteout.ocf.berkeley.edu
wildfire.ocf.berkeley.edu
worm.ocf.berkeley.edu
y2k.ocf.berkeley.edu

Jenkins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants