[
https://issues.apache.org/jira/browse/CLOUDSTACK-3010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13744635#comment-13744635
]
Venkata Siva Vijayendra Bhamidipati commented on CLOUDSTACK-3010:
-----------------------------------------------------------------
This happens only on shared networks, when the firewall and source NAT options
are enabled using Virtual Router in the custom network offering. The mgmt layer
isn't supplying a mac address to the guest network's NicVO. The db entry shows
up like this:
mysql> select * from nics where id=37\G;
*************************** 1. row ***************************
id: 37
uuid: 095616df-e95b-479b-a9f9-591a5db72b12
instance_id: 16
mac_address: NULL
ip4_address: 10.8.1.1
netmask: 255.255.255.128
gateway: NULL
ip_type: NULL
broadcast_uri: vlan://2418
network_id: 209
mode: Dhcp
state: Allocated
strategy: Create
reserver_name: DirectNetworkGuru
reservation_id: NULL
device_id: 0
update_time: 2013-08-19 12:54:37
isolation_uri: vlan://2418
ip6_address: NULL
default_nic: 0
vm_type: DomainRouter
created: 2013-08-19 16:06:10
removed: NULL
ip6_gateway: NULL
ip6_cidr: NULL
secondary_ip: 0
display_nic: 1
1 row in set (0.00 sec)
ERROR:
No query specified
mysql>
The above NIC entries are made in allocateNic() in NetworkManagerImpl.java.
This seems to be called when the guest VM is being setup/created, but not when
the router VM is being created. Not clear where or why the guest mac address
isn't being allocated for the router VM. This doesn't seem to be a vmware
specific issue because it's all happening in the mgmt layers and afai can see,
outside the vmware guru.
> [VMWare] [SharedNetworkWithServices] router VM deployment fails with error
> "Message: Invalid configuration for device '2'."
> ---------------------------------------------------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-3010
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3010
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: VMware
> Affects Versions: 4.2.0
> Environment: commit # 971c40d98e07ab6cddb8e6db5095c1acea935815
> Reporter: venkata swamybabu budumuru
> Assignee: Venkata Siva Vijayendra Bhamidipati
> Priority: Critical
> Fix For: 4.2.0
>
> Attachments: logs.setup1.tgz, logs.setup2.tgz, logs.tgz
>
>
> Steps to reproduce :
> 1. Have latest CloudStack setup with advanced zone using VMware cluster (1
> host added to the cluster)
> 2. create a shared network with all services enabled
> mysql> select * from network_offerings where id=14\G
> *************************** 1. row ***************************
> id: 14
> name: CustomSharedOffering
> uuid: dbee9234-e443-4f00-827e-e9258bb0c209
> unique_name: CustomSharedOffering
> display_text: CustomSharedOffering
> nw_rate: NULL
> mc_rate: 10
> traffic_type: Guest
> tags: NULL
> system_only: 0
> specify_vlan: 1
> service_offering_id: NULL
> conserve_mode: 0
> created: 2013-06-14 14:34:10
> removed: NULL
> default: 0
> availability: Optional
> dedicated_lb_service: 1
> shared_source_nat_service: 0
> sort_key: 0
> redundant_router_service: 0
> state: Enabled
> guest_type: Shared
> elastic_ip_service: 0
> eip_associate_public_ip: 0
> elastic_lb_service: 0
> specify_ip_ranges: 1
> inline: 0
> is_persistent: 0
> internal_lb: 0
> public_lb: 1
> mysql> select * from ntwk_offering_service_map where network_offering_id=14;
> +----+---------------------+----------------+---------------+---------------------+
> | id | network_offering_id | service | provider | created
> |
> +----+---------------------+----------------+---------------+---------------------+
> | 48 | 14 | Dhcp | VirtualRouter | 2013-06-14
> 14:34:10 |
> | 52 | 14 | Dns | VirtualRouter | 2013-06-14
> 14:34:10 |
> | 51 | 14 | Firewall | VirtualRouter | 2013-06-14
> 14:34:10 |
> | 49 | 14 | Lb | VirtualRouter | 2013-06-14
> 14:34:10 |
> | 53 | 14 | PortForwarding | VirtualRouter | 2013-06-14
> 14:34:10 |
> | 46 | 14 | SourceNat | VirtualRouter | 2013-06-14
> 14:34:10 |
> | 50 | 14 | StaticNat | VirtualRouter | 2013-06-14
> 14:34:10 |
> | 47 | 14 | UserData | VirtualRouter | 2013-06-14
> 14:34:10 |
> +----+---------------------+----------------+---------------+---------------------+
> 3. create a Network using the above offering
> 4. Login as non-ROOT domain user and try to deploy VM using the above network.
> Observations:
> (i) deployment failed with the following error.
> 2013-06-14 11:49:53,743 DEBUG [vmware.mo.HostMO]
> (DirectAgent-29:10.147.40.12) find VM r-27-VM on host
> 2013-06-14 11:49:53,743 DEBUG [vmware.mo.HostMO]
> (DirectAgent-29:10.147.40.12) VM r-27-VM found in host cache
> 2013-06-14 11:49:53,764 INFO [vmware.resource.VmwareResource]
> (DirectAgent-29:10.147.40.12) Configure VNC port for VM r-27-VM, port: 5914,
> host: 10.147.40.12
> 2013-06-14 11:49:53,889 WARN [vmware.resource.VmwareResource]
> (DirectAgent-29:10.147.40.12) StartCommand failed due to Exception:
> java.lang.RuntimeException
> Message: Invalid configuration for device '2'.
> java.lang.RuntimeException: Invalid configuration for device '2'.
> at
> com.cloud.hypervisor.vmware.util.VmwareClient.waitForTask(VmwareClient.java:291)
> at
> com.cloud.hypervisor.vmware.mo.VirtualMachineMO.configureVm(VirtualMachineMO.java:832)
> at
> com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:2674)
> at
> com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:474)
> at
> com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:186)
> 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.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
> 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)
> 2013-06-14 11:49:53,891 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-29:null) Seq 1-1703608434: Cancelling because one of the answers
> is false and it is stop on error.
> 2013-06-14 11:49:53,891 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-29:null) Seq 1-1703608434: Response Received:
> (ii) from the above logs, it failed during the network implement phase
> (router deployment failed)
> This is always reproducible with vmware setup.
> Uploading all the logs along with db dump to the bug.
--
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