Bug 1035502 - [RFE] Update beaker-sync-tasks to allow sync from upstream
Summary: [RFE] Update beaker-sync-tasks to allow sync from upstream
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Beaker
Classification: Retired
Component: general
Version: 0.14
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: beaker-dev-list
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-27 23:36 UTC by Raymond Mancy
Modified: 2020-06-23 08:05 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-23 08:04:46 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1012783 0 unspecified CLOSED beaker-sync-tasks should use a staging area when downloading files 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1028280 0 low CLOSED [RFE] beaker-sync-tasks should support syncing from a local directory 2021-05-10 19:25:51 UTC

Internal Links: 1012783 1028280

Description Raymond Mancy 2013-11-27 23:36:58 UTC
Description of problem:

Currently the only way of updating a server's task with tasks from b.p.o is to 
clone the task repo from upstream, and then add the tasks by hand from there.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:

Running 'beaker-sync-tasks' with no args should default to syncing any common tasks from upstream to the local server.


Additional info:

Comment 2 Nick Coghlan 2013-11-27 23:58:01 UTC
Also relevant is bug 1028280 (which proposes to support syncing from a local directory of tasks). That's a bit simpler, since the task already copies the remote RPMs down to a local directory, and bug 1012783 points out that for correctness, the tasks should be downloaded to a separate directory and then added from there.

If this variant used an explicit "--upstream" option, then that would give three ways to do it:

    beaker-sync-tasks --dir <path to staging area>
    beaker-sync-tasks --upstream
    beaker-sync-tasks --remote <Beaker server URL>


The virtual-fedora quick start currently has the following approach, but I didn't copy it to the main admin guide since the task-add invocation may be different for a real system:

=======================================
We will now add a few task RPMs to ensure we can run jobs (including those with guest recipes) as well as inventory systems and reserve them through the scheduler. Use wget (or an equivalent command) to retrieve the latest versions of the standard task RPMs (this is best done on the host system rather than the Beaker server VM):

$ wget -r -np -nc https://beaker-project.org/tasks/

Add the tasks manually via http://beaker-server-lc.beaker/bkr/tasks/new or by using the bkr-task-add(1) command (in the directory where the scripts were downloaded, using the admin account configured when first installing Beaker):

$ for f in `ls *.rpm`
> do
>    bkr task-add --hub=http://beaker-server-lc.beaker/bkr \
>        --username=<USER> --password=<PASSWORD> $f
> done
=======================================


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