Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

fix(database): use ETCD host during database recovery detection #4402

Merged
merged 1 commit into from Sep 3, 2015

Conversation

gabrtv
Copy link
Member

@gabrtv gabrtv commented Sep 3, 2015

When troubleshooting failed database recovery on Azure, it seems we are failing to pull the /deis/database/initId from etcd even when it is populated. Upon closer inspection I noticed we are not passing in the list of etcd hosts to etcdctl. This PR passes -C $ETCD which seems to resolve the issue. This will require manual database failover testing.

Reminder: all of these boot scripts need to be rewritten in Go. 馃槈

@@ -65,7 +65,7 @@ fi

# ensure WAL log bucket exists
envdir /etc/wal-e.d/env /app/bin/create_bucket "${BUCKET_NAME}"
INIT_ID=$(etcdctl get "$ETCD_PATH/initId" 2> /dev/null || echo none)
INIT_ID=$(etcdctl get -C $ETCD "$ETCD_PATH/initId" 2> /dev/null || echo none)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has to be quoted: "$ETCD". Otherwise shellcheck will complain.

@mboersma
Copy link
Member

mboersma commented Sep 3, 2015

LGTM.

@bacongobbler
Copy link
Member

lgtm

@mboersma mboersma removed this from the v1.10 milestone Sep 3, 2015
gabrtv pushed a commit that referenced this pull request Sep 3, 2015
fix(database): use ETCD host during database recovery detection
@gabrtv gabrtv merged commit 88e6f7a into deis:master Sep 3, 2015
@gabrtv gabrtv deleted the fix-db-recovery branch September 3, 2015 19:39
@mboersma mboersma added this to the v1.10 milestone Sep 4, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants