Drop /opt/project-config/gerrit/projects.ini on review

We moved this file into /home/gerrit2 rather than keeping it in the
project-config repo that is synced from gerrit to bridge to review. This
wasn't a problem until recently when we started ensuring that rsync
deletes non existant files on the source from the destination which
removed the /opt/project-config/gerrit/projects.ini file. Then when
attempting to start the gerrit container things complain about the
missing file.

Nothing is actually using that file though so we remove the bind mount
from docker-compose.yaml to fix the container startup issues. We also
clean up some gerrit hook references to the file. The update-bug script
in jeepyb doesn't actually read the file at all so we can remove the
reference to avoid confusion.

Change-Id: I68bd5329409c2af3b53fed823fae7564c87e73c4
This commit is contained in:
Clark Boylan
2025-11-04 07:13:53 -08:00
parent 9a204dc668
commit 8281237835
4 changed files with 0 additions and 4 deletions

View File

@@ -21,7 +21,6 @@ gerrit_container_volumes:
- /home/gerrit2/review_site/logs:/var/log/gerrit
- /home/gerrit2/review_site/tmp:/var/gerrit/tmp
- /opt/project-config/gerrit/projects.yaml:/var/gerrit/etc/projects.yaml
- /opt/project-config/gerrit/projects.ini:/var/gerrit/etc/projects.ini
gerrit_project_creator_user: openstack-project-creator
gerrit_manage_projects_args: "-v"
gerrit_track_upstream: true

View File

@@ -4,6 +4,5 @@ export GERRIT_GIT_DIR=/var/gerrit/git
export GERRIT_CONFIG=/var/gerrit/etc/gerrit.config
export GERRIT_SECURE_CONFIG=/var/gerrit/etc/secure.config
export PROJECTS_YAML=/var/gerrit/etc/projects.yaml
export PROJECTS_INI=/var/gerrit/etc/projects.ini
# Use timeout to kill any process running longer than 10 minutes.
timeout -k 2m 10m /usr/local/bin/update-bug change-abandoned "$@"

View File

@@ -4,6 +4,5 @@ export GERRIT_GIT_DIR=/var/gerrit/git
export GERRIT_CONFIG=/var/gerrit/etc/gerrit.config
export GERRIT_SECURE_CONFIG=/var/gerrit/etc/secure.config
export PROJECTS_YAML=/var/gerrit/etc/projects.yaml
export PROJECTS_INI=/var/gerrit/etc/projects.ini
# Use timeout to kill any process running longer than 10 minutes.
timeout -k 2m 10m /usr/local/bin/update-bug change-merged "$@"

View File

@@ -4,7 +4,6 @@ export GERRIT_GIT_DIR=/var/gerrit/git
export GERRIT_CONFIG=/var/gerrit/etc/gerrit.config
export GERRIT_SECURE_CONFIG=/var/gerrit/etc/secure.config
export PROJECTS_YAML=/var/gerrit/etc/projects.yaml
export PROJECTS_INI=/var/gerrit/etc/projects.ini
# Use timeout to kill any process running longer than 10 minutes.
timeout -k 2m 10m /usr/local/bin/update-bug patchset-created "$@"