Reindex Gerrit after project move/rename
* doc/source/gerrit.rst: When project names change, Gerrit's lucene indexes must be rebuilt while the service is still offline. If this is not done, searches on the new project names will not find existing changes and Zuul will ignore some events for them. Change-Id: I99cd657298e05f7c213cf770e92d06016043f547
This commit is contained in:
parent
85e3221f0b
commit
f930531f30
@ -425,6 +425,12 @@ To rename a project:
|
||||
sudo mv ~gerrit2/review_site/git/openstack/{OLD,NEW}.git
|
||||
sudo mv /var/lib/git/openstack/{OLD,NEW}.git
|
||||
|
||||
#. Reindex the lucene search index on review.openstack.org::
|
||||
|
||||
sudo su - gerrit2
|
||||
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-04}.openstack.org::
|
||||
|
||||
sudo mv /var/lib/git/openstack/{OLD,NEW}.git
|
||||
|
Loading…
x
Reference in New Issue
Block a user