[
https://issues.apache.org/jira/browse/LIBCLOUD-621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matthias Wiesner updated LIBCLOUD-621:
--------------------------------------
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,}}
was:
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:
{{monospaced}}
'deviceName': volume,
{{monospaced}}
to:
{{monospaced}}
'deviceName': volume.name,
{{monospaced}}
> Google Compute Engine Driver: ex_set_volume_auto_delete method don't work
> with volume parameter
> -----------------------------------------------------------------------------------------------
>
> Key: LIBCLOUD-621
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-621
> Project: Libcloud
> Issue Type: Bug
> Components: Compute
> Reporter: Matthias Wiesner
>
> 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,}}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)