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 swamybabu budumuru (JIRA)" <ji...@apache.org> on 2013/06/14 13:25:20 UTC

[jira] [Created] (CLOUDSTACK-3010) [VMWare] [SharedNetworkWithServices] router VM deployment fails with error "Message: Invalid configuration for device '2'."

venkata swamybabu budumuru created CLOUDSTACK-3010:
------------------------------------------------------

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


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