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

KeyError: 'results' #861

Open
freyes opened this issue Aug 18, 2022 · 0 comments
Open

KeyError: 'results' #861

freyes opened this issue Aug 18, 2022 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@freyes
Copy link
Member

freyes commented Aug 18, 2022

The setup function auto_initialize() should check the status of the action after calling vault_utils.run_get_csr(), if the action failed, the log Stderr/Stdout and retry(?)

2022-08-18 17:10:22.509353 | focal-medium | 2022-08-18 17:10:22 [ERROR] Model default_alias (zaza-fd4a0c01d262)
2022-08-18 17:10:24.510395 | focal-medium | Traceback (most recent call last):
2022-08-18 17:10:24.510475 | focal-medium |   File "/home/ubuntu/src/review.opendev.org/openstack/charm-octavia/src/.tox/func-target/bin/functest-run-suite", line 8, in <module>
2022-08-18 17:10:24.510502 | focal-medium |     sys.exit(main())
2022-08-18 17:10:24.510519 | focal-medium |   File "/home/ubuntu/src/review.opendev.org/openstack/charm-octavia/src/.tox/func-target/lib/python3.8/site-packages/zaza/charm_lifecycle/func_test_runner.py", line 374, in main
2022-08-18 17:10:24.510542 | focal-medium |     func_test_runner(
2022-08-18 17:10:24.510558 | focal-medium |   File "/home/ubuntu/src/review.opendev.org/openstack/charm-octavia/src/.tox/func-target/lib/python3.8/site-packages/zaza/charm_lifecycle/func_test_runner.py", line 287, in func_test_runner
2022-08-18 17:10:24.510647 | focal-medium |     run_env_deployment(env_deployment, keep_model=preserve_model,
2022-08-18 17:10:24.510666 | focal-medium |   File "/home/ubuntu/src/review.opendev.org/openstack/charm-octavia/src/.tox/func-target/lib/python3.8/site-packages/zaza/charm_lifecycle/func_test_runner.py", line 155, in run_env_deployment
2022-08-18 17:10:24.510680 | focal-medium |     configure.configure(
2022-08-18 17:10:24.510694 | focal-medium |   File "/home/ubuntu/src/review.opendev.org/openstack/charm-octavia/src/.tox/func-target/lib/python3.8/site-packages/zaza/charm_lifecycle/configure.py", line 58, in configure
2022-08-18 17:10:24.510707 | focal-medium |     run_configure_list(functions)
2022-08-18 17:10:24.510721 | focal-medium |   File "/usr/lib/python3.8/contextlib.py", line 75, in inner
2022-08-18 17:10:24.510734 | focal-medium |     return func(*args, **kwds)
2022-08-18 17:10:24.510756 | focal-medium |   File "/home/ubuntu/src/review.opendev.org/openstack/charm-octavia/src/.tox/func-target/lib/python3.8/site-packages/zaza/charm_lifecycle/configure.py", line 44, in run_configure_list
2022-08-18 17:10:24.510772 | focal-medium |     utils.get_class(func)()
2022-08-18 17:10:24.510785 | focal-medium |   File "/home/ubuntu/src/review.opendev.org/openstack/charm-octavia/src/.tox/func-target/lib/python3.8/site-packages/zaza/openstack/charm_tests/vault/setup.py", line 165, in auto_initialize
2022-08-18 17:10:24.510799 | focal-medium |     intermediate_csr = action.data['results']['output']
2022-08-18 17:10:24.510812 | focal-medium | KeyError: 'results'
2022-08-18 17:10:24.944636 | focal-medium | ERROR: InvocationError for command /home/ubuntu/src/review.opendev.org/openstack/charm-octavia/src/.tox/func-target/bin/functest-run-suite --keep-model --bundle focal-xena-ha (exited with code 1)

issue seen at https://openstack-ci-reports.ubuntu.com/artifacts/652/852597/2/check/focal-xena-ha/6521059/job-output.txt

@freyes freyes added bug Something isn't working good first issue Good for newcomers labels Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant