Since Thursday 1st of April we have an issue on a GCP comoute VM which is launched from a base centos-7 image daily.
When launch the startup script will install gcsFuse using the commands listed here: https://github.com/GoogleCloudPlatform/gcsfuse/blob/master/docs/installing.md#centos-and-red-hat-latest-releases
This installation method is now failing since the latest release:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 8.6 kB 00:00:00
* base: mirror.atl.genesisadaptive.com
* epel: iad.mirror.rackspace.com
* extras: mirrors.mit.edu
* updates: mirrors.raystedman.org
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
gcsfuse/signature | 844 B 00:00:00
Retrieving key from https://packages.cloud.google.com/yum/doc/yum-key.gpg
Retrieving key from https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
gcsfuse/signature | 1.4 kB 00:00:00 !!!
https://packages.cloud.google.com/yum/repos/gcsfuse-el7-x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for gcsfuse
Trying other mirror.
Does anyone know how to resolve this error?
There's a quick workaround but that means skipping GPG repo key verification. I just changed
repo_gpgcheck=1
torepo_gpgcheck=0
and left the rest as it is.Final script would look like:
This was the result:
I tested it just now on a fresh ne VM with CentOS 7 with default settings. I also used it as a startup script and it worked as intended.
Similar issue was discussed here but this approach didn't work for me.