Welcome to the Linux Foundation Forum!

Error Required 'compute.images.useReadOnly' permission for 'projects/onap-177920/global/images/aarna

Hi,

hopefully you can help with this issue and fix the permissions on worker node image.

When creating GCP VMs as instructed in Lab 4.1.6, for example anod-worker-01,always get the error, see below:

$ gcloud auth login
. . .
You are now logged in as [xxx.yyy@gmail.com].
. . .
$ gcloud config set project onap-xxx
Updated property [core/project].
. . .
$ gcloud compute instances create anod-worker-01 --zone us-central1-f --machine-type n1-standard-4 --image "https://www.googleapis.com/compute/v1/projects/onap-177920/global/images/aarna-anod-guilin-ubuntu18-04-07182021-00"

ERROR: (gcloud.compute.instances.create) Could not fetch resource:
- Required 'compute.images.useReadOnly' permission for 'projects/onap-177920/global/images/aarna-anod-guilin-ubuntu18-04-07182021-00'

When tried the same "gcloud create VM" command with openstack-train image from the same dirctory - it works:

$ gcloud compute instances create anod-worker-01 --zone us-central1-f --machine-type n1-standard-4 --image "https://www.googleapis.com/compute/v1/projects/onap-177920/global/images/aarna-aio-openstack-train-centos-7-08062020-00"

Created [https://www.googleapis.com/compute/v1/projects/aarna-onap-331415/zones/us-central1-f/instances/anod-worker-01].
NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS
anod-worker-01 us-central1-f n1-standard-4 10.128.0.5 34.67.149.13 RUNNING

Comments

Categories

Upcoming Training