Skip to content

Commit

Permalink
Use director_ca in print_task_errors
Browse files Browse the repository at this point in the history
We use the BOSH CLI V2 which verifies director certificate.

[#144509311](https://www.pivotaltracker.com/story/show/144509311)
  • Loading branch information
Kiemes committed May 17, 2017
1 parent 1c16408 commit 465187a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ jobs:
file: bosh-cpi-src-in/ci/tasks/print_task_errors.yml
params:
bosh_admin_password: {{bosh_admin_password}}
director_ca: {{director_ca}}

- task: teardown-director
tags: *tags
Expand Down Expand Up @@ -400,6 +401,7 @@ jobs:
file: bosh-cpi-src-in/ci/tasks/print_task_errors.yml
params:
bosh_admin_password: {{bosh_admin_password}}
director_ca: {{director_ca}}

- task: teardown-director
tags: *tags
Expand Down Expand Up @@ -505,6 +507,7 @@ jobs:
file: bosh-cpi-src-in/ci/tasks/print_task_errors.yml
params:
bosh_admin_password: {{bosh_admin_password}}
director_ca: {{director_ca}}

- task: teardown-director
tags: *tags
Expand Down Expand Up @@ -606,6 +609,7 @@ jobs:
file: bosh-cpi-src-in/ci/tasks/print_task_errors.yml
params:
bosh_admin_password: {{bosh_admin_password}}
director_ca: {{director_ca}}

- task: teardown-director
tags: *tags
Expand Down
6 changes: 3 additions & 3 deletions ci/tasks/print_task_errors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ source bosh-cpi-src-in/ci/tasks/utils.sh
metadata=terraform-bats/metadata

export_terraform_variable "director_public_ip"
echo -e "${director_ca}" > director_ca

echo 'Printing debug output of tasks in state error'

cd bosh-cpi-src-in/ci/ruby_scripts

bosh-go -n -e ${director_public_ip} \
--client admin \
--client-secret ${bosh_admin_password} \
tasks --all --recent=100 | ./print_task_debug_output.sh
--ca-cert director_ca \
tasks --all --recent=100 | ./bosh-cpi-src-in/ci/ruby_scripts/print_task_debug_output.sh
3 changes: 2 additions & 1 deletion ci/tasks/print_task_errors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ inputs:
run:
path: bosh-cpi-src-in/ci/tasks/print_task_errors.sh
params:
bosh_admin_password: ''
bosh_admin_password: ""
director_ca: ""

0 comments on commit 465187a

Please sign in to comment.