cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohd Zainal Abidin Rabani" <zai...@nocser.net>
Subject RE: Unable to add host
Date Thu, 05 May 2016 08:57:16 GMT
This error keep repeating in agent.log.

-----Original Message-----
From: Mohd Zainal Abidin Rabani [mailto:zainal@nocser.net] 
Sent: 05 Mei 2016 16:53
To: users@cloudstack.apache.org
Subject: RE: Unable to add host

Need to use pastebin as qmail apache have limit size email:
http://pastebin.com/4yt1ivcY

-----Original Message-----
From: Boris Stoyanov [mailto:boris.stoyanov@shapeblue.com]
Sent: 05 Mei 2016 16:38
To: users@cloudstack.apache.org
Subject: Re: Unable to add host

Hi Mohd,

In the same logs location you should be able to find agent logs, can you share what’s there?

Thanks.

> 
Regards,

Boris Stoyanov

boris.stoyanov@shapeblue.com
www.shapeblue.com
53 Chandos Place, Covent Garden, London  WC2N 4HSUK @shapeblue On May 5, 2016, at 11:34 AM,
Mohd Zainal Abidin Rabani <zainal@nocser.net> wrote:
> 
> Seem like something wrong some where. Agent not stable. Runing and not running:
> 
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; vendor preset:
disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 16:32:19
MYT; 5s ago
>     Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec      export ACP=`ls /usr/share/cloudstack-agent/lib/*.jar
/usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;      export CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";
     ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp "$CLASSPATH"
$JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; vendor preset:
disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 16:32:19
MYT; 7s ago
>     Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec      export ACP=`ls /usr/share/cloudstack-agent/lib/*.jar
/usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;      export CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";
     ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp "$CLASSPATH"
$JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; vendor preset:
disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 16:32:19
MYT; 8s ago
>     Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec      export ACP=`ls /usr/share/cloudstack-agent/lib/*.jar
/usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;      export CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";
     ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp "$CLASSPATH"
$JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; vendor preset:
disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 16:32:19
MYT; 9s ago
>     Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec      export ACP=`ls /usr/share/cloudstack-agent/lib/*.jar
/usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;      export CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";
     ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp "$CLASSPATH"
$JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; vendor preset:
disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 16:32:19
MYT; 9s ago
>     Docs: http://www.cloudstack.org/
>  Process: 20105 ExecStart=/bin/sh -ec      export ACP=`ls /usr/share/cloudstack-agent/lib/*.jar
/usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;      export CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";
     ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp "$CLASSPATH"
$JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20105 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:19 host29-01 systemd[1]: Unit cloudstack-agent.service entered failed state.
> May 05 16:32:19 host29-01 systemd[1]: cloudstack-agent.service failed.
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; vendor preset:
disabled)
>   Active: active (running) since Thu 2016-05-05 16:32:30 MYT; 349ms ago
>     Docs: http://www.cloudstack.org/
> Main PID: 20296 (sh)
>   CGroup: /system.slice/cloudstack-agent.service
>           ├─20296 /bin/sh -ec      export ACP=`ls /usr/share/cloudstack-agent/lib/*.jar
/usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|t...
>           └─20300 /usr/lib/jvm/jre/bin/java -Xms256m -Xmx2048m -cp /usr/share/cloudstack-agent/lib/activation-1.1.jar:/usr/share/cloudstack-age...
> 
> May 05 16:32:30 host29-01 systemd[1]: Started CloudStack Agent.
> May 05 16:32:30 host29-01 systemd[1]: Starting CloudStack Agent...
> May 05 16:32:30 host29-01 sh[20296]: log4j:WARN No appenders could be found for logger
(com.cloud.agent.AgentShell).
> May 05 16:32:30 host29-01 sh[20296]: log4j:WARN Please initialize the log4j system properly.
> May 05 16:32:30 host29-01 sh[20296]: log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig
for more info.
> [root@host29-01 agent]# systemctl status cloudstack-agent ● 
> cloudstack-agent.service - CloudStack Agent
>   Loaded: loaded (/usr/lib/systemd/system/cloudstack-agent.service; enabled; vendor preset:
disabled)
>   Active: activating (auto-restart) (Result: exit-code) since Thu 2016-05-05 16:32:32
MYT; 2s ago
>     Docs: http://www.cloudstack.org/
>  Process: 20296 ExecStart=/bin/sh -ec      export ACP=`ls /usr/share/cloudstack-agent/lib/*.jar
/usr/share/cloudstack-agent/plugins/*.jar 2>/dev/null|tr "\n" ":"`;      export CLASSPATH="$ACP:/etc/cloudstack/agent:/usr/share/cloudstack-common/scripts";
     ${JAVA_HOME}/bin/java -Xms${JAVA_HEAP_INITIAL} -Xmx${JAVA_HEAP_MAX} -cp "$CLASSPATH"
$JAVA_CLASS (code=exited, status=1/FAILURE)
> Main PID: 20296 (code=exited, status=1/FAILURE)
> 
> May 05 16:32:32 host29-01 systemd[1]: Unit cloudstack-agent.service entered failed state.
> May 05 16:32:32 host29-01 systemd[1]: cloudstack-agent.service failed.
> 
> -----Original Message-----
> From: Mohd Zainal Abidin Rabani [mailto:zainal@nocser.net]
> Sent: 05 Mei 2016 16:22
> To: users@cloudstack.apache.org
> Subject: RE: Unable to add host
> 
> Hi,
> 
> Sorry for late reply. Cloudstack agent not running. Getting same error:
> 
> 2016-05-05 16:08:22,929 INFO  [cloud.serializer.GsonHelper] (Agent-Handler-1:null) Default
Builder inited.
> 2016-05-05 16:08:23,002 INFO  [cloud.agent.Agent]
> (Agent-Handler-2:null) Proccess agent startup answer, agent id = 0
> 2016-05-05 16:08:23,002 INFO  [cloud.agent.Agent]
> (Agent-Handler-2:null) Set agent id 0
> 2016-05-05 16:08:23,007 INFO  [cloud.agent.Agent]
> (Agent-Handler-2:null) Startup Response Received: agent id = 0
> 2016-05-05 16:08:23,010 INFO  [cloud.agent.Agent]
> (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
> 2016-05-05 16:08:34,963 INFO  [cloud.agent.AgentShell] (main:null) 
> Agent started
> 2016-05-05 16:08:34,965 INFO  [cloud.agent.AgentShell] (main:null) 
> Implementation Version is 4.6.2
> 2016-05-05 16:08:34,966 INFO  [cloud.agent.AgentShell] (main:null) 
> agent.properties found at /etc/cloudstack/agent/agent.properties
> 2016-05-05 16:08:34,970 INFO  [cloud.agent.AgentShell] (main:null) 
> Defaulting to using properties file for storage
> 2016-05-05 16:08:34,972 INFO  [cloud.agent.AgentShell] (main:null) 
> Defaulting to the constant time backoff algorithm
> 2016-05-05 16:08:34,984 INFO  [cloud.utils.LogUtils] (main:null) log4j 
> configuration found at /etc/cloudstack/agent/log4j-cloud.xml
> 2016-05-05 16:08:35,001 INFO  [cloud.agent.AgentShell] (main:null) 
> Preferring IPv4 address family for agent connection
> 2016-05-05 16:08:35,128 INFO  [cloud.agent.Agent] (main:null) id is 0
> 2016-05-05 16:08:35,154 INFO  [kvm.resource.LibvirtConnection]
> (main:null) No existing libvirtd connection found. Opening a new one
> 2016-05-05 16:08:35,405 INFO  [org.reflections.Reflections]
> (main:null) Reflections took 48 ms to scan 1 urls, producing 7 keys 
> and 10 values
> 2016-05-05 16:08:35,543 INFO  [kvm.resource.LibvirtComputingResource] (main:null) No
libvirt.vif.driver specified. Defaults to BridgeVifDriver.
> 2016-05-05 16:08:35,568 INFO  [cloud.agent.Agent] (main:null) Agent 
> [id = 0 : type = LibvirtComputingResource : zone = AIMS KL : pod =
> 3F-G-13 : workers = 5 : host = 10.2.30.11 : port = 8250
> 2016-05-05 16:08:35,572 INFO  [utils.nio.NioClient] (main:null) 
> Connecting to 10.2.30.11:8250
> 2016-05-05 16:08:35,799 INFO  [utils.nio.NioClient] (main:null) SSL: 
> Handshake done
> 2016-05-05 16:08:35,799 INFO  [utils.nio.NioClient] (main:null) 
> Connected to 10.2.30.11:8250
> 2016-05-05 16:08:35,875 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (Agent-Handler-1:null) Attempting to create storage pool 
> 7968e68b-9ffe-4436-86b9-fe2adbd873cf (Filesystem) in libvirt
> 2016-05-05 16:08:35,881 WARN  [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null)
Storage pool 7968e68b-9ffe-4436-86b9-fe2adbd873cf was not found running in libvirt. Need to
create it.
> 2016-05-05 16:08:35,881 INFO  [kvm.storage.LibvirtStorageAdaptor]
> (Agent-Handler-1:null) Didn't find an existing storage pool 
> 7968e68b-9ffe-4436-86b9-fe2adbd873cf by UUID, checking for pools with 
> duplicate paths
> 2016-05-05 16:08:35,882 ERROR [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null)
/var/lib/libvirt/images does not exists. Check local.storage.path in agent.properties.
> 2016-05-05 16:08:35,927 INFO  [cloud.serializer.GsonHelper] (Agent-Handler-1:null) Default
Builder inited.
> 2016-05-05 16:08:36,001 INFO  [cloud.agent.Agent]
> (Agent-Handler-2:null) Proccess agent startup answer, agent id = 0
> 2016-05-05 16:08:36,002 INFO  [cloud.agent.Agent]
> (Agent-Handler-2:null) Set agent id 0
> 2016-05-05 16:08:36,008 INFO  [cloud.agent.Agent]
> (AgentShutdownThread:null) Stopping the agent: Reason = sig.kill
> 2016-05-05 16:08:36,008 INFO  [cloud.agent.Agent]
> (Agent-Handler-2:null) Startup Response Received: agent id = 0
> 
> I already enable use.local.storage = true in "Global Settings". 
> 
> -----Original Message-----
> From: kotipalli venkatesh [mailto:venkateshcloudtest@gmail.com]
> Sent: 05 Mei 2016 15:23
> To: users@cloudstack.apache.org
> Subject: Re: Unable to add host
> 
> Hi Mohd,
> 
> Could you please share the info of your environment version details.
> 
> Rergards,
> Venkatesh.k
> 
> On Thu, May 5, 2016 at 12:50 PM, Mohd Zainal Abidin Rabani < zainal@nocser.net>
wrote:
> 
>> On the kvm host, cloudstack agent not list in systemctl. But when i issue:
>> rpm -qa | grep cloudstack, it's already install. This is bug?
>> 
>> -----Original Message-----
>> From: Mohd Zainal Abidin Rabani [mailto:zainal@nocser.net]
>> Sent: 05 Mei 2016 14:56
>> To: users@cloudstack.apache.org
>> Subject: Unable to add host
>> 
>> Hi,
>> 
>> 
>> 
>> The last issue is WebUI. Now i can access webUI. But other error 
>> occur. I manage to setup cloudstack management server. But when i try 
>> to add management server in UI i get error: Unable to add host.
>> Unable to find the server resources at http://10.2.30.11
>> 
>> 
>> 
>> Any idea what wrong?
>> 
>> 
>> 
>> Regards,
>> 
>> 
>> 
>> Mohd Zainal Abidin Rabani
>> 
>> Technical Support
>> 
>> 
>> 
>> ModernOne Data Solutions Sdn. Bhd.
>> 
>> [ Dedicated Server | VPS | Co-Location | Hosting ]
>> 
>> [ Managed Service | System Integration | Domain ]
>> 
>> W : www.nocser.net
>> 
>> FB: http://www.facebook.com/nocser
>> 
>> Twitter: @nocsertech
>> 
>> Skype: zabidin5417
>> 
>> 
>> 
>> 
>> 
> 



Mime
View raw message