mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-6663: Fixed Hyper-V agent fails to start on some setups. During startup agent tries
to get nic info of 0.0.0.0. To get it, it iterates through all nics and return the last NIC in the list if it doesn't match with any IP address. In case last NIC doesn't have unicastAddress, Hyper-V agent will fail to start. We don't need IP address during initialization. It get initialized with startupcommand later.
This commit is contained in:
parent
3f947f6124
commit
26fa623ffd
@ -72,8 +72,6 @@ namespace CloudStack.Plugin.AgentShell
|
||||
// use of VisualStudio settings designer. The designer allows us to avoid
|
||||
// accessing config using their key strings.
|
||||
HypervResourceControllerConfig rsrcCnf = new HypervResourceControllerConfig();
|
||||
rsrcCnf.PrivateIpAddress = AgentSettings.Default.private_ip_address;
|
||||
rsrcCnf.GatewayIpAddress = AgentSettings.Default.gateway_ip_address;
|
||||
rsrcCnf.RootDeviceReservedSpaceBytes = AgentSettings.Default.RootDeviceReservedSpaceBytes;
|
||||
rsrcCnf.RootDeviceName = AgentSettings.Default.RootDeviceName;
|
||||
rsrcCnf.ParentPartitionMinMemoryMb = AgentSettings.Default.dom0MinMemory;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user