libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [libcloud] XN137 opened a new issue #1303: GCE fails to find image for newer image families (i.e. ubuntu-1804-lts)
Date Thu, 04 Jul 2019 12:14:47 GMT
XN137 opened a new issue #1303: GCE fails to find image for newer image families (i.e. ubuntu-1804-lts)
URL: https://github.com/apache/libcloud/issues/1303
 
 
   i was trying to use `ex_create_multiple_nodes` with `ex_image_family="ubuntu-1804-lts"`
on libcloud `2.4.0` which ended up in this error:
   ```
     File "<...>/libcloud/compute/drivers/gce.py", line 5033, in ex_create_multiple_nodes
       image = self.ex_get_image_from_family(ex_image_family)
     File "<...>/libcloud/compute/drivers/gce.py", line 7209, in ex_get_image_from_family
       '\'%s\'' % (image_family), None, None)
   ResourceNotFoundError: "Could not find image for family 'ubuntu-1804-lts'"
   ```
   while the 1604 and 1404 counter parts were working.
   
   after some investigation i found that https://github.com/apache/libcloud/blob/b2a0d5c5ac9238ddf1fa5a36a314e6f27ec5a1de/libcloud/compute/drivers/gce.py#L7187-L7191
   is supposed to handle that case, but it turns out `IMAGE_PROJECTS` hasn't been updated
in while:
   https://github.com/apache/libcloud/blob/b2a0d5c5ac9238ddf1fa5a36a314e6f27ec5a1de/libcloud/compute/drivers/gce.py#L1782-L1798
   
   afaik https://cloud.google.com/compute/docs/images#unshielded-images could be used to update
the available image families and their matching image projects.
   
   it could also be possible that some entries in `IMAGE_PROJECTS` are actually not available
anymore i.e. `ubuntu-1710`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message