libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LIBCLOUD-1040) CloudSigma provider ex_list_subscriptions() fails if your subscription includes free tier resources
Date Sun, 26 May 2019 18:35:00 GMT

    [ https://issues.apache.org/jira/browse/LIBCLOUD-1040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16848492#comment-16848492
] 

ASF subversion and git services commented on LIBCLOUD-1040:
-----------------------------------------------------------

Commit 940d97dab28ce04bf7767cd1772b07ceb79a1714 in libcloud's branch refs/heads/trunk from
Aki Ketolainen
[ https://gitbox.apache.org/repos/asf?p=libcloud.git;h=940d97d ]

LIBCLOUD-1040_CloudSigma_provider_ex_list_subscriptions_fails_if_your_subscription_includes_free_tier_resources


> CloudSigma provider ex_list_subscriptions() fails if your subscription includes free
tier resources
> ---------------------------------------------------------------------------------------------------
>
>                 Key: LIBCLOUD-1040
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-1040
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Compute
>    Affects Versions: 2.4.0
>         Environment: CentOS 6.10
> python 3.5.2
>  
>            Reporter: Aki Ketolainen
>            Priority: Minor
>              Labels: easyfix
>
> When using driver.ex_list_subscriptions(status='all', resources=None) to list your resources,
you'll receive the error:
>   File "/sw/libcloud/2.4.0/lib/python3.5/site-packages/libcloud/utils/iso8601.py", line
117, in parse_date
>     m = ISO8601_REGEX.match(datestring)
> TypeError: expected string or bytes-like object
> CloudSigma gave some free resources to their customers a few years ago.
> <CloudSigmaSubscription id=free_mem, resource=mem, amount=1073741824, period=None,
object_uuid=None>
> <CloudSigmaSubscription id=free_dssd, resource=dssd, amount=53687091200, period=None,
object_uuid=None>
> I suspect these are the problem resources with no end time.
> I've added to iso8601.py on lines 117 and 118:
>     if datestring is None:
>         datestring = "9999-01-01T12:00:00+00:00"
> Not sure if this is an appropriate fix but seems to fix it.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message