-
Notifications
You must be signed in to change notification settings - Fork 33
Add extra validations to bosh-init manifest: cloud_provider.mbus and cloud_provider.agent.mbus properties should user https protocol and have the same creds and ports #73
base: develop
Are you sure you want to change the base?
Conversation
…s URLs should have the same creds and ports, also they need to use https
Hey allomov! Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA. |
@allomov unfortunately not all CPIs define that property, so we cant really rely that |
@cppforlife thank you for the valuable update. I will add it now. |
…operties.agent.mbus is specified
@cppforlife as far as I understand, |
@allomov yup that one is required. |
@cppforlife I've updated the brunch to follow your comments. |
@allomov Cool. Thanks. |
PR sounds useful, although I haven't personally hit the cases where it's trying to help. Only thing that stands out to me is we should probably say "must" instead of "should" since the user has no option but to comply with the errors it raises, à la RFC 2119. I think there's some upcoming work in bosh-init planned. It'll probably be easier for a pair to merge this during/after that effort once we've built up context in this repo again. |
@dpb587-pivotal thank you for the response. I've merge latest develop into the branch and changed error messages. |
Hey, all.
This PR add validations to prevent two a common errors that are not so easy to debug for a newcomer.
The first problem is that bosh-agent does not expect having http as mbus protocol, so it simply skips connecting to mbus. This means that mbus properties should always have https protocol.
The second error is typos in passwords/usernames/ports of mbus parameters. This PR adds checks if this properties are similar in mbus URLs in
cloud_properties.mbus
andcloud_properties.properties.agent.mbus
.What do you think on this changes?