From 83f70247007d2a2a4a3b68c91978e1153d1bbd93 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Fri, 30 Jan 2015 11:35:27 -0800 Subject: [PATCH] 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 --- doc/source/gerrit.rst | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/doc/source/gerrit.rst b/doc/source/gerrit.rst index 6ebed35e70..d3a30778ec 100644 --- a/doc/source/gerrit.rst +++ b/doc/source/gerrit.rst @@ -451,10 +451,14 @@ To rename a project: cp -ax review_site/index index.backup.`date +%s` 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 +#. Rename the project or transfer ownership in GitHub (while the + lucene reindex is running). + #. Start Gerrit on review.openstack.org:: sudo invoke-rc.d gerrit start @@ -474,22 +478,12 @@ To rename a project: 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 changing, gate jobs may fail due to outdated remote URLs. Clear the workspaces on persistent Jenkins slaves to mitigate this:: 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 project.