xcat2 / xcat-core

Code repo for xCAT core packages
Eclipse Public License 1.0
361 stars 171 forks source link

[fvt]2.12.3 xcatprobe osdeploy could not parse %hostname including domain in syslog in ubuntu environment #1918

Closed junxiawang closed 8 years ago

junxiawang commented 8 years ago

env: ubuntu 14.04 p8le build: root@c910f03fsp03v02:/opt/xcat/probe/subcmds# lsdef -v lsdef - Version 2.12.3 (git commit 8903bbaa637f7e44dde01c95e546c88f67019a0b, built Wed Sep 28 11:15:53 EDT 2016) How to reproduce:

 xcatprobe  osdeploy c910f03fsp03v04

...
...
[c910f03fsp03v04] Send DHCPACK on 10.3.9.4 back to 42:fb:0a:03:09:04 via eth0                                     
[c910f03fsp03v04] Running otherpkgs                                                                               
[c910f03fsp03v04] Running otherpkgs                                                                               
[c910f03fsp03v04] Node status is changed to booted                                                                
[c910f03fsp03v04] ready                                                                                           
[c910f03fsp03v04] ready                                                                                           
[c910f03fsp03v04] done                                                                                            
[c910f03fsp03v04] done                                                                                            
60 minutes have expired, stop monitoring                                                                          [INFO]
==================osdeploy_probe_report=================
There is 1 node provision failures                                                                                
c910f03fsp03v04 : stop at stage 'booting'                                                                         [FAIL]
------------------> in fact the node has been  provisioned successfully
hu-weihua commented 8 years ago

@junxiawang , thanks for what you found.

@xuweibj , I think below format log out of control of our function obtain_log_content.

Sep 28 20:51:10 c910f03fsp03v04.pok.stglabs.ibm.com xcat:  provision completed.(c910f03fsp03v04)
Sep 28 20:51:10 c910f03fsp03v04.pok.stglabs.ibm.com xcat:  /xcatpost/mypostscript.post return

Could you help to modify function obtain_log_content to handle hostname like c910f03fsp03v04.pok.stglabs.ibm.com. Thank you very much

hu-weihua commented 8 years ago

@junxiawang , Could you help to verify , thanks.