Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hal] gcr dockerRegistry fails to register #4125

Open
haf opened this Issue Mar 15, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@haf
Copy link

haf commented Mar 15, 2019

Issue Summary:

It would seem HAL should have access to the eu.gcr.io repository for the same project that it is deployed in, but it still gives this warning:

- WARNING Your docker registry has no repositories specified, and
  the registry's catalog is empty. Spinnaker will not be able to deploy any images
  until some are pushed to this registry.
? Manually specify some repositories for this docker registry to
  index.

The docker registry can be pulled from and pushed to without problem and contains a whole lot of images, so I'm not at all sure what cannot be found.

I noticed a path that didn't exist was being used as the password-file, so I set it to the /opt/gcr/key.json file that both the PubSub trigger and the GCS storage uses, and did a hal deploy apply, but to no avail; the warning is still there.

Cloud Provider(s):

GCP

Environment:

helm deploy of spinnaker;

NAME               	REVISION	UPDATED                 	STATUS  	CHART                 	APP VERSION	NAMESPACE
spinnaker          	9       	Fri Mar 15 14:14:25 2019	DEPLOYED	spinnaker-1.8.0       	1.12.5     	cd

in GCP following initially the broken codelab and thereafter the docs. I've asked questions on slack, but noone answers. Also, this question from two weeks ago has gone unanswered https://community.spinnaker.io/t/gcr-docker-registry-catalog-endpoint/1117 — but it seems to be identical to my issue

Feature Area (if this issue is UI/UX related, please tag @spinnaker/ui-ux-team):

HAL/configuration

Steps to Reproduce:

Follow these docs to the letter https://www.spinnaker.io/setup/install/providers/docker-registry/#google-container-registry

Additional Details:

The configuration currently looks like this:

$ hal config provider docker-registry account get gcr
+ Get current deployment
  Success
+ Get gcr account
  Success
+ Account gcr:
DockerRegistryAccount(address=https://eu.gcr.io, username=_json_key, password=null, passwordCommand=null, email=haf@example.com, cacheIntervalSeconds=30, clientTimeoutMillis=60000, cacheThreads=1, paginateSize=100, sortTagsByDate=false, trackDigests=false, insecureRegistry=false, repositories=[], passwordFile=/opt/gcs/key.json, dockerconfigFile=null)
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.