You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by GitBox <gi...@apache.org> on 2022/01/26 15:16:35 UTC

[GitHub] [libcloud] micafer opened a new issue #1646: GCE driver list_images method does not return all the images

micafer opened a new issue #1646:
URL: https://github.com/apache/libcloud/issues/1646


   ## Summary
   
   GCE driver list_images method does not return all the images.
   
   ## Detailed Information
   
   GCE driver list_images method does not return all the images.
   Only first 500 images are returned per project, and in some cases (as ubuntu-os-cloud) there are more than 900.
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@libcloud.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [libcloud] micafer commented on issue #1646: GCE driver list_images method does not return all the images

Posted by GitBox <gi...@apache.org>.
micafer commented on issue #1646:
URL: https://github.com/apache/libcloud/issues/1646#issuecomment-1027709717


   This problem is not only related with images.
   In many API call there is no management of the pagination, so when the number of results is over the default maxResults value (500) the same problem will appear.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@libcloud.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [libcloud] Kami closed issue #1646: GCE driver list_images method does not return all the images

Posted by GitBox <gi...@apache.org>.
Kami closed issue #1646:
URL: https://github.com/apache/libcloud/issues/1646


   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@libcloud.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [libcloud] micafer commented on issue #1646: GCE driver list_images method does not return all the images

Posted by GitBox <gi...@apache.org>.
micafer commented on issue #1646:
URL: https://github.com/apache/libcloud/issues/1646#issuecomment-1022299267


   One easy solution is setting:
   ```py
   self.connection.gce_params = {'maxResults': 1500}
   ```
   before this line:
   https://github.com/apache/libcloud/blob/trunk/libcloud/compute/drivers/gce.py#L2630


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@libcloud.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org