xcat2 / xcat-inventory

An inventory tool for xcat cluster
8 stars 16 forks source link

[NOT MERGE]fix exception and import issue for python3 #194

Closed robin2008 closed 5 years ago

robin2008 commented 5 years ago

Let's trigger a CI on python2 environment.

UT for python3 with virutalenv: (enable EPEL)

yum install python36-virtualenv.noarch
cd <repo-cloned>
virtualenv-3 venv3
source venv3/bin/activate

And the CI will trigger the UT for python2

robin2008 commented 5 years ago
pip3 install -r requirements.txt
Collecting configparser (from -r requirements.txt (line 1))
  Using cached https://files.pythonhosted.org/packages/ba/05/6c96328e92e625fc31445d24d75a2c92ef9ba34fc5b037fe69693c362a0d/configparser-3.7.4-py2.py3-none-any.whl
Collecting deepdiff (from -r requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/f8/5c/a577c0279c36694c218988ff2e85c63b3d3b3b002034cd7f9dd361688570/deepdiff-4.0.6-py3-none-any.whl (47kB)
     |################################| 51kB 7.6MB/s
Collecting flask (from -r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/7f/e7/08578774ed4536d3242b14dacb4696386634607af824ea997202cd0edb4b/Flask-1.0.2-py2.py3-none-any.whl
Collecting flask_caching (from -r requirements.txt (line 4))
  Using cached https://files.pythonhosted.org/packages/9d/0c/20dd6bf0ec56e0b324d578e77e34a13ffaac8988c6d13e70543974bf5c58/Flask_Caching-1.7.1-py2.py3-none-any.whl
Collecting flask-restplus (from -r requirements.txt (line 5))
  Using cached https://files.pythonhosted.org/packages/29/65/a928450eed445995fb25f9e4fe1495d2e8d53d9ddcfe1d94a017bed9f74e/flask_restplus-0.12.1-py2.py3-none-any.whl
Collecting gunicorn (from -r requirements.txt (line 6))
  Using cached https://files.pythonhosted.org/packages/8c/da/b8dd8deb741bff556db53902d4706774c8e1e67265f69528c14c003644e6/gunicorn-19.9.0-py2.py3-none-any.whl
Collecting cffi (from -r requirements.txt (line 7))
  Downloading https://files.pythonhosted.org/packages/5f/bf/6aa1925384c23ffeb579e97a5569eb9abce41b6310b329352b8252cee1c3/cffi-1.12.3-cp36-cp36m-manylinux1_x86_64.whl (430kB)
     |################################| 440kB 24.7MB/s
Collecting gevent (from -r requirements.txt (line 8))
  Downloading https://files.pythonhosted.org/packages/f2/ca/5b5962361ed832847b6b2f9a2d0452c8c2f29a93baef850bb8ad067c7bf9/gevent-1.4.0-cp36-cp36m-manylinux1_x86_64.whl (5.5MB)
     |################################| 5.5MB 26.7MB/s
Collecting jinja2 (from -r requirements.txt (line 9))
  Using cached https://files.pythonhosted.org/packages/1d/e7/fd8b501e7a6dfe492a433deb7b9d833d39ca74916fa8bc63dd1a4947a671/Jinja2-2.10.1-py2.py3-none-any.whl
Collecting psycopg2 (from -r requirements.txt (line 10))
  Using cached https://files.pythonhosted.org/packages/23/7e/93c325482c328619870b6cd09370f6dbe1148283daca65115cd63642e60f/psycopg2-2.8.2.tar.gz
Collecting pymysql (from -r requirements.txt (line 11))
  Using cached https://files.pythonhosted.org/packages/ed/39/15045ae46f2a123019aa968dfcba0396c161c20f855f11dea6796bcaae95/PyMySQL-0.9.3-py2.py3-none-any.whl
Collecting pyyaml (from -r requirements.txt (line 12))
  Using cached https://files.pythonhosted.org/packages/9f/2c/9417b5c774792634834e730932745bc09a7d36754ca00acf1ccd1ac2594d/PyYAML-5.1.tar.gz
Collecting pyparsing (from -r requirements.txt (line 13))
  Using cached https://files.pythonhosted.org/packages/dd/d9/3ec19e966301a6e25769976999bd7bbe552016f0d32b577dc9d63d2e0c49/pyparsing-2.4.0-py2.py3-none-any.whl
Collecting redis (from -r requirements.txt (line 14))
  Using cached https://files.pythonhosted.org/packages/ac/a7/cff10cc5f1180834a3ed564d148fb4329c989cbb1f2e196fc9a10fa07072/redis-3.2.1-py2.py3-none-any.whl
Collecting requests (from -r requirements.txt (line 15))
  Using cached https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl
Collecting sh (from -r requirements.txt (line 16))
  Using cached https://files.pythonhosted.org/packages/4a/22/17b22ef5b049f12080f5815c41bf94de3c229217609e469001a8f80c1b3d/sh-1.12.14-py2.py3-none-any.whl
Collecting six (from -r requirements.txt (line 17))
  Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting sqlalchemy (from -r requirements.txt (line 18))
  Using cached https://files.pythonhosted.org/packages/2b/b2/e6f5c5efc68942edefaa924e8fbea0b32375baa434a511cbf6bb17769cf6/SQLAlchemy-1.3.3.tar.gz
Collecting ordered-set>=3.1 (from deepdiff->-r requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/a3/b7/d4d69641cbe707a45c23b190f2d717466ba5accc4c70b5f7a8a450387895/ordered-set-3.1.1.tar.gz
Collecting jsonpickle>=1.0 (from deepdiff->-r requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/dc/12/8c44eabb501e2bc0aec0dd152b328074d98a50968d3a02be28f6037f0c6a/jsonpickle-1.1-py2.py3-none-any.whl
Collecting click>=5.1 (from flask->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl
Collecting itsdangerous>=0.24 (from flask->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/76/ae/44b03b253d6fade317f32c24d100b3b35c2239807046a4c953c7b89fa49e/itsdangerous-1.1.0-py2.py3-none-any.whl
Collecting Werkzeug>=0.14 (from flask->-r requirements.txt (line 3))
  Using cached https://files.pythonhosted.org/packages/18/79/84f02539cc181cdbf5ff5a41b9f52cae870b6f632767e43ba6ac70132e92/Werkzeug-0.15.2-py2.py3-none-any.whl
Collecting aniso8601>=0.82 (from flask-restplus->-r requirements.txt (line 5))
  Using cached https://files.pythonhosted.org/packages/85/58/1e804d6d53435b1b2241036056360575640b69a332e7ead086a04bd5ad95/aniso8601-6.0.0-py2.py3-none-any.whl
Collecting pytz (from flask-restplus->-r requirements.txt (line 5))
  Using cached https://files.pythonhosted.org/packages/3d/73/fe30c2daaaa0713420d0382b16fbb761409f532c56bdcc514bf7b6262bb6/pytz-2019.1-py2.py3-none-any.whl
Collecting jsonschema (from flask-restplus->-r requirements.txt (line 5))
  Using cached https://files.pythonhosted.org/packages/aa/69/df679dfbdd051568b53c38ec8152a3ab6bc533434fc7ed11ab034bf5e82f/jsonschema-3.0.1-py2.py3-none-any.whl
Collecting pycparser (from cffi->-r requirements.txt (line 7))
Collecting greenlet>=0.4.14; platform_python_implementation == "CPython" (from gevent->-r requirements.txt (line 8))
  Downloading https://files.pythonhosted.org/packages/bf/45/142141aa47e01a5779f0fa5a53b81f8379ce8f2b1cd13df7d2f1d751ae42/greenlet-0.4.15-cp36-cp36m-manylinux1_x86_64.whl (41kB)
     |################################| 51kB 18.7MB/s
Collecting MarkupSafe>=0.23 (from jinja2->-r requirements.txt (line 9))
  Downloading https://files.pythonhosted.org/packages/b2/5f/23e0023be6bb885d00ffbefad2942bc51a620328ee910f64abe5a8d18dd1/MarkupSafe-1.1.1-cp36-cp36m-manylinux1_x86_64.whl
Collecting idna<2.9,>=2.5 (from requests->-r requirements.txt (line 15))
  Using cached https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl
Collecting urllib3<1.25,>=1.21.1 (from requests->-r requirements.txt (line 15))
  Downloading https://files.pythonhosted.org/packages/01/11/525b02e4acc0c747de8b6ccdab376331597c569c42ea66ab0a1dbd36eca2/urllib3-1.24.3-py2.py3-none-any.whl (118kB)
     |################################| 122kB 52.4MB/s
Collecting chardet<3.1.0,>=3.0.2 (from requests->-r requirements.txt (line 15))
  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests->-r requirements.txt (line 15))
  Using cached https://files.pythonhosted.org/packages/60/75/f692a584e85b7eaba0e03827b3d51f45f571c2e793dd731e598828d380aa/certifi-2019.3.9-py2.py3-none-any.whl
Collecting attrs>=17.4.0 (from jsonschema->flask-restplus->-r requirements.txt (line 5))
  Using cached https://files.pythonhosted.org/packages/23/96/d828354fa2dbdf216eaa7b7de0db692f12c234f7ef888cc14980ef40d1d2/attrs-19.1.0-py2.py3-none-any.whl
Requirement already satisfied: setuptools in ./venv3/lib/python3.6/site-packages (from jsonschema->flask-restplus->-r requirements.txt (line 5)) (41.0.1)
Collecting pyrsistent>=0.14.0 (from jsonschema->flask-restplus->-r requirements.txt (line 5))
  Using cached https://files.pythonhosted.org/packages/2c/a7/8a50738eb27e204aa271abe170dec7bdbb07128ed892fb3a92f14a69bae3/pyrsistent-0.15.1.tar.gz
Building wheels for collected packages: psycopg2, pyyaml, sqlalchemy, ordered-set, pyrsistent
  Building wheel for psycopg2 (setup.py) ... done
  Stored in directory: /root/.cache/pip/wheels/3b/d0/9c/fbbaca1e768e108fdcb88a9a50ea43de141adf842741f8623f
  Building wheel for pyyaml (setup.py) ... done
  Stored in directory: /root/.cache/pip/wheels/ad/56/bc/1522f864feb2a358ea6f1a92b4798d69ac783a28e80567a18b
  Building wheel for sqlalchemy (setup.py) ... done
  Stored in directory: /root/.cache/pip/wheels/6b/02/e3/7f1149be63131cdf6aaaa3330924a2683bb530188940569d66
  Building wheel for ordered-set (setup.py) ... done
  Stored in directory: /root/.cache/pip/wheels/dd/70/f1/0a4953bd6d06e7dbffe8ef0197b558eaecb21fa6b043b50d73
  Building wheel for pyrsistent (setup.py) ... done
  Stored in directory: /root/.cache/pip/wheels/93/03/43/ed0b3c9666e2001e2e6cce51efebdf3ce5e8edfa92966b1f6f
Successfully built psycopg2 pyyaml sqlalchemy ordered-set pyrsistent
Installing collected packages: configparser, ordered-set, jsonpickle, deepdiff, MarkupSafe, jinja2, click, itsdangerous, Werkzeug, flask, flask-caching, aniso8601, six, pytz, attrs, pyrsistent, jsonschema, flask-restplus, gunicorn, pycparser, cffi, greenlet, gevent, psycopg2, pymysql, pyyaml, pyparsing, redis, idna, urllib3, chardet, certifi, requests, sh, sqlalchemy
Successfully installed MarkupSafe-1.1.1 Werkzeug-0.15.2 aniso8601-6.0.0 attrs-19.1.0 certifi-2019.3.9 cffi-1.12.3 chardet-3.0.4 click-7.0 configparser-3.7.4 deepdiff-4.0.6 flask-1.0.2 flask-caching-1.7.1 flask-restplus-0.12.1 gevent-1.4.0 greenlet-0.4.15 gunicorn-19.9.0 idna-2.8 itsdangerous-1.1.0 jinja2-2.10.1 jsonpickle-1.1 jsonschema-3.0.1 ordered-set-3.1.1 psycopg2-2.8.2 pycparser-2.19 pymysql-0.9.3 pyparsing-2.4.0 pyrsistent-0.15.1 pytz-2019.1 pyyaml-5.1 redis-3.2.1 requests-2.21.0 sh-1.12.14 six-1.12.0 sqlalchemy-1.3.3 urllib3-1.24.3
robin2008 commented 5 years ago

It is odd, not now why CI is failing, I run the CI scripts on my new ubuntu host, the result is fine.

perl ./travis.pl

------ Travis Environment Attributes ------
TRAVIS_REPO_SLUG = ''
TRAVIS_BRANCH = ''
TRAVIS_EVENT_TYPE = ''
TRAVIS_PULL_REQUEST = ''
GITHUB_TOKEN = ''
USERNAME = ''
PASSWORD = ''
PWD = '/root/xcat-inventory'
Current OS information:
$VAR1 = [
          'NAME="Ubuntu"',
          'VERSION="16.04.5 LTS (Xenial Xerus)"',
          'ID=ubuntu',
          'ID_LIKE=debian',
          'PRETTY_NAME="Ubuntu 16.04.5 LTS"',
          'VERSION_ID="16.04"',
          'HOME_URL="http://www.ubuntu.com/"',
          'SUPPORT_URL="http://help.ubuntu.com/"',
          'BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"',
          'VERSION_CODENAME=xenial',
          'UBUNTU_CODENAME=xenial'
        ];
Disk information:
$VAR1 = [
          'Filesystem      Size  Used Avail Use% Mounted on',
          'udev            2.0G     0  2.0G   0% /dev',
          'tmpfs           396M   41M  355M  11% /run',
          '/dev/sda5        18G  3.3G   14G  20% /',
          'tmpfs           2.0G     0  2.0G   0% /dev/shm',
          'tmpfs           5.0M     0  5.0M   0% /run/lock',
          'tmpfs           2.0G     0  2.0G   0% /sys/fs/cgroup',
          '/dev/sda1        88M   54M   29M  66% /boot',
          'tmpfs           396M     0  396M   0% /run/user/0'
        ];
Hacking the netmask length to 16 if it is 32:  ens3
Networking information:
$VAR1 = [
          '1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1',
          '    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00',
          '    inet 127.0.0.1/8 scope host lo',
          '       valid_lft forever preferred_lft forever',
          '    inet6 ::1/128 scope host ',
          '       valid_lft forever preferred_lft forever',
          '2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000',
          '    link/ether 42:2f:0a:04:1b:03 brd ff:ff:ff:ff:ff:ff',
          '    inet 10.4.27.3/8 brd 10.255.255.255 scope global ens3',
          '       valid_lft forever preferred_lft forever',
          '    inet6 fe80::402f:aff:fe04:1b03/64 scope link ',
          '       valid_lft forever preferred_lft forever',
          '3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default ',
          '    link/ether 02:42:85:82:fd:54 brd ff:ff:ff:ff:ff:ff',
          '    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0',
          '       valid_lft forever preferred_lft forever'
        ];

------ Building xCAT inventory package ------
>>>>>Dumper the output of 'sudo ./build.sh'
[build_xcat_inventory] sudo ./build.sh ....[Pass]
[mark_time] Tue May  7 02:09:45 2019, ElapsedTime of build_xcat_inventory is 4 s

------Installing xCAT ------
[install_xcat] running sudo mkdir -p /xcat && cd /xcat
[install_xcat] running sudo wget -q https://xcat.org/files/xcat/xcat-core/devel/Ubuntu/core-snap/core-debs-snap.tar.bz2
[install_xcat] running sudo tar -jxvf core-debs-snap.tar.bz2
[install_xcat] running cd xcat-core && sudo ./mklocalrepo.sh
[install_xcat] running sudo chmod 777 /etc/apt/sources.list
[install_xcat] running sudo echo "deb [arch=amd64 allow-insecure=yes] http://xcat.org/files/xcat/repos/apt/devel/xcat-dep xenial main" >> /etc/apt/sources.list
[install_xcat] running sudo echo "deb [arch=ppc64el allow-insecure=yes] http://xcat.org/files/xcat/repos/apt/devel/xcat-dep xenial main" >> /etc/apt/sources.list
[install_xcat] running sudo wget -q -O - "http://xcat.org/files/xcat/repos/apt/apt.key" | sudo apt-key add -
[install_xcat] running sudo apt-get -qq update

[install_xcat] sudo apt-get install xcat --allow-remove-essential --allow-unauthenticated ....[Pass]
[mark_time] Tue May  7 02:51:37 2019, ElapsedTime of install_xcat is 2512 s

------Installing xCAT test------
[install_xcattest] sudo apt-get install xcat-test --allow-remove-essential --allow-unauthenticated .....:
[install_xcattest] sudo git clone https://github.com/xcat2/xcat-core.git /tmp/xcat-core .....:
[install_xcattest] sudo bash -c '. /etc/profile.d/xcat.sh && xcattest -h' .....:
[mark_time] Tue May  7 03:00:17 2019, ElapsedTime of install_xcattest is 520 s

------Installing xcat-inventory------
[install_inventory] sudo apt-get install -y /xcat-inventory_build/xcat-inventory_0.1.2-c254_all.deb ....[Pass]
[mark_time] Tue May  7 03:00:32 2019, ElapsedTime of install_inventory is 15 s

------Running xcat-inventory CI cases------
hostname = c910f04x27v03
Dumper regression conf file:
$VAR1 = [
          '[System]',
          'MN=c910f04x27v03',
          'DSTMN=10.4.27.3',
          '[Table_site]',
          'key=domain',
          'value=pok.stglabs.ibm.com'
        ];
[run_inventory_cases] sudo bash -c '. /etc/profile.d/xcat.sh && xcattest -s "inventory_ci" -l' .....:
$VAR1 = [
          'export_single_osimage_then_modify_yaml_then_import',
          'import_validation_node_device_type',
          'xcat_inventory_try_to_export_all_type_is_site_yaml_format',
          'xcat_inventory_try_to_import_all_type_is_osimage_json_format',
          'import_validation_node_device_info_arch',
          'import_validation_node_obj_type',
          'export_site_table_then_modify_json_then_import',
          'export_import_specified_from_osimage_directory',
          'xcat_inventory_diff_files_filename',
          'xcat_inventory_import_validation_network',
          'backend',
          'export_import_single_kvm_by_json',
          'xcat_inventory_diff_filename',
          'import_validation_node_role_info_setupipforward',
          'export_import_single_switch_by_yaml',
          'xcat_inventory_import_validation_site',
          'export_import_site_by_yaml',
          'import_validation_node_role_info_setupproxydhcp',
          'import_validation_node_network_info_primarynic_mac',
          'export_import_single_witherspoon_by_json',
          'export_import_single_kvm_by_yaml',
          'xcat_inventory_try_to_export_all_type_is_node_default_format',
          'import_validation_node_role_info_setupntp',
          'export_import_single_group_yaml',
          'export_import_an_osimage_directory',
          'export_single_node_then_modify_json_then_import',
          'import_validation_node_security_info_snmp_privacyprotocol',
          'export_import_nodes_delimited_with_comma_by_yaml',
          'export_osimage_with_environments',
          'xcat_inventory_try_to_import_nonexisted_node',
          'import_validation_node_engines_netboot_engine_engine_type',
          'import_validation_node_role_info_setuptftp',
          'export_import_single_osimage_by_dir',
          'export_more_nodes_import_part_nodes_json',
          'xcat_inventory_try_to_import_all_type_is_site_yaml_format',
          'export_import_single_pdu_by_json',
          'export_import_osimages_by_dir_with_c',
          'xcat_inventory_diff_no_exist_file',
          'export_import_single_ppc_by_json',
          'export_import_single_osimage_by_json',
          'export_import_single_switch_by_json',
          'export_import_all_osimages_by_dir',
          'export_import_osimage_with_INCLUDE_in_file',
          'xcat_inventory_import_validation_route',
          'xcat_inventory_invalid_subcmd',
          'xcat_inventory_import_miss_option',
          'xcat_inventory_try_to_export_all_type_is_osimage_yaml_format',
          'export_import_single_boston_by_json',
          'xcat_inventory_try_to_export_all_type_is_node_json_format',
          'import_validation_node_role_info_setupnameserver',
          'xcat_inventory_diff_source_filename',
          'xcat_inventory_export_option_t_invalid_type',
          'export_import_multiple_osimages_from_osimage_directory',
          'xcat_inventory_import_validation_osimage',
          'xcat_inventory_diff_files_all',
          'export_import_site_by_json',
          'import_validation_node_nics_network_info_nics_ips',
          'xcat_inventory_try_to_export_all_type_is_site_default_format',
          'export_import_nics_with_regex',
          'import_validation_node_role_info_setupldap',
          'export_import_single_group_json',
          'import_validation_node_role',
          'export_import_single_ppc_by_yaml',
          'xcat_inventory_import_validation_passwd',
          'export_more_nodes_import_part_nodes_yaml',
          'import_validation_node_security_info_snmp_authprotocol',
          'xcat_inventory_try_to_export_all_type_is_osimage_default_format',
          'xcat_inventory_export_option_format_invalid_type',
          'xcat_inventory_try_to_import_all_type_is_osimage_yaml_format',
          'export_import_single_witherspoon_by_yaml',
          'xcat_inventory_diff_without_option',
          'xcat_inventory_try_to_import_all_type_is_site_json_format',
          'import_validation_node_obj_info_groups',
          'import_validation_node_network_info_connections_switchport',
          'xcat_inventory_diff_source',
          'xcat_inventory_try_to_import_all_type_is_node_json_format',
          'export_single_node_then_modify_yaml_then_import',
          'xcat_inventory_try_to_export_all_type_is_osimage_json_format',
          'export_single_osimage_then_modify_json_then_import',
          'xcat_inventory_import_option_f_invalid_file',
          'xcat_inventory_import_option_t_invalid_type',
          'xcat_inventory_option_h',
          'export_import_single_pdu_by_yaml',
          'export_import_nodes_delimited_with_comma_by_json',
          'xcat_inventory_try_to_import_all_type_is_node_yaml_format',
          'xcat_inventory_try_to_export_all_type_is_node_yaml_format',
          'xcat_inventory_export_option_f',
          'xcat_inventory_try_to_export_all_type_is_site_json_format',
          'import_validation_node_role_info_setupnfs',
          'xcat_inventory_diff_files',
          'xcat_inventory_diff_h',
          'xcat_inventory_diff_files_source',
          'export_import_single_boston_by_yaml',
          'export_import_multiple_osimages_by_dir',
          'export_import_credential',
          'import_validation_node_role_info_setupconserver',
          'export_import_single_osimage_by_yaml',
          'import_validation_node_engines_hardware_mgt_engine_engine_type',
          'xcat_inventory_try_to_export_nonexisted_node',
          'import_validation_node_security_info_snmp_securitylevel',
          'import_validation_node_network_info_primarynic_ip',
          'import_validation_node_security_info_remotecontrol_remoteprotocol',
          'xcat_inventory_option_V',
          'export_site_table_then_modify_yaml_then_import',
          'import_validation_node_role_info_setupdhcp'
        ];
[run_inventory_cases] run 1: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_single_osimage_then_modify_yaml_then_import'
[run_inventory_cases] run 2: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_device_type'
[run_inventory_cases] run 3: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_try_to_export_all_type_is_site_yaml_format'
[run_inventory_cases] run 4: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_try_to_import_all_type_is_osimage_json_format'
[run_inventory_cases] run 5: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_device_info_arch'
[run_inventory_cases] run 6: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_obj_type'
[run_inventory_cases] run 7: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_site_table_then_modify_json_then_import'
[run_inventory_cases] run 8: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_specified_from_osimage_directory'
[run_inventory_cases] run 9: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_diff_files_filename'
[run_inventory_cases] run 10: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_import_validation_network'
[run_inventory_cases] run 11: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t backend'
[run_inventory_cases] run 12: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_single_kvm_by_json'
[run_inventory_cases] run 13: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_diff_filename'
[run_inventory_cases] run 14: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_role_info_setupipforward'
[run_inventory_cases] run 15: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_single_switch_by_yaml'
[run_inventory_cases] run 16: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_import_validation_site'
[run_inventory_cases] run 17: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_site_by_yaml'
[run_inventory_cases] run 18: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_role_info_setupproxydhcp'
[run_inventory_cases] run 19: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_network_info_primarynic_mac'
[run_inventory_cases] run 20: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_single_witherspoon_by_json'
[run_inventory_cases] run 21: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_single_kvm_by_yaml'
[run_inventory_cases] run 22: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_try_to_export_all_type_is_node_default_format'
[run_inventory_cases] run 23: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_role_info_setupntp'
[run_inventory_cases] run 24: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_single_group_yaml'
[run_inventory_cases] run 25: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_an_osimage_directory'
[run_inventory_cases] run 26: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_single_node_then_modify_json_then_import'
[run_inventory_cases] run 27: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_security_info_snmp_privacyprotocol'
[run_inventory_cases] run 28: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_nodes_delimited_with_comma_by_yaml'
[run_inventory_cases] run 29: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_osimage_with_environments'
[run_inventory_cases] run 30: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_try_to_import_nonexisted_node'
[run_inventory_cases] run 31: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_engines_netboot_engine_engine_type'
[run_inventory_cases] run 32: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_role_info_setuptftp'
[run_inventory_cases] run 33: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_single_osimage_by_dir'
[run_inventory_cases] run 34: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_more_nodes_import_part_nodes_json'
[run_inventory_cases] run 35: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_try_to_import_all_type_is_site_yaml_format'
[run_inventory_cases] run 36: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_single_pdu_by_json'
[run_inventory_cases] run 37: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_osimages_by_dir_with_c'
[run_inventory_cases] run 38: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_diff_no_exist_file'
[run_inventory_cases] run 39: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_single_ppc_by_json'
[run_inventory_cases] run 40: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_single_osimage_by_json'
[run_inventory_cases] run 41: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_single_switch_by_json'
[run_inventory_cases] run 42: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_all_osimages_by_dir'
[run_inventory_cases] run 43: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_osimage_with_INCLUDE_in_file'
[run_inventory_cases] run 44: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_import_validation_route'
[run_inventory_cases] run 45: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_invalid_subcmd'
[run_inventory_cases] run 46: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_import_miss_option'
[run_inventory_cases] run 47: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_try_to_export_all_type_is_osimage_yaml_format'
[run_inventory_cases] run 48: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_single_boston_by_json'
[run_inventory_cases] run 49: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_try_to_export_all_type_is_node_json_format'
[run_inventory_cases] run 50: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_role_info_setupnameserver'
[run_inventory_cases] run 51: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_diff_source_filename'
[run_inventory_cases] run 52: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_export_option_t_invalid_type'
[run_inventory_cases] run 53: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_multiple_osimages_from_osimage_directory'
[run_inventory_cases] run 54: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_import_validation_osimage'
[run_inventory_cases] run 55: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_diff_files_all'
[run_inventory_cases] run 56: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_site_by_json'
[run_inventory_cases] run 57: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_nics_network_info_nics_ips'
[run_inventory_cases] run 58: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_try_to_export_all_type_is_site_default_format'
[run_inventory_cases] run 59: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_nics_with_regex'
[run_inventory_cases] run 60: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_role_info_setupldap'
[run_inventory_cases] run 61: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_single_group_json'
[run_inventory_cases] run 62: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_role'
[run_inventory_cases] run 63: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_single_ppc_by_yaml'
[run_inventory_cases] run 64: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_import_validation_passwd'
[run_inventory_cases] run 65: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_more_nodes_import_part_nodes_yaml'
[run_inventory_cases] run 66: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_security_info_snmp_authprotocol'
[run_inventory_cases] run 67: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_try_to_export_all_type_is_osimage_default_format'
[run_inventory_cases] run 68: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_export_option_format_invalid_type'
[run_inventory_cases] run 69: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_try_to_import_all_type_is_osimage_yaml_format'
[run_inventory_cases] run 70: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_single_witherspoon_by_yaml'
[run_inventory_cases] run 71: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_diff_without_option'
[run_inventory_cases] run 72: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_try_to_import_all_type_is_site_json_format'
[run_inventory_cases] run 73: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_obj_info_groups'
[run_inventory_cases] run 74: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_network_info_connections_switchport'
[run_inventory_cases] run 75: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_diff_source'
[run_inventory_cases] run 76: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_try_to_import_all_type_is_node_json_format'
[run_inventory_cases] run 77: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_single_node_then_modify_yaml_then_import'
[run_inventory_cases] run 78: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_try_to_export_all_type_is_osimage_json_format'
[run_inventory_cases] run 79: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_single_osimage_then_modify_json_then_import'
[run_inventory_cases] run 80: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_import_option_f_invalid_file'
[run_inventory_cases] run 81: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_import_option_t_invalid_type'
[run_inventory_cases] run 82: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_option_h'
[run_inventory_cases] run 83: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_single_pdu_by_yaml'
[run_inventory_cases] run 84: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_nodes_delimited_with_comma_by_json'
[run_inventory_cases] run 85: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_try_to_import_all_type_is_node_yaml_format'
[run_inventory_cases] run 86: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_try_to_export_all_type_is_node_yaml_format'
[run_inventory_cases] run 87: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_export_option_f'
[run_inventory_cases] run 88: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_try_to_export_all_type_is_site_json_format'
[run_inventory_cases] run 89: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_role_info_setupnfs'
[run_inventory_cases] run 90: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_diff_files'
[run_inventory_cases] run 91: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_diff_h'
[run_inventory_cases] run 92: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_diff_files_source'
[run_inventory_cases] run 93: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_single_boston_by_yaml'
[run_inventory_cases] run 94: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_multiple_osimages_by_dir'
[run_inventory_cases] run 95: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_credential'
[run_inventory_cases] run 96: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_role_info_setupconserver'
[run_inventory_cases] run 97: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_import_single_osimage_by_yaml'
[run_inventory_cases] run 98: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_engines_hardware_mgt_engine_engine_type'
[run_inventory_cases] run 99: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_try_to_export_nonexisted_node'
[run_inventory_cases] run 100: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_security_info_snmp_securitylevel'
[run_inventory_cases] run 101: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_network_info_primarynic_ip'
[run_inventory_cases] run 102: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_security_info_remotecontrol_remoteprotocol'
[run_inventory_cases] run 103: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t xcat_inventory_option_V'
[run_inventory_cases] run 104: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t export_site_table_then_modify_yaml_then_import'
[run_inventory_cases] run 105: sudo bash -c '. /etc/profile.d/xcat.sh &&  xcattest -f /root/xcat-inventory/inventory.conf -t import_validation_node_role_info_setupdhcp'
[mark_time] Tue May  7 03:52:06 2019, ElapsedTime of run_inventory_cases is 3094 s
root@c910f04x27v03:~/xcat-inventory#
robin2008 commented 5 years ago

Not required, it is replaced by #195