Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying port and databases for bbr when not using bosh links #46

Merged
merged 4 commits into from
Dec 19, 2018

Conversation

rkoster
Copy link
Contributor

@rkoster rkoster commented Dec 10, 2018

Since bosh create-env still does not support using links, I would like to propose the following changes to the bbr job. To allow us to switch to the postgres bbr job, for bucc.

Original issue: #26

@cfdreddbot
Copy link

✅ Hey rkoster! The commit authors and yourself have already signed the CLA.

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/162541460

The labels on this github issue will be updated when the story is started.

@valeriap
Copy link
Contributor

@rkoster thank you very much for sending this PR.

We would like to support the feature, but unfortunately we cannot accept it as is because it is missing an acceptance test. It should verify that a co-located bbr-postgres-db job without a link present can successfully back up and restore a database.

@rkoster
Copy link
Contributor Author

rkoster commented Dec 12, 2018

@valeriap have added a test, it compiles but I'm unable to run test in my current environment. Apparently the test suite does not support bosh with uaa auth...
Has CI for PR branches been enabled? Asking because not having to setup a new bosh environment would save me some time.

@valeriap
Copy link
Contributor

@rkoster Thanks for updating the test suite.
The CI for PR is not enabled yet and we have a story in the backlog to support bosh with uaa.
I've run the suite with the PR and the following typo was found:

diff --git a/jobs/bbr-postgres-db/templates/config.sh.erb b/jobs/bbr-postgres-db/templates/config.sh.erb
index 3665c29..291ec52 100755
--- a/jobs/bbr-postgres-db/templates/config.sh.erb
+++ b/jobs/bbr-postgres-db/templates/config.sh.erb
@@ -18,7 +18,7 @@ if_link("database") do |data|
   end

   port = data.p("databases.port")
-  databases = data.p("databases.database")
+  databases = data.p("databases.databases")
 end

  %>

With this typo fixed the suite has run fine.

@rkoster
Copy link
Contributor Author

rkoster commented Dec 14, 2018

Thanks, have fixed the typo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants