Menu

#4693 [fvt]2.10rcons -v return wrong value--------

2.10
closed
None
hw ctrl
5
2015-07-06
2015-06-04
junxiaw
No

How to reproduce:
1.down the latest build
2.root@c910f03c05k05:~# lsdef -v
lsdef - Version 2.10 (git commit 22b5c8fd793ca32bb75f76899e1d27bd203a53c6, built Wed May 27 11:38:46 EDT 2015)
root@c910f03c05k05:~# rcons -v
++ uname
+ os=Linux
+ '[' Linux == Linux ']'
++ cut -d: -f 6
+++ whoami
++ getent passwd root
+ HOME=/root
+ export HOME
+ '[' Linux == AIX ']'
+ '[' -z -v ']'
+ '[' -v = -h ']'
+ '[' -v = -help ']'
+ '[' -v = --help ']'
+ '[' -v = -v ']'
+ echo 'Version 2.9'
Version 2.9
+ exit 0
root@c910f03c05k05:~#
--------> only 2.9 version here

Discussion

  • Guang Cheng Li

    Guang Cheng Li - 2015-06-23
    • assigned_to: zhao er tao --> Guang Cheng Li
     
  • Guang Cheng Li

    Guang Cheng Li - 2015-06-23
    • status: open --> pending
     
  • Guang Cheng Li

    Guang Cheng Li - 2015-06-23

    Should not hard code the 2.9 in rcons -v, could call xCAT::Version->Version() to get the exact xCAT version.

    Fixed in xCAT 2.10:
    commit 8d957f8b11602120a70285e5dc831cf3e0b7d0bd

    [root@c910f02c01p02 ~]# rcons -v
    Version 2.10 (git commit e16453569dc8e696b7217f40ac6e722a519272e2, built Sun Jun 7 22:12:17 EDT 2015)
    [root@c910f02c01p02 ~]# rcons --version
    Version 2.10 (git commit e16453569dc8e696b7217f40ac6e722a519272e2, built Sun Jun 7 22:12:17 EDT 2015)
    [root@c910f02c01p02 ~]#

     
  • junxiaw

    junxiaw - 2015-07-06
    • status: pending --> closed