cloudfoundry-community / logsearch-for-cloudfoundry

A Logsearch addon that customises Logsearch to work with Cloud Foundry data
Apache License 2.0
49 stars 58 forks source link

upload-kibana-objects fails on the first run #329

Closed pritesh-patel95 closed 4 years ago

pritesh-patel95 commented 5 years ago

Running a concourse pipeline in the following order: bosh-deploy > create-uaa-user-errand > smoke-tests-errand > upload-kibana-objects errand

The upload-kibana-objects errand fails every time with the following error:

File "/var/vcap/jobs/upload-kibana-objects/bin/import-objects", line 16, in <module>  
Upload Kibana objects from job defaults. Start processing...                                                                              
assert logs.url == 'https://login.((OUR_SYSTEM_DOMAIN))/login'     
AssertionError  

The errand runs successfully when run a second time - i.e., via BOSH cli or re-running the pipeline.

TheMoves commented 4 years ago

I had to log in manually as CF Admin ID into Kibana to allow the upload-kibana-objects to actually succeed

axelaris commented 4 years ago

It can be resolved to setting this value to true: https://github.com/cloudfoundry-community/logsearch-for-cloudfoundry/blob/develop/jobs/create-uaa-client/spec#L26