Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-9169

createNetwork API call takes a long time when ispersistent=True

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 4.7.0
    • Fix Version/s: None
    • Component/s: API
    • Security Level: Public (Anyone can view this level - this is the default.)
    • Labels:
      None

      Description

      When one create a network offering with ispersistent=True it will take a long time because the routerVM is created immediately. Since the call is not asynchonous, this will take minutes and most of the time timeout.

      Steps to reproduce:

      Create offering:

      cloudmonkey create networkoffering \
      ispersistent=True \
      name=Redundant-SNAT \
      conservemode=False \
      displaytext="Regular redundant router with Source NAT and IP conservation" \
      guestiptype=Isolated \
      traffictype=GUEST \
      specifyvlan=False \
      availability=Optional \
      supportedservices=UserData,PortForwarding,Dhcp,Vpn,Dns,SourceNat,Connectivity,StaticNat \
      serviceproviderlist[0].service=UserData serviceproviderlist[0].provider=VirtualRouter \
      serviceproviderlist[1].service=PortForwarding serviceproviderlist[1].provider=VirtualRouter \
      serviceproviderlist[2].service=Dhcp serviceproviderlist[2].provider=VirtualRouter \
      serviceproviderlist[3].service=Vpn serviceproviderlist[3].provider=VirtualRouter \
      serviceproviderlist[4].service=Dns serviceproviderlist[4].provider=VirtualRouter \
      serviceproviderlist[5].service=SourceNat serviceproviderlist[5].provider=VirtualRouter \
      serviceproviderlist[6].service=Connectivity serviceproviderlist[6].provider=VirtualRouter \
      serviceproviderlist[7].service=StaticNat serviceproviderlist[7].provider=VirtualRouter \
      serviceofferingid=some-id

      Then enable it.

      Then create a network using this. The fastest way is to use the Create Instance wizard and there create a new network using this offering.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              remibergsma Remi Bergsma
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: