kimchi-project / ginger

WoK plugin for host management
Other
66 stars 41 forks source link

make check fails on Centos 7.2 #493

Open ramonmedeiros opened 7 years ago

ramonmedeiros commented 7 years ago
[root@localhost ginger]# make check
Making check in po
make[1]: Entering directory `/root/WOK/src/wok/plugins/ginger/po'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/root/WOK/src/wok/plugins/ginger/po'
Making check in control
make[1]: Entering directory `/root/WOK/src/wok/plugins/ginger/control'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/root/WOK/src/wok/plugins/ginger/control'
Making check in model
make[1]: Entering directory `/root/WOK/src/wok/plugins/ginger/model'
make  check-am
make[2]: Entering directory `/root/WOK/src/wok/plugins/ginger/model'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/root/WOK/src/wok/plugins/ginger/model'
make[1]: Leaving directory `/root/WOK/src/wok/plugins/ginger/model'
Making check in ui
make[1]: Entering directory `/root/WOK/src/wok/plugins/ginger/ui'
Making check in config
make[2]: Entering directory `/root/WOK/src/wok/plugins/ginger/ui/config'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/root/WOK/src/wok/plugins/ginger/ui/config'
Making check in css
make[2]: Entering directory `/root/WOK/src/wok/plugins/ginger/ui/css'
Making check in base
make[3]: Entering directory `/root/WOK/src/wok/plugins/ginger/ui/css/base'
Making check in images
make[4]: Entering directory `/root/WOK/src/wok/plugins/ginger/ui/css/base/images'
make[4]: Nothing to be done for `check'.
make[4]: Leaving directory `/root/WOK/src/wok/plugins/ginger/ui/css/base/images'
make[4]: Entering directory `/root/WOK/src/wok/plugins/ginger/ui/css/base'
make[4]: Nothing to be done for `check-am'.
make[4]: Leaving directory `/root/WOK/src/wok/plugins/ginger/ui/css/base'
make[3]: Leaving directory `/root/WOK/src/wok/plugins/ginger/ui/css/base'
make[3]: Entering directory `/root/WOK/src/wok/plugins/ginger/ui/css'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/root/WOK/src/wok/plugins/ginger/ui/css'
make[2]: Leaving directory `/root/WOK/src/wok/plugins/ginger/ui/css'
Making check in js
make[2]: Entering directory `/root/WOK/src/wok/plugins/ginger/ui/js'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/root/WOK/src/wok/plugins/ginger/ui/js'
Making check in pages
make[2]: Entering directory `/root/WOK/src/wok/plugins/ginger/ui/pages'
Making check in help
make[3]: Entering directory `/root/WOK/src/wok/plugins/ginger/ui/pages/help'
Making check in en_US
make[4]: Entering directory `/root/WOK/src/wok/plugins/ginger/ui/pages/help/en_US'
make[4]: Nothing to be done for `check'.
make[4]: Leaving directory `/root/WOK/src/wok/plugins/ginger/ui/pages/help/en_US'
Making check in pt_BR
make[4]: Entering directory `/root/WOK/src/wok/plugins/ginger/ui/pages/help/pt_BR'
make[4]: Nothing to be done for `check'.
make[4]: Leaving directory `/root/WOK/src/wok/plugins/ginger/ui/pages/help/pt_BR'
Making check in zh_CN
make[4]: Entering directory `/root/WOK/src/wok/plugins/ginger/ui/pages/help/zh_CN'
make[4]: Nothing to be done for `check'.
make[4]: Leaving directory `/root/WOK/src/wok/plugins/ginger/ui/pages/help/zh_CN'
make[4]: Entering directory `/root/WOK/src/wok/plugins/ginger/ui/pages/help'
make[4]: Nothing to be done for `check-am'.
make[4]: Leaving directory `/root/WOK/src/wok/plugins/ginger/ui/pages/help'
make[3]: Leaving directory `/root/WOK/src/wok/plugins/ginger/ui/pages/help'
Making check in tabs
make[3]: Entering directory `/root/WOK/src/wok/plugins/ginger/ui/pages/tabs'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/root/WOK/src/wok/plugins/ginger/ui/pages/tabs'
make[3]: Entering directory `/root/WOK/src/wok/plugins/ginger/ui/pages'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/root/WOK/src/wok/plugins/ginger/ui/pages'
make[2]: Leaving directory `/root/WOK/src/wok/plugins/ginger/ui/pages'
Making check in images
make[2]: Entering directory `/root/WOK/src/wok/plugins/ginger/ui/images'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/root/WOK/src/wok/plugins/ginger/ui/images'
make[2]: Entering directory `/root/WOK/src/wok/plugins/ginger/ui'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/root/WOK/src/wok/plugins/ginger/ui'
make[1]: Leaving directory `/root/WOK/src/wok/plugins/ginger/ui'
Making check in contrib
make[1]: Entering directory `/root/WOK/src/wok/plugins/ginger/contrib'
make  check-recursive
make[2]: Entering directory `/root/WOK/src/wok/plugins/ginger/contrib'
Making check in DEBIAN
make[3]: Entering directory `/root/WOK/src/wok/plugins/ginger/contrib/DEBIAN'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/root/WOK/src/wok/plugins/ginger/contrib/DEBIAN'
make[3]: Entering directory `/root/WOK/src/wok/plugins/ginger/contrib'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/root/WOK/src/wok/plugins/ginger/contrib'
make[2]: Leaving directory `/root/WOK/src/wok/plugins/ginger/contrib'
make[1]: Leaving directory `/root/WOK/src/wok/plugins/ginger/contrib'
Making check in tests
make[1]: Entering directory `/root/WOK/src/wok/plugins/ginger/tests'
make  check-am
make[2]: Entering directory `/root/WOK/src/wok/plugins/ginger/tests'
make  check-local
make[3]: Entering directory `/root/WOK/src/wok/plugins/ginger/tests'
./run_tests.sh
GINOVS00006E: GINOVS00006E
....Error executing ovs-vsctl add-port: ovs-vsctl: cannot create a port named iface because a port named iface already exists on bridge bridge 
GINOVS00005E: GINOVS00005E
.......GINOVS00003E: GINOVS00003E
.GINOVS00001E: GINOVS00001E
.OVS bridge bridge created.
.OVS Bridge bridge deleted.
...............................GINPOWER0002E: GINPOWER0002E
..GINSEL00002E: GINSEL00002E
.GINSDR00003E: GINSDR00003E
...GINSDR00001E: GINSDR00001E
..GINSDR00003E: GINSDR00003E
.GINPV00001E: GINPV00001E
.....GINPV00011E: GINPV00011E
.GINPV00007E: GINPV00007E
.GINPV00010E: GINPV00010E
.GINPV00009E: GINPV00009E
.GINSP00001E: GINSP00001E
.GINSP00003E: GINSP00003E
.GINSP00002E: GINSP00002E
.GINSP00004E: GINSP00004E
..GINSP00018E: GINSP00018E
.GINSP00019E: GINSP00019E
.GINSP00015E: GINSP00015E
.......GINPART00008E: GINPART00008E
.GINPART00009E: GINPART00009E
....: 
GINPART00014E: GINPART00014E
...rc: 1 error: mount: /testfile is already mounted
 returned from cmd: /bin/mount /testfile /test
Mounting block device failed
GINFS00007E: GINFS00007E
GINFS00007E: GINFS00007E
...GINFS00017E: GINFS00017E
.GINFS00010E: GINFS00010E
.GINFS00014E: GINFS00014E
.GINFS00015E: GINFS00015E
.GINFS00016E: GINFS00016E
.
...
.GINFW0001E: GINFW0001E
.FW update: System will reboot to flash the firmware.
.FW update: System will reboot to flash the firmware.
..rc: 1 error: clnt_create: RPC: Unknown host
 returned from cmd: showmount --no-headers --exports abc
GINNFS00002E: GINNFS00002E
..GINLV00002E: GINLV00002E
.GINLV00001E: GINLV00001E
....GINSEL00001E: GINSEL00001E
.GINSEL00001E: GINSEL00001E
.GINSEL00004E: GINSEL00004E
..GINSEL00005E: GINSEL00005E
..GINSEL00003E: GINSEL00003E
.sss...GINSE00003E: GINSE00003E
....GINSE00003E: GINSE00003E
..GINSE00003E: GINSE00003E
....GINSE00003E: GINSE00003E
.GINSE00009E: GINSE00009E
.GINSE00008E: GINSE00008E
..GINVG00013E: GINVG00013E
.GINVG00014E: GINVG00014E
.....GINLVM0001E: GINLVM0001E
....................GINSYSMOD00006E: GINSYSMOD00006E
.....Kernel module fake_test_kernel_module loaded.
.Kernel module fake_test_kernel_module loaded.
.Kernel module fake_test_kernel_module unloaded.
.....GINUSER0003E: GINUSER0003E
.GINUSER0002E: GINUSER0002E
.GINUSER0024E: GINUSER0024E
..GINUSER0011E: GINUSER0011E
.GINUSER0018E: GINUSER0018E
.GINUSER0014E: GINUSER0014E
.GINUSER0014E: GINUSER0014E
.GINUSER0028E: GINUSER0028E
..GINUSER0030E: GINUSER0030E
.GINUSER0008E: GINUSER0008E
..GINUSER0030E: GINUSER0030E
.GINUSER0012E: GINUSER0012E
.GINUSER0012E: GINUSER0012E
..GINUSER0017E: GINUSER0017E
...GINUSER0010E: GINUSER0010E
.GINUSER0031E: GINUSER0031E
.GINUSER0010E: GINUSER0010E
.GINUSER0011E: GINUSER0011E
..GINUSER0016E: GINUSER0016E
.GINUSER0013E: GINUSER0013E
.......GINUSER0023E: GINUSER0023E
.GINUSER0002E: GINUSER0002E
.GINUSER0011E: GINUSER0011E
..GINUSER0011E: GINUSER0011E
.GINUSER0011E: GINUSER0011E
.GINUSER0006E: GINUSER0006E
..GINUSER0007E: GINUSER0007E
...Unable to get mac address of dummyiface, error 0.
GINNET0081E: GINNET0081E
........GINNET0092E: GINNET0092E
.GINNET0024E: GINNET0024E
...Bring up an interface test_eth0
Connection successfully activated for the interface test_eth0
.Bring up an interface test_eth0
GINNET0059E: GINNET0059E
.Bring up an interface test_eth0
Connection successfully activated for the interface test_eth0
.Deactivating an interface test_eth0
Bringing down an interface test_eth0
Time-out has happened upon execution of 'ip link set <interface> down', hence behavior of activating an interface may not as expected.
.Deactivating an interface test_eth0
Bringing down an interface test_eth0
GINNET0060E: GINNET0060E
.Deactivating an interface test_eth0
Bringing down an interface test_eth0
Time-out has happened upon execution of 'ip link set <interface> down', hence behavior of activating an interface may not as expected.
..GINNET0076E: GINNET0076E
.GINNET0079E: GINNET0079E
.FGINNET0088E: GINNET0088E
.GINNET0084E: GINNET0084E
.GINNET0083E: GINNET0083E
....GINNET0077E: GINNET0077E
.GINNET0078E: GINNET0078E
.GINNET0082E: GINNET0082E
......GINNET0093E: GINNET0093E
.FFGINSERV00002E: GINSERV00002E
...........WARNING: no 'numpy' module, HyBi protocol will be slower
[30/Nov/2016:11:00:45] ENGINE Bus STARTING
[30/Nov/2016:11:00:45] ENGINE Started monitor thread 'Autoreloader'.
[30/Nov/2016:11:00:45] ENGINE Serving on 127.0.0.1:58725
[30/Nov/2016:11:00:45] ENGINE Bus STARTED
[30/Nov/2016:11:00:45] ENGINE Started monitor thread 'Session cleanup'.
rc: 1 error: No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
 returned from cmd: sensors -u
rc: 1 error: Too few arguments: you must specify one drive, at least.
 returned from cmd: hddtemp
127.0.0.1 - - [30/Nov/2016:11:00:46] "GET /plugins/ginger/capabilities HTTP/1.0" 200 1286 "" ""
WOKAUTH0001E: Authentication failed for user 'root'. [Error code: 7]
127.0.0.1 - - [30/Nov/2016:11:00:48] "GET /plugins/ginger/firmware HTTP/1.0" 401 1107 "" ""
WOKAUTH0001E: Authentication failed for user 'root'. [Error code: 7]
127.0.0.1 - - [30/Nov/2016:11:00:51] "GET /plugins/ginger/backup HTTP/1.0" 401 1107 "" ""
WOKAUTH0001E: Authentication failed for user 'root'. [Error code: 7]
127.0.0.1 - - [30/Nov/2016:11:00:53] "GET /plugins/ginger/backup/archives HTTP/1.0" 401 1107 "" ""
WOKAUTH0001E: Authentication failed for user 'root'. [Error code: 7]
127.0.0.1 - - [30/Nov/2016:11:00:56] "GET /plugins/ginger/ibm_sep HTTP/1.0" 401 1107 "" ""
WOKAUTH0001E: Authentication failed for user 'root'. [Error code: 7]
127.0.0.1 - - [30/Nov/2016:11:00:57] "GET /plugins/ginger/network HTTP/1.0" 401 1107 "" ""
WOKAUTH0001E: Authentication failed for user 'root'. [Error code: 7]
127.0.0.1 - - [30/Nov/2016:11:00:59] "GET /plugins/ginger/network/interfaces HTTP/1.0" 401 1107 "" ""
WOKAUTH0001E: Authentication failed for user 'root'. [Error code: 7]
127.0.0.1 - - [30/Nov/2016:11:01:01] "GET /plugins/ginger/network/cfginterfaces HTTP/1.0" 401 1107 "" ""
WOKAUTH0001E: Authentication failed for user 'root'. [Error code: 7]
127.0.0.1 - - [30/Nov/2016:11:01:04] "GET /plugins/ginger/powerprofiles HTTP/1.0" 401 1107 "" ""
WOKAUTH0001E: Authentication failed for user 'root'. [Error code: 7]
127.0.0.1 - - [30/Nov/2016:11:01:06] "GET /plugins/ginger/san_adapters HTTP/1.0" 401 1107 "" ""
WOKAUTH0001E: Authentication failed for user 'root'. [Error code: 7]
127.0.0.1 - - [30/Nov/2016:11:01:08] "GET /plugins/ginger/sensors HTTP/1.0" 401 1107 "" ""
WOKAUTH0001E: Authentication failed for user 'root'. [Error code: 7]
127.0.0.1 - - [30/Nov/2016:11:01:10] "GET /plugins/ginger/users HTTP/1.0" 401 1107 "" ""
WOKAUTH0001E: Authentication failed for user 'root'. [Error code: 7]
127.0.0.1 - - [30/Nov/2016:11:01:12] "GET /plugins/ginger/dasddevs HTTP/1.0" 401 1107 "" ""
WOKAUTH0001E: Authentication failed for user 'root'. [Error code: 7]
127.0.0.1 - - [30/Nov/2016:11:01:15] "GET /plugins/ginger/dasdpartitions HTTP/1.0" 401 1107 "" ""
WOKAUTH0001E: Authentication failed for user 'root'. [Error code: 7]
127.0.0.1 - - [30/Nov/2016:11:01:17] "GET /plugins/ginger/partitions HTTP/1.0" 401 1107 "" ""
WOKAUTH0001E: Authentication failed for user 'root'. [Error code: 7]
127.0.0.1 - - [30/Nov/2016:11:01:19] "GET /plugins/ginger/filesystems HTTP/1.0" 401 1107 "" ""
WOKAUTH0001E: Authentication failed for user 'root'. [Error code: 7]
127.0.0.1 - - [30/Nov/2016:11:01:22] "GET /plugins/ginger/lvs HTTP/1.0" 401 1107 "" ""
WOKAUTH0001E: Authentication failed for user 'root'. [Error code: 7]
127.0.0.1 - - [30/Nov/2016:11:01:24] "GET /plugins/ginger/pvs HTTP/1.0" 401 1107 "" ""
WOKAUTH0001E: Authentication failed for user 'root'. [Error code: 7]
127.0.0.1 - - [30/Nov/2016:11:01:26] "GET /plugins/ginger/stgdevs HTTP/1.0" 401 1107 "" ""
WOKAUTH0001E: Authentication failed for user 'root'. [Error code: 7]
127.0.0.1 - - [30/Nov/2016:11:01:29] "GET /plugins/ginger/swaps HTTP/1.0" 401 1107 "" ""
WOKAUTH0001E: Authentication failed for user 'root'. [Error code: 7]
127.0.0.1 - - [30/Nov/2016:11:01:31] "GET /plugins/ginger/sysmodules HTTP/1.0" 401 1107 "" ""
WOKAUTH0001E: Authentication failed for user 'root'. [Error code: 7]
127.0.0.1 - - [30/Nov/2016:11:01:33] "GET /plugins/ginger/vgs HTTP/1.0" 401 1107 "" ""
.[30/Nov/2016:11:01:33] ENGINE Bus STOPPING
[30/Nov/2016:11:01:33] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('127.0.0.1', 58725)) shut down
[30/Nov/2016:11:01:33] ENGINE Stopped thread 'Session cleanup'.
[30/Nov/2016:11:01:33] ENGINE Stopped thread 'Autoreloader'.
[30/Nov/2016:11:01:33] ENGINE Bus STOPPED
[30/Nov/2016:11:01:33] ENGINE Bus EXITING
[30/Nov/2016:11:01:33] ENGINE Bus EXITED
....[30/Nov/2016:11:01:33] ENGINE Waiting for child threads to terminate...
.[30/Nov/2016:11:01:33] ENGINE Waiting for thread MainThread.
......Deleting the existing rule -a always,exit -F arch=b32 -F arch=b64 -S init_module,delete_module,finit_module -F key=abc99
The rule has been modified successfully.
.[30/Nov/2016:11:01:34] ENGINE Bus STARTING
[30/Nov/2016:11:01:34] ENGINE Started monitor thread 'Autoreloader'.
[30/Nov/2016:11:01:34] ENGINE Started monitor thread 'Session cleanup'.
[30/Nov/2016:11:01:34] ENGINE Serving on 127.0.0.1:58725
[30/Nov/2016:11:01:34] ENGINE Bus STARTED
127.0.0.1 - - [30/Nov/2016:11:01:34] "GET /plugins/ginger/tasks?status=running&target_uri=%5E%2Fplugins%2Fginger%2Ftasks%2F%2A HTTP/1.0" 200 527 "" ""
127.0.0.1 - - [30/Nov/2016:11:01:34] "GET /plugins/ginger/tasks HTTP/1.0" 200 1851 "" ""
127.0.0.1 - - [30/Nov/2016:11:01:34] "GET /plugins/ginger/tasks/44335b40-b716-11e6-960a-52540082284b HTTP/1.0" 200 161 "" ""
Waiting task 44335b40-b716-11e6-960a-52540082284b, message: The request is being processing.
Error in async_task 44335b40-b716-11e6-960a-52540082284b 
Traceback (most recent call last):
  File "/root/WOK/src/wok/asynctask.py", line 107, in _run_helper
    self.fn(cb, opaque)
  File "/root/WOK/src/wok/plugins/ginger/tests/test_tasks.py", line 69, in _except_op
    raise Exception("Oops, this is an exception handle test."
Exception: Oops, this is an exception handle test. You can ignore it safely

127.0.0.1 - - [30/Nov/2016:11:01:35] "GET /plugins/ginger/tasks/44335b40-b716-11e6-960a-52540082284b HTTP/1.0" 200 192 "" ""
127.0.0.1 - - [30/Nov/2016:11:01:35] "GET /plugins/ginger/tasks/44335b40-b716-11e6-960a-52540082284b HTTP/1.0" 200 192 "" ""
127.0.0.1 - - [30/Nov/2016:11:01:35] "GET /plugins/ginger/tasks/44336b12-b716-11e6-960a-52540082284b HTTP/1.0" 200 140 "" ""
Waiting task 44336b12-b716-11e6-960a-52540082284b, message: in progress
127.0.0.1 - - [30/Nov/2016:11:01:36] "GET /plugins/ginger/tasks/44336b12-b716-11e6-960a-52540082284b HTTP/1.0" 200 140 "" ""
Waiting task 44336b12-b716-11e6-960a-52540082284b, message: in progress
127.0.0.1 - - [30/Nov/2016:11:01:37] "GET /plugins/ginger/tasks/44336b12-b716-11e6-960a-52540082284b HTTP/1.0" 200 140 "" ""
Waiting task 44336b12-b716-11e6-960a-52540082284b, message: in progress
127.0.0.1 - - [30/Nov/2016:11:01:38] "GET /plugins/ginger/tasks/44336b12-b716-11e6-960a-52540082284b HTTP/1.0" 200 140 "" ""
Waiting task 44336b12-b716-11e6-960a-52540082284b, message: in progress
127.0.0.1 - - [30/Nov/2016:11:01:39] "GET /plugins/ginger/tasks/44336b12-b716-11e6-960a-52540082284b HTTP/1.0" 200 140 "" ""
Waiting task 44336b12-b716-11e6-960a-52540082284b, message: in progress
127.0.0.1 - - [30/Nov/2016:11:01:40] "GET /plugins/ginger/tasks/44336b12-b716-11e6-960a-52540082284b HTTP/1.0" 200 140 "" ""
Waiting task 44336b12-b716-11e6-960a-52540082284b, message: in progress
127.0.0.1 - - [30/Nov/2016:11:01:41] "GET /plugins/ginger/tasks/44336b12-b716-11e6-960a-52540082284b HTTP/1.0" 200 140 "" ""
Waiting task 44336b12-b716-11e6-960a-52540082284b, message: in progress
127.0.0.1 - - [30/Nov/2016:11:01:42] "GET /plugins/ginger/tasks/44336b12-b716-11e6-960a-52540082284b HTTP/1.0" 200 140 "" ""
Waiting task 44336b12-b716-11e6-960a-52540082284b, message: in progress
127.0.0.1 - - [30/Nov/2016:11:01:43] "GET /plugins/ginger/tasks/44336b12-b716-11e6-960a-52540082284b HTTP/1.0" 200 140 "" ""
Waiting task 44336b12-b716-11e6-960a-52540082284b, message: in progress
127.0.0.1 - - [30/Nov/2016:11:01:44] "GET /plugins/ginger/tasks/44336b12-b716-11e6-960a-52540082284b HTTP/1.0" 200 140 "" ""
Waiting task 44336b12-b716-11e6-960a-52540082284b, message: in progress
Timeout while process long-run task, try to increase timeout value.
127.0.0.1 - - [30/Nov/2016:11:01:45] "GET /plugins/ginger/tasks/44336b12-b716-11e6-960a-52540082284b HTTP/1.0" 200 140 "" ""
.[30/Nov/2016:11:01:45] ENGINE Bus STOPPING
[30/Nov/2016:11:01:45] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('127.0.0.1', 58725)) shut down
[30/Nov/2016:11:01:45] ENGINE Stopped thread 'Session cleanup'.
[30/Nov/2016:11:01:45] ENGINE Stopped thread 'Autoreloader'.
[30/Nov/2016:11:01:45] ENGINE Bus STOPPED
[30/Nov/2016:11:01:45] ENGINE Bus EXITING
[30/Nov/2016:11:01:45] ENGINE Bus EXITED

======================================================================
FAIL: test_mlx5_sriov_edit_openib_conf (test_interfaces.InterfacesTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mock.py", line 1201, in patched
    return func(*args, **keywargs)
  File "/root/WOK/src/wok/plugins/ginger/tests/test_interfaces.py", line 490, in test_mlx5_sriov_edit_openib_conf
    [call(openib_conf_file, 'r'), call(openib_conf_file, 'w')]
AssertionError: [call('/etc/infiniband/openib.conf', 'r'),
 call('/etc/infiniband/openib.conf', 'a')] != [call('/etc/infiniband/openib.conf', 'r'), call('/etc/infiniband/openib.conf', 'w')]

======================================================================
FAIL: test_update_mlx5_sriov_boot_script_append (test_interfaces.InterfacesTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mock.py", line 1201, in patched
    return func(*args, **keywargs)
  File "/root/WOK/src/wok/plugins/ginger/tests/test_interfaces.py", line 599, in test_update_mlx5_sriov_boot_script_append
    open_().writelines.mock_calls, [call(expected_writelines)]
AssertionError: [call(<MagicMock name='open().readlines()' id='120207504'>)] != [call(['#!/bin/sh\n', '# ginger_sriov_start.sh: Connectx-4 SR-IOV init script - created by Ginger\n', '\n', '# iface1 setup\n', 'echo 0 > /sys/class/net/iface1/device/sriov_numvfs\n', 'echo 4 > /sys/class/net/iface1/device/sriov_numvfs\n', '# iface2 setup\n', 'echo 0 > /sys/class/net/iface2/device/sriov_numvfs\n', 'echo 8 > /sys/class/net/iface2/device/sriov_numvfs\n'])]

======================================================================
FAIL: test_update_mlx5_sriov_script_modify_line (test_interfaces.InterfacesTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mock.py", line 1201, in patched
    return func(*args, **keywargs)
  File "/root/WOK/src/wok/plugins/ginger/tests/test_interfaces.py", line 654, in test_update_mlx5_sriov_script_modify_line
    open_().writelines.mock_calls, [call(expected_writelines)]
AssertionError: [call(<MagicMock name='open().readlines()' id='98663824'>)] != [call(['#!/bin/sh\n', '# ginger_sriov_start.sh: Connectx-4 SR-IOV init script - created by Ginger\n', '\n', '# iface1 setup\n', 'echo 0 > /sys/class/net/iface1/device/sriov_numvfs\n', 'echo 4 > /sys/class/net/iface1/device/sriov_numvfs\n', '# iface2 setup\n', 'echo 0 > /sys/class/net/iface2/device/sriov_numvfs\n', 'echo 6 > /sys/class/net/iface2/device/sriov_numvfs\n', '# iface3 setup\n', 'echo 0 > /sys/class/net/iface3/device/sriov_numvfs\n', 'echo 2 > /sys/class/net/iface3/device/sriov_numvfs\n', '# iface4 setup\n', 'echo 0 > /sys/class/net/iface4/device/sriov_numvfs\n', 'echo 10 > /sys/class/net/iface4/device/sriov_numvfs\n'])]

----------------------------------------------------------------------
Ran 281 tests in 90.875s

FAILED (failures=3, skipped=3)
[30/Nov/2016:11:01:45] ENGINE Waiting for child threads to terminate...
make[3]: *** [check-local] Error 1
make[3]: Leaving directory `/root/WOK/src/wok/plugins/ginger/tests'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/root/WOK/src/wok/plugins/ginger/tests'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/root/WOK/src/wok/plugins/ginger/tests'
make: *** [check-recursive] Error 1
ramonmedeiros commented 7 years ago

Also fail if run from tarball

[root@localhost ginger-2.3.0]# make
Making all in po
make[1]: Entering directory `/root/ginger-2.3.0/po'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/ginger-2.3.0/po'
Making all in control
make[1]: Entering directory `/root/ginger-2.3.0/control'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/ginger-2.3.0/control'
Making all in model
make[1]: Entering directory `/root/ginger-2.3.0/model'
sed -e 's,[@]gingerversion[@],2.3.0,g' -e 's,[@]gingerrelease[@],0,g' < ./config.py.in > config.py
make  all-am
make[2]: Entering directory `/root/ginger-2.3.0/model'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/root/ginger-2.3.0/model'
make[1]: Leaving directory `/root/ginger-2.3.0/model'
Making all in ui
make[1]: Entering directory `/root/ginger-2.3.0/ui'
Making all in config
make[2]: Entering directory `/root/ginger-2.3.0/ui/config'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/ginger-2.3.0/ui/config'
Making all in css
make[2]: Entering directory `/root/ginger-2.3.0/ui/css'
Making all in base
make[3]: Entering directory `/root/ginger-2.3.0/ui/css/base'
Making all in images
make[4]: Entering directory `/root/ginger-2.3.0/ui/css/base/images'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/ginger-2.3.0/ui/css/base/images'
make[4]: Entering directory `/root/ginger-2.3.0/ui/css/base'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/root/ginger-2.3.0/ui/css/base'
make[3]: Leaving directory `/root/ginger-2.3.0/ui/css/base'
make[3]: Entering directory `/root/ginger-2.3.0/ui/css'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/ginger-2.3.0/ui/css'
make[2]: Leaving directory `/root/ginger-2.3.0/ui/css'
Making all in js
make[2]: Entering directory `/root/ginger-2.3.0/ui/js'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/ginger-2.3.0/ui/js'
Making all in pages
make[2]: Entering directory `/root/ginger-2.3.0/ui/pages'
Making all in help
make[3]: Entering directory `/root/ginger-2.3.0/ui/pages/help'
Making all in en_US
make[4]: Entering directory `/root/ginger-2.3.0/ui/pages/help/en_US'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/ginger-2.3.0/ui/pages/help/en_US'
Making all in pt_BR
make[4]: Entering directory `/root/ginger-2.3.0/ui/pages/help/pt_BR'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/ginger-2.3.0/ui/pages/help/pt_BR'
Making all in zh_CN
make[4]: Entering directory `/root/ginger-2.3.0/ui/pages/help/zh_CN'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/ginger-2.3.0/ui/pages/help/zh_CN'
make[4]: Entering directory `/root/ginger-2.3.0/ui/pages/help'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/root/ginger-2.3.0/ui/pages/help'
make[3]: Leaving directory `/root/ginger-2.3.0/ui/pages/help'
Making all in tabs
make[3]: Entering directory `/root/ginger-2.3.0/ui/pages/tabs'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/ginger-2.3.0/ui/pages/tabs'
make[3]: Entering directory `/root/ginger-2.3.0/ui/pages'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/ginger-2.3.0/ui/pages'
make[2]: Leaving directory `/root/ginger-2.3.0/ui/pages'
Making all in images
make[2]: Entering directory `/root/ginger-2.3.0/ui/images'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/ginger-2.3.0/ui/images'
make[2]: Entering directory `/root/ginger-2.3.0/ui'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/root/ginger-2.3.0/ui'
make[1]: Leaving directory `/root/ginger-2.3.0/ui'
Making all in contrib
make[1]: Entering directory `/root/ginger-2.3.0/contrib'
sed                     \
    -e 's|[@]PACKAGE_VERSION[@]|2.3.0|g'    \
    -e 's|[@]PACKAGE_RELEASE[@]|0|g'    \
    < make-deb.sh.in > make-deb.sh-t &&                 \
    chmod a+x make-deb.sh-t &&                  \
    mv make-deb.sh-t make-deb.sh
make  all-recursive
make[2]: Entering directory `/root/ginger-2.3.0/contrib'
Making all in DEBIAN
make[3]: Entering directory `/root/ginger-2.3.0/contrib/DEBIAN'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/root/ginger-2.3.0/contrib/DEBIAN'
make[3]: Entering directory `/root/ginger-2.3.0/contrib'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/root/ginger-2.3.0/contrib'
make[2]: Leaving directory `/root/ginger-2.3.0/contrib'
make[1]: Leaving directory `/root/ginger-2.3.0/contrib'
Making all in tests
make[1]: Entering directory `/root/ginger-2.3.0/tests'
sed -e 's,[@]HAVE_PYMOD_UNITTEST[@],yes,g' -e 's,[@]PYTHON_VERSION[@],2.7,g' < ./run_tests.sh.in > run_tests.sh
chmod +x run_tests.sh
make  all-am
make[2]: Entering directory `/root/ginger-2.3.0/tests'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/root/ginger-2.3.0/tests'
make[1]: Leaving directory `/root/ginger-2.3.0/tests'
make[1]: Entering directory `/root/ginger-2.3.0'
while read L && test -n "$L"; do                  \
    dir=mo/$L/LC_MESSAGES ;                       \
    /usr/bin/mkdir -p $dir ;                             \
    ln -sf ../../../po/$L.gmo $dir/ginger.mo ;   \
done < po/LINGUAS
make[1]: Leaving directory `/root/ginger-2.3.0'
[root@localhost ginger-2.3.0]# make check
Making check in po
make[1]: Entering directory `/root/ginger-2.3.0/po'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/root/ginger-2.3.0/po'
Making check in control
make[1]: Entering directory `/root/ginger-2.3.0/control'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/root/ginger-2.3.0/control'
Making check in model
make[1]: Entering directory `/root/ginger-2.3.0/model'
make  check-am
make[2]: Entering directory `/root/ginger-2.3.0/model'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/root/ginger-2.3.0/model'
make[1]: Leaving directory `/root/ginger-2.3.0/model'
Making check in ui
make[1]: Entering directory `/root/ginger-2.3.0/ui'
Making check in config
make[2]: Entering directory `/root/ginger-2.3.0/ui/config'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/root/ginger-2.3.0/ui/config'
Making check in css
make[2]: Entering directory `/root/ginger-2.3.0/ui/css'
Making check in base
make[3]: Entering directory `/root/ginger-2.3.0/ui/css/base'
Making check in images
make[4]: Entering directory `/root/ginger-2.3.0/ui/css/base/images'
make[4]: Nothing to be done for `check'.
make[4]: Leaving directory `/root/ginger-2.3.0/ui/css/base/images'
make[4]: Entering directory `/root/ginger-2.3.0/ui/css/base'
make[4]: Nothing to be done for `check-am'.
make[4]: Leaving directory `/root/ginger-2.3.0/ui/css/base'
make[3]: Leaving directory `/root/ginger-2.3.0/ui/css/base'
make[3]: Entering directory `/root/ginger-2.3.0/ui/css'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/root/ginger-2.3.0/ui/css'
make[2]: Leaving directory `/root/ginger-2.3.0/ui/css'
Making check in js
make[2]: Entering directory `/root/ginger-2.3.0/ui/js'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/root/ginger-2.3.0/ui/js'
Making check in pages
make[2]: Entering directory `/root/ginger-2.3.0/ui/pages'
Making check in help
make[3]: Entering directory `/root/ginger-2.3.0/ui/pages/help'
Making check in en_US
make[4]: Entering directory `/root/ginger-2.3.0/ui/pages/help/en_US'
make[4]: Nothing to be done for `check'.
make[4]: Leaving directory `/root/ginger-2.3.0/ui/pages/help/en_US'
Making check in pt_BR
make[4]: Entering directory `/root/ginger-2.3.0/ui/pages/help/pt_BR'
make[4]: Nothing to be done for `check'.
make[4]: Leaving directory `/root/ginger-2.3.0/ui/pages/help/pt_BR'
Making check in zh_CN
make[4]: Entering directory `/root/ginger-2.3.0/ui/pages/help/zh_CN'
make[4]: Nothing to be done for `check'.
make[4]: Leaving directory `/root/ginger-2.3.0/ui/pages/help/zh_CN'
make[4]: Entering directory `/root/ginger-2.3.0/ui/pages/help'
make[4]: Nothing to be done for `check-am'.
make[4]: Leaving directory `/root/ginger-2.3.0/ui/pages/help'
make[3]: Leaving directory `/root/ginger-2.3.0/ui/pages/help'
Making check in tabs
make[3]: Entering directory `/root/ginger-2.3.0/ui/pages/tabs'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/root/ginger-2.3.0/ui/pages/tabs'
make[3]: Entering directory `/root/ginger-2.3.0/ui/pages'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/root/ginger-2.3.0/ui/pages'
make[2]: Leaving directory `/root/ginger-2.3.0/ui/pages'
Making check in images
make[2]: Entering directory `/root/ginger-2.3.0/ui/images'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/root/ginger-2.3.0/ui/images'
make[2]: Entering directory `/root/ginger-2.3.0/ui'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/root/ginger-2.3.0/ui'
make[1]: Leaving directory `/root/ginger-2.3.0/ui'
Making check in contrib
make[1]: Entering directory `/root/ginger-2.3.0/contrib'
make  check-recursive
make[2]: Entering directory `/root/ginger-2.3.0/contrib'
Making check in DEBIAN
make[3]: Entering directory `/root/ginger-2.3.0/contrib/DEBIAN'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/root/ginger-2.3.0/contrib/DEBIAN'
make[3]: Entering directory `/root/ginger-2.3.0/contrib'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/root/ginger-2.3.0/contrib'
make[2]: Leaving directory `/root/ginger-2.3.0/contrib'
make[1]: Leaving directory `/root/ginger-2.3.0/contrib'
Making check in tests
make[1]: Entering directory `/root/ginger-2.3.0/tests'
make  check-am
make[2]: Entering directory `/root/ginger-2.3.0/tests'
make  check-local
make[3]: Entering directory `/root/ginger-2.3.0/tests'
./run_tests.sh

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
make[3]: Leaving directory `/root/ginger-2.3.0/tests'
make[2]: Leaving directory `/root/ginger-2.3.0/tests'
make[1]: Leaving directory `/root/ginger-2.3.0/tests'
make[1]: Entering directory `/root/ginger-2.3.0'
while read L && test -n "$L"; do                  \
    dir=mo/$L/LC_MESSAGES ;                       \
    /usr/bin/mkdir -p $dir ;                             \
    ln -sf ../../../po/$L.gmo $dir/ginger.mo ;   \
done < po/LINGUAS
make  check-local
make[2]: Entering directory `/root/ginger-2.3.0'
contrib/check_i18n.py ./i18n.py 
make[2]: contrib/check_i18n.py: Command not found
make[2]: *** [check-local] Error 127
make[2]: Leaving directory `/root/ginger-2.3.0'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/root/ginger-2.3.0'
make: *** [check-recursive] Error 1
danielhb commented 7 years ago

For the first error, it really looks like some kind of mismatch between the behavior of MagicMock in CentOS 7.2 and newer distros. If that's the case, nothing much we can do about it aside from writing specific tests for CentOS 7.2