Bug #18334

katello-backup fails when called from cron

Added by Christine Fouant about 1 month ago. Updated 2 days ago.

Status:Rejected
Priority:High
Assigned To:Andrew Kofink
Category:Backup & Restore
Target version:Team Brad - Iteration 12
Difficulty: Pull request:
Bugzilla link:1330757
Story points-
Velocity based estimate-
ReleaseRecycle BinRelease relationshipAuto

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1330757

Description of problem:
katello-backup fails when called from within a wrapper script triggered by cron

Version-Release number of selected component (if applicable):
katello-common-2.2.0.19-1.el7sat

How reproducible:
Every single time

Steps to Reproduce:
1. katello-backup fails when called from within a wrapper script triggered by cron

Actual results:
The "service" alias doesn't work when attempting to stop the postgresql service. Instead of a backup being created the script fails with the following error:

/usr/bin/katello-backup:25:in ``': No such file or directory - service pos
tgresql stop (Errno::ENOENT)
from /usr/bin/katello-backup.small:25:in `<main>'

Expected results:
Execute katello-backup without error resulting in a satellite backup

Additional info:

Line 25 of /usr/share/katello/script/katello-backup :

`service postgresql stop`

History

#1 Updated by Christine Fouant about 1 month ago

  • Project changed from Katello to Packaging
  • Category deleted (Backup & Restore)

#2 Updated by Eric Helms 29 days ago

  • Project changed from Packaging to Katello

#3 Updated by Justin Sherrill 9 days ago

  • Category set to Backup & Restore
  • Release set to Backlog

#4 Updated by Justin Sherrill 9 days ago

  • Assigned To changed from Christine Fouant to Andrew Kofink
  • Priority changed from Normal to High
  • Target version set to Team Brad - Iteration 12
  • Release changed from Backlog to 3.4.0

#5 Updated by Andrew Kofink 2 days ago

  • Status changed from New to Rejected
  • Release changed from 3.4.0 to Recycle Bin

Also available in: Atom PDF