Bug 16022 - bacula-fd misses a dependency bacula-dir (for /usr/sbin/bacula-checkconf)
Summary: bacula-fd misses a dependency bacula-dir (for /usr/sbin/bacula-checkconf)
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 5
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thomas Spuhler
QA Contact:
URL:
Whiteboard: IN_ERRATA feedback
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-22 19:24 CEST by Florian Hubold
Modified: 2015-10-17 00:08 CEST (History)
2 users (show)

See Also:
Source RPM: bacula-7.0.5-14.mga5.src.rpm
CVE:
Status comment:


Attachments

Description Florian Hubold 2015-05-22 19:24:53 CEST
Description of problem:

The systemd service file for bacula-fd contains "ExecStartPre=/usr/sbin/bacula-checkconf $CONFIG" but bacula-fd does not contain a Requires on bacula-dir, hence the start of the bacula-fd service fails:


[root@localhost bacula]# systemctl status bacula-fd.service
รข bacula-fd.service - Bacula-FileDaemon, a Backup-client
   Loaded: loaded (/usr/lib/systemd/system/bacula-fd.service; enabled)
   Active: failed (Result: start-limit) since Fri 2015-05-22 15:15:47 BST; 7s ago
     Docs: man:bacula-fd(8)
  Process: 16399 ExecStartPre=/usr/sbin/bacula-checkconf $CONFIG (code=exited, status=203/EXEC)

May 22 15:15:47 localhost systemd[1]: bacula-fd.service: control process exited, code=exited status=203
May 22 15:15:47 localhost systemd[1]: Failed to start Bacula-FileDaemon, a Backup-client.
May 22 15:15:47 localhost systemd[1]: Unit bacula-fd.service entered failed state.
May 22 15:15:47 localhost systemd[1]: bacula-fd.service failed.
May 22 15:15:47 localhost systemd[1]: start request repeated too quickly for bacula-fd.service
May 22 15:15:47 localhost systemd[1]: Failed to start Bacula-FileDaemon, a Backup-client.
May 22 15:15:47 localhost systemd[1]: Unit bacula-fd.service entered failed state.
May 22 15:15:47 localhost systemd[1]: bacula-fd.service failed.
[root@localhost bacula]# /usr/sbin/bacula-checkconf /etc/bacula/bacula-fd.conf
-bash: /usr/sbin/bacula-checkconf: No such file or directory


Maybe other bacula packages also need a dependency on bacula-dir for /usr/sbin/bacula-checkconf, please check and add as necessary.


Reported via forums: https://forums.mageia.org/en/viewtopic.php?f=15&t=9821


Reproducible: 

Steps to Reproduce:
Samuel Verschelde 2015-05-22 19:39:18 CEST

Whiteboard: (none) => MGA5TOO

David Walser 2015-05-23 13:36:18 CEST

CC: (none) => thomas

Thomas Spuhler 2015-05-30 22:25:14 CEST

Status: NEW => ASSIGNED
Assignee: shlomif => thomas

Comment 1 Thomas Spuhler 2015-05-31 00:03:00 CEST
This bug is now fixed in svn. As soon as I can submit it to updates_testing I will assign it to QA
Comment 2 Florian Hubold 2015-06-01 21:46:16 CEST
For the meantime, added to errata: https://wiki.mageia.org/en/Mageia_5_Errata#bacula_misses_a_dependency_on_.2Fusr.2Fsbin.2Fbacula-checkconf

CC: (none) => doktor5000
Whiteboard: MGA5TOO => MGA5TOO, IN_ERRATA

Comment 3 Thomas Spuhler 2015-06-21 22:16:04 CEST
This bug has now been fixed. The following packages are now in mga5 updates_testing:
bacula-7.0.5-14.1.mga4.src.rpm
lib64bacula7-7.0.5-14.1.mga4.x86_64.rpm
lib64bacula-sql7-7.0.5-14.1.mga4.x86_64.rpm
bacula-common-7.0.5-14.1.mga4.x86_64.rpm
bacula-dir-7.0.5-14.1.mga4.x86_64.rpm
bacula-sd-7.0.5-14.1.mga4.x86_64.rpm
bacula-fd-7.0.5-14.1.mga4.x86_64.rpm
bacula-console-7.0.5-14.1.mga4.x86_64.rpm
bacula-bat-7.0.5-14.1.mga4.x86_64.rpm
bacula-tray-monitor-7.0.5-14.1.mga4.x86_64.rpm
lib64bacula-devel-7.0.5-14.1.mga4.x86_64.rpm
nagios-plugins-bacula-7.0.5-14.1.mga4.x86_64.rpm
bacula-debuginfo-7.0.5-14.1.mga4.x86_64.rpm

and i586 packages

Assigning it to QA

