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

Google Compute Engine Driver: ex_set_volume_auto_delete method don't work with volume parameter

    XMLWordPrintableJSON

Details

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

    Description

      On passing a StorageVolume as parameter one get the error:

      libcloud.common.google.InvalidRequestError: {u'locationType': u'parameter', u'domain': u'global', u'message': u"Invalid value '<StorageVolume id=17316053985365710060 size=200 driver=Google Compute Engine>'. Values must match the following regular expression: '
      w\\w.-

      {0,254}

      '", u'reason': u'invalidParameter', u'location': u'deviceName'}

      Solution:
      rewrite:
      'deviceName': volume,
      to:
      'deviceName': volume.name,

      Attachments

        Activity

          People

            erjohnso Eric Johnson
            mwiesner Matthias Wiesner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: