Project

General

Profile

Actions

action #166433

closed

[alert] Waves of emails due to manual changes in /opt/openqa-trigger-from-obs size:S

Added by livdywan 3 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Observation

Many emails with the subject Cron <geekotest@ariel> git -C /opt/openqa-trigger-from-obs pull --quiet --rebase origin master and the contents

error: cannot pull with rebase: You have unstaged changes.
error: please commit or stash them.

Suggestions

  • Lookup ways to deduplicate or throttle cron emails
  • Replace such cron jobs with systemd timers
    • Add the timer definition to the git repo
    • Copy the service/timer to avoid it being changed if the git repo is rolled back

Related issues 3 (1 open2 closed)

Related to openQA Infrastructure (public) - action #166430: [tools] Keep a hardlink to iso in repo folder for agama testResolvedmkittler2024-09-06

Actions
Copied to openQA Infrastructure (public) - action #166721: [alert] Waves of emails due to kex_exchange_identification: Connection closed by remote host errors size:SWorkable

Actions
Copied to openQA Infrastructure (public) - action #166739: Consistent alerts for failed systemd services on o3 size:SResolvedtinita2024-09-122024-10-18

Actions
Actions #1

Updated by livdywan 3 months ago

Seems like this case was caused by #166430. For reference:

diff --git a/t/obs/systemsmanagement:Agama:Devel/s390x/files_iso.lst b/t/obs/systemsmanagemen
t:Agama:Devel/s390x/files_iso.lst                                                            
index 7141d0d..063d298 100644                                                                
--- a/t/obs/systemsmanagement:Agama:Devel/s390x/files_iso.lst                                
+++ b/t/obs/systemsmanagement:Agama:Devel/s390x/files_iso.lst                                
@@ -2,3 +2,7 @@ agama-installer.aarch64-9.0.0-openSUSE-Build17.9.iso                         
 agama-installer.ppc64le-9.0.0-openSUSE-Build17.9.iso                                        
 agama-installer.s390x-9.0.0-openSUSE-Build17.9.iso                                          
 agama-installer.x86_64-9.0.0-openSUSE-Build17.9.iso                                         
+agama-installer.aarch64-9.0.0-openSUSE-Build17.19.iso                                       
+agama-installer.ppc64le-9.0.0-openSUSE-Build17.19.iso                                       
+agama-installer.s390x-9.0.0-openSUSE-Build17.19.iso                                         
+agama-installer.x86_64-9.0.0-openSUSE-Build17.19.iso                                        
diff --git a/xml/obs/systemsmanagement:Agama:Devel.xml b/xml/obs/systemsmanagement:Agama:Deve
l.xml                                                                                        
index a398145..972c3aa 100644                                                                
--- a/xml/obs/systemsmanagement:Agama:Devel.xml                                              
+++ b/xml/obs/systemsmanagement:Agama:Devel.xml                                              
@@ -6,7 +6,7 @@                                                                              
     <batch name="base" archs="86_64 aarch64 ppc64le">                                       
         <flavor name="agama-installer" folder="images/*/agama-installer:openSUSE/" iso="1" m
edia1="0"/>                                                                                  
     </batch>                                                                                
-    <batch name="s390x" archs="s390x" iso_path="iso">                                       
+    <batch name="s390x" archs="s390x">                                                      
        <flavor name="agama-installer" folder="images/*/agama-installer:openSUSE/" iso="extra
ct_as_repo" media1="0"/>                                                                     
     </batch>                                                                                
 </openQA>
Actions #2

Updated by livdywan 3 months ago

  • Tags changed from alert, reactive work, o3 to alert, reactive work, o3, infra
Actions #3

Updated by tinita 3 months ago

  • Related to action #166430: [tools] Keep a hardlink to iso in repo folder for agama test added
Actions #4

Updated by livdywan 3 months ago

  • Status changed from In Progress to Feedback
  • Replace such cron jobs with systemd timers

So I replaced /etc/cron.d/openqa-trigger-from-obs-update-git (-*/3 * * * * geekotest git -C /opt/openqa-trigger-from-obs pull --quiet --rebase origin master) with openqa-trigger-from-obs-update.{service,timer}

Actions #5

Updated by livdywan 3 months ago

livdywan wrote in #note-4:

  • Replace such cron jobs with systemd timers

So I replaced /etc/cron.d/openqa-trigger-from-obs-update-git (-*/3 * * * * geekotest git -C /opt/openqa-trigger-from-obs pull --quiet --rebase origin master) with openqa-trigger-from-obs-update.{service,timer}

@mkittler suggested to add the timer/service to git and maybe just link it, so I'll look into that before resolving the ticket.

Actions #6

Updated by livdywan 3 months ago

  • Subject changed from [alert] Waves of emails due to manual changes in /opt/openqa-trigger-from-obs to [alert] Waves of emails due to manual changes in /opt/openqa-trigger-from-obs size:S
  • Description updated (diff)
Actions #7

Updated by livdywan 3 months ago

@mkittler suggested to add the timer/service to git and maybe just link it, so I'll look into that before resolving the ticket.

https://github.com/os-autoinst/openqa-trigger-from-obs/pull/268

Actions #8

Updated by livdywan 3 months ago

  • Copied to action #166721: [alert] Waves of emails due to kex_exchange_identification: Connection closed by remote host errors size:S added
Actions #9

Updated by livdywan 3 months ago

  • Status changed from Feedback to Resolved

livdywan wrote in #note-7:

@mkittler suggested to add the timer/service to git and maybe just link it, so I'll look into that before resolving the ticket.

https://github.com/os-autoinst/openqa-trigger-from-obs/pull/268

sudo ln -s systemd/openqa-trigger-from-obs-update.* /etc/systemd/system
Actions #10

Updated by tinita 3 months ago

Just mentioning that with this we won't get alerted for o3 anymore if the timer fails.
OTOH, on osd, where we don't get cronjob emails, we now will be alerted by munin.

Actions #11

Updated by livdywan 3 months ago

  • Copied to action #166739: Consistent alerts for failed systemd services on o3 size:S added
Actions #12

Updated by livdywan 3 months ago

tinita wrote in #note-10:

Just mentioning that with this we won't get alerted for o3 anymore if the timer fails.

I guess this wasn't covered explicitly by the estimation. To my mind this is out of scope. Errors end up in the journal. Another existing example would be openqa-continuous-update, which can be checked via sudo journalctl -r -u openqa-continuous-update | grep rror to see similar errors.

We should have a follow-up ticket on that, though, to actually consider the status quo. So thank you for raising that. I filed #166739.

Actions

Also available in: Atom PDF