Add notes on reprepro _addreference
I had to figure out this command to restore some of our reprepro mirrors, add notes on it. Cleanup some other things I noticed; quotes around REPREPRO command, clarify the situation with pointing mirrors at the RO/RW volumes and refactor discussion. Change-Id: I3e3f763929bf74e0c4faf29b13973dcf1df36975
This commit is contained in:
parent
4e0c23e62d
commit
b8703c3f54
@ -100,7 +100,7 @@ For convenience, setup the common ``reprepo`` options for verbose
|
|||||||
logging, the configuration directory and to work on the local
|
logging, the configuration directory and to work on the local
|
||||||
database::
|
database::
|
||||||
|
|
||||||
# export REPREPRO=reprepro -VVV --confdir /etc/reprepro/ubuntu --dbdir ~/db
|
# export REPREPRO="reprepro -VVV --confdir /etc/reprepro/ubuntu --dbdir ~/db"
|
||||||
|
|
||||||
From the upstream recovery document, the ``references.db`` can be
|
From the upstream recovery document, the ``references.db`` can be
|
||||||
removed and recreated quickly with::
|
removed and recreated quickly with::
|
||||||
@ -140,6 +140,22 @@ to be corrupt, you can remove ``xenial-security`` from
|
|||||||
You can then re-add the entries and run another update, which should
|
You can then re-add the entries and run another update, which should
|
||||||
resync everything from fresh.
|
resync everything from fresh.
|
||||||
|
|
||||||
|
You may also see errors relating to individual packages not being
|
||||||
|
referenced correctly::
|
||||||
|
|
||||||
|
checking references to 'bionic|main|arm64' for 'texlive-latex-base': pool/main/t/texlive-base/texlive-latex-base_2017.20180305-1_all.deb
|
||||||
|
Missing reference to 'pool/main/t/texlive-base/texlive-latex-base_2017.20180305-1_all.deb' by 'bionic|main|arm64'
|
||||||
|
...
|
||||||
|
There have been errors!
|
||||||
|
|
||||||
|
In this case, the ``_addreference`` command can be useful. The
|
||||||
|
parameters are the *filekey*, which is the path to the file, and the
|
||||||
|
*identifier*, which is the tuple ``bionic|main|arm64`` above. To
|
||||||
|
restore the reference try::
|
||||||
|
|
||||||
|
# $REPREPRO _addreference pool/main/t/texlive-base/texlive-latex-base_2017.20180305-1_all.deb 'bionic|main|arm64'
|
||||||
|
Adding reference to 'pool/main/t/texlive-base/texlive-latex-base_2017.20180305-1_all.deb' by 'bionic|main|arm64'
|
||||||
|
|
||||||
Remember to put the databases back in place::
|
Remember to put the databases back in place::
|
||||||
|
|
||||||
# mv /afs/.openstack.org/mirror/ubuntu/db /afs/.openstack.org/mirror/ubuntu/db.old
|
# mv /afs/.openstack.org/mirror/ubuntu/db /afs/.openstack.org/mirror/ubuntu/db.old
|
||||||
@ -147,9 +163,10 @@ Remember to put the databases back in place::
|
|||||||
|
|
||||||
To stage a recovery prior to release, you can modify the
|
To stage a recovery prior to release, you can modify the
|
||||||
``mirror_root`` argument in ``openstack_project::mirror`` puppet to
|
``mirror_root`` argument in ``openstack_project::mirror`` puppet to
|
||||||
point to the RW mirror ``/afs/.openstack.org/mirror`` (rather than the
|
point Apache to the RW mirror ``/afs/.openstack.org/mirror`` where
|
||||||
released RO ``/afs/openstack.org/mirror``). This way you can switch
|
fixes are deployed, rather than the released RO
|
||||||
back quickly if things don't work.
|
``/afs/openstack.org/mirror``. This way you can avoid having to
|
||||||
|
release the RO mirror and switch back quickly if things don't work.
|
||||||
|
|
||||||
You can then either manually run ``vos release``, or restore cron and
|
When fixed, you can either manually run ``vos release``, or restore
|
||||||
let the next ``reprepro-mirror-update`` run do it.
|
cron and let the next ``reprepro-mirror-update`` run do it.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user