Skip to content

Commit 11f48a5

Browse files
authored
Merge branch 'main' into mlm52-gm
2 parents c8bc03b + 072069d commit 11f48a5

4 files changed

Lines changed: 11 additions & 7 deletions

File tree

mgradm/cmd/backup/db/disable.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ func Disable(flags *Flagpole) error {
5959
if err := systemd.StartService(podman.DBService); err != nil {
6060
return err
6161
}
62+
if err := cnx.WaitForHealthcheck(); err != nil {
63+
return err
64+
}
6265
}
6366
return Status()
6467
}

mgradm/cmd/backup/db/enable.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,6 @@ func Enable(force bool) error {
5858
return err
5959
}
6060

61-
// Check if all is well configured
62-
if err := CheckStatus(); err != nil {
63-
return err
64-
}
65-
6661
// Prepare initial snapshot. For this container either must be running or we need to start container database
6762
log.Info().Msg(L("Starting database…"))
6863
if err := systemd.StartService(podman.DBService); err != nil {
@@ -72,6 +67,11 @@ func Enable(force bool) error {
7267
return err
7368
}
7469

70+
// Check if all is well configured
71+
if err := CheckStatus(); err != nil {
72+
return err
73+
}
74+
7575
if err := RunBaseBackup(cnx); err != nil {
7676
return err
7777
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
- Disable SSL on db during split (bsc#12099).
2-
- Do not call uyuni-postgres-config.sh in mgradm (bsc#12099).
1+
- Disable SSL on db during split (bsc#1267980).
2+
- Do not call uyuni-postgres-config.sh in mgradm (bsc#1267980).
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Check backup status only after database is started (bsc#1262492)

0 commit comments

Comments
 (0)