xcat2 / xcat-extensions

Repos to store scripts for special user cases
4 stars 8 forks source link

fix 3 issues for xcatha.py -a #33

Closed bybai closed 6 years ago

bybai commented 6 years ago

Fix 3 issues:

  1. fix remove one more goconserver
    2018-06-22 05:12:16,124 - INFO - ===> Start all services stage <===
    Traceback (most recent call last):
    File "./xcatha.py", line 1194, in <module>
    main()
    File "./xcatha.py", line 1162, in main
    interactive_activate(obj,args.virtual_ip,args.dbtype)
    File "./xcatha.py", line 1143, in interactive_activate
    obj.start_all_services(service_list, dbtype, restore_host_name)
    File "./xcatha.py", line 182, in start_all_services
    servicelist.remove('goconserver')
    ValueError: list.remove(x): x not in list
  2. "get_hostname_for_ip" should return short name.
  3. remove "\n" from hostname