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

CloudStack driver's create_node fails to join network_id when network_id is int

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.13.0, 0.13.1, 0.13.2, 0.14.0-beta3, 0.13.3
    • None
    • Compute
    • None

    Description

      CloudStack driver's create_node accept an argument "networks" it is used to specify networks the node will be connected to.

      networks is a list of CloudStackNetwork instances and their id is joined to construct a argument for CloudStack API's deployVirtualMachine in create_node. It is OK when network id is string but some implementation uses integer network id.

      When network id is integer, the code like following fails.

      networks = driver.ex_list_networks()
      node = driver.create_node(location, image, size, networks=networks)

      This patch convert network id into str explicitly before joining network ids.

      Attachments

        Activity

          People

            Unassigned Unassigned
            atsaki Atsushi Sasaki
            Votes:
            0 Vote for this issue
            Watchers:
            4 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment