cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "威" <505981...@qq.com>
Subject 回复:baremetal问题
Date Sat, 01 Aug 2015 03:07:56 GMT
ipmitool -H 192.168.3.253 -I lanplus -U ADMIN -P ADMIN chassis power status
有正确返回说明没问题,默认脚本要改下就行了 
/usr/share/cloudstack-common/scripts/util/ipmi.py     所有ipmitoool 命令加入 “-I lanplus”
应该就没问题了!

------------------ 原始邮件 ------------------
发件人: "qiangzhu@travelsky.com";<qiangzhu@travelsky.com>;
发送时间: 2015年7月20日(星期一) 上午10:26
收件人: "cs邮件组"<users-cn@cloudstack.apache.org>; 

主题: baremetal问题



你好:
    遇到了一个问题,用cs4.4.2 接管baremetal的时候,主机添加不上, ipmi地址为:192.168.3.253
 cs管理节点:192.168.3.136 为同一个网段   
    请教一下ipmi怎么配置?
    错误日志如下:手动执行ipmi命令 ipmitool -H 192.168.3.253 -I lanplus -U ADMIN
-P ADMIN chassis power status 可以有返回值为on
2015-07-20 09:58:13,219 INFO  [c.c.r.ResourceManagerImpl] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a)
Trying to add a new host at http://192.168.3.253 in data center 2
2015-07-20 09:58:13,220 DEBUG [c.c.u.s.Script] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a)
Looking for scripts/util/ipmi.py in the classpath
2015-07-20 09:58:13,220 DEBUG [c.c.u.s.Script] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a)
System resource: null
2015-07-20 09:58:13,220 DEBUG [c.c.u.s.Script] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a)
Classpath resource: null
2015-07-20 09:58:13,220 DEBUG [c.c.u.s.Script] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a)
Looking for scripts/util/ipmi.py
2015-07-20 09:58:13,224 DEBUG [c.c.u.s.Script] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a)
Current binaries reside at /usr/share/cloudstack-management/webapps/client/WEB-INF/lib
2015-07-20 09:58:13,224 DEBUG [c.c.u.s.Script] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a)
Looking for scripts/util/ipmi.py in /usr/share/cloudstack-management/webapps/client/WEB-INF/lib/scripts/util/ipmi.py
2015-07-20 09:58:13,224 DEBUG [c.c.u.s.Script] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a)
Looking for scripts/util/ipmi.py in /usr/share/cloudstack-management/webapps/client/WEB-INF/lib/scripts/util/ipmi.py
2015-07-20 09:58:13,224 DEBUG [c.c.u.s.Script] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a)
Looking for scripts/util/ipmi.py in /usr/share/cloudstack-management/webapps/client/WEB-INF/scripts/util/ipmi.py
2015-07-20 09:58:13,224 DEBUG [c.c.u.s.Script] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a)
Looking for scripts/util/ipmi.py in /usr/share/cloudstack-management/webapps/client/scripts/util/ipmi.py
2015-07-20 09:58:13,224 DEBUG [c.c.u.s.Script] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a)
Looking for scripts/util/ipmi.py in /usr/share/cloudstack-management/webapps/scripts/util/ipmi.py
2015-07-20 09:58:13,224 DEBUG [c.c.u.s.Script] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a)
Looking for scripts/util/ipmi.py in /usr/share/cloudstack-management/scripts/util/ipmi.py
2015-07-20 09:58:13,224 DEBUG [c.c.u.s.Script] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a)
Looking for scripts/util/ipmi.py in /usr/share/scripts/util/ipmi.py
2015-07-20 09:58:13,224 DEBUG [c.c.u.s.Script] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a)
Looking for scripts/util/ipmi.py in /usr/scripts/util/ipmi.py
2015-07-20 09:58:13,224 DEBUG [c.c.u.s.Script] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a)
Looking for scripts/util/ipmi.py in /scripts/util/ipmi.py
2015-07-20 09:58:13,225 DEBUG [c.c.u.s.Script] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a)
Searching in environment.properties
2015-07-20 09:58:13,229 DEBUG [c.c.u.s.Script] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a)
environment.properties says scripts should be in /usr/share/cloudstack-common
2015-07-20 09:58:13,229 DEBUG [c.c.u.s.Script] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a)
Looking for scripts/util/ipmi.py in /usr/share/cloudstack-common/scripts/util/ipmi.py
2015-07-20 09:58:13,264 DEBUG [c.c.b.m.BareMetalDiscoverer] (catalina-exec-1:ctx-577bc0c2
ctx-d38b1b2a) Executing: /usr/share/cloudstack-common/scripts/util/ipmi.py ping hostname=192.168.3.253
usrname=ADMIN ****** 
2015-07-20 09:58:13,349 DEBUG [c.c.c.ConsoleProxyManagerImpl] (consoleproxy-1:ctx-960b3567)
Zone 2 is not ready to launch console proxy yet
2015-07-20 09:58:13,602 DEBUG [c.c.b.m.BareMetalDiscoverer] (catalina-exec-1:ctx-577bc0c2
ctx-d38b1b2a) Exit value is 1
2015-07-20 09:58:13,606 DEBUG [c.c.b.m.BareMetalDiscoverer] (catalina-exec-1:ctx-577bc0c2
ctx-d38b1b2a) Invalid command: ICommands: raw           Send a RAW IPMI request and print
response i2c           Send an I2
C Master Write-Read command and print response spd           Print SPD info from remote I2C
device lan           Configure LAN Channels chassis       Get chassis status and set power
state power         Shortcut to chassis power commands event         Send pre-defined events
to MC mc            Management Controller status and global enables sdr           Print Sensor
Data Repository entries and readings sensor        Print detailed sensor information fru 
         Print built-in FRU and scan SDR for FRU locators gendev        Read/Write Device
associated with Generic Device locators sdr sel           Print System Event Log (SEL)   
 pef           Configure Platform Event Filtering (PEF) sol           Configure and connect
IPMIv2.0 Serial-over-LAN tsol          Configure and connect with Tyan IPMIv1.5 Serial-over-LAN
isol          Configure IPMIv1.5 Serial-over-LAN user          Configure Management Controller
users channel       Configure Management Controller channels session       Print session information
sunoem        OEM Commands for Sun servers     kontronoem    OEM Commands for Kontron devices
picmg         Run a PICMG/ATCA extended cmd fwum          Update IPMC using Kontron OEM Firmware
Update Manager firewall      Configure Firmware Firewall delloem       OEM Commands for Dell
systems shell         Launch interactive IPMI shell exec          Run list of commands from
file set           Set runtime variable for shell and exec hpm           Update HPM components
using PICMG HPM.1 file ekanalyzer    run FRU-Ekeying analyzer using FRU files2015-07-20 09:58:13,608
WARN  [c.c.b.m.BareMetalDiscoverer] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a) Can not set
up ipmi connection(ip=192.168.3.253, username=ADMIN, password=******, args) because Invalid
command: IComman
ds: raw           Send a RAW IPMI request and print response i2c           Send an I2C Master
Write-Read command and print response spd           Print SPD info from remote I2C device
lan           Configure LAN Channels chassis       Get chassis status and set power state
power         Shortcut to chassis power commands event         Send pre-defined events to
MC mc            Management Controller status and global enables sdr           Print Sensor
Data Repository entries and readings sensor        Print detailed sensor information fru 
         Print built-in FRU and scan SDR for FRU locators gendev        Read/Write Device
associated with Generic Device locators sdr sel           Print System Event Log (SEL) pef
          Configure Platform Event Filtering (PEF) sol           Configure and connect IPMIv2.0
Serial-over-LAN tsol          Configure and connect with Tyan IPMIv1.5 Serial-over-LAN isol
         Configure IPMIv1.5 Serial-over-LAN user          Configure Management Controller
users channel       Configure Management Controller channels session       Print session information
sunoem        OEM Commands for Sun servers kontronoem    OEM Commands for Kontron devices
picmg         Run a PICMG/ATCA extended cmd fwum          Update IPMC using Kontron OEM Firmware
Update Manager firewall      Configure Firmware Firewall delloem       OEM Commands for Dell
systems shell         Launch interactive IPMI shell exec          Run list of commands from
file set           Set runtime variable for shell and exec hpm           Update HPM components
using PICMG HPM.1 file ekanalyzer    run FRU-Ekeying analyzer using FRU files2015-07-20 09:58:13,609
WARN  [c.c.r.ResourceManagerImpl] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a) Unable to find
the server resources at http://192.168.3.253
2015-07-20 09:58:13,609 INFO  [c.c.u.e.CSExceptionErrorCode] (catalina-exec-1:ctx-577bc0c2
ctx-d38b1b2a) Could not find exception: com.cloud.exception.DiscoveryException in error code
list for exceptions
2015-07-20 09:58:13,609 WARN  [o.a.c.a.c.a.h.AddHostCmd] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a)
Exception: 
com.cloud.exception.DiscoveryException: Unable to add the host
at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:791)
at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:586)
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:601)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy148.discoverHosts(Unknown Source)
at org.apache.cloudstack.api.command.admin.host.AddHostCmd.execute(AddHostCmd.java:142)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:141)
at com.cloud.api.ApiServer.queueCommand(ApiServer.java:682)
at com.cloud.api.ApiServer.handleRequest(ApiServer.java:511)
at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:330)
at com.cloud.api.ApiServlet.access$000(ApiServlet.java:54)
at com.cloud.api.ApiServlet$1.run(ApiServlet.java:118)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:115)
at com.cloud.api.ApiServlet.doPost(ApiServlet.java:82)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2268)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
2015-07-20 09:58:13,611 INFO  [c.c.a.ApiServer] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a)
Unable to add the host
2015-07-20 09:58:13,611 DEBUG [c.c.a.ApiServlet] (catalina-exec-1:ctx-577bc0c2 ctx-d38b1b2a)
===END===  192.168.11.89 -- POST  command=addHost&response=json&sessionkey=AiWsKYjGLtMmbYBOfezSoSt7yBg%3D
2015-07-20 09:58:13,697 DEBUG [c.c.a.m.AgentManagerImpl] (AgentManager-Handler-11:null) SeqA
4-127978: Processing Seq 4-127978:  { Cmd , MgmtId: -1, via: 4, Ver: v1, Flags: 11, [{"com.cloud.agent.api.ConsoleProxyLoadReportCo
mmand":{"_proxyVmId":2,"_loadInfo":"{\n  \"connections\": []\n}","wait":0}}] }2015-07-20 09:58:13,702
DEBUG [c.c.a.m.AgentManagerImpl] (AgentManager-Handler-11:null) SeqA 4-127978: Sending Seq
4-127978:  { Ans: , MgmtId: 345050257590, via: 4, Ver: v1, Flags: 100010, [{"com.cloud.agent.api.AgentControl
Answer":{"result":true,"wait":0}}] }




朱强                       
中国民航信息网络股份有限公司
华东数据中心    
地址:北京市朝阳区惠新东街富盛大厦1座4层
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message