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

Dynamic source configuration does not work #6

Open
chendrix opened this issue Nov 10, 2017 · 1 comment
Open

Dynamic source configuration does not work #6

chendrix opened this issue Nov 10, 2017 · 1 comment

Comments

@chendrix
Copy link

The documentation shows the availability of using dynamic source configuration, but I think we ran into a problem.

resources:
- name: bosh-errand
  type: bosh-errand
  source:
    # Overridden by source_file in the tasks
    deployment: DONOTUSE
    target: DONOTUSE
    client: DONOTUSE
    client_secret: DONOTUSE
- put: bosh-errand
  params:
    name: errand-name
    source_file: some-path/source_file.json

Then on the automatic get that happens after the put, you get

Fetching info: Performing request GET 'https://DONOTUSE:25555/info': Performing GET request: Retry: Get https://DONOTUSE:25555/info: dial tcp: lookup DONOTUSE on ... no such host

It looks like you need to add params to your InRequest to also allow source_file, and then it could be configured as such:

- put: bosh-errand
  params:
    name: errand-name
    source_file: some-path/source_file.json
  get_params:
    source_file: some-path/source_file.json
@chendrix
Copy link
Author

Actually, that might not be possible at all, because I don't think get containers are given the same asset scratch space as put containers are...

It looks like for dynamic source configuration you might need a param that just skips the whole thing.

chendrix pushed a commit to cloudfoundry-attic/perm-ci that referenced this issue Nov 10, 2017
The resource wasn't working correctly with dynamic sources. See
cloudfoundry-community/bosh2-errand-resource#6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant