libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Suharev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LIBCLOUD-495) In Cloudstack driver problem in logic with networks
Date Tue, 14 Jan 2014 11:47:50 GMT
Oleg Suharev created LIBCLOUD-495:
-------------------------------------

             Summary: In Cloudstack driver problem in logic with networks
                 Key: LIBCLOUD-495
                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-495
             Project: Libcloud
          Issue Type: Bug
            Reporter: Oleg Suharev


In cloudstack driver method ex_list_networks return CloudstackNetwork in which parameter id
- int, but CloudstackNode.create_node wait this id how str.
{code}
if networks:
            networks = ','.join([network.id for network in networks])
            server_params['networkids'] = networks
{code}
{code}
In [4]: n[0]
Out[4]: <CloudStackNetwork: id=1527, displaytext=Scalr-User1-network, name=Scalr-User1-network,
networkofferingid=6, zoneid=2, driverCloudStack>

In [5]: n[0].id
Out[5]: 1527

In [6]: type(n[0].id)
Out[6]: int
{code}
If I get CloudstackNetwork from ex_list_networks() and put it to create_node, I get error.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message