Uploaded image for project: 'Stratos'
  1. Stratos
  2. STRATOS-696

STRATOS is not able to launch a vAPP template on vcloud when there are more than one network in the vApp Template

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Won't Fix
    • 4.0.0
    • None
    • Stratos Manager
    • vCloud director 5.5

    Description

      Hi,

      Versions:
      =======
      vCloud Director - 5.5
      Stratos Version - 4.0.0 - rc4

      I have created a vAPP template from a running VM with 2 networks and provided the vAPP template ID to stratos.

      When i tried deploy-partition with the json file where I have used this vAPP template ID, it gives the below error and not able to deploy it.

      root@stratos:/opt/apache-stratos-cli-4.0.0# ./stratos.sh
      Username: admin
      Password: *****
      Successfully Authenticated.
      stratos> deploy-cartridge -p /opt/json/tomcat-cart.json
      Exception [errorCode= 400, errorMessage= Unable to build the jclouds object for iaas of type: vcloud]
      stratos>

      Also in the wso2carbon.log, it gives a misleading error message that the vAPP template is not found.

      TID: [0] [STRATOS] [2014-07-01 11:01:33,553] INFO

      {org.apache.stratos.rest.endpoint.services.ServiceUtils} - Starting to deploy a Cartridge [type] tomcat {org.apache.stratos.rest.endpoint.services.ServiceUtils}

      TID: [0] [STRATOS] [2014-07-01 11:01:37,559] INFO

      {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient} - Validating partitions of policy via cloud controller: [id] mydeployment {org.apache.stratos.autoscaler.client.cloud.controller.CloudControllerClient}

      TID: [0] [STRATOS] [2014-07-01 11:01:39,877] WARN

      {jclouds.compute} - Unsupported: multiple network connections are not supported: [id=https://10.105.91.93/api/vAppTemplate/vappTemplate-376512f3-2a9c-45b0-ab30-f9238a1fd647, name=STRATOS_DEMO_WORKING, vdc={href=https://10.105.91.93/api/vdc/91ebf133-ebd0-4b2b-9b5b-335fe6bd4ed2, type=application/vnd.vmware.vcloud.vdc+xml, relationship=up}, description=null, status=OFF] {jclouds.compute}

      TID: [0] [STRATOS] [2014-07-01 11:01:40,309] WARN

      {jclouds.compute} - Unsupported: multiple network connections are not supported: [id=https://10.105.91.93/api/vAppTemplate/vappTemplate-0c7e4f4a-baa5-46a0-99c9-074db58c713e, name=Mavenir-AM-Cart, vdc={href=https://10.105.91.93/api/vdc/91ebf133-ebd0-4b2b-9b5b-335fe6bd4ed2, type=application/vnd.vmware.vcloud.vdc+xml, relationship=up}, description=null, status=OFF] {jclouds.compute}

      TID: [0] [STRATOS] [2014-07-01 11:01:40,490] WARN

      {jclouds.compute} - Unsupported: multiple network connections are not supported: [id=https://10.105.91.93/api/vAppTemplate/vappTemplate-6b7462be-e5c9-4ac7-855d-69fbd9cb1169, name=OCTL-StratosManager, vdc={href=https://10.105.91.93/api/vdc/91ebf133-ebd0-4b2b-9b5b-335fe6bd4ed2, type=application/vnd.vmware.vcloud.vdc+xml, relationship=up}, description=null, status=OFF] {jclouds.compute}

      TID: [0] [STRATOS] [2014-07-01 11:01:47,025] WARN

      {jclouds.compute} - Unsupported: multiple network connections are not supported: [id=https://10.105.91.93/api/vAppTemplate/vappTemplate-376512f3-2a9c-45b0-ab30-f9238a1fd647, name=STRATOS_DEMO_WORKING, vdc={href=https://10.105.91.93/api/vdc/91ebf133-ebd0-4b2b-9b5b-335fe6bd4ed2, type=application/vnd.vmware.vcloud.vdc+xml, relationship=up}, description=null, status=OFF] {jclouds.compute}

      TID: [0] [STRATOS] [2014-07-01 11:01:47,026] WARN

      {jclouds.compute} - Unsupported: multiple network connections are not supported: [id=https://10.105.91.93/api/vAppTemplate/vappTemplate-0c7e4f4a-baa5-46a0-99c9-074db58c713e, name=Mavenir-AM-Cart, vdc={href=https://10.105.91.93/api/vdc/91ebf133-ebd0-4b2b-9b5b-335fe6bd4ed2, type=application/vnd.vmware.vcloud.vdc+xml, relationship=up}, description=null, status=OFF] {jclouds.compute}

      TID: [0] [STRATOS] [2014-07-01 11:01:47,027] WARN

      {jclouds.compute} - Unsupported: multiple network connections are not supported: [id=https://10.105.91.93/api/vAppTemplate/vappTemplate-6b7462be-e5c9-4ac7-855d-69fbd9cb1169, name=OCTL-StratosManager, vdc={href=https://10.105.91.93/api/vdc/91ebf133-ebd0-4b2b-9b5b-335fe6bd4ed2, type=application/vnd.vmware.vcloud.vdc+xml, relationship=up}, description=null, status=OFF] {jclouds.compute}

      TID: [0] [STRATOS] [2014-07-01 11:01:47,029] ERROR

      {org.apache.stratos.cloud.controller.util.CloudControllerUtil} - Unable to build the jclouds object for iaas of type: vcloud {org.apache.stratos.cloud.controller.util.CloudControllerUtil}

      java.util.NoSuchElementException: imageId(https://10.105.91.93/api/vAppTemplate/vappTemplate-376512f3-2a9c-45b0-ab30-f9238a1fd647) not found
      at org.jclouds.compute.domain.internal.TemplateBuilderImpl.throwNoSuchElementExceptionAfterLoggingImageIds(TemplateBuilderImpl.java:749)
      at org.jclouds.compute.domain.internal.TemplateBuilderImpl.findImageWithId(TemplateBuilderImpl.java:734)
      at org.jclouds.compute.domain.internal.TemplateBuilderImpl.build(TemplateBuilderImpl.java:687)
      at org.apache.stratos.cloud.controller.iaases.VCloudIaas.buildTemplate(VCloudIaas.java:85)
      at org.apache.stratos.cloud.controller.iaases.VCloudIaas.buildComputeServiceAndTemplate(VCloudIaas.java:64)
      at org.apache.stratos.cloud.controller.util.CloudControllerUtil.setIaas(CloudControllerUtil.java:211)
      at org.apache.stratos.cloud.controller.util.CloudControllerUtil.getIaas(CloudControllerUtil.java:224)
      at org.apache.stratos.cloud.controller.impl.CloudControllerServiceImpl.deployCartridgeDefinition(CloudControllerServiceImpl.java:150)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)

      The same works if I remove one of the network and create a vApp Template and provide this vAPP Template id to stratosmgr.

      Attached are the logs with wire logs enabled.

      Need immediate fix for working on cartridges with multiple networks and all the images that we use have multiple networks.

      Thanks
      Anand.S

      Attachments

        Activity

          People

            Unassigned Unassigned
            anand2381 Anand Srinivasan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: