MirrorManager: update the move-to-archive command
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
3afbe34974
commit
0606efe590
3 changed files with 19 additions and 11 deletions
|
@ -45,7 +45,7 @@ copy a file. These need to be dealt with individually.
|
|||
+
|
||||
Another error which happens when I script things is that you find
|
||||
out that everything got copied into
|
||||
/pub/archive/fedora/linux/releases/21/21 even though it shouldn't.
|
||||
/pub/archive/fedora/linux/releases/21/21 even though it shouldn't.
|
||||
|
||||
. If the target directory already exists, then we need to do a recursive
|
||||
rsync to update any changes in the trees since the previous copy.
|
||||
|
@ -97,14 +97,22 @@ $ rsync -avSAXHP --delete 21/ /pub/archive/fedora-secondary/updates/testing/21/
|
|||
. Announce to the mirror list this has been done and that in 2 weeks you
|
||||
will move the old trees to archives.
|
||||
|
||||
. In two weeks, log into mm-backend01 and run the archive script
|
||||
. In two weeks, run the following playbook from batcave:
|
||||
+
|
||||
[source]
|
||||
----
|
||||
$ sudo -i ssh root@mm-backend01.iad2.fedoraproject.org
|
||||
$ sudo -u mirrormanager mm2_move-to-archive --originalCategory="Fedora Linux" --archiveCategory="Fedora Archive" --directoryRe='/21/Everything'
|
||||
$ rbac-playbook -v /srv/web/infra/ansible/playbooks/manual/mirrormanager/move-to-archive.yml --extra-vars="product='Fedora' version='38'"
|
||||
----
|
||||
|
||||
. This will start a job named `move-to-archive-fedora-38` on Openshift.
|
||||
The playbook will output two commands to view the job's logs and to cancel it if needed.
|
||||
You can run those commands on os-control01 or on any host logged in to OpenShift.
|
||||
Alternatively, you can follow the job's execution on the Openshift WebUI and cancel it from there.
|
||||
The playbook will wait for the job to complete.
|
||||
|
||||
. Note that the `Fedora Codecs` will not be archived, because we currently don't do that.
|
||||
This category is explicitely excluded in the MirrorManager command itself.
|
||||
|
||||
. If there are problems, the postgres DB may have issues and so you need
|
||||
to get a DBA to update the backend to fix items.
|
||||
|
||||
|
@ -129,15 +137,15 @@ $ ln ../20/README .
|
|||
|
||||
$ cd /pub/fedora-secondary/releases
|
||||
$ cd 21
|
||||
$ ls # make sure you have stuff here
|
||||
$ ls # make sure you have stuff here
|
||||
$ rm -rf *
|
||||
$ ln ../20/README .
|
||||
$ cd ../../updates/21
|
||||
$ ls # make sure you have stuff here
|
||||
$ ls # make sure you have stuff here
|
||||
$ rm -rf *
|
||||
$ ln ../20/README .
|
||||
$ cd ../testing/21
|
||||
$ ls # make sure you have stuff here
|
||||
$ ls # make sure you have stuff here
|
||||
$ rm -rf *
|
||||
$ ln ../20/README .
|
||||
----
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue