cloudstack-mirror/server/src/com/cloud/network
Rohit Yadav 746998d162 Merge pull request #1811 from sudhansu7/CLOUDSTACK-9649
CLOUDSTACK-9649: In the management server log there is an error
ISSUE
============
In the management server log there is an error

2016-10-01 00:07:31,670 ERROR [c.c.h.v.r.VmwareResource] (DirectAgent-417:ctx-e8c89b3f strmg-esx-01, cmd: GetRouterAlertsCommand) (logid:7beb3819) Command failed due to Exception: java.io.IOException
Message: There was a problem while connecting to 0.0.0.0:3922

In case of basic zone and VMWare ESXi host, the NIC 2 always gets 0.0.0.0 as IP address. Looks like we are generating an error for connecting through this invalid IP.

2016-10-01 04:37:31,680 DEBUG [c.c.a.m.AgentManagerImpl] (RouterStatusMonitor-1:ctx-8880f9c8) (logid:946838b8) Details from executing class com.cloud.agent.api.routing.GetRouterAlertsCommand: Command failed due to Exception: java.io.IOException
Message: There was a problem while connecting to 0.0.0.0:3922

2016-10-01 04:37:31,680 WARN  [c.c.n.r.VirtualNetworkApplianceManagerImpl] (RouterStatusMonitor-1:ctx-8880f9c8) (logid:946838b8) Unable to get alerts from router r-4-VM Command failed due to Exception: java.io.IOException
Message: There was a problem while connecting to 0.0.0.0:3922

2016-10-01 04:37:31,682 DEBUG [c.c.n.ExternalDeviceUsageManagerImpl] (ExternalNetworkMonitor-1:ctx-913c7bae) (logid:1b926a60) External devices stats collector is running...

Root Cause:
As Link local is not used in basic zone mode (vmware). 0.0.0.0 is just shown as a placeholder address. In getRouterAlerts before sending GetRouterAlertsCommand added check for ip and skip the command if ip is '0.0.0.0'.

* pr/1811:
  CLOUDSTACK-9649: In the management server log there is an error  related to 0.0.0.0 IP address

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2016-12-22 13:30:42 +05:30
..
as Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
element CLOUDSTACK-9287 - Check if the nic profile has already been removed from a certain router 2016-04-09 21:14:17 +02:00
firewall CLOUDSTACK-9617: Fixed enabling remote access after PF or LB configured on vpn tcp ports 2016-12-12 11:59:33 +05:30
guru CLOUDSTACK-9683: system.vm.default.hypervisor will pin the hypervisor for VR too with this fix 2016-12-19 13:06:02 +05:30
lb CLOUDSTACK-9237: Create LB Healthcheck issues - button alignment and error message goes outside the window 2016-01-14 15:23:01 +05:30
router Merge pull request #1811 from sudhansu7/CLOUDSTACK-9649 2016-12-22 13:30:42 +05:30
rules Merge release branch 4.6 to master 2015-12-07 21:36:36 +01:00
security CLOUDSTACK-8813: Notify listeners when a host has been added to a cluster, is about to be removed from a cluster, or has been removed from a cluster 2016-05-11 08:02:46 -06:00
vpc Merge release branch 4.8 to master 2016-05-12 11:04:53 -04:00
vpn [CORE] Add Force UDP Encapsulation option to Site2Site VPN 2016-01-07 19:27:37 +01:00
ExternalDeviceUsageManager.java Reformat all source code. Added checkstyle to check the source code 2013-11-20 07:26:53 -08:00
ExternalDeviceUsageManagerImpl.java Bug-ID: CLOUDSTACK-8870: Skip external device usage collection if no external devices exist 2016-05-23 15:23:23 +05:30
ExternalFirewallDeviceManager.java Removed trailing spaces 2013-11-21 04:08:01 -08:00
ExternalFirewallDeviceManagerImpl.java Revert "Merge pull request #714 from rafaelweingartner/master-lrg-cs-hackday-003" 2015-08-31 11:27:57 +05:30
ExternalIpAddressAllocator.java Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
ExternalLoadBalancerDeviceManager.java CLOUDSTACK-5428: support NetScaler to be configured exclusively for GSLB 2013-12-10 06:20:58 +05:30
ExternalLoadBalancerDeviceManagerImpl.java CLOUDSTACK-89027 Restart Network fails in EIP/ELB zone 2015-09-23 16:19:37 +05:30
ExternalNetworkDeviceManagerImpl.java Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
IpAddrAllocator.java All Checkstyle problems corrected 2013-12-12 12:26:07 -08:00
IpAddressManagerImpl.java Removed unused variables from class NetworkStateListener 2015-12-19 15:54:26 -02:00
Ipv6AddressManager.java Reformat all source code. Added checkstyle to check the source code 2013-11-20 07:26:53 -08:00
Ipv6AddressManagerImpl.java Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
NetworkModelImpl.java Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00
NetworkServiceImpl.java CLOUDSTACK-9086: ACS allows to create isolated networks with invalide gateway IP address - Fixed and Test cases added 2015-12-08 15:27:51 +05:30
NetworkUsageManager.java Reformatted all of the code. 2013-11-21 06:15:26 -08:00
NetworkUsageManagerImpl.java CLOUDSTACK-8813: Notify listeners when a host has been added to a cluster, is about to be removed from a cluster, or has been removed from a cluster 2016-05-11 08:02:46 -06:00
PortProfileManagerImpl.java Reformatted all of the code. 2013-11-21 06:15:26 -08:00
SshKeysDistriMonitor.java CLOUDSTACK-8813: Notify listeners when a host has been added to a cluster, is about to be removed from a cluster, or has been removed from a cluster 2016-05-11 08:02:46 -06:00
StorageNetworkManager.java removed executable flags from java classes 2014-11-23 19:49:01 +01:00
StorageNetworkManagerImpl.java Removed unnecessary @Local annotations and their respective imports from the ComponentLifecycleBase class and its subclasses. 2015-11-21 18:31:11 -02:00