Yes, i have follow the document.
-----Original Message-----
From: Boris Stoyanov [mailto:boris.stoyanov@shapeblue.com]
Sent: 05 Mei 2016 16:56
To: users@cloudstack.apache.org
Subject: Re: Unable to add host
Hi Mohd
Unfortunately these logs does not help a lot. I can’t find any error/exception there.
>From your previous message I can find:
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.
Have followed these installation instructions?
http://cloudstack-installation.readthedocs.io/en/4.8/hypervisor/kvm.html
- there’s a section about libvirt configuration
Can you please revise if some of the steps is missed.
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:48 AM,
Mohd Zainal Abidin Rabani <zainal@nocser.net<mailto:zainal@nocser.net>> wrote:
This is log from agent.log in /var/log/cloudstack/agent :
2016-05-05 16:46:49,383 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) Attempting
to create storage pool 340a4603-7617-4f5e-980a-4cc2f6f0afda (Filesystem) in libvirt
2016-05-05 16:46:49,387 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) Found
existing defined storage pool 340a4603-7617-4f5e-980a-4cc2f6f0afda, using it.
2016-05-05 16:46:49,387 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) Trying
to fetch storage pool 340a4603-7617-4f5e-980a-4cc2f6f0afda from libvirt
2016-05-05 16:46:49,447 INFO [cloud.serializer.GsonHelper] (Agent-Handler-1:null) Default
Builder inited.
2016-05-05 16:46:49,482 INFO [cloud.agent.Agent] (Agent-Handler-2:null) Proccess agent startup
answer, agent id = 0
2016-05-05 16:46:49,483 INFO [cloud.agent.Agent] (Agent-Handler-2:null) Set agent id 0
2016-05-05 16:46:49,488 INFO [cloud.agent.Agent] (Agent-Handler-2:null) Startup Response
Received: agent id = 0
2016-05-05 16:46:49,489 INFO [cloud.agent.Agent] (AgentShutdownThread:null) Stopping the
agent: Reason = sig.kill
2016-05-05 16:47:01,466 INFO [cloud.agent.AgentShell] (main:null) Agent started
2016-05-05 16:47:01,467 INFO [cloud.agent.AgentShell] (main:null) Implementation Version
is 4.6.2
2016-05-05 16:47:01,468 INFO [cloud.agent.AgentShell] (main:null) agent.properties found
at /etc/cloudstack/agent/agent.properties
2016-05-05 16:47:01,472 INFO [cloud.agent.AgentShell] (main:null) Defaulting to using properties
file for storage
2016-05-05 16:47:01,474 INFO [cloud.agent.AgentShell] (main:null) Defaulting to the constant
time backoff algorithm
2016-05-05 16:47:01,486 INFO [cloud.utils.LogUtils] (main:null) log4j configuration found
at /etc/cloudstack/agent/log4j-cloud.xml
2016-05-05 16:47:01,503 INFO [cloud.agent.AgentShell] (main:null) Preferring IPv4 address
family for agent connection
2016-05-05 16:47:01,634 INFO [cloud.agent.Agent] (main:null) id is 0
2016-05-05 16:47:01,662 INFO [kvm.resource.LibvirtConnection] (main:null) No existing libvirtd
connection found. Opening a new one
2016-05-05 16:47:01,919 INFO [org.reflections.Reflections] (main:null) Reflections took 50
ms to scan 1 urls, producing 7 keys and 10 values
2016-05-05 16:47:02,077 INFO [kvm.resource.LibvirtComputingResource] (main:null) No libvirt.vif.driver
specified. Defaults to BridgeVifDriver.
2016-05-05 16:47:02,103 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:47:02,108 INFO [utils.nio.NioClient] (main:null) Connecting to 10.2.30.11:8250
2016-05-05 16:47:02,315 INFO [utils.nio.NioClient] (main:null) SSL: Handshake done
2016-05-05 16:47:02,315 INFO [utils.nio.NioClient] (main:null) Connected to 10.2.30.11:8250
2016-05-05 16:47:02,387 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) Attempting
to create storage pool 340a4603-7617-4f5e-980a-4cc2f6f0afda (Filesystem) in libvirt
2016-05-05 16:47:02,390 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) Found
existing defined storage pool 340a4603-7617-4f5e-980a-4cc2f6f0afda, using it.
2016-05-05 16:47:02,391 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) Trying
to fetch storage pool 340a4603-7617-4f5e-980a-4cc2f6f0afda from libvirt
2016-05-05 16:47:02,450 INFO [cloud.serializer.GsonHelper] (Agent-Handler-1:null) Default
Builder inited.
2016-05-05 16:47:02,484 INFO [cloud.agent.Agent] (Agent-Handler-2:null) Proccess agent startup
answer, agent id = 0
2016-05-05 16:47:02,484 INFO [cloud.agent.Agent] (Agent-Handler-2:null) Set agent id 0
2016-05-05 16:47:02,489 INFO [cloud.agent.Agent] (Agent-Handler-2:null) Startup Response
Received: agent id = 0
2016-05-05 16:47:02,491 INFO [cloud.agent.Agent] (AgentShutdownThread:null) Stopping the
agent: Reason = sig.kill
2016-05-05 16:47:14,464 INFO [cloud.agent.AgentShell] (main:null) Agent started
2016-05-05 16:47:14,465 INFO [cloud.agent.AgentShell] (main:null) Implementation Version
is 4.6.2
2016-05-05 16:47:14,466 INFO [cloud.agent.AgentShell] (main:null) agent.properties found
at /etc/cloudstack/agent/agent.properties
2016-05-05 16:47:14,470 INFO [cloud.agent.AgentShell] (main:null) Defaulting to using properties
file for storage
2016-05-05 16:47:14,472 INFO [cloud.agent.AgentShell] (main:null) Defaulting to the constant
time backoff algorithm
2016-05-05 16:47:14,484 INFO [cloud.utils.LogUtils] (main:null) log4j configuration found
at /etc/cloudstack/agent/log4j-cloud.xml
2016-05-05 16:47:14,498 INFO [cloud.agent.AgentShell] (main:null) Preferring IPv4 address
family for agent connection
2016-05-05 16:47:14,618 INFO [cloud.agent.Agent] (main:null) id is 0
2016-05-05 16:47:14,644 INFO [kvm.resource.LibvirtConnection] (main:null) No existing libvirtd
connection found. Opening a new one
2016-05-05 16:47:14,899 INFO [org.reflections.Reflections] (main:null) Reflections took 49
ms to scan 1 urls, producing 7 keys and 10 values
2016-05-05 16:47:15,053 INFO [kvm.resource.LibvirtComputingResource] (main:null) No libvirt.vif.driver
specified. Defaults to BridgeVifDriver.
2016-05-05 16:47:15,079 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:47:15,083 INFO [utils.nio.NioClient] (main:null) Connecting to 10.2.30.11:8250
2016-05-05 16:47:15,290 INFO [utils.nio.NioClient] (main:null) SSL: Handshake done
2016-05-05 16:47:15,290 INFO [utils.nio.NioClient] (main:null) Connected to 10.2.30.11:8250
2016-05-05 16:47:15,363 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) Attempting
to create storage pool 340a4603-7617-4f5e-980a-4cc2f6f0afda (Filesystem) in libvirt
2016-05-05 16:47:15,366 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) Found
existing defined storage pool 340a4603-7617-4f5e-980a-4cc2f6f0afda, using it.
2016-05-05 16:47:15,367 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) Trying
to fetch storage pool 340a4603-7617-4f5e-980a-4cc2f6f0afda from libvirt
2016-05-05 16:47:15,426 INFO [cloud.serializer.GsonHelper] (Agent-Handler-1:null) Default
Builder inited.
2016-05-05 16:47:15,459 INFO [cloud.agent.Agent] (Agent-Handler-2:null) Proccess agent startup
answer, agent id = 0
2016-05-05 16:47:15,459 INFO [cloud.agent.Agent] (Agent-Handler-2:null) Set agent id 0
2016-05-05 16:47:15,464 INFO [cloud.agent.Agent] (Agent-Handler-2:null) Startup Response
Received: agent id = 0
2016-05-05 16:47:15,465 INFO [cloud.agent.Agent] (AgentShutdownThread:null) Stopping the
agent: Reason = sig.kill
2016-05-05 16:47:27,464 INFO [cloud.agent.AgentShell] (main:null) Agent started
2016-05-05 16:47:27,465 INFO [cloud.agent.AgentShell] (main:null) Implementation Version
is 4.6.2
2016-05-05 16:47:27,467 INFO [cloud.agent.AgentShell] (main:null) agent.properties found
at /etc/cloudstack/agent/agent.properties
2016-05-05 16:47:27,471 INFO [cloud.agent.AgentShell] (main:null) Defaulting to using properties
file for storage
2016-05-05 16:47:27,472 INFO [cloud.agent.AgentShell] (main:null) Defaulting to the constant
time backoff algorithm
2016-05-05 16:47:27,485 INFO [cloud.utils.LogUtils] (main:null) log4j configuration found
at /etc/cloudstack/agent/log4j-cloud.xml
2016-05-05 16:47:27,499 INFO [cloud.agent.AgentShell] (main:null) Preferring IPv4 address
family for agent connection
2016-05-05 16:47:27,619 INFO [cloud.agent.Agent] (main:null) id is 0
2016-05-05 16:47:27,645 INFO [kvm.resource.LibvirtConnection] (main:null) No existing libvirtd
connection found. Opening a new one
2016-05-05 16:47:27,902 INFO [org.reflections.Reflections] (main:null) Reflections took 51
ms to scan 1 urls, producing 7 keys and 10 values
2016-05-05 16:47:28,055 INFO [kvm.resource.LibvirtComputingResource] (main:null) No libvirt.vif.driver
specified. Defaults to BridgeVifDriver.
2016-05-05 16:47:28,079 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:47:28,083 INFO [utils.nio.NioClient] (main:null) Connecting to 10.2.30.11:8250
2016-05-05 16:47:28,302 INFO [utils.nio.NioClient] (main:null) SSL: Handshake done
2016-05-05 16:47:28,302 INFO [utils.nio.NioClient] (main:null) Connected to 10.2.30.11:8250
2016-05-05 16:47:28,377 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) Attempting
to create storage pool 340a4603-7617-4f5e-980a-4cc2f6f0afda (Filesystem) in libvirt
2016-05-05 16:47:28,380 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) Found
existing defined storage pool 340a4603-7617-4f5e-980a-4cc2f6f0afda, using it.
2016-05-05 16:47:28,380 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) Trying
to fetch storage pool 340a4603-7617-4f5e-980a-4cc2f6f0afda from libvirt
2016-05-05 16:47:28,439 INFO [cloud.serializer.GsonHelper] (Agent-Handler-1:null) Default
Builder inited.
2016-05-05 16:47:28,474 INFO [cloud.agent.Agent] (Agent-Handler-2:null) Proccess agent startup
answer, agent id = 0
2016-05-05 16:47:28,474 INFO [cloud.agent.Agent] (Agent-Handler-2:null) Set agent id 0
2016-05-05 16:47:28,480 INFO [cloud.agent.Agent] (Agent-Handler-2:null) Startup Response
Received: agent id = 0
2016-05-05 16:47:28,481 INFO [cloud.agent.Agent] (AgentShutdownThread:null) Stopping the
agent: Reason = sig.kill
2016-05-05 16:47:40,466 INFO [cloud.agent.AgentShell] (main:null) Agent started
2016-05-05 16:47:40,467 INFO [cloud.agent.AgentShell] (main:null) Implementation Version
is 4.6.2
2016-05-05 16:47:40,468 INFO [cloud.agent.AgentShell] (main:null) agent.properties found
at /etc/cloudstack/agent/agent.properties
2016-05-05 16:47:40,472 INFO [cloud.agent.AgentShell] (main:null) Defaulting to using properties
file for storage
2016-05-05 16:47:40,474 INFO [cloud.agent.AgentShell] (main:null) Defaulting to the constant
time backoff algorithm
2016-05-05 16:47:40,486 INFO [cloud.utils.LogUtils] (main:null) log4j configuration found
at /etc/cloudstack/agent/log4j-cloud.xml
2016-05-05 16:47:40,501 INFO [cloud.agent.AgentShell] (main:null) Preferring IPv4 address
family for agent connection
2016-05-05 16:47:40,625 INFO [cloud.agent.Agent] (main:null) id is 0
2016-05-05 16:47:40,651 INFO [kvm.resource.LibvirtConnection] (main:null) No existing libvirtd
connection found. Opening a new one
2016-05-05 16:47:40,904 INFO [org.reflections.Reflections] (main:null) Reflections took 49
ms to scan 1 urls, producing 7 keys and 10 values
2016-05-05 16:47:41,056 INFO [kvm.resource.LibvirtComputingResource] (main:null) No libvirt.vif.driver
specified. Defaults to BridgeVifDriver.
2016-05-05 16:47:41,082 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:47:41,086 INFO [utils.nio.NioClient] (main:null) Connecting to 10.2.30.11:8250
2016-05-05 16:47:41,303 INFO [utils.nio.NioClient] (main:null) SSL: Handshake done
2016-05-05 16:47:41,303 INFO [utils.nio.NioClient] (main:null) Connected to 10.2.30.11:8250
2016-05-05 16:47:41,377 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) Attempting
to create storage pool 340a4603-7617-4f5e-980a-4cc2f6f0afda (Filesystem) in libvirt
2016-05-05 16:47:41,380 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) Found
existing defined storage pool 340a4603-7617-4f5e-980a-4cc2f6f0afda, using it.
2016-05-05 16:47:41,381 INFO [kvm.storage.LibvirtStorageAdaptor] (Agent-Handler-1:null) Trying
to fetch storage pool 340a4603-7617-4f5e-980a-4cc2f6f0afda from libvirt
2016-05-05 16:47:41,440 INFO [cloud.serializer.GsonHelper] (Agent-Handler-1:null) Default
Builder inited.
2016-05-05 16:47:41,475 INFO [cloud.agent.Agent] (Agent-Handler-2:null) Proccess agent startup
answer, agent id = 0
2016-05-05 16:47:41,475 INFO [cloud.agent.Agent] (Agent-Handler-2:null) Set agent id 0
2016-05-05 16:47:41,480 INFO [cloud.agent.Agent] (Agent-Handler-2:null) Startup Response
Received: agent id = 0
2016-05-05 16:47:41,480 INFO [cloud.agent.Agent] (AgentShutdownThread:null) Stopping the
agent: Reason = sig.kill
-----Original Message-----
From: Boris Stoyanov [mailto:boris.stoyanov@shapeblue.com]
Sent: 05 Mei 2016 16:38
To: users@cloudstack.apache.org<mailto: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<mailto: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
|