mirror of
https://github.com/krkn-chaos/krkn.git
synced 2026-04-15 06:57:28 +00:00
Merge pull request #42 from chaitanyaenr/pod_scenarios_log
Display the pod scenarios logs
This commit is contained in:
@@ -2,7 +2,7 @@ dist: xenial
|
||||
|
||||
langauge: python
|
||||
|
||||
python: "3.6"
|
||||
python: "3.6.8"
|
||||
|
||||
before_install:
|
||||
- sudo apt-get update
|
||||
|
||||
@@ -160,11 +160,14 @@ def pod_scenarios(scenarios_list, config, failed_post_scenarios):
|
||||
pre_action_output = run_post_action(kubeconfig_path, pod_scenario[1])
|
||||
else:
|
||||
pre_action_output = ''
|
||||
runcommand.invoke("powerfulseal autonomous --use-pod-delete-instead-of-ssh-kill"
|
||||
scenario_logs = runcommand.invoke("powerfulseal autonomous --use-pod-delete-instead-of-ssh-kill"
|
||||
" --policy-file %s --kubeconfig %s --no-cloud"
|
||||
" --inventory-kubernetes --headless"
|
||||
% (pod_scenario[0], kubeconfig_path))
|
||||
|
||||
# Display pod scenario logs/actions
|
||||
print(scenario_logs)
|
||||
|
||||
logging.info("Scenario: %s has been successfully injected!" % (pod_scenario[0]))
|
||||
logging.info("Waiting for the specified duration: %s" % (wait_duration))
|
||||
time.sleep(wait_duration)
|
||||
|
||||
Reference in New Issue
Block a user