Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

Errors while trying to run multiple instances of bosh-init in parallel on the same machine #75

Open
zankich opened this issue Apr 22, 2016 · 4 comments

Comments

@zankich
Copy link

zankich commented Apr 22, 2016

For the bbl integration tests, we're trying to run multiple instances of bosh-init in parallel, but we encounter the following error message:

Starting registry... Failed (00:00:00)
Cleaning up rendered CPI jobs... Finished (00:00:00)

Command 'deploy' failed:
  Starting registry:
    Starting registry listener:
      listen tcp 127.0.0.1:6901: bind: address already in use

We see that the registry is hard coded to bind to port 6901, is there a specific reason for this?

Is it possible for this port to be randomly selected and bound? Or possibly a --registry-port flag which can be passed in?

@cppforlife
Copy link
Contributor

@zankich currently there is no way to configure custom registry port.

@Amit-PivotalLabs
Copy link

Does the following describe the desired UX @cppforlife, @zankich?

$ bosh-init help deploy
NAME:
    deploy - Create or update a deployment

USAGE:
    bosh-init [global options] deploy <deployment_manifest_path> ['deploy' command options]

ENVIRONMENT VARIABLES:
    BOSH_INIT_LOG_LEVEL=debug               none, info, debug, warn, or error. Default: none
    BOSH_INIT_LOG_PATH=/path/to/file.log    The path where logs will be written. Default: standard out/err

GLOBAL OPTIONS:
    --help, -h       Show help message
    --version, -v    Show version

'deploy' COMMAND OPTIONS:
    --registry-port=, -r       Port for local registry server to bind to. Default: free TCP port automatically selected at runtime

and

$ bosh-init help delete
NAME:
    delete - Delete existing deployment

USAGE:
    bosh-init [global options] delete <deployment_manifest_path> ['delete' command options]

ENVIRONMENT VARIABLES:
    BOSH_INIT_LOG_LEVEL=debug               none, info, debug, warn, or error. Default: none
    BOSH_INIT_LOG_PATH=/path/to/file.log    The path where logs will be written. Default: standard out/err

GLOBAL OPTIONS:
    --help, -h       Show help message
    --version, -v    Show version

'delete' COMMAND OPTIONS:
    --registry-port=, -r       Port for local registry server to bind to. Default: free TCP port automatically selected at runtime

@zankich
Copy link
Author

zankich commented Apr 25, 2016

@cppforlife @Amit-PivotalLabs yes that would hopefully allow us to run multiple instances of bosh-init at the same time

@voelzmo
Copy link
Contributor

voelzmo commented Apr 26, 2016

@cppforlife how well does this go with the current ideas on using compiled releases for the CPI?

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

No branches or pull requests

4 participants