cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sowmya Krishnan (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CLOUDSTACK-6572) [Hyper-V] Deploy VM inside VPC tier fails due to VR unable to find nic
Date Mon, 05 May 2014 07:58:17 GMT

     [ https://issues.apache.org/jira/browse/CLOUDSTACK-6572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sowmya Krishnan updated CLOUDSTACK-6572:
----------------------------------------

    Description: 
Create a VPC offering with all services provided by VPCVR
Create a VPC using this offering
Configure a tier in the VPC with all services enabled including LB
Launch a VM in the tier

Fails to deploy VM since VR is unable to find a nic. VR has allocated all 8 nics but only
eth0 has acquired private IP
Here's ifconfig output of VR:

eth0      Link encap:Ethernet  HWaddr 02:00:02:2d:00:01
          inet addr:10.102.195.179  Bcast:10.102.195.255  Mask:255.255.252.0
          inet6 addr: fe80::2ff:fe2d:1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25785 errors:0 dropped:0 overruns:0 frame:0
          TX packets:431 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2160968 (2.0 MiB)  TX bytes:79183 (77.3 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:214 (214.0 B)  TX bytes:214 (214.0 B)


mysql> select * from domain_router where id = 3\G

                 id: 3
         element_id: 2
 public_mac_address: 06:4b:c6:00:00:0e
  public_ip_address: 10.102.196.237
     public_netmask: 255.255.255.0
      guest_netmask: NULL
   guest_ip_address: NULL
is_redundant_router: 0
           priority: 0
 is_priority_bumpup: 0
    redundant_state: UNKNOWN
       stop_pending: 0
               role: VIRTUAL_ROUTER
   template_version: Cloudstack Release 4.4.0 Fri Apr 11 18:25:32 UTC 2014
    scripts_version: 16486954f5bda9ef9254913c0d692bd0

             vpc_id: 1
1 row in set (0.00 sec)


mysql> select * from nics where vm_type = 'DomainRouter';

| id | uuid                                 | instance_id | mac_address       | ip4_address
   | netmask         | gateway      | ip_type | broadcast_uri | network_id | mode   | state
   | strategy | reserver_name            | reservation_id                       | device_id
| update_time         | isolation_uri | ip6_address | default_nic | vm_type      | created
            | removed | ip6_gateway | ip6_cidr | secondary_ip | display_nic |
+----+--------------------------------------+-------------+-------------------+----------------+-----------------+--------------+---------+---------------+------------+--------+----------+----------+--------------------------+--------------------------------------+-----------+---------------------+---------------+-------------+-------------+--------------+---------------------+---------+-------------+----------+--------------+-------------+
|  8 | a218f142-213f-4dff-9b43-7d9c2b577ea4 |           3 | 02:00:02:2d:00:01 | 10.102.195.179
| 255.255.252.0   | 10.102.192.1 | Ip4     | NULL          |        202 | Static | Reserved
| Start    | ControlNetworkGuru       | 09a63fe0-a914-4a76-ab47-54558b82d900 |         0 |
2014-05-05 09:14:39 | NULL          | NULL        |           0 | DomainRouter | 2014-05-05
03:44:39 | NULL    | NULL        | NULL     |            0 |           1 |
|  9 | 79883821-1efe-4a52-9af9-1f4a8413ed8f |           3 | 06:4b:c6:00:00:0e | 10.102.196.237
| 255.255.255.0   | 10.102.196.1 | NULL    | vlan://100    |        200 | Static | Reserved
| Managed  | PublicNetworkGuru        | NULL                                 |         1 |
2014-05-05 09:14:39 | vlan://100    | NULL        |           1 | DomainRouter | 2014-05-05
03:44:39 | NULL    | NULL        | NULL     |            0 |           1 |
| 11 | fd7db89a-f5a8-4653-aab8-c7c2621546bf |           3 | 02:00:6c:8a:00:02 | 10.10.1.1
     | 255.255.255.240 | 10.10.1.1    | Ip4     | vlan://850    |        204 | Dhcp   | Reserved
| Start    | ExternalGuestNetworkGuru | NULL                                 |         2 |
2014-05-05 11:21:19 | vlan://850    | NULL        |           0 | DomainRouter | 2014-05-05
05:51:19 | NULL    | NULL        | NULL     |            0 |           1 |
| 13 | aeefe9b5-2887-4dab-b691-5c6dea1c4ea6 |           6 | 02:00:7a:c7:00:02 | 10.1.1.1 
     | 255.255.255.0   | NULL         | NULL    | vlan://848    |        205 | Dhcp   | Reserved
| Start    | ExternalGuestNetworkGuru | dfcb4b7c-982e-4dc3-ac18-d96933aca5ae |         0 |
2014-05-05 11:26:03 | vlan://848    | NULL        |           0 | DomainRouter | 2014-05-05
05:56:03 | NULL    | NULL        | NULL     |            0 |           1 |
| 14 | d6d03025-a249-4dcc-b001-7a3500947181 |           6 | 02:00:7a:2b:00:09 | 10.102.195.172
| 255.255.252.0   | 10.102.192.1 | Ip4     | NULL          |        202 | Static | Reserved
| Start    | ControlNetworkGuru       | dfcb4b7c-982e-4dc3-ac18-d96933aca5ae |         1 |
2014-05-05 11:26:03 | NULL          | NULL        |           0 | DomainRouter | 2014-05-05
05:56:03 | NULL    | NULL        | NULL     |            0 |           1 |
| 15 | 659de719-fba0-4e0e-bb40-2b2931194a7b |           6 | 06:3d:34:00:00:0f | 10.102.196.238
| 255.255.255.0   | 10.102.196.1 | NULL    | vlan://100    |        200 | Static | Reserved
| Managed  | PublicNetworkGuru        | NULL                                 |         2 |
2014-05-05 11:26:03 | vlan://100    | NULL        |           1 | DomainRouter | 2014-05-05
05:56:03 | NULL    | NULL        | NULL     |            0 |           1 |

6 rows in set (0.00 sec)

Exception
========


2014-05-05 11:21:24,192 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-31:ctx-0e68a438)
POST response is [{"com.cloud.agent.api.GetVmConfigAnswer":{"vmName":"r-3-VM","nics":[{"m
acAddress":"0200022D0001","vlanid":-1},{"macAddress":"020046B80002","vlanid":4094},{"macAddress":"020055110003","vlanid":4094},{"macAddress":"020050730004","vlanid":4094},{"macAddress":"020
0194E0005","vlanid":4094},{"macAddress":"02006BA90006","vlanid":4094},{"macAddress":"02005CC50007","vlanid":4094},{"macAddress":"02002F3B0008","vlanid":4094}],"result":true,"contextMap":{}}
}]
2014-05-05 11:21:24,193 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-31:ctx-0e68a438)
executeRequest received response [{"com.cloud.agent.api.GetVmConfigAnswer":{"vmName":"r-3
-VM","nics":[{"macAddress":"0200022D0001","vlanid":-1},{"macAddress":"020046B80002","vlanid":4094},{"macAddress":"020055110003","vlanid":4094},{"macAddress":"020050730004","vlanid":4094},{"
macAddress":"0200194E0005","vlanid":4094},{"macAddress":"02006BA90006","vlanid":4094},{"macAddress":"02005CC50007","vlanid":4094},{"macAddress":"02002F3B0008","vlanid":4094}],"result":true,
"contextMap":{},"wait":0}}]
2014-05-05 11:21:24,193 ERROR [c.c.a.r.v.VirtualRoutingResource] (DirectAgent-31:ctx-0e68a438)
Failed to prepare VR command due to Prepare SetupGuestNetwork failed due to unable to find
the
 nic
2014-05-05 11:21:24,197 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-31:ctx-0e68a438) Seq
1-8904742363218314921: Response Received:
2014-05-05 11:21:24,198 DEBUG [c.c.a.t.Request] (DirectAgent-31:ctx-0e68a438) Seq 1-8904742363218314921:
Processing:  { Ans: , MgmtId: 280320865129348, via: 1, Ver: v1, Flags: 110, [{"com.c
loud.agent.api.Answer":{"result":false,"details":"Prepare SetupGuestNetwork failed due to
unable to find the nic","wait":0}}] }
2014-05-05 11:21:24,198 DEBUG [c.c.a.m.AgentAttache] (DirectAgent-31:ctx-0e68a438) Seq 1-8904742363218314921:
No more commands found
2014-05-05 11:21:24,198 DEBUG [c.c.a.t.Request] (Work-Job-Executor-4:job-23/job-24 ctx-0cd3fc4f)
Seq 1-8904742363218314921: Received:  { Ans: , MgmtId: 280320865129348, via: 1, Ver: v1, Fla
gs: 110, { Answer } }
2014-05-05 11:21:24,198 WARN  [c.c.n.r.VpcVirtualNetworkApplianceManagerImpl] (Work-Job-Executor-4:job-23/job-24
ctx-0cd3fc4f) Unable to set guest network on router VM[DomainRouter|r-3-VM]
2014-05-05 11:21:24,198 DEBUG [c.c.n.r.VpcVirtualNetworkApplianceManagerImpl] (Work-Job-Executor-4:job-23/job-24
ctx-0cd3fc4f) Removing the router VM[DomainRouter|r-3-VM] from network Ntwk[7dc858c1-7db6-4894-94b2-009eebec6d1b|Guest|15]
as a part of cleanup
2014-05-05 11:21:24,203 DEBUG [c.c.n.NetworkModelImpl] (Work-Job-Executor-4:job-23/job-24
ctx-0cd3fc4f) Service SecurityGroup is not supported in the network id=204
2014-05-05 11:21:24,209 DEBUG [c.c.n.NetworkModelImpl] (Work-Job-Executor-4:job-23/job-24
ctx-0cd3fc4f) Service SecurityGroup is not supported in the network id=204
2014-05-05 11:21:24,213 DEBUG [c.c.a.t.Request] (Work-Job-Executor-4:job-23/job-24 ctx-0cd3fc4f)
Seq 1-8904742363218314922: Sending  { Cmd , MgmtId: 280320865129348, via: 1(10.102.192.9),
Ver: v1, Flags: 100111, [{"com.cloud.agent.api.SetupGuestNetworkCommand":{"dhcpRange":"10.10.1.1","networkDomain":"cs2cloud.internal","isRedundant":false,"add":false,"nic":{"deviceId":2,"networkRateMbps":200,"defaultNic":false,"uuid":"7dc858c1-7db6-4894-94b2-009eebec6d1b","ip":"10.10.1.1","netmask":"255.255.255.240","gateway":"10.10.1.1","mac":"02:00:6c:8a:00:02","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://850","isolationUri":"vlan://850","isSecurityGroupEnabled":false},"accessDetails":{"router.guest.ip":"10.10.1.1","guest.vlan.tag":"850","guest.network.gateway":"10.10.1.1","guest.bridge":"10.10.1.15","router.name":"r-3-VM","router.ip":"10.102.195.179"},"wait":0}}]
}
2014-05-05 11:21:24,214 DEBUG [c.c.a.t.Request] (Work-Job-Executor-4:job-23/job-24 ctx-0cd3fc4f)
Seq 1-8904742363218314922: Executing:  { Cmd , MgmtId: 280320865129348, via: 1(10.102.192.9),
Ver: v1, Flags: 100111, [{"com.cloud.agent.api.SetupGuestNetworkCommand":{"dhcpRange":"10.10.1.1","networkDomain":"cs2cloud.internal","isRedundant":false,"add":false,"nic":{"deviceId":2,"networkRateMbps":200,"defaultNic":false,"uuid":"7dc858c1-7db6-4894-94b2-009eebec6d1b","ip":"10.10.1.1","netmask":"255.255.255.240","gateway":"10.10.1.1","mac":"02:00:6c:8a:00:02","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://850","isolationUri":"vlan://850","isSecurityGroupEnabled":false},"accessDetails":{"router.guest.ip":"10.10.1.1","guest.vlan.tag":"850","guest.network.gateway":"10.10.1.1","guest.bridge":"10.10.1.15","router.name":"r-3-VM","router.ip":"10.102.195.179"},"wait":0}}]
}
2014-05-05 11:21:24,214 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-244:ctx-8c312f8b)
Seq 1-8904742363218314922: Executing request
2014-05-05 11:21:24,214 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-244:ctx-8c312f8b)
Use router's private IP for SSH control. IP : 10.102.195.179


  was:
Create a VPC offering with all services provided by VPCVR
Create a VPC using this offering
Configure a tier in the VPC with all services enabled including LB
Launch a VM in the tier

Fails to deploy VM since VR is unable to find a nic. VR has allocated all 8 nics but only
eth0 has acquired private IP
Here's ifconfig output of VR:

eth0      Link encap:Ethernet  HWaddr 02:00:02:2d:00:01
          inet addr:10.102.195.179  Bcast:10.102.195.255  Mask:255.255.252.0
          inet6 addr: fe80::2ff:fe2d:1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25785 errors:0 dropped:0 overruns:0 frame:0
          TX packets:431 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2160968 (2.0 MiB)  TX bytes:79183 (77.3 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:214 (214.0 B)  TX bytes:214 (214.0 B)


mysql> select * from domain_router where id = 3\G
*************************** 1. row ***************************
                 id: 3
         element_id: 2
 public_mac_address: 06:4b:c6:00:00:0e
  public_ip_address: 10.102.196.237
     public_netmask: 255.255.255.0
      guest_netmask: NULL
   guest_ip_address: NULL
is_redundant_router: 0
           priority: 0
 is_priority_bumpup: 0
    redundant_state: UNKNOWN
       stop_pending: 0
               role: VIRTUAL_ROUTER
   template_version: Cloudstack Release 4.4.0 Fri Apr 11 18:25:32 UTC 2014
    scripts_version: 16486954f5bda9ef9254913c0d692bd0

             vpc_id: 1
1 row in set (0.00 sec)


mysql> select * from nics where vm_type = 'DomainRouter';
+----+--------------------------------------+-------------+-------------------+----------------+-----------------+--------------+---------+---------------+------------+--------+----------+----------+--------------------------+--------------------------------------+-----------+---------------------+---------------+-------------+-------------+--------------+---------------------+---------+-------------+----------+--------------+-------------+
| id | uuid                                 | instance_id | mac_address       | ip4_address
   | netmask         | gateway      | ip_type | broadcast_uri | network_id | mode   | state
   | strategy | reserver_name            | reservation_id                       | device_id
| update_time         | isolation_uri | ip6_address | default_nic | vm_type      | created
            | removed | ip6_gateway | ip6_cidr | secondary_ip | display_nic |
+----+--------------------------------------+-------------+-------------------+----------------+-----------------+--------------+---------+---------------+------------+--------+----------+----------+--------------------------+--------------------------------------+-----------+---------------------+---------------+-------------+-------------+--------------+---------------------+---------+-------------+----------+--------------+-------------+
|  8 | a218f142-213f-4dff-9b43-7d9c2b577ea4 |           3 | 02:00:02:2d:00:01 | 10.102.195.179
| 255.255.252.0   | 10.102.192.1 | Ip4     | NULL          |        202 | Static | Reserved
| Start    | ControlNetworkGuru       | 09a63fe0-a914-4a76-ab47-54558b82d900 |         0 |
2014-05-05 09:14:39 | NULL          | NULL        |           0 | DomainRouter | 2014-05-05
03:44:39 | NULL    | NULL        | NULL     |            0 |           1 |
|  9 | 79883821-1efe-4a52-9af9-1f4a8413ed8f |           3 | 06:4b:c6:00:00:0e | 10.102.196.237
| 255.255.255.0   | 10.102.196.1 | NULL    | vlan://100    |        200 | Static | Reserved
| Managed  | PublicNetworkGuru        | NULL                                 |         1 |
2014-05-05 09:14:39 | vlan://100    | NULL        |           1 | DomainRouter | 2014-05-05
03:44:39 | NULL    | NULL        | NULL     |            0 |           1 |
| 11 | fd7db89a-f5a8-4653-aab8-c7c2621546bf |           3 | 02:00:6c:8a:00:02 | 10.10.1.1
     | 255.255.255.240 | 10.10.1.1    | Ip4     | vlan://850    |        204 | Dhcp   | Reserved
| Start    | ExternalGuestNetworkGuru | NULL                                 |         2 |
2014-05-05 11:21:19 | vlan://850    | NULL        |           0 | DomainRouter | 2014-05-05
05:51:19 | NULL    | NULL        | NULL     |            0 |           1 |
| 13 | aeefe9b5-2887-4dab-b691-5c6dea1c4ea6 |           6 | 02:00:7a:c7:00:02 | 10.1.1.1 
     | 255.255.255.0   | NULL         | NULL    | vlan://848    |        205 | Dhcp   | Reserved
| Start    | ExternalGuestNetworkGuru | dfcb4b7c-982e-4dc3-ac18-d96933aca5ae |         0 |
2014-05-05 11:26:03 | vlan://848    | NULL        |           0 | DomainRouter | 2014-05-05
05:56:03 | NULL    | NULL        | NULL     |            0 |           1 |
| 14 | d6d03025-a249-4dcc-b001-7a3500947181 |           6 | 02:00:7a:2b:00:09 | 10.102.195.172
| 255.255.252.0   | 10.102.192.1 | Ip4     | NULL          |        202 | Static | Reserved
| Start    | ControlNetworkGuru       | dfcb4b7c-982e-4dc3-ac18-d96933aca5ae |         1 |
2014-05-05 11:26:03 | NULL          | NULL        |           0 | DomainRouter | 2014-05-05
05:56:03 | NULL    | NULL        | NULL     |            0 |           1 |
| 15 | 659de719-fba0-4e0e-bb40-2b2931194a7b |           6 | 06:3d:34:00:00:0f | 10.102.196.238
| 255.255.255.0   | 10.102.196.1 | NULL    | vlan://100    |        200 | Static | Reserved
| Managed  | PublicNetworkGuru        | NULL                                 |         2 |
2014-05-05 11:26:03 | vlan://100    | NULL        |           1 | DomainRouter | 2014-05-05
05:56:03 | NULL    | NULL        | NULL     |            0 |           1 |
+----+--------------------------------------+-------------+-------------------+----------------+-----------------+--------------+---------+---------------+------------+--------+----------+----------+--------------------------+--------------------------------------+-----------+---------------------+---------------+-------------+-------------+--------------+---------------------+---------+-------------+----------+--------------+-------------+
6 rows in set (0.00 sec)

Exception
========


2014-05-05 11:21:24,192 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-31:ctx-0e68a438)
POST response is [{"com.cloud.agent.api.GetVmConfigAnswer":{"vmName":"r-3-VM","nics":[{"m
acAddress":"0200022D0001","vlanid":-1},{"macAddress":"020046B80002","vlanid":4094},{"macAddress":"020055110003","vlanid":4094},{"macAddress":"020050730004","vlanid":4094},{"macAddress":"020
0194E0005","vlanid":4094},{"macAddress":"02006BA90006","vlanid":4094},{"macAddress":"02005CC50007","vlanid":4094},{"macAddress":"02002F3B0008","vlanid":4094}],"result":true,"contextMap":{}}
}]
2014-05-05 11:21:24,193 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-31:ctx-0e68a438)
executeRequest received response [{"com.cloud.agent.api.GetVmConfigAnswer":{"vmName":"r-3
-VM","nics":[{"macAddress":"0200022D0001","vlanid":-1},{"macAddress":"020046B80002","vlanid":4094},{"macAddress":"020055110003","vlanid":4094},{"macAddress":"020050730004","vlanid":4094},{"
macAddress":"0200194E0005","vlanid":4094},{"macAddress":"02006BA90006","vlanid":4094},{"macAddress":"02005CC50007","vlanid":4094},{"macAddress":"02002F3B0008","vlanid":4094}],"result":true,
"contextMap":{},"wait":0}}]
2014-05-05 11:21:24,193 ERROR [c.c.a.r.v.VirtualRoutingResource] (DirectAgent-31:ctx-0e68a438)
Failed to prepare VR command due to Prepare SetupGuestNetwork failed due to unable to find
the
 nic
2014-05-05 11:21:24,197 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-31:ctx-0e68a438) Seq
1-8904742363218314921: Response Received:
2014-05-05 11:21:24,198 DEBUG [c.c.a.t.Request] (DirectAgent-31:ctx-0e68a438) Seq 1-8904742363218314921:
Processing:  { Ans: , MgmtId: 280320865129348, via: 1, Ver: v1, Flags: 110, [{"com.c
loud.agent.api.Answer":{"result":false,"details":"Prepare SetupGuestNetwork failed due to
unable to find the nic","wait":0}}] }
2014-05-05 11:21:24,198 DEBUG [c.c.a.m.AgentAttache] (DirectAgent-31:ctx-0e68a438) Seq 1-8904742363218314921:
No more commands found
2014-05-05 11:21:24,198 DEBUG [c.c.a.t.Request] (Work-Job-Executor-4:job-23/job-24 ctx-0cd3fc4f)
Seq 1-8904742363218314921: Received:  { Ans: , MgmtId: 280320865129348, via: 1, Ver: v1, Fla
gs: 110, { Answer } }
2014-05-05 11:21:24,198 WARN  [c.c.n.r.VpcVirtualNetworkApplianceManagerImpl] (Work-Job-Executor-4:job-23/job-24
ctx-0cd3fc4f) Unable to set guest network on router VM[DomainRouter|r-3-VM]
2014-05-05 11:21:24,198 DEBUG [c.c.n.r.VpcVirtualNetworkApplianceManagerImpl] (Work-Job-Executor-4:job-23/job-24
ctx-0cd3fc4f) Removing the router VM[DomainRouter|r-3-VM] from network Ntwk[7dc858c1-7db6-4894-94b2-009eebec6d1b|Guest|15]
as a part of cleanup
2014-05-05 11:21:24,203 DEBUG [c.c.n.NetworkModelImpl] (Work-Job-Executor-4:job-23/job-24
ctx-0cd3fc4f) Service SecurityGroup is not supported in the network id=204
2014-05-05 11:21:24,209 DEBUG [c.c.n.NetworkModelImpl] (Work-Job-Executor-4:job-23/job-24
ctx-0cd3fc4f) Service SecurityGroup is not supported in the network id=204
2014-05-05 11:21:24,213 DEBUG [c.c.a.t.Request] (Work-Job-Executor-4:job-23/job-24 ctx-0cd3fc4f)
Seq 1-8904742363218314922: Sending  { Cmd , MgmtId: 280320865129348, via: 1(10.102.192.9),
Ver: v1, Flags: 100111, [{"com.cloud.agent.api.SetupGuestNetworkCommand":{"dhcpRange":"10.10.1.1","networkDomain":"cs2cloud.internal","isRedundant":false,"add":false,"nic":{"deviceId":2,"networkRateMbps":200,"defaultNic":false,"uuid":"7dc858c1-7db6-4894-94b2-009eebec6d1b","ip":"10.10.1.1","netmask":"255.255.255.240","gateway":"10.10.1.1","mac":"02:00:6c:8a:00:02","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://850","isolationUri":"vlan://850","isSecurityGroupEnabled":false},"accessDetails":{"router.guest.ip":"10.10.1.1","guest.vlan.tag":"850","guest.network.gateway":"10.10.1.1","guest.bridge":"10.10.1.15","router.name":"r-3-VM","router.ip":"10.102.195.179"},"wait":0}}]
}
2014-05-05 11:21:24,214 DEBUG [c.c.a.t.Request] (Work-Job-Executor-4:job-23/job-24 ctx-0cd3fc4f)
Seq 1-8904742363218314922: Executing:  { Cmd , MgmtId: 280320865129348, via: 1(10.102.192.9),
Ver: v1, Flags: 100111, [{"com.cloud.agent.api.SetupGuestNetworkCommand":{"dhcpRange":"10.10.1.1","networkDomain":"cs2cloud.internal","isRedundant":false,"add":false,"nic":{"deviceId":2,"networkRateMbps":200,"defaultNic":false,"uuid":"7dc858c1-7db6-4894-94b2-009eebec6d1b","ip":"10.10.1.1","netmask":"255.255.255.240","gateway":"10.10.1.1","mac":"02:00:6c:8a:00:02","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://850","isolationUri":"vlan://850","isSecurityGroupEnabled":false},"accessDetails":{"router.guest.ip":"10.10.1.1","guest.vlan.tag":"850","guest.network.gateway":"10.10.1.1","guest.bridge":"10.10.1.15","router.name":"r-3-VM","router.ip":"10.102.195.179"},"wait":0}}]
}
2014-05-05 11:21:24,214 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-244:ctx-8c312f8b)
Seq 1-8904742363218314922: Executing request
2014-05-05 11:21:24,214 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-244:ctx-8c312f8b)
Use router's private IP for SSH control. IP : 10.102.195.179



> [Hyper-V] Deploy VM inside VPC tier fails due to VR unable to find nic
> ----------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-6572
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6572
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Hypervisor Controller, Network Controller
>    Affects Versions: 4.4.0
>         Environment: 4.4, Hyper-V Advanced zone, VPC
>            Reporter: Sowmya Krishnan
>            Priority: Blocker
>             Fix For: 4.4.0
>
>
> Create a VPC offering with all services provided by VPCVR
> Create a VPC using this offering
> Configure a tier in the VPC with all services enabled including LB
> Launch a VM in the tier
> Fails to deploy VM since VR is unable to find a nic. VR has allocated all 8 nics but
only eth0 has acquired private IP
> Here's ifconfig output of VR:
> eth0      Link encap:Ethernet  HWaddr 02:00:02:2d:00:01
>           inet addr:10.102.195.179  Bcast:10.102.195.255  Mask:255.255.252.0
>           inet6 addr: fe80::2ff:fe2d:1/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:25785 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:431 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:2160968 (2.0 MiB)  TX bytes:79183 (77.3 KiB)
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           inet6 addr: ::1/128 Scope:Host
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:2 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:214 (214.0 B)  TX bytes:214 (214.0 B)
> mysql> select * from domain_router where id = 3\G
>                  id: 3
>          element_id: 2
>  public_mac_address: 06:4b:c6:00:00:0e
>   public_ip_address: 10.102.196.237
>      public_netmask: 255.255.255.0
>       guest_netmask: NULL
>    guest_ip_address: NULL
> is_redundant_router: 0
>            priority: 0
>  is_priority_bumpup: 0
>     redundant_state: UNKNOWN
>        stop_pending: 0
>                role: VIRTUAL_ROUTER
>    template_version: Cloudstack Release 4.4.0 Fri Apr 11 18:25:32 UTC 2014
>     scripts_version: 16486954f5bda9ef9254913c0d692bd0
>              vpc_id: 1
> 1 row in set (0.00 sec)
> mysql> select * from nics where vm_type = 'DomainRouter';
> | id | uuid                                 | instance_id | mac_address       | ip4_address
   | netmask         | gateway      | ip_type | broadcast_uri | network_id | mode   | state
   | strategy | reserver_name            | reservation_id                       | device_id
| update_time         | isolation_uri | ip6_address | default_nic | vm_type      | created
            | removed | ip6_gateway | ip6_cidr | secondary_ip | display_nic |
> +----+--------------------------------------+-------------+-------------------+----------------+-----------------+--------------+---------+---------------+------------+--------+----------+----------+--------------------------+--------------------------------------+-----------+---------------------+---------------+-------------+-------------+--------------+---------------------+---------+-------------+----------+--------------+-------------+
> |  8 | a218f142-213f-4dff-9b43-7d9c2b577ea4 |           3 | 02:00:02:2d:00:01 | 10.102.195.179
| 255.255.252.0   | 10.102.192.1 | Ip4     | NULL          |        202 | Static | Reserved
| Start    | ControlNetworkGuru       | 09a63fe0-a914-4a76-ab47-54558b82d900 |         0 |
2014-05-05 09:14:39 | NULL          | NULL        |           0 | DomainRouter | 2014-05-05
03:44:39 | NULL    | NULL        | NULL     |            0 |           1 |
> |  9 | 79883821-1efe-4a52-9af9-1f4a8413ed8f |           3 | 06:4b:c6:00:00:0e | 10.102.196.237
| 255.255.255.0   | 10.102.196.1 | NULL    | vlan://100    |        200 | Static | Reserved
| Managed  | PublicNetworkGuru        | NULL                                 |         1 |
2014-05-05 09:14:39 | vlan://100    | NULL        |           1 | DomainRouter | 2014-05-05
03:44:39 | NULL    | NULL        | NULL     |            0 |           1 |
> | 11 | fd7db89a-f5a8-4653-aab8-c7c2621546bf |           3 | 02:00:6c:8a:00:02 | 10.10.1.1
     | 255.255.255.240 | 10.10.1.1    | Ip4     | vlan://850    |        204 | Dhcp   | Reserved
| Start    | ExternalGuestNetworkGuru | NULL                                 |         2 |
2014-05-05 11:21:19 | vlan://850    | NULL        |           0 | DomainRouter | 2014-05-05
05:51:19 | NULL    | NULL        | NULL     |            0 |           1 |
> | 13 | aeefe9b5-2887-4dab-b691-5c6dea1c4ea6 |           6 | 02:00:7a:c7:00:02 | 10.1.1.1
      | 255.255.255.0   | NULL         | NULL    | vlan://848    |        205 | Dhcp   | Reserved
| Start    | ExternalGuestNetworkGuru | dfcb4b7c-982e-4dc3-ac18-d96933aca5ae |         0 |
2014-05-05 11:26:03 | vlan://848    | NULL        |           0 | DomainRouter | 2014-05-05
05:56:03 | NULL    | NULL        | NULL     |            0 |           1 |
> | 14 | d6d03025-a249-4dcc-b001-7a3500947181 |           6 | 02:00:7a:2b:00:09 | 10.102.195.172
| 255.255.252.0   | 10.102.192.1 | Ip4     | NULL          |        202 | Static | Reserved
| Start    | ControlNetworkGuru       | dfcb4b7c-982e-4dc3-ac18-d96933aca5ae |         1 |
2014-05-05 11:26:03 | NULL          | NULL        |           0 | DomainRouter | 2014-05-05
05:56:03 | NULL    | NULL        | NULL     |            0 |           1 |
> | 15 | 659de719-fba0-4e0e-bb40-2b2931194a7b |           6 | 06:3d:34:00:00:0f | 10.102.196.238
| 255.255.255.0   | 10.102.196.1 | NULL    | vlan://100    |        200 | Static | Reserved
| Managed  | PublicNetworkGuru        | NULL                                 |         2 |
2014-05-05 11:26:03 | vlan://100    | NULL        |           1 | DomainRouter | 2014-05-05
05:56:03 | NULL    | NULL        | NULL     |            0 |           1 |
> 6 rows in set (0.00 sec)
> Exception
> ========
> 2014-05-05 11:21:24,192 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-31:ctx-0e68a438)
POST response is [{"com.cloud.agent.api.GetVmConfigAnswer":{"vmName":"r-3-VM","nics":[{"m
> acAddress":"0200022D0001","vlanid":-1},{"macAddress":"020046B80002","vlanid":4094},{"macAddress":"020055110003","vlanid":4094},{"macAddress":"020050730004","vlanid":4094},{"macAddress":"020
> 0194E0005","vlanid":4094},{"macAddress":"02006BA90006","vlanid":4094},{"macAddress":"02005CC50007","vlanid":4094},{"macAddress":"02002F3B0008","vlanid":4094}],"result":true,"contextMap":{}}
> }]
> 2014-05-05 11:21:24,193 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-31:ctx-0e68a438)
executeRequest received response [{"com.cloud.agent.api.GetVmConfigAnswer":{"vmName":"r-3
> -VM","nics":[{"macAddress":"0200022D0001","vlanid":-1},{"macAddress":"020046B80002","vlanid":4094},{"macAddress":"020055110003","vlanid":4094},{"macAddress":"020050730004","vlanid":4094},{"
> macAddress":"0200194E0005","vlanid":4094},{"macAddress":"02006BA90006","vlanid":4094},{"macAddress":"02005CC50007","vlanid":4094},{"macAddress":"02002F3B0008","vlanid":4094}],"result":true,
> "contextMap":{},"wait":0}}]
> 2014-05-05 11:21:24,193 ERROR [c.c.a.r.v.VirtualRoutingResource] (DirectAgent-31:ctx-0e68a438)
Failed to prepare VR command due to Prepare SetupGuestNetwork failed due to unable to find
the
>  nic
> 2014-05-05 11:21:24,197 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-31:ctx-0e68a438)
Seq 1-8904742363218314921: Response Received:
> 2014-05-05 11:21:24,198 DEBUG [c.c.a.t.Request] (DirectAgent-31:ctx-0e68a438) Seq 1-8904742363218314921:
Processing:  { Ans: , MgmtId: 280320865129348, via: 1, Ver: v1, Flags: 110, [{"com.c
> loud.agent.api.Answer":{"result":false,"details":"Prepare SetupGuestNetwork failed due
to unable to find the nic","wait":0}}] }
> 2014-05-05 11:21:24,198 DEBUG [c.c.a.m.AgentAttache] (DirectAgent-31:ctx-0e68a438) Seq
1-8904742363218314921: No more commands found
> 2014-05-05 11:21:24,198 DEBUG [c.c.a.t.Request] (Work-Job-Executor-4:job-23/job-24 ctx-0cd3fc4f)
Seq 1-8904742363218314921: Received:  { Ans: , MgmtId: 280320865129348, via: 1, Ver: v1, Fla
> gs: 110, { Answer } }
> 2014-05-05 11:21:24,198 WARN  [c.c.n.r.VpcVirtualNetworkApplianceManagerImpl] (Work-Job-Executor-4:job-23/job-24
ctx-0cd3fc4f) Unable to set guest network on router VM[DomainRouter|r-3-VM]
> 2014-05-05 11:21:24,198 DEBUG [c.c.n.r.VpcVirtualNetworkApplianceManagerImpl] (Work-Job-Executor-4:job-23/job-24
ctx-0cd3fc4f) Removing the router VM[DomainRouter|r-3-VM] from network Ntwk[7dc858c1-7db6-4894-94b2-009eebec6d1b|Guest|15]
as a part of cleanup
> 2014-05-05 11:21:24,203 DEBUG [c.c.n.NetworkModelImpl] (Work-Job-Executor-4:job-23/job-24
ctx-0cd3fc4f) Service SecurityGroup is not supported in the network id=204
> 2014-05-05 11:21:24,209 DEBUG [c.c.n.NetworkModelImpl] (Work-Job-Executor-4:job-23/job-24
ctx-0cd3fc4f) Service SecurityGroup is not supported in the network id=204
> 2014-05-05 11:21:24,213 DEBUG [c.c.a.t.Request] (Work-Job-Executor-4:job-23/job-24 ctx-0cd3fc4f)
Seq 1-8904742363218314922: Sending  { Cmd , MgmtId: 280320865129348, via: 1(10.102.192.9),
Ver: v1, Flags: 100111, [{"com.cloud.agent.api.SetupGuestNetworkCommand":{"dhcpRange":"10.10.1.1","networkDomain":"cs2cloud.internal","isRedundant":false,"add":false,"nic":{"deviceId":2,"networkRateMbps":200,"defaultNic":false,"uuid":"7dc858c1-7db6-4894-94b2-009eebec6d1b","ip":"10.10.1.1","netmask":"255.255.255.240","gateway":"10.10.1.1","mac":"02:00:6c:8a:00:02","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://850","isolationUri":"vlan://850","isSecurityGroupEnabled":false},"accessDetails":{"router.guest.ip":"10.10.1.1","guest.vlan.tag":"850","guest.network.gateway":"10.10.1.1","guest.bridge":"10.10.1.15","router.name":"r-3-VM","router.ip":"10.102.195.179"},"wait":0}}]
}
> 2014-05-05 11:21:24,214 DEBUG [c.c.a.t.Request] (Work-Job-Executor-4:job-23/job-24 ctx-0cd3fc4f)
Seq 1-8904742363218314922: Executing:  { Cmd , MgmtId: 280320865129348, via: 1(10.102.192.9),
Ver: v1, Flags: 100111, [{"com.cloud.agent.api.SetupGuestNetworkCommand":{"dhcpRange":"10.10.1.1","networkDomain":"cs2cloud.internal","isRedundant":false,"add":false,"nic":{"deviceId":2,"networkRateMbps":200,"defaultNic":false,"uuid":"7dc858c1-7db6-4894-94b2-009eebec6d1b","ip":"10.10.1.1","netmask":"255.255.255.240","gateway":"10.10.1.1","mac":"02:00:6c:8a:00:02","broadcastType":"Vlan","type":"Guest","broadcastUri":"vlan://850","isolationUri":"vlan://850","isSecurityGroupEnabled":false},"accessDetails":{"router.guest.ip":"10.10.1.1","guest.vlan.tag":"850","guest.network.gateway":"10.10.1.1","guest.bridge":"10.10.1.15","router.name":"r-3-VM","router.ip":"10.102.195.179"},"wait":0}}]
}
> 2014-05-05 11:21:24,214 DEBUG [c.c.a.m.DirectAgentAttache] (DirectAgent-244:ctx-8c312f8b)
Seq 1-8904742363218314922: Executing request
> 2014-05-05 11:21:24,214 DEBUG [c.c.h.h.r.HypervDirectConnectResource] (DirectAgent-244:ctx-8c312f8b)
Use router's private IP for SSH control. IP : 10.102.195.179



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message