Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-786

GCENodeDriver.ex_get_image needs some love, see description.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Compute
    • None

    Description

      Firstly, the parameter 'ex_project_list' is a misnomer. It is being treated as a single project, not list of projects.

      Secondly, it's slow. When not providing a project parameter, ex_get_image lists all images from all projects listed in GCENodeDriver.IMAGE_PROJECTS. This is a separate API call for each project. After getting all the images, any images that have licenses create another API call via ex_get_license.

      Thirdly, if any of the license calls try to pull a license from an image project that the user doesn't have access to, it raises a ResourceNotFoundError.

      My opinion: fix the ex_project_list param, and see about not populating the image license data when fetching images.

      Attachments

        Activity

          People

            Unassigned Unassigned
            crunk1 Scott Crunkleton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: