libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Suharev (JIRA)" <>
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
             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.
if networks:
            networks = ','.join([ for network in networks])
            server_params['networkids'] = networks
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
If I get CloudstackNetwork from ex_list_networks() and put it to create_node, I get error.

This message was sent by Atlassian JIRA

View raw message