Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make check fails without sudo in opensuse 42.2 #536

Open
danielhb opened this issue Mar 16, 2017 · 0 comments
Open

make check fails without sudo in opensuse 42.2 #536

danielhb opened this issue Mar 16, 2017 · 0 comments

Comments

@danielhb
Copy link
Contributor

.
======================================================================
ERROR: test_get_basic_info (test_cfginterfaces.CfgInterfacesTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/danielhb/wok/src/wok/plugins/ginger/tests/test_cfginterfaces.py", line 38, in test_get_basic_info
    self.assertEquals('testdevice', ethinfo['BASIC_INFO']['DEVICE'])
KeyError: 'DEVICE'

======================================================================
ERROR: test_get_lv_list (test_log_volume.LogicalVolumesTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/danielhb/wok/src/wok/plugins/ginger/tests/test_log_volume.py", line 38, in test_get_lv_list
    lvs_list = lvs.get_list()
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/log_volume.py", line 72, in get_list
    {'err': e.message})
OperationFailed: GINLV00004E: Failed to list LVs

======================================================================
ERROR: test_list_nfs_targets_for_invalid_server (test_nfs_shares.NFSSharesUnitTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/home/danielhb/wok/src/wok/plugins/ginger/tests/test_nfs_shares.py", line 41, in test_list_nfs_targets_for_invalid_server
    self.assertRaises(NotFoundError, nfs.get_list, 'abc')
  File "/usr/lib64/python2.7/unittest/case.py", line 473, in assertRaises
    callableObj(*args, **kwargs)
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/nfsshares.py", line 33, in get_list
    nfsshares = patch_find_nfs_target(name)
  File "/home/danielhb/wok/src/wok/utils.py", line 477, in patch_find_nfs_target
    targets = parse_cmd_output(out, output_items=['target'])
  File "/home/danielhb/wok/src/wok/utils.py", line 462, in parse_cmd_output
    for line in output.split("\n"):
AttributeError: 'NoneType' object has no attribute 'split'

======================================================================
ERROR: test_get_pv_list (test_physical_vol.PhysicalVolumeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/danielhb/wok/src/wok/plugins/ginger/tests/test_physical_vol.py", line 38, in test_get_pv_list
    pvs_list = pvs.get_list()
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/physical_vol.py", line 82, in get_list
    {'err': e.message})
NotFoundError: GINPV00003E: Failed to fetch PV list. Error: GINPV00006E: pvs command failed

======================================================================
ERROR: test_get_report_with_filter (test_report.ReportTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/home/danielhb/wok/src/wok/plugins/ginger/tests/test_report.py", line 114, in test_get_report_with_filter
    Reportmodel.get_list(filter)
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/report.py", line 69, in get_list
    raise OperationFailed('GINAUD0017E')
OperationFailed: GINAUD0017E: Error occurred in getting the reports.

======================================================================
ERROR: test_get_report_without_filter (test_report.ReportTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/home/danielhb/wok/src/wok/plugins/ginger/tests/test_report.py", line 68, in test_get_report_without_filter
    Reportmodel.get_list()
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/report.py", line 69, in get_list
    raise OperationFailed('GINAUD0017E')
OperationFailed: GINAUD0017E: Error occurred in getting the reports.

======================================================================
ERROR: test_add_server (test_servers.ServerOperationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/home/danielhb/wok/src/wok/plugins/ginger/tests/test_servers.py", line 58, in test_add_server
    resp = server.create(params)
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/servers.py", line 221, in create
    add_config(serverData)
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/servers.py", line 82, in add_config
    _update_server_data(existingServers)
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/servers.py", line 68, in _update_server_data
    with open(SERVERCONFIGPATH, 'wb') as fw:
IOError: [Errno 13] Permission denied: '/home/danielhb/wok/src/wok/plugins/ginger/data/server.config'

======================================================================
ERROR: test_add_server_without_username (test_servers.ServerOperationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/home/danielhb/wok/src/wok/plugins/ginger/tests/test_servers.py", line 42, in test_add_server_without_username
    resp = server.create(params)
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/servers.py", line 221, in create
    add_config(serverData)
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/servers.py", line 82, in add_config
    _update_server_data(existingServers)
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/servers.py", line 68, in _update_server_data
    with open(SERVERCONFIGPATH, 'wb') as fw:
IOError: [Errno 13] Permission denied: '/home/danielhb/wok/src/wok/plugins/ginger/data/server.config'

======================================================================
ERROR: test_lookup_server (test_servers.ServerOperationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/home/danielhb/wok/src/wok/plugins/ginger/tests/test_servers.py", line 83, in test_lookup_server
    resp = server.lookup('abc')
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/servers.py", line 235, in lookup
    serverData = get_config(name)
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/servers.py", line 91, in get_config
    raise OperationFailed('GINSE00005E', {'name': name})
OperationFailed: GINSE00005E: Server with name abc is not found

======================================================================
ERROR: test_server_power_off (test_servers.ServerOperationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/home/danielhb/wok/src/wok/plugins/ginger/tests/test_servers.py", line 122, in test_server_power_off
    resp = server.poweroff('abc')
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/servers.py", line 272, in poweroff
    serverData = get_config(name)
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/servers.py", line 91, in get_config
    raise OperationFailed('GINSE00005E', {'name': name})
OperationFailed: GINSE00005E: Server with name abc is not found

======================================================================
ERROR: test_server_power_on (test_servers.ServerOperationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched
    return func(*args, **keywargs)
  File "/home/danielhb/wok/src/wok/plugins/ginger/tests/test_servers.py", line 105, in test_server_power_on
    resp = server.poweron('abc')
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/servers.py", line 252, in poweron
    serverData = get_config(name)
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/servers.py", line 91, in get_config
    raise OperationFailed('GINSE00005E', {'name': name})
OperationFailed: GINSE00005E: Server with name abc is not found

======================================================================
ERROR: test_server_remove (test_servers.ServerOperationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/danielhb/wok/src/wok/plugins/ginger/tests/test_servers.py", line 161, in test_server_remove
    resp = server1.delete('abc')
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/servers.py", line 230, in delete
    delete_config(name)
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/servers.py", line 165, in delete_config
    raise OperationFailed('GINSE00005E', {'name': serverName})
OperationFailed: GINSE00005E: Server with name abc is not found

======================================================================
ERROR: test_server_remove_without_username (test_servers.ServerOperationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/danielhb/wok/src/wok/plugins/ginger/tests/test_servers.py", line 166, in test_server_remove_without_username
    resp = server1.delete('def')
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/servers.py", line 230, in delete
    delete_config(name)
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/servers.py", line 165, in delete_config
    raise OperationFailed('GINSE00005E', {'name': serverName})
OperationFailed: GINSE00005E: Server with name def is not found

======================================================================
ERROR: test_get_vg_list (test_vol_group.VolumeGroupsTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/danielhb/wok/src/wok/plugins/ginger/tests/test_vol_group.py", line 40, in test_get_vg_list
    vgs_list = vgs.get_list()
  File "/home/danielhb/wok/src/wok/plugins/ginger/model/vol_group.py", line 76, in get_list
    {'err': e.message})
NotFoundError: GINVG00002E: Failed to list VGs. Error: GINVG00007E: vgs command failed

----------------------------------------------------------------------
Ran 296 tests in 80.902s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant