You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Venkata Siva Vijayendra Bhamidipati (JIRA)" <ji...@apache.org> on 2013/05/30 22:32:22 UTC

[jira] [Commented] (CLOUDSTACK-2730) vmware:addcluster failed in basiczone

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-2730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13670682#comment-13670682 ] 

Venkata Siva Vijayendra Bhamidipati commented on CLOUDSTACK-2730:
-----------------------------------------------------------------

Sadhu,

I was able to create a basic zone with network offering as "DefaultSharedNetworkOffering". I didn't face the issue mentioned above. We cannot use the "DefaultSharedNetworkOfferingWithSGService" for VMWare - ESX doesn't have iptables support and so we cannot program a VR to support security groups at L3 on ESX. Instead, PVLAN support was put in for VMware deployments in order to provide functionally similar isolation between VMs. What network offering did you use during the basic zone creation? If the latter, can you please check the result of using the former?

In my setup, though the zone creation went through fine, I ran into an exception when attempting to create a guest VM. This is the exception I hit:


WARN  [apache.cloudstack.alerts] (Job-Executor-9:job-9)  alertType:: 8 // dataCenterId:: 1 // podId:: null // clusterId:: null // message:: Failed to deploy Vm with Id: 5, on Host with Id: null
ERROR [cloud.async.AsyncJobManagerImpl] (Job-Executor-9:job-9) Unexpected exception while executing org.apache.cloudstack.api.command.user.vm.DeployVMCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to deploy VM. Zone bzone1 is dedicated.
        at com.cloud.deploy.DeploymentPlanningManagerImpl.checkForNonDedicatedResources(DeploymentPlanningManagerImpl.java:454)
        at com.cloud.deploy.DeploymentPlanningManagerImpl.planDeployment(DeploymentPlanningManagerImpl.java:213)
        at org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.reserveVirtualMachine(VMEntityManagerImpl.java:186)
        at org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.reserve(VirtualMachineEntityImpl.java:198)
        at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3268)
        at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2807)
        at com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2793)
        at com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
        at org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:420)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:155)
        at com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:437)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:679)


That is however a completely different bug, so I'll log one for it to track it separately. Since I'm not running into issues with basic zone creation on master, I'll downgrade this bug from blocker to major.

Regards,
Vijay
                
> vmware:addcluster failed in basiczone
> -------------------------------------
>
>                 Key: CLOUDSTACK-2730
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-2730
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: VMware
>    Affects Versions: 4.2.0
>            Reporter: sadhu suresh
>            Assignee: Venkata Siva Vijayendra Bhamidipati
>            Priority: Blocker
>         Attachments: management-server.log
>
>
> In case of vmware ,when i try to configure basic zone with shared network.addcluster failed with 
> "Creating cluster Something went wrong; please correct the following:Don't support hypervisor type VMware in advanced security enabled zone" even though i select the bassic and shared network.
> 1.select the  zone type as basic
> 2.select the network type as shared
> 3.provide pod ,guest details  and configure primary and secondary detaisl
> 4.click on "finish" to create basic zone with shared network mode
> Actual result:
> even though i select shared network in basic zone,it sends security group enble to true internally. due to this  addcluster failed .
> It throws following error:
> Creating cluster Something went wrong; please correct the following:Don't support hypervisor type VMware in advanced security enabled zone
> mysql> select * from data_center where id=2\G;
> *************************** 1. row ***************************
>                        id: 2
>                      name: zone1
>                      uuid: c642382d-8587-4cd7-a1e9-5a488bb47da7
>               description: NULL
>                      dns1: 10.103.128.16
>                      dns2: NULL
>             internal_dns1: 10.103.128.16
>             internal_dns2: NULL
>                   gateway: NULL
>                   netmask: NULL
>        router_mac_address: 02:00:00:00:00:01
>               mac_address: 23
>        guest_network_cidr: NULL
>                    domain: NULL
>                 domain_id: NULL
>               networktype: Basic
>              dns_provider: VirtualRouter
>          gateway_provider: NULL
>         firewall_provider: NULL
>             dhcp_provider: VirtualRouter
>               lb_provider: ElasticLoadBalancerVm
>              vpn_provider: NULL
>         userdata_provider: VirtualRouter
>          allocation_state: Disabled
>                zone_token: 68de3ddf-3a08-3371-9506-a57a4a0a8af5
> is_security_group_enabled: 1
>  is_local_storage_enabled: 0
>                   removed: NULL
>                     owner: NULL
>                   created: NULL
>               lastUpdated: NULL
>              engine_state: Disabled
>                  ip6_dns1: NULL
>                  ip6_dns2: NULL
> 1 row in set (0.00 sec)
> mysql> select * from networks where id=209\G;
> *************************** 1. row ***************************
>                    id: 209
>                  name: defaultGuestNetwork
>                  uuid: eca88272-2ad4-47a8-ab90-442393b6d034
>          display_text: defaultGuestNetwork
>          traffic_type: Guest
> broadcast_domain_type: Native
>         broadcast_uri: vlan://untagged
>               gateway: NULL
>                  cidr: NULL
>                  mode: Dhcp
>   network_offering_id: 7
>   physical_network_id: 201
>        data_center_id: 2
>             guru_name: DirectPodBasedNetworkGuru
>                 state: Setup
>               related: 209
>             domain_id: 1
>            account_id: 1
>                  dns1: NULL
>                  dns2: NULL
>             guru_data: NULL
>            set_fields: 0
>              acl_type: Domain
>        network_domain: cs1cloud.internal
>        reservation_id: NULL
>            guest_type: Shared
>      restart_required: 0
>               created: 2013-05-29 12:21:04
>               removed: NULL
>     specify_ip_ranges: 1
>                vpc_id: NULL
>           ip6_gateway: NULL
>              ip6_cidr: NULL
>          network_cidr: NULL
>       display_network: 1
>        network_acl_id: NULL
> 1 row in set (0.00 sec)
> http://10.147.59.83:8080/client/api?command=createZone&networktype=Basic&name=zone1&dns1=10.103.128.16&internaldns1=10.103.128.16&response=json&sessionkey=6%2BUi17Y6gpixRBAR9s4yhQCQkhs%3D&_=1369810303912
> { "createzoneresponse" :  { "zone" : {"id":"c642382d-8587-4cd7-a1e9-5a488bb47da7","name":"zone1","dns1":"10.103.128.16","internaldns1":"10.103.128.16","networktype":"Basic","securitygroupsenabled":true,"allocationstate":"Disabled","zonetoken":"68de3ddf-3a08-3371-9506-a57a4a0a8af5","dhcpprovider":"VirtualRouter","localstorageenabled":false} }  }
> http://10.147.59.83:8080/client/api?command=addCluster&zoneId=c642382d-8587-4cd7-a1e9-5a488bb47da7&hypervisor=VMware&clustertype=ExternalManaged&podId=2d5d2425-993c-466c-ba48-12268389b4aa&username=administrator&password=xxxx&publicvswitchtype=vmwaredvs&guestvswitchtype=vmwaredvs&url=http%3A%2F%2F10.147.60.15%2FSadhu%2Fcluster&clustername=10.147.60.15%2FSadhu%2Fcluster&response=json&sessionkey=6%2BUi17Y6gpixRBAR9s4yhQCQkhs%3D&_=1369810340547
> { "addclusterresponse" : {"uuidList":[],"errorcode":431,"cserrorcode":4350,"errortext":"Don't support hypervisor type VMware in advanced security enabled zone"} }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira