Skip to content

wait-for-db check won't ever pass with internal mongodb #310

Open
@cflanny

Description

@cflanny

There is a service name mismatch between the 'wait-for-db' check helper and the service name for mongodb being created by the chart, specifically right here:

until nc -z -w 2 {{ $.Release.Name }}-mongodb-headless {{ $mongodb_port }} && echo mongodb ok;

You are looking for {{ $.Release.Name }}-mongodb-headless when the service created matches {{ $.Release.Name }}-mongodb. I would have created a pull request to fix, but was denied permission to push a branch.

Here is proof of the fix from my test environment:

root@stackstorm-st2client-5fff65dbfc-c7z8c:/opt/stackstorm# nc -z -w 2 stackstorm-mongodb-headless 27017 && echo 'broken'
nc: getaddrinfo for host "stackstorm-mongodb-headless" port 27017: Name or service not known
root@stackstorm-st2client-5fff65dbfc-c7z8c:/opt/stackstorm# nc -z -w 2 stackstorm-mongodb 27017 && echo 'working'
working
root@stackstorm-st2client-5fff65dbfc-c7z8c:/opt/stackstorm#

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions