[
https://issues.apache.org/jira/browse/CLOUDSTACK-8584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15276206#comment-15276206
]
Grant Williams commented on CLOUDSTACK-8584:
--------------------------------------------
I have setup a new cluster in our test lab and have experienced the same error
on CloudStack 4.7.1. Here is an example of what my configuration looks like:
--------------------------------------------------
Management Server 1:
~# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.0.85 cloud1.lab.za.net cloud1
192.168.0.86 cloud2.lab.za.net cloud2
~# ip addr show cloudbr0 | grep 'inet ' | awk '{print $2}' | sed -e 's,/.*,,'
192.168.0.85
~# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.0.81 0.0.0.0 UG 0 0 0
cloudbr0
192.168.0.80 0.0.0.0 255.255.255.240 U 0 0 0
cloudbr0
~# grep cluster /etc/cloudstack/management/db.properties
# management server clustering parameters, change cluster.node.IP to the
machine IP address
cluster.node.IP=192.168.0.85
cluster.servlet.port=9090
~# netstat -tapln | grep 9090
tcp6 0 0 :::9090 :::* LISTEN
7253/jsvc.exec
~# mysql -hlocalhost -ucloud -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 355
Server version: 5.5.49-0ubuntu0.14.04.1-log (Ubuntu)
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> quit;
Bye
~# service cloudstack-management status
* CloudStack-specific Tomcat servlet engine is running with pid 7253
--------------------------------------------------
Management Server 2:
~# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.0.85 cloud1.lab.za.net cloud1
192.168.0.86 cloud2.lab.za.net cloud2
~# ip addr show cloudbr0 | grep 'inet ' | awk '{print $2}' | sed -e 's,/.*,,'
192.168.0.86
~# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.0.81 0.0.0.0 UG 0 0 0
cloudbr0
192.168.0.80 0.0.0.0 255.255.255.240 U 0 0 0
cloudbr0
~# grep cluster /etc/cloudstack/management/db.properties
# management server clustering parameters, change cluster.node.IP to the
machine IP address
cluster.node.IP=192.168.0.85
cluster.servlet.port=9090
~# telnet 192.168.0.85 9090
Trying 192.168.0.85...
Connected to 192.168.0.85.
Escape character is '^]'.
^C
Connection closed by foreign host.
~# mysql -h192.168.0.85 -ucloud -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 356
Server version: 5.5.49-0ubuntu0.14.04.1-log (Ubuntu)
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> quit;
Bye
~# cloudstack-setup-management
Starting to configure CloudStack Management Server:
Configure Firewall ... [OK]
Configure CloudStack Management Server ...[OK]
CloudStack Management Server setup is Done!
~# tail -f /var/log/cloudstack/management/management-server.log
2016-05-09 11:54:30,346 INFO [c.c.c.ClusterManagerImpl] (main:null) (logid:)
Start configuring cluster manager : ClusterManagerImpl
2016-05-09 11:54:30,346 INFO [c.c.c.ClusterManagerImpl] (main:null) (logid:)
Cluster node IP : 192.168.0.85
2016-05-09 11:54:30,351 ERROR [o.a.c.s.l.CloudStackExtendedLifeCycle]
(main:null) (logid:) Failed to configure ClusterManagerImpl
javax.naming.ConfigurationException: cluster node IP should be valid local
address where the server is running, please check your configuration
at
com.cloud.cluster.ClusterManagerImpl.configure(ClusterManagerImpl.java:1054)
^C
~# service cloudstack-management status
* CloudStack-specific Tomcat servlet engine is running with pid 6849
--------------------------------------------------
Is there any further information related to this concern that could assist in
resolving this issue?
> Management Server does not start - "cluster node IP should be valid local
> address"
> ----------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-8584
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8584
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Management Server
> Affects Versions: 4.5.1
> Environment: * Ubuntu 14.04
> * Installed Management Server from repository
> Reporter: Michael Lihs
>
> h1. Problem Description
> When I try to start the CloudStack Management Server, I get the following
> error message in the {{/var/log/cloudstack/management/management-server.log}}:
> {code}
> 2015-06-24 06:21:37,950 INFO [c.c.c.ClusterManagerImpl] (main:null) Start
> configuring cluster manager : ClusterManagerImpl
> 2015-06-24 06:21:37,956 INFO [c.c.c.ClusterManagerImpl] (main:null) Cluster
> node IP : 127.0.1.1
> 2015-06-24 06:21:37,965 ERROR [o.a.c.s.l.CloudStackExtendedLifeCycle]
> (main:null) Failed to configure ClusterManagerImpl
> javax.naming.ConfigurationException: cluster node IP should be valid local
> address where the server is running, please check your configuration
> at
> com.cloud.cluster.ClusterManagerImpl.configure(ClusterManagerImpl.java:1042)
> at
> org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle$3.with(CloudStackExtendedLifeCycle.java:114)
> at
> org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.with(CloudStackExtendedLifeCycle.java:153)
> at
> org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.configure(CloudStackExtendedLifeCycle.java:110)
> at
> org.apache.cloudstack.spring.lifecycle.CloudStackExtendedLifeCycle.start(CloudStackExtendedLifeCycle.java:56)
> at
> org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:167)
> at
> org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:51)
> at
> org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:339)
> at
> org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:143)
> at
> org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:108)
> at
> org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:945)
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
> at
> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContext(DefaultModuleDefinitionSet.java:145)
> at
> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet$2.with(DefaultModuleDefinitionSet.java:122)
> at
> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:245)
> at
> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:250)
> at
> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:250)
> at
> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:233)
> at
> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContexts(DefaultModuleDefinitionSet.java:117)
> at
> org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.load(DefaultModuleDefinitionSet.java:79)
> at
> org.apache.cloudstack.spring.module.factory.ModuleBasedContextFactory.loadModules(ModuleBasedContextFactory.java:37)
> at
> org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.init(CloudStackSpringContext.java:70)
> at
> org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init>(CloudStackSpringContext.java:57)
> at
> org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init>(CloudStackSpringContext.java:61)
> at
> org.apache.cloudstack.spring.module.web.CloudStackContextLoaderListener.contextInitialized(CloudStackContextLoaderListener.java:52)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4709)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:583)
> at
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
> at
> org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
> at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
> at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
> at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
> at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)
> at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:525)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:243)
> {code}
> Afterwards, I cannot open the Management Server UI in the browser.
> h1. Environment Information
> * My network configuration looks like this:
> {code}
> auto lo
> iface lo inet loopback
> source /etc/network/interfaces.d/*.cfg
> modify.
> auto eth1
> iface eth1 inet static
> address 192.168.38.100
> netmask 255.255.255.0
> {code}
> With only one configuration for eth0 in {{/etc/network/interfaces.d/}}
> {code}
> auto eth0
> iface eth0 inet dhcp
> {code}
> * I can ping any host in the internet
> * My route information looks like this
> {code}
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> default 10.0.2.2 0.0.0.0 UG 0 0 0 eth0
> 10.0.2.0 * 255.255.255.0 U 0 0 0 eth0
> 192.168.38.0 * 255.255.255.0 U 0 0 0 eth1
> {code}
> * I ran the {{cloudstack-setup-databases}} and the
> {{cloudstack-setup-management}} command (with sudo)
> If there is any additional information that I could provide and helps anyone
> solve this issue, please let me know!
> Thanks a lot for your help!
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)