Version: Cauldron => 5
Assignee: thomas => qa-bugs
Whiteboard: MGA5TOO, IN_ERRATA => IN_ERRATA, CAULDRON TOO

Comment 4 claire robinson 2015-06-21 23:52:55 CEST
Please fix in cauldron first.

Version: 5 => Cauldron
Assignee: qa-bugs => thomas
Whiteboard: IN_ERRATA, CAULDRON TOO => IN_ERRATA MGA5TOO

Comment 5 Thomas Spuhler 2015-06-21 23:55:35 CEST
(In reply to claire robinson from comment #4)
> Please fix in cauldron first.

It was fixed in Cauldron about 30 min. later. I increased the rel there to 15.
Comment 6 Thomas Spuhler 2015-06-26 00:25:38 CEST
assigned back to QA

Assignee: thomas => qa-bugs

Comment 7 claire robinson 2015-06-27 13:59:47 CEST
Changing it to a Mageia 5 bug then.

Version: Cauldron => 5
Whiteboard: IN_ERRATA MGA5TOO => IN_ERRATA

Comment 8 claire robinson 2015-06-27 14:01:25 CEST
Except package listed are mageia 4 Thomas. 

Is this fixed in Mageia 5? 
Is Mageia 4 relevant?

Whiteboard: IN_ERRATA => IN_ERRATA feedback

Comment 9 Thomas Spuhler 2015-06-27 17:45:49 CEST
(In reply to claire robinson from comment #8)
> Except package listed are mageia 4 Thomas. 
Ooops, copied them from my local build. 
Yes, they are fixed in mga5. I am going to list them again.

> 
> Is this fixed in Mageia 5? 
> Is Mageia 4 relevant?
No. mga4 is OK.

The following packages are now in mga5 updates_testing:
bacula-7.0.5-14.1.mga5.src.rpm
lib64bacula7-7.0.5-14.1.mga5.x86_64.rpm
lib64bacula-sql7-7.0.5-14.1.mga5.x86_64.rpm
bacula-common-7.0.5-14.1.mga5.x86_64.rpm
bacula-dir-7.0.5-14.1.mga5.x86_64.rpm
bacula-sd-7.0.5-14.1.mga5.x86_64.rpm
bacula-fd-7.0.5-14.1.mga5.x86_64.rpm
bacula-console-7.0.5-14.1.mga5.x86_64.rpm
bacula-bat-7.0.5-14.1.mga5.x86_64.rpm
bacula-tray-monitor-7.0.5-14.1.mga5.x86_64.rpm
lib64bacula-devel-7.0.5-14.1.mga5.x86_64.rpm
nagios-plugins-bacula-7.0.5-14.1.mga5.x86_64.rpm
bacula-debuginfo-7.0.5-14.1.mga5.x86_64.rpm

and i586 packages
Comment 10 Thomas Spuhler 2015-08-04 19:38:04 CEST
There was an additional error detected that prevented the program to write to the log.
The reason was a spelling error in the configure section, logdir vs. log_dir. These packages have it corrected and are now in updates_testing:

bacula-7.0.5-14.2.mga5.src.rpm
lib64bacula7-7.0.5-14.2.mga5.x86_64.rpm
lib64bacula-sql7-7.0.5-14.2.mga5.x86_64.rpm
bacula-common-7.0.5-14.2.mga5.x86_64.rpm
bacula-dir-7.0.5-14.2.mga5.x86_64.rpm
bacula-sd-7.0.5-14.2.mga5.x86_64.rpm
bacula-fd-7.0.5-14.2.mga5.x86_64.rpm
bacula-console-7.0.5-14.2.mga5.x86_64.rpm
bacula-bat-7.0.5-14.2.mga5.x86_64.rpm
bacula-tray-monitor-7.0.5-14.2.mga5.x86_64.rpm
lib64bacula-devel-7.0.5-14.2.mga5.x86_64.rpm
nagios-plugins-bacula-7.0.5-14.2.mga5.x86_64.rpm
bacula-debuginfo-7.0.5-14.2.mga5.x86_64.rpm
and i586 packages
Comment 11 Thomas Spuhler 2015-08-11 01:44:46 CEST
There will be another change coming the next few days.The Catalog isn't run because of perm issue.
Comment 12 claire robinson 2015-09-22 22:11:25 CEST
Assigning back to Thomas in light of bug 16804

Assignee: qa-bugs => thomas

Comment 13 Thomas Spuhler 2015-09-22 22:44:38 CEST
Hmmmm, I forgot about this. 
Well 16804 should take care of this one too.
Shall we mark this one as resolved after 16804 has been pushed to repos?
Comment 14 Thomas Spuhler 2015-10-17 00:08:08 CEST
16804 has been pushed, so closing this as fixed

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.