cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "HellCat" <qss_3...@qq.com>
Subject Re:cloudstack 4.4 Agent 启动不正常
Date Wed, 27 Aug 2014 00:51:28 GMT
我不是高手,但根据以往邮件列表的讨论内容,4.4存在不少问题,KVM尤其多,如果没什么特殊需要,建议先换4.3,或者等待4.4.1




------------------ Original ------------------
From:  "Freeke";<myfreeke@gmail.com>;
Date:  Tue, Aug 26, 2014 03:51 PM
To:  "users-cn"<users-cn@cloudstack.apache.org>; 

Subject:  cloudstack 4.4 Agent  启动不正常 



Hey all

 

我的环境情况:

Cloudstack 4.4 版本

主机一:cloudstack01(主机名),10.167.26.35,操作系统:centos 6.5 x64,模
块:NFS(主、二级存储)、management

主机二:kvm03(主机名),10.167.26.37,操作系统:centos 6.5 x64,模块:KVM、
agent

 

Agent 端

目前agent安装完后,启动不正常,没有JAVA进程显示

[root@kvm03 agent]# pstree

init─┬─cgrulesengd

     ├─crond

     ├─dbus-daemon

     ├─dnsmasq

     ├─hald─┬─hald-runner─┬─hald-addon-acpi

     │      │             └─hald-addon-inpu

     │      └─{hald}

     ├─ksmtuned───sleep

     ├─libvirtd───10*[{libvirtd}]

     ├─master─┬─pickup

     │        └─qmgr

     ├─6*[mingetty]

     ├─ntpd

     ├─rpc.idmapd

     ├─rpc.mountd

     ├─rpc.rquotad

     ├─rpc.statd

     ├─rpcbind

     ├─rsyslogd───3*[{rsyslogd}]

     ├─snmpd

     ├─sshd───sshd───bash───pstree

     ├─udevd───2*[udevd]

     └─xinetd

[root@kvm03 agent]# less cloudstack-agent.out

2014-08-26 15:15:20,267{GMT} INFO  [cloud.agent.AgentShell] (main:) Agent
started

2014-08-26 15:15:20,292{GMT} INFO  [cloud.agent.AgentShell] (main:)
Implementation Version is 4.4.0

2014-08-26 15:15:20,303{GMT} INFO  [cloud.agent.AgentShell] (main:)
agent.properties found at /etc/cloudstack/agent/agent.properties

2014-08-26 15:15:20,348{GMT} INFO  [cloud.agent.AgentShell] (main:)
Defaulting to using properties file for storage

2014-08-26 15:15:20,350{GMT} INFO  [cloud.agent.AgentShell] (main:)
Defaulting to the constant time backoff algorithm

2014-08-26 15:15:20,365{GMT} INFO  [cloud.utils.LogUtils] (main:) log4j
configuration found at /etc/cloudstack/agent/log4j-cloud.xml

2014-08-26 15:15:20,540{GMT} INFO  [cloud.agent.Agent] (main:) id is 0

2014-08-26 15:15:21,943{GMT} INFO  [kvm.resource.LibvirtComputingResource]
(main:) No libvirt.vif.driver specified. Defaults to BridgeVifDriver.

2014-08-26 15:15:22,063{GMT} INFO  [cloud.agent.Agent] (main:) Agent [id = 0
: type = LibvirtComputingResource : zone = default : pod = default : workers
= 5 : host = 10.167.26.35 : port = 8250

2014-08-26 15:15:22,094{GMT} INFO  [utils.nio.NioClient] (Agent-Selector:)
Connecting to 10.167.26.35:8250

2014-08-26 15:15:22,632{GMT} INFO  [utils.nio.NioClient] (Agent-Selector:)
SSL: Handshake done

2014-08-26 15:15:22,632{GMT} INFO  [utils.nio.NioClient] (Agent-Selector:)
Connected to 10.167.26.35:8250

2014-08-26 15:15:22,656{GMT} WARN  [kvm.resource.LibvirtComputingResource]
(Agent-Handler-1:) Could not read cpuinfo_max_freq

2014-08-26 15:15:22,966{GMT} INFO  [cloud.serializer.GsonHelper]
(Agent-Handler-1:) Default Builder inited.

2014-08-26 15:15:23,049{GMT} INFO  [cloud.agent.Agent] (Agent-Handler-2:)
Proccess agent startup answer, agent id = 0

2014-08-26 15:15:23,049{GMT} INFO  [cloud.agent.Agent] (Agent-Handler-2:)
Set agent id 0

2014-08-26 15:15:23,056{GMT} INFO  [cloud.agent.Agent] (Agent-Handler-2:)
Startup Response Received: agent id = 0

2014-08-26 15:15:23,059{GMT} INFO  [cloud.agent.Agent]
(AgentShutdownThread:) Stopping the agent: Reason = sig.kill

[root@kvm03 agent]# less /etc/cloudstack/agent/agent.properties

#Storage

#Tue Aug 26 15:15:23 HKT 2014

guest.network.device=cloudbr0

workers=5

private.network.device=cloudbr0

port=8250

resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource

pod=default

zone=default

guid=74b91c90-b38e-417a-a984-5777c5c8b1f7

cluster=default

public.network.device=cloudbr0

local.storage.uuid=eb6e3e25-5410-4baf-8c8f-77cf5a2ee038

domr.scripts.dir=scripts/network/domr/kvm

host=10.167.26.35

LibvirtComputingResource.id=0

 

管理端:

[root@cloudstack01 management]# less management-server.log

2014-08-26 15:18:35,499 WARN  [c.c.u.n.Link] (AgentManager-Selector:null)
SSL: Fail to find the generated keystore. Loading fail-safe one to continue.

2014-08-26 15:18:36,865 DEBUG [c.c.a.t.Request]
(AgentManager-Handler-2:null) Seq 0-0: Scheduling the first command  { Cmd ,
MgmtId: -1, via: 0, Ver: v1, Flags: 1,
[{"com.cloud.agent.api.StartupRoutingCommand":{"cpuSockets":1,"cpus":1,"spee
d":3309,"memory":4019048448,"dom0MinMemory":401904844,"poolSync":false,"_hos
tVmStateReport":{},"vms":{},"caps":"hvm,snapshot","pool":"/root","hypervisor
Type":"KVM","hostDetails":{"com.cloud.network.Networks.RouterPrivateIpStrate
gy":"HostLocal","Host.OS":"CentOS","Host.OS.Kernel.Version":"2.6.32-431.el6.
x86_64","Host.OS.Version":"6.5"},"groupDetails":{},"type":"Routing","dataCen
ter":"default","pod":"default","cluster":"default","guid":"-LibvirtComputing
Resource","name":"kvm02","id":0,"version":"4.4.0","publicIpAddress":"10.167.
26.36","publicNetmask":"255.255.255.0","publicMacAddress":"00:50:56:80:a6:ef
","privateIpAddress":"10.167.26.36","privateMacAddress":"00:50:56:80:a6:ef",
"privateNetmask":"255.255.255.0","storageIpAddress":"10.167.26.36","storageN
etmask":"255.255.255.0","storageMacAddress":"00:50:56:80:a6:ef","resourceNam
e":"LibvirtComputingResource","gatewayIpAddress":"10.167.26.5","wait":0}}] }

2014-08-26 15:18:36,868 DEBUG [c.c.a.t.Request]
(AgentConnectTaskPool-1:ctx-85061f4e) Seq 0-0: Processing the first command
{ Cmd , MgmtId: -1, via: 0, Ver: v1, Flags: 1,
[{"com.cloud.agent.api.StartupRoutingCommand":{"cpuSockets":1,"cpus":1,"spee
d":3309,"memory":4019048448,"dom0MinMemory":401904844,"poolSync":false,"_hos
tVmStateReport":{},"vms":{},"caps":"hvm,snapshot","pool":"/root","hypervisor
Type":"KVM","hostDetails":{"com.cloud.network.Networks.RouterPrivateIpStrate
gy":"HostLocal","Host.OS":"CentOS","Host.OS.Kernel.Version":"2.6.32-431.el6.
x86_64","Host.OS.Version":"6.5"},"groupDetails":{},"type":"Routing","dataCen
ter":"default","pod":"default","cluster":"default","guid":"-LibvirtComputing
Resource","name":"kvm02","id":0,"version":"4.4.0","publicIpAddress":"10.167.
26.36","publicNetmask":"255.255.255.0","publicMacAddress":"00:50:56:80:a6:ef
","privateIpAddress":"10.167.26.36","privateMacAddress":"00:50:56:80:a6:ef",
"privateNetmask":"255.255.255.0","storageIpAddress":"10.167.26.36","storageN
etmask":"255.255.255.0","storageMacAddress":"00:50:56:80:a6:ef","resourceNam
e":"LibvirtComputingResource","gatewayIpAddress":"10.167.26.5","wait":0}}] }

2014-08-26 15:18:36,871 DEBUG [c.c.a.m.AgentManagerImpl]
(AgentConnectTaskPool-1:ctx-85061f4e) Failed to handle host connection:
java.lang.IllegalArgumentException: Host 10.167.26.36 sent incorrect data
center: default

2014-08-26 15:18:36,873 WARN  [c.c.a.m.AgentManagerImpl]
(AgentConnectTaskPool-1:ctx-85061f4e) Unable to create attache for agent:
Seq 0-0:  { Cmd , MgmtId: -1, via: 0, Ver: v1, Flags: 1, [{"com.cloud.agent.
api.StartupRoutingCommand":{"cpuSockets":1,"cpus":1,"speed":3309,"memory":40
19048448,"dom0MinMemory":401904844,"poolSync":false,"_hostVmStateReport":{},
"vms":{},"caps":"hvm,snapshot","pool":"/root","hypervisorType":"KVM","hostDe
tails":{"com.cloud.network.Networks.RouterPrivateIpStrategy":"HostLocal","Ho
st.OS":"CentOS","Host.OS.Kernel.Version":"2.6.32-431.el6.x86_64","Host.OS.Ve
rsion":"6.5"},"groupDetails":{},"type":"Routing","dataCenter":"default","pod
":"default","cluster":"default","guid":"-LibvirtComputingResource","name":"k
vm02","id":0,"version":"4.4.0","publicIpAddress":"10.167.26.36","publicNetma
sk":"255.255.255.0","publicMacAddress":"00:50:56:80:a6:ef","privateIpAddress
":"10.167.26.36","privateMacAddress":"00:50:56:80:a6:ef","privateNetmask":"2
55.255.255.0","storageIpAddress":"10.167.26.36","storageNetmask":"255.255.25
5.0","storageMacAddress":"00:50:56:80:a6:ef","resourceName":"LibvirtComputin
gResource","gatewayIpAddress":"10.167.26.5","wait":0}}] }

2014-08-26 15:18:36,935 WARN  [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-3:null) Throwing away a request because it came
through as the first command on a connect: Seq 0--1:  { Cmd , MgmtId: -1,
via: 0, Ver: v1, Flags: 111,
[{"com.cloud.agent.api.ShutdownCommand":{"reason":"sig.kill","wait":0}}] }

2014-08-26 15:18:36,951 WARN  [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-4:null) Throwing away a request because it came
through as the first command on a connect: Seq 0-1:  { Cmd , MgmtId: -1,
via: 0, Ver: v1, Flags: 11,
[{"com.cloud.agent.api.PingRoutingWithNwGroupsCommand":{"newGroupStates":{},
"newStates":{},"_hostVmStateReport":{},"_gatewayAccessible":true,"_vnetAcces
sible":true,"hostType":"Routing","hostId":0,"wait":0}}] }

2014-08-26 15:18:37,897 INFO  [c.c.a.m.AgentManagerImpl]
(AgentManager-Handler-5:null) Connection from /10.167.26.36 closed but no
cleanup was done.

2014-08-26 15:18:44,241 DEBUG [c.c.c.ConsoleProxyManagerImpl]
(consoleproxy-1:ctx-eef13f86) Skip capacity scan due to there is no Primary
Storage UPintenance mode

 

[root@cloudstack01 management]# less catalina.out

WARN  [c.c.u.n.Link] (AgentManager-Selector:null) SSL: Fail to find the
generated keystore. Loading fail-safe one to continue.

WARN  [c.c.a.m.AgentManagerImpl] (AgentConnectTaskPool-1:ctx-85061f4e)
Unable to create attache for agent: Seq 0-0:  { Cmd , MgmtId: -1, via: 0,
Ver: v1, Flags: 1,
[{"com.cloud.agent.api.StartupRoutingCommand":{"cpuSockets":1,"cpus":1,"spee
d":3309,"memory":4019048448,"dom0MinMemory":401904844,"poolSync":false,"_hos
tVmStateReport":{},"vms":{},"caps":"hvm,snapshot","pool":"/root","hypervisor
Type":"KVM","hostDetails":{"com.cloud.network.Networks.RouterPrivateIpStrate
gy":"HostLocal","Host.OS":"CentOS","Host.OS.Kernel.Version":"2.6.32-431.el6.
x86_64","Host.OS.Version":"6.5"},"groupDetails":{},"type":"Routing","dataCen
ter":"default","pod":"default","cluster":"default","guid":"-LibvirtComputing
Resource","name":"kvm02","id":0,"version":"4.4.0","publicIpAddress":"10.167.
26.36","publicNetmask":"255.255.255.0","publicMacAddress":"00:50:56:80:a6:ef
","privateIpAddress":"10.167.26.36","privateMacAddress":"00:50:56:80:a6:ef",
"privateNetmask":"255.255.255.0","storageIpAddress":"10.167.26.36","storageN
etmask":"255.255.255.0","storageMacAddress":"00:50:56:80:a6:ef","resourceNam
e":"LibvirtComputingResource","gatewayIpAddress":"10.167.26.5","wait":0}}] }

WARN  [c.c.a.m.AgentManagerImpl] (AgentManager-Handler-3:null) Throwing away
a request because it came through as the first command on a connect: Seq
0--1:  { Cmd , MgmtId: -1, via: 0, Ver: v1, Flags: 111,
[{"com.cloud.agent.api.ShutdownCommand":{"reason":"sig.kill","wait":0}}] }

WARN  [c.c.a.m.AgentManagerImpl] (AgentManager-Handler-4:null) Throwing away
a request because it came through as the first command on a connect: Seq
0-1:  { Cmd , MgmtId: -1, via: 0, Ver: v1, Flags: 11,
[{"com.cloud.agent.api.PingRoutingWithNwGroupsCommand":{"newGroupStates":{},
"newStates":{},"_hostVmStateReport":{},"_gatewayAccessible":true,"_vnetAcces
sible":true,"hostType":"Routing","hostId":0,"wait":0}}] }

INFO  [c.c.a.m.AgentManagerImpl] (AgentManager-Handler-5:null) Connection
from /10.167.26.36 closed but no cleanup was done.

WARN  [c.c.u.n.Link] (AgentManager-Selector:null) SSL: Fail to find the
generated keystore. Loading fail-safe one to continue.

WARN  [c.c.a.m.AgentManagerImpl] (AgentConnectTaskPool-2:ctx-676dac1b)
Unable to create attache for agent: Seq 0-0:  { Cmd , MgmtId: -1, via: 0,
Ver: v1, Flags: 1,
[{"com.cloud.agent.api.StartupRoutingCommand":{"cpuSockets":1,"cpus":1,"spee
d":3309,"memory":4019048448,"dom0MinMemory":401904844,"poolSync":false,"_hos
tVmStateReport":{},"vms":{},"caps":"hvm,snapshot","pool":"/root","hypervisor
Type":"KVM","hostDetails":{"com.cloud.network.Networks.RouterPrivateIpStrate
gy":"HostLocal","Host.OS":"CentOS","Host.OS.Kernel.Version":"2.6.32-431.el6.
x86_64","Host.OS.Version":"6.5"},"groupDetails":{},"type":"Routing","dataCen
ter":"default","pod":"default","cluster":"default","guid":"74b91c90-b38e-417
a-a984-5777c5c8b1f7-LibvirtComputingResource","name":"kvm03","id":0,"version
":"4.4.0","publicIpAddress":"10.167.26.37","publicNetmask":"255.255.255.0","
publicMacAddress":"00:50:56:80:5a:2f","privateIpAddress":"10.167.26.37","pri
vateMacAddress":"00:50:56:80:5a:2f","privateNetmask":"255.255.255.0","storag
eIpAddress":"10.167.26.37","storageNetmask":"255.255.255.0","storageMacAddre
ss":"00:50:56:80:5a:2f","resourceName":"LibvirtComputingResource","gatewayIp
Address":"10.167.26.5","wait":0}},{"com.cloud.agent.api.StartupStorageComman
d":{"totalSize":0,"poolInfo":{"uuid":"eb6e3e25-5410-4baf-8c8f-77cf5a2ee038",
"host":"10.167.26.37","localPath":"/var/lib/libvirt/images","hostPath":"/var
/lib/libvirt/images","poolType":"Filesystem","capacityBytes":52844687360,"av
ailableBytes":50279170048},"resourceType":"STORAGE_POOL","hostDetails":{},"t
ype":"Storage","dataCenter":"default","pod":"default","guid":"74b91c90-b38e-
417a-a984-5777c5c8b1f7-LibvirtComputingResource","name":"kvm03","id":0,"vers
ion":"4.4.0","resourceName":"LibvirtComputingResource","wait":0}}] }

WARN  [c.c.a.m.AgentManagerImpl] (AgentManager-Handler-8:null) Throwing away
a request because it came through as the first command on a connect: Seq
0--1:  { Cmd , MgmtId: -1, via: 0, Ver: v1, Flags: 111,
[{"com.cloud.agent.api.ShutdownCommand":{"reason":"sig.kill","wait":0}}] }

WARN  [c.c.a.m.AgentManagerImpl] (AgentManager-Handler-9:null) Throwing away
a request because it came through as the first command on a connect: Seq
0-1:  { Cmd , MgmtId: -1, via: 0, Ver: v1, Flags: 11,
[{"com.cloud.agent.api.PingRoutingWithNwGroupsCommand":{"newGroupStates":{},
"newStates":{},"_hostVmStateReport":{},"_gatewayAccessible":true,"_vnetAcces
sible":true,"hostType":"Routing","hostId":0,"wait":0}}] }

INFO  [c.c.a.m.AgentManagerImpl] (AgentManager-Handler-10:null) Connection
from /10.167.26.37 closed but no cleanup was done.

 

管理端和Agent端重装了三次,还是一样的现象,不知道哪里的原因造成了,请求高手
分析,非常想知道自己错在哪了,谢谢!
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message