gitaly-reconfigure fails when it is configured with a storage mount
I have deployed gitaly on an azure VM, have mounted an azure file and updated the gitlay's config file as:
git_data_dirs({
"gitaly-1" => {
"path" => "/mnt/azurefileshare"
},
}
)
When I reconfigure gitaly, I get the following error -
There was an error running gitlab-ctl reconfigure:
storage_directory[/mnt/azurefileshare] (gitlab::gitlab-rails line 47) had an error: Mixlib::ShellOut::ShellCommandFailed: ruby_block[directory resource: /mnt/azurefileshare] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/package/resources/storage_directory.rb line 34) had an error: Mixlib::ShellOut::ShellCommandFailed: Expect
ed process to exit with [0], but received '1'
---- Begin output of chmod 00700 /mnt/azurefileshare ----
STDOUT:
STDERR: chmod: changing permissions of ‘/mnt/azurefileshare’: Operation not permitted
---- End output of chmod 00700 /mnt/azurefileshare ----
Ran chmod 00700 /mnt/azurefileshare returned 1
As per my understanding, gitaly is trying to change the permissions of the mount - "/mnt/azurefileshare" and is getting error out. If gitaly is trying to run chmod on a mount , it is expected to fail as we can not do it. We can only change the permissions of the directory and not mount.
Does this mean, gitaly does not support writing data on storage mounts ?
- Gitlab Version: 13.8.1
- Installation type : Omnibus
Edited by Jason Plum