strepsirrhini-army / chaos-lemur

An adaptation of the Chaos Monkey concept to BOSH releases
Apache License 2.0
62 stars 32 forks source link

Added support for Bosh UAA #9

Open hpejcinovic-pivotal opened 7 years ago

cah-jeremykuhn commented 7 years ago

Hello,

We attempted to use this branch to deploy Chaos Lemur to our PCF instance, and are getting an error 401 when the application is starting up and attempting to connect to Bosh Director. The error we are getting in PCF is below:

2016-11-09T07:47:00.268-05:00 [APP/0] [OUT] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'standardDirectorUtils' defined in file [/home/vcap/app/io/pivotal/strepsirrhini/chaoslemur/infrastructure/StandardDirectorUtils.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.pivotal.strepsirrhini.chaoslemur.infrastructure.StandardDirectorUtils]: Constructor threw exception; nested exception is org.springframework.web.client.HttpClientErrorException: 401 Unauthorized
hpejcinovic-pivotal commented 7 years ago

Hi, Did you create the Bosh client account first as per Deployment section in https://github.com/hpejcinovic-pivotal/chaos-lemur/blob/1360449f3a8afdd608e379197760de268b5ea79c/README.md

You use the this user's username password and pass it via config variables in manifest.yml

If it still doesn't work let me know.

allomov commented 7 years ago

Hey!

Sorry for being improvident, but I implemented the same functionality here: https://github.com/strepsirrhini-army/chaos-lemur/pull/10. Just noticed it. It so strange that your PR have not been approved yet.

Here is a difference that my PR has: I expect that somebody is going to use old fashioned basic auth with BOSH, I also made some refactoring to the way properties are retrieved (everything is stored in InfrastructureConfiguration class now, so some custom validation could be added later).

nebhale commented 7 years ago

I'll take a look at this in the next couple of days and updates will be centralized in #5.