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

Caching of GCE bearer token results in unexpected errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.14.0-beta3
    • None
    • Compute
    • MacOS 10.9.4

    Description

        • Affected release version is 0.15.1 but I can't type it in the version list. **

      Can't use libcloud to access more than one project on Google Compute Engine.

      The not very helpful errror message is:
      libcloud.common.google.ResourceNotFoundError:

      {u'domain': u'global', u'message': u"The resource 'projects/xxx' was not found", u'reason': u'notFound'}

      Captured debug log via LIBCLOUD_DEBUG and noticed that for the second project, it was still accessing via the first project's bearer token. Looks like this gets cached in ~/.gce_libcloud_auth

      Then found some search results on the web suggesting this file needs to be deleted but that sounds pretty clunky considering that I want to navigate multiple GCE projects in one execution run of the program.

      Attachments

        Activity

          People

            erjohnso Eric Johnson
            jadboutros Jad Boutros
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: