Comment 1 for bug 1819217

YaZug (jon-schlueter) wrote :

on same setup without sudo available it fails with

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    b'Traceback (most recent call last):'
    b' File "/usr/lib/python3.6/site-packages/mock/mock.py", line 1305, in patched'
    b' return func(*args, **keywargs)'
    b' File "/home/tester/python-tripleoclient/tripleoclient/tests/v1/tripleo/test_tripleo_upgrade.py", line 147, in test_take_action_prompt_no'
    b' self.cmd.take_action, parsed_args)'
    b' File "/usr/lib/python3.6/site-packages/testtools/testcase.py", line 485, in assertRaises'
    b' self.assertThat(our_callable, matcher)'
    b' File "/usr/lib/python3.6/site-packages/testtools/testcase.py", line 496, in assertThat'
    b' mismatch_error = self._matchHelper(matchee, matcher, message, verbose)'
    b' File "/usr/lib/python3.6/site-packages/testtools/testcase.py", line 547, in _matchHelper'
    b' mismatch = matcher.match(matchee)'
    b' File "/usr/lib/python3.6/site-packages/testtools/matchers/_exception.py", line 108, in match'
    b' mismatch = self.exception_matcher.match(exc_info)'
    b' File "/usr/lib/python3.6/site-packages/testtools/matchers/_higherorder.py", line 62, in match'
    b' mismatch = matcher.match(matchee)'
    b' File "/usr/lib/python3.6/site-packages/testtools/testcase.py", line 475, in match'
    b' reraise(*matchee)'
    b' File "/usr/lib/python3.6/site-packages/testtools/_compat3x.py", line 16, in reraise'
    b' raise exc_obj.with_traceback(exc_tb)'
    b' File "/usr/lib/python3.6/site-packages/testtools/matchers/_exception.py", line 101, in match'
    b' result = matchee()'
    b' File "/usr/lib/python3.6/site-packages/testtools/testcase.py", line 1049, in __call__'
    b' return self._callable_object(*self._args, **self._kwargs)'
    b' File "/home/tester/python-tripleoclient/tripleoclient/v1/tripleo_upgrade.py", line 35, in take_action'
    b' super(Upgrade, self).take_action(parsed_args)'
    b' File "/home/tester/python-tripleoclient/tripleoclient/v1/tripleo_deploy.py", line 1348, in take_action'
    b' utils.ansible_symlink()'
    b' File "/home/tester/python-tripleoclient/tripleoclient/utils.py", line 1610, in ansible_symlink'
    b" run_command(cmd, name='ansible-playbook-3-symlink')"
    b' File "/home/tester/python-tripleoclient/tripleoclient/utils.py", line 1455, in run_command'
    b' env=env)'
    b' File "/usr/lib64/python3.6/subprocess.py", line 356, in check_output'
    b' **kwargs).stdout'
    b' File "/usr/lib64/python3.6/subprocess.py", line 423, in run'
    b' with Popen(*popenargs, **kwargs) as process:'
    b' File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__'
    b' restore_signals, start_new_session)'
    b' File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child'
    b' raise child_exception_type(errno_num, err_msg, err_filename)'
    b"FileNotFoundError: [Errno 2] No such file or directory: 'sudo': 'sudo'"
    b''

tripleoclient.tests.v1.tripleo.test_tripleo_upgrade.TestUpgrade.test_take_action_prompt_invalid_option
------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    b'Traceback (most recent call last):'
    b' File "/usr/lib/python3.6/site-packages/mock/mock.py", line 1305, in patched'
    b' return func(*args, **keywargs)'
    b' File "/home/tester/python-tripleoclient/tripleoclient/tests/v1/tripleo/test_tripleo_upgrade.py", line 171, in test_take_action_prompt_invalid_option'
    b' self.cmd.take_action, parsed_args)'
    b' File "/usr/lib/python3.6/site-packages/testtools/testcase.py", line 485, in assertRaises'
    b' self.assertThat(our_callable, matcher)'
    b' File "/usr/lib/python3.6/site-packages/testtools/testcase.py", line 496, in assertThat'
    b' mismatch_error = self._matchHelper(matchee, matcher, message, verbose)'
    b' File "/usr/lib/python3.6/site-packages/testtools/testcase.py", line 547, in _matchHelper'
    b' mismatch = matcher.match(matchee)'
    b' File "/usr/lib/python3.6/site-packages/testtools/matchers/_exception.py", line 108, in match'
    b' mismatch = self.exception_matcher.match(exc_info)'
    b' File "/usr/lib/python3.6/site-packages/testtools/matchers/_higherorder.py", line 62, in match'
    b' mismatch = matcher.match(matchee)'
    b' File "/usr/lib/python3.6/site-packages/testtools/testcase.py", line 475, in match'
    b' reraise(*matchee)'
    b' File "/usr/lib/python3.6/site-packages/testtools/_compat3x.py", line 16, in reraise'
    b' raise exc_obj.with_traceback(exc_tb)'
    b' File "/usr/lib/python3.6/site-packages/testtools/matchers/_exception.py", line 101, in match'
    b' result = matchee()'
    b' File "/usr/lib/python3.6/site-packages/testtools/testcase.py", line 1049, in __call__'
    b' return self._callable_object(*self._args, **self._kwargs)'
    b' File "/home/tester/python-tripleoclient/tripleoclient/v1/tripleo_upgrade.py", line 35, in take_action'
    b' super(Upgrade, self).take_action(parsed_args)'
    b' File "/home/tester/python-tripleoclient/tripleoclient/v1/tripleo_deploy.py", line 1348, in take_action'
    b' utils.ansible_symlink()'
    b' File "/home/tester/python-tripleoclient/tripleoclient/utils.py", line 1610, in ansible_symlink'
    b" run_command(cmd, name='ansible-playbook-3-symlink')"
    b' File "/home/tester/python-tripleoclient/tripleoclient/utils.py", line 1455, in run_command'
    b' env=env)'
    b' File "/usr/lib64/python3.6/subprocess.py", line 356, in check_output'
    b' **kwargs).stdout'
    b' File "/usr/lib64/python3.6/subprocess.py", line 423, in run'
    b' with Popen(*popenargs, **kwargs) as process:'
    b' File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__'
    b' restore_signals, start_new_session)'
    b' File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child'
    b' raise child_exception_type(errno_num, err_msg, err_filename)'
    b"FileNotFoundError: [Errno 2] No such file or directory: 'sudo': 'sudo'"
    b''