Bug 347534

Summary: Backup - /usr/lib/YaST2/bin/backup_cron stopped working after the YaST security update
Product: [openSUSE] openSUSE 10.3 Reporter: Lukas Ocilka <locilka>
Component: YaST2Assignee: Lukas Ocilka <locilka>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P5 - None CC: ast, lslezak, mvidner
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Lukas Ocilka 2007-12-11 11:40:39 UTC
-------- Forwarded message --------
Subject: [Fwd: Cron <root@linux>  /usr/lib/YaST2/bin/backup_cron
"profile=backup-sistema"]
Date: Mon, 10 Dec 2007 16:35:43 -0500
From: Angelo Caprilli <xxxx@xxxxxxxxxx.xxx>
To: lslezak@suse.cz

Hello there!

There is something strange using the system backup packaged with
OpenSuse 10.3. I cannot run the backup with the cron job. This is the
original command launched by the cron job (it was built by Yast
automatically):

/usr/lib/YaST2/bin/backup_cron "profile=backup-sistema"

I begun having this problem with OpenSuse 10.2 in November. Probably a
security update has corrupted the script backup_cron. In fact it does
not work either using cron or a terminal. I uninstalled then reinstalled
the backup package but unfortunately only the updated version is
downloaded and it does not work. Doing a manual backup, it works perfectly.

Below I am reproducing the email sent by the cron job; if you want I can
send you the script file.

Thank you for your help.

Angelo Caprilli

-------- Original Message --------
Subject: Cron <root@linux>  /usr/lib/YaST2/bin/backup_cron
"profile=backup-sistema"
Date: Mon, 10 Dec 2007 16:01:01 -0500 (EST)
From: root@linux.site
To: root@linux.site

No such client module backup

Run 'yast2 -h' for help on usage
Comment 1 Lukas Ocilka 2007-12-11 13:40:52 UTC
It seems the bug is caused by using 'testsuite' instead of 'UI' UI-type in the /usr/lib/YaST2/bin/backup_cron script

Replacing the line...

nice -n 15 /usr/lib/YaST2/bin/y2base backup '("cron")' '("'$PROFILE'")' testsuite > /dev/null

...with...

nice -n 15 /usr/lib/YaST2/bin/y2base backup '("cron")' '("'$PROFILE'")' UI > /dev/null

...fixes the problem (on my newly installed 10.3 with updates).

The problem was caused by implementing feature #120292 "UI as a namespace" in yast2-core-2.15.7 (openSUSE 10.2).

--- --- ---
We need a maintenance update for 10.2 and 10.3.
Ast: Please, provide a maintenance update if /needed/.
Thanks :)
--- --- ---
Comment 5 Lukas Ocilka 2007-12-14 17:36:09 UTC
10.2 works well without applying any patch (no need to update)
10.3 works well with the patch in comment #1
Comment 6 Lukas Ocilka 2007-12-14 17:42:32 UTC
- Fixed running the backup in a 'cron' mode. UI named 'testsuite'
  has been renamed to 'UI' in yast2-core-2.15.7 (#347534).
- Adjusted RPM dependencies.
- 2.15.6

Will be in autobuild soon.
Comment 7 Anja Stock 2008-01-02 12:53:42 UTC
released