stream data for gce (google compute) contains incomplete or unavailble image ids

Bug #1682896 reported by Scott Moser
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-images
Confirmed
Medium
adam linux

Bug Description

image-status is
  https://github.com/smoser/talk-simplestreams/blob/master/bin/image-status

  $ project="smoser-00"
  $ rel=xenial
  $ name="smfoo-$rel"
  $ zone="us-east1-b"
  $ mtype="f1-micro"
  $ image-status gce xenial region=${zone%-*}
  xenial 20170414a us-east1 daily-ubuntu-1604-xenial-v20170414a

  ## My notes have this '/ubuntu-os-cloud/' prefix, that i'm not sure
  ## where it came from, and seems like it should be present in stream data.
  ## it fails both with and without it.
  $ img="/ubuntu-os-cloud/daily-ubuntu-1604-xenial-v20170414a"
  $ gcloud compute "--project=$project" instances create "$name" \
  "--zone=$zone" "--machine-type=$mtype" --network=default \
  "--maintenance-policy=MIGRATE" \
   --image="$img" \
   --boot-disk-size=10 --boot-disk-type=pd-standard \
   "--boot-disk-device-name=$name"

   WARNING: You have selected a disk size of under [200GB]. This may result in poor I/O performance. For more information, see: https://developers.google.com/compute/docs/disks#pdperformance.
   ERROR: (gcloud.compute.instances.create) Some requests did not succeed:
    - Invalid value for field 'resource.disks[0].initializeParams.sourceImage': 'https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/daily-ubuntu-1604-xenial-v20170414a'. The referenced image resource cannot be found.

Modifying the above to use 'gce-release' will get you something like:
 $ image-status gce-release xenial region=us-east1
 xenial 20170330 us-east1 ubuntu-1604-xenial-v20170330

And then attempting to launch with an image like '/ubuntu-os-cloud/ubuntu-1604-xenial-v20170330' will actually work, but I don't know why the user would be expected to know the magic string 'ubuntu-os-cloud'.

So the 2 things wrong:
 a.) I'm not aware of any way to launch an image in the daily stream
 b.) you have to prefix image-ids with '/ubuntu-os-cloud/' to launch one
     from the release stream.

Revision history for this message
Scott Moser (smoser) wrote :

Dan confirmed for me that this is wrong.
The user of stream data just has to know the prefix (or '--image-family').

daily: ubuntu-os-cloud-devel
release: ubuntu-os-cloud

Changed in cloud-images:
status: New → Confirmed
Dan Watkins (oddbloke)
Changed in cloud-images:
importance: Undecided → Medium
Revision history for this message
Scott Moser (smoser) wrote :

My above comment incorrectly stated '--image-family',
it should have been '--image-project'.

For reference:
$ image-status gce region=us-east1
artful 20171015 us-east1 daily-ubuntu-1710-artful-v20171015
trusty 20171016 us-east1 daily-ubuntu-1404-trusty-v20171016
xenial 20171011 us-east1 daily-ubuntu-1604-xenial-v20171011
zesty 20171011 us-east1 daily-ubuntu-1704-zesty-v20171011

$ gcloud compute instances create $name \
   --zone=us-east1-b \
   --image daily-ubuntu-1604-xenial-v20171011 \
   --image-project ubuntu-os-cloud-devel

$ image-status gce-release region=us-east1
trusty 20171010 us-east1 ubuntu-1404-trusty-v20171010
xenial 20171011 us-east1 ubuntu-1604-xenial-v20171011
zesty 20171011 us-east1 ubuntu-1704-zesty-v20171011

$ gcloud compute instances create $name \
   --zone=us-east1-b \
   --image ubuntu-1604-xenial-v20171011 \
   --image-project ubuntu-os-cloud

adam linux (iceyman69)
Changed in cloud-images:
assignee: nobody → adam linux (iceyman69)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.