From: Mantis B. T. <no...@bu...> - 2013-02-19 14:11:35
|
The following issue has been CLOSED ====================================================================== http://bugs.bacula.org/view.php?id=1399 ====================================================================== Reported By: AlexB Assigned To: ====================================================================== Project: bacula Issue ID: 1399 Category: Director Reproducibility: always Severity: minor Priority: normal Status: closed Resolution: fixed Fixed in Version: ====================================================================== Date Submitted: 2009-10-29 15:14 UTC Last Modified: 2013-02-19 14:11 UTC ====================================================================== Summary: Migration/Copy jobs do not honour overrides passed in from bconsole Description: I'm implementing disk-to-disk-to-tape backups with bacula 3.0.2, using copy jobs to duplicate the disk-to-disk jobs to tape for off-site storage. I'm running into a problem when I manually run the copy job in that it only copies the *last* of the set of job id's to tape. I'm using a derivative of the below suggestion for configuring these copy jobs. http://www.mail-archive.com/bac...@li.../msg04599.html I am running the copy job with: run pool=W01-copy <hostname>-tape Here is an example run's log output: 29-Oct 09:46 bksrv0-dir JobId 105: The following 4 JobIds were chosen to be copied: 38,53,82,101 29-Oct 09:46 bksrv0-dir JobId 105: Job not run. 29-Oct 09:46 bksrv0-dir JobId 105: Error: Could not start migration job. 29-Oct 09:46 bksrv0-dir JobId 105: Job not run. 29-Oct 09:46 bksrv0-dir JobId 105: Error: Could not start migration job. 29-Oct 09:46 bksrv0-dir JobId 105: Job not run. 29-Oct 09:46 bksrv0-dir JobId 105: Error: Could not start migration job. 29-Oct 09:46 bksrv0-dir JobId 105: Copying using JobId=101 Job=<hostname>.2009-10-28_21.00.00_41 29-Oct 09:46 bksrv0-dir JobId 105: Unable to get Job Volume Parameters. ERR=sql_get.c:442 No volumes found for JobId=101 29-Oct 09:46 bksrv0-dir JobId 105: Previous Job has no data to copy. http://bacula.git.sourceforge.net/git/gitweb.cgi?p=bacula/bacula;a=blob;f=bacula/src/dird/migrate.c;h=2ffadb76fc04d502d81d4f33dfee6d96960b9ed8;hb=HEAD On line 867 all but the last of the jobs is passed on to start_migration_job(). On line 920-921, inside this subroutine, a new run command line is assembled, and on line 24 it is run. However, what is *not* being passed on is my initial "pool=W01-copy", which causes the job to fail. I have tested this in bconsole too; running "run pool=W01-copy jobid=53 job=<hostname>-tape" ran a copy job fine, whereas running "run job=<hostname>-tape jobid=53" failed with the same "Job not run." error. Steps to Reproduce: Configure a copy job with a fake source pool that will copy multiple jobs at once, then run it manually from the console overriding the source pool. All but the last job will not run correctly. Additional Information: Mailing list post with more detail on the configuration: http://www.mail-archive.com/bac...@li.../msg05270.html ====================================================================== ---------------------------------------------------------------------- (0005477) cke (reporter) - 2010-07-01 08:48 http://bugs.bacula.org/view.php?id=1399#c5477 ---------------------------------------------------------------------- This bug also occurs when trying to override pools in schedules. ---------------------------------------------------------------------- (0005927) ebollengier (administrator) - 2011-07-07 14:03 http://bugs.bacula.org/view.php?id=1399#c5927 ---------------------------------------------------------------------- Can you test the attached patch and report if this change is sufficient to solve your problem? Thanks ---------------------------------------------------------------------- (0005929) AlexB (reporter) - 2011-07-07 14:22 http://bugs.bacula.org/view.php?id=1399#c5929 ---------------------------------------------------------------------- Hi ebollengier, I'm afraid I no longer work for the company in question, and so can't test if the patch fixes the problem. It looks like it should, at first glance. Sorry! --alex ---------------------------------------------------------------------- (0005931) cke (reporter) - 2011-07-11 11:43 http://bugs.bacula.org/view.php?id=1399#c5931 ---------------------------------------------------------------------- Hi ebollengier, it works with copy jobs! Thanks a lot. ---------------------------------------------------------------------- (0005932) cke (reporter) - 2011-07-12 06:18 http://bugs.bacula.org/view.php?id=1399#c5932 ---------------------------------------------------------------------- Well. It worked when overriding the pool in the schedule. Running the copyjob manually still only selects the last backupjob and throws an error for the others (I don't know where 'allowduplicates' comes from): 12-Jul 08:08 bacula-dir JobId 30930: The following 12 JobIds were chosen to be copied: 30911,30912,30913,30917,30918,30919,30916,30921,30922,30923,30924,30925 12-Jul 08:08 bacula-dir JobId 30930: Invalid keyword: allowduplicates 12-Jul 08:08 bacula-dir JobId 30930: Error: Could not start migration job. 12-Jul 08:08 bacula-dir JobId 30930: Invalid keyword: allowduplicates 12-Jul 08:08 bacula-dir JobId 30930: Error: Could not start migration job. 12-Jul 08:08 bacula-dir JobId 30930: Invalid keyword: allowduplicates 12-Jul 08:08 bacula-dir JobId 30930: Error: Could not start migration job. 12-Jul 08:08 bacula-dir JobId 30930: Invalid keyword: allowduplicates 12-Jul 08:08 bacula-dir JobId 30930: Error: Could not start migration job. 12-Jul 08:08 bacula-dir JobId 30930: Invalid keyword: allowduplicates 12-Jul 08:08 bacula-dir JobId 30930: Error: Could not start migration job. 12-Jul 08:08 bacula-dir JobId 30930: Invalid keyword: allowduplicates 12-Jul 08:08 bacula-dir JobId 30930: Error: Could not start migration job. 12-Jul 08:08 bacula-dir JobId 30930: Invalid keyword: allowduplicates 12-Jul 08:08 bacula-dir JobId 30930: Error: Could not start migration job. 12-Jul 08:08 bacula-dir JobId 30930: Invalid keyword: allowduplicates 12-Jul 08:08 bacula-dir JobId 30930: Error: Could not start migration job. 12-Jul 08:08 bacula-dir JobId 30930: Invalid keyword: allowduplicates 12-Jul 08:08 bacula-dir JobId 30930: Error: Could not start migration job. 12-Jul 08:08 bacula-dir JobId 30930: Invalid keyword: allowduplicates 12-Jul 08:08 bacula-dir JobId 30930: Error: Could not start migration job. 12-Jul 08:08 bacula-dir JobId 30930: Invalid keyword: allowduplicates 12-Jul 08:08 bacula-dir JobId 30930: Error: Could not start migration job. ---------------------------------------------------------------------- (0005933) cke (reporter) - 2011-07-12 08:38 http://bugs.bacula.org/view.php?id=1399#c5933 ---------------------------------------------------------------------- I should have tested more. It doesn't work at all. I tested with one Backupjob only and it worked. Copying more than one job though results in the error above, even when overriding the pool in the schedule. ---------------------------------------------------------------------- (0005934) ebollengier (administrator) - 2011-07-12 11:58 http://bugs.bacula.org/view.php?id=1399#c5934 ---------------------------------------------------------------------- I think that you test the patch with the 3.0.x version instead of the 5.0.x (and possibly current git 5.2.x) You can probably remove the allowduplicate option from the patch. ---------------------------------------------------------------------- (0005935) cke (reporter) - 2011-07-14 07:48 http://bugs.bacula.org/view.php?id=1399#c5935 ---------------------------------------------------------------------- You are right, I'm sorry. I just forgot about the version when I received the notification mail. Anyways, the patch works for 5.0.3 when removing allowduplicate. I have not had a single issue in the last two days. I have attached the patch for 5.0.3 but I think this is the wrong place. Not sure how to proceed. ---------------------------------------------------------------------- (0006643) kern (administrator) - 2013-02-19 14:11 http://bugs.bacula.org/view.php?id=1399#c6643 ---------------------------------------------------------------------- As far as I can see a patch was created, and a user tested it and found it solved the problem. The patch is in the current Bacula version, so I am closing this ticket as being fixed. Issue History Date Modified Username Field Change ====================================================================== 2009-10-29 15:14 AlexB New Issue 2009-10-29 17:15 kern Status new => acknowledged 2010-07-01 08:48 cke Note Added: 0005477 2011-07-07 14:02 ebollengier File Added: 1399-enable-pool.patch 2011-07-07 14:03 ebollengier Note Added: 0005927 2011-07-07 14:03 ebollengier Assigned To => ebollengier 2011-07-07 14:03 ebollengier Status acknowledged => feedback 2011-07-07 14:22 AlexB Note Added: 0005929 2011-07-07 14:22 AlexB Status feedback => assigned 2011-07-11 11:43 cke Note Added: 0005931 2011-07-12 06:18 cke Note Added: 0005932 2011-07-12 08:38 cke Note Added: 0005933 2011-07-12 11:58 ebollengier Note Added: 0005934 2011-07-14 07:48 cke File Added: 1399-enable-pool-5.0.3.patch 2011-07-14 07:48 cke Note Added: 0005935 2013-02-19 13:36 kern Assigned To ebollengier => kern 2013-02-19 13:37 kern Assigned To kern => 2013-02-19 14:11 kern Note Added: 0006643 2013-02-19 14:11 kern Status assigned => closed 2013-02-19 14:11 kern Resolution open => fixed ====================================================================== |