Update gerrit rename instructions
* Use the transfer ownership function in github. * Move the github step to within the gerrit downtime. * Indicate that github and git0X steps should be run during the lucene reindexing (for time efficiency). * Remove the replication step which is not needed when using the github transfer ownership function. Change-Id: I1ac209eecaa60573b7d885c7feea3be4b9a64af8
This commit is contained in:
parent
a27aef70dc
commit
83f7024700
@ -451,10 +451,14 @@ To rename a project:
|
|||||||
cp -ax review_site/index index.backup.`date +%s`
|
cp -ax review_site/index index.backup.`date +%s`
|
||||||
java -jar review_site/bin/gerrit.war reindex -d /home/gerrit2/review_site
|
java -jar review_site/bin/gerrit.war reindex -d /home/gerrit2/review_site
|
||||||
|
|
||||||
#. Move the git repository on git{01-05}.openstack.org::
|
#. Move the git repository on git{01-05}.openstack.org (while the
|
||||||
|
lucene reindex is running)::
|
||||||
|
|
||||||
sudo mv /var/lib/git/openstack/{OLD,NEW}.git
|
sudo mv /var/lib/git/openstack/{OLD,NEW}.git
|
||||||
|
|
||||||
|
#. Rename the project or transfer ownership in GitHub (while the
|
||||||
|
lucene reindex is running).
|
||||||
|
|
||||||
#. Start Gerrit on review.openstack.org::
|
#. Start Gerrit on review.openstack.org::
|
||||||
|
|
||||||
sudo invoke-rc.d gerrit start
|
sudo invoke-rc.d gerrit start
|
||||||
@ -474,22 +478,12 @@ To rename a project:
|
|||||||
|
|
||||||
sudo crontab -u root -e
|
sudo crontab -u root -e
|
||||||
|
|
||||||
#. Rename the project in GitHub or, if this is a move to a new org, let
|
|
||||||
the project management run create it for you and then remove the
|
|
||||||
original later (assuming you have sufficient permissions).
|
|
||||||
|
|
||||||
#. If this is an org move and the project name itself is not
|
#. If this is an org move and the project name itself is not
|
||||||
changing, gate jobs may fail due to outdated remote URLs. Clear
|
changing, gate jobs may fail due to outdated remote URLs. Clear
|
||||||
the workspaces on persistent Jenkins slaves to mitigate this::
|
the workspaces on persistent Jenkins slaves to mitigate this::
|
||||||
|
|
||||||
sudo ansible-playbook -f 10 /etc/ansible/playbooks/clean_workspaces.yaml --extra-vars "project=PROJECTNAME"
|
sudo ansible-playbook -f 10 /etc/ansible/playbooks/clean_workspaces.yaml --extra-vars "project=PROJECTNAME"
|
||||||
|
|
||||||
#. Again, if this is an org move rather than a rename and the GitHub
|
|
||||||
project has been created but is empty, trigger replication to
|
|
||||||
populate it::
|
|
||||||
|
|
||||||
ssh -p 29418 review.openstack.org replication start --all
|
|
||||||
|
|
||||||
#. Submit a change that updates .gitreview with the new location of the
|
#. Submit a change that updates .gitreview with the new location of the
|
||||||
project.
|
project.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user