gerrit: fix db/ mount for gate testing
The gate testing sets gerrit_database_type to 'h2', but the container does not setup /var/gerrit/db. It ends up owned by root in the container and gerrit can't write to it, causing traceback errors for account_patch_reviews when anything is updated. Add a db peer directory with the other config dirs, and make sure it is bind mounted into the image in the same way. While we are here, alphabetise this list of directories for consistency. Change-Id: Ib24e3027622a711db76d24172b27cdebe6152cb6
This commit is contained in:
parent
f0e5d78ba7
commit
27c3f7ac1e
@ -7,16 +7,17 @@ gerrit_run_init: false
|
|||||||
gerrit_packed_git_open_files: 4096
|
gerrit_packed_git_open_files: 4096
|
||||||
gerrit_container_image: docker.io/opendevorg/gerrit:3.2
|
gerrit_container_image: docker.io/opendevorg/gerrit:3.2
|
||||||
gerrit_container_volumes:
|
gerrit_container_volumes:
|
||||||
|
- /home/gerrit2/.launchpadlib:/var/gerrit/.launchpadlib
|
||||||
|
- /home/gerrit2/.ssh:/var/gerrit/.ssh
|
||||||
- /home/gerrit2/review_site/cache:/var/gerrit/cache
|
- /home/gerrit2/review_site/cache:/var/gerrit/cache
|
||||||
|
- /home/gerrit2/review_site/db:/var/gerrit/db
|
||||||
- /home/gerrit2/review_site/etc:/var/gerrit/etc
|
- /home/gerrit2/review_site/etc:/var/gerrit/etc
|
||||||
- /home/gerrit2/review_site/git:/var/gerrit/git
|
- /home/gerrit2/review_site/git:/var/gerrit/git
|
||||||
- /home/gerrit2/review_site/tmp:/var/gerrit/tmp
|
|
||||||
- /home/gerrit2/review_site/hooks:/var/gerrit/hooks
|
- /home/gerrit2/review_site/hooks:/var/gerrit/hooks
|
||||||
- /home/gerrit2/review_site/index:/var/gerrit/index
|
- /home/gerrit2/review_site/index:/var/gerrit/index
|
||||||
- /home/gerrit2/review_site/logs:/var/log/gerrit
|
- /home/gerrit2/review_site/logs:/var/log/gerrit
|
||||||
- /home/gerrit2/review_site/static:/var/gerrit/static
|
- /home/gerrit2/review_site/static:/var/gerrit/static
|
||||||
- /home/gerrit2/.launchpadlib:/var/gerrit/.launchpadlib
|
- /home/gerrit2/review_site/tmp:/var/gerrit/tmp
|
||||||
- /home/gerrit2/.ssh:/var/gerrit/.ssh
|
|
||||||
- /opt/project-config/gerrit/projects.yaml:/var/gerrit/etc/projects.yaml
|
- /opt/project-config/gerrit/projects.yaml:/var/gerrit/etc/projects.yaml
|
||||||
- /opt/project-config/gerrit/projects.ini:/var/gerrit/etc/projects.ini
|
- /opt/project-config/gerrit/projects.ini:/var/gerrit/etc/projects.ini
|
||||||
gerrit_database_type: MYSQL
|
gerrit_database_type: MYSQL
|
||||||
|
@ -52,14 +52,15 @@
|
|||||||
group: "{{ gerrit_user_name }}"
|
group: "{{ gerrit_user_name }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
loop:
|
loop:
|
||||||
|
- cache
|
||||||
|
- db
|
||||||
- etc
|
- etc
|
||||||
- git
|
- git
|
||||||
- index
|
|
||||||
- cache
|
|
||||||
- static
|
|
||||||
- hooks
|
- hooks
|
||||||
- tmp
|
- index
|
||||||
- logs
|
- logs
|
||||||
|
- static
|
||||||
|
- tmp
|
||||||
|
|
||||||
- name: Write Gerrit config file
|
- name: Write Gerrit config file
|
||||||
template:
|
template:
|
||||||
|
Loading…
Reference in New Issue
Block a user