[jira] [Commented] (CLOUDSTACK-2730) vmware:addcluster failed in basiczone(showing SG enabled to true eventhough zone created with sharednetwork)

2013-08-27 Thread Venkata Siva Vijayendra Bhamidipati (JIRA)

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

Venkata Siva Vijayendra Bhamidipati commented on CLOUDSTACK-2730:
-

Hi Sadhu,

I re-ran this with the latest 4.2-forward build and basic zone creation and 
cluster addition goes through fine as before.

I am not running into the message Don't support hypervisor type VMware in 
advanced security enabled zone that you encountered because Anthony has fixed 
this as part of commit # 9905f656a5307c9d9b990ed988c2ea82b432231a. You 
shouldn't be having an issue with addcluster anymore.

However, you are right in that the db entry for the zone in the data_center 
table shows security groups as enabled. I took a look at the code and I see 
that when a basic zone is created, it is always enabled with security groups by 
default, because except vmware, all other hypervisors can implement this as a 
service. This setting will be ignored/errored out for vmware deployments.

 vmware:addcluster failed in basiczone(showing SG enabled to true eventhough 
 zone created with sharednetwork)
 

 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
 Fix For: 4.2.0

 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
  

[jira] [Commented] (CLOUDSTACK-2730) vmware:addcluster failed in basiczone(showing SG enabled to true eventhough zone created with sharednetwork)

2013-07-29 Thread Venkata Siva Vijayendra Bhamidipati (JIRA)

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

Venkata Siva Vijayendra Bhamidipati commented on CLOUDSTACK-2730:
-

Will take a look at this at the earliest opportunity. However, we don't 
officially support basic zones on vmware, so will downgrade this to major for 
now.

 vmware:addcluster failed in basiczone(showing SG enabled to true eventhough 
 zone created with sharednetwork)
 

 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: Critical
 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=createZonenetworktype=Basicname=zone1dns1=10.103.128.16internaldns1=10.103.128.16response=jsonsessionkey=6%2BUi17Y6gpixRBAR9s4yhQCQkhs%3D_=1369810303912
 { createzoneresponse :  { zone : 
 

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

2013-05-30 Thread Venkata Siva Vijayendra Bhamidipati (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-2730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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: 

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

2013-05-30 Thread Venkata Siva Vijayendra Bhamidipati (JIRA)

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

Venkata Siva Vijayendra Bhamidipati commented on CLOUDSTACK-2730:
-

Hi Sadhu,

I however also see in the api.log :


2013-05-30 06:25:04,535 INFO  [cloud.api.ApiServer] 
(1098573588@qtp-414027396-3:null) (userId=2 accountId=2 
sessionId=1w0iv5bem478ngltlv2re3c2q) 10.217.252.54 -- GET 
command=createZonenetworktype=Basicname=bzone1dns1=8.8.8.8internaldns1=10.223.110.254domainid=c24461de-c929-11e2-bd29-000c29db3315response=jsonsessionkey=ig%2BOPPVzg%2Fq5kmvsnRyvASKKhsE%3D_=1369943269624
 200 { createzoneresponse :  { zone : 
{id:e75121e3-7a3f-4106-a47f-da3917a8b262,name:bzone1,dns1:8.8.8.8,internaldns1:10.223.110.254,networktype:Basic,securitygroupsenabled:true,allocationstate:Disabled,zonetoken:f419ad99-3d70-3442-904e-b9ffd92e9185,dhcpprovider:VirtualRouter,localstorageenabled:false}
 }  }



So looks like the GUI is sending the securitygroupsenabled flag as true - 
someone from the GUI team will need to take a look at this and fix the way the 
createzone API is being issued from the cloudstack GUI.


BTW I've logged https://issues.apache.org/jira/browse/CLOUDSTACK-2771 to track 
the VM creation failure issue.

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
 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