Skip to content

Modify ETCD_BINDIR for aarch64#5428

Closed
jiameixie wants to merge 1 commit intovitessio:masterfrom
jiameixie:etcd_bindir
Closed

Modify ETCD_BINDIR for aarch64#5428
jiameixie wants to merge 1 commit intovitessio:masterfrom
jiameixie:etcd_bindir

Conversation

@jiameixie
Copy link
Copy Markdown
Contributor

Modify ETCD_BINDIR in local example env script for aarch64

Change-Id: I1a9d6591316b60f1c7672f4c0eb4906f6dc65de7
Signed-off-by: Jiamei.Xie Jiamei.Xie@arm.com

Modify ETCD_BINDIR in local example env script for aarch64

Change-Id: I1a9d6591316b60f1c7672f4c0eb4906f6dc65de7
Signed-off-by: Jiamei.Xie <Jiamei.Xie@arm.com>
@jiameixie jiameixie requested a review from sougou as a code owner November 12, 2019 01:53
@morgo
Copy link
Copy Markdown
Contributor

morgo commented Nov 12, 2019

Hi @jiameixie - I have another PR I just opened which should make this one obsolete: #5427

Do you mind reviewing it to confirm?

(The advantage of the PR I have open is that it can get Vitess in a state of no longer shipping etcd.)

@jiameixie
Copy link
Copy Markdown
Contributor Author

Hi @jiameixie - I have another PR I just opened which should make this one obsolete: #5427

Do you mind reviewing it to confirm?

(The advantage of the PR I have open is that it can get Vitess in a state of no longer shipping etcd.)

Yes, it's true. It will be obsolete after #5427 merged. I'll change it according to #5427

@jiameixie
Copy link
Copy Markdown
Contributor Author

jiameixie commented Nov 12, 2019

Hi @morgo - I added a condition to check if directory "${VTROOT}/dist/etcd" exists as below. Is this ok?
if [ -d "${VTROOT}/dist/etcd" ];then
if [ "$(arch)" == aarch64 ];then
ETCD_BINDIR="${VTROOT}/dist/etcd/etcd-${ETCD_VERSION}-${etcd_platform}-arm64/"
else
ETCD_BINDIR="${VTROOT}/dist/etcd/etcd-${ETCD_VERSION}-${etcd_platform}-amd64/"
fi
else
ETCD_BINDIR=$(dirname which etcd)
fi

@morgo
Copy link
Copy Markdown
Contributor

morgo commented Nov 12, 2019

Hi @morgo - I added a condition to check if directory "${VTROOT}/dist/etcd" exists as below. Is this ok?
if [ -d "${VTROOT}/dist/etcd" ];then
if [ "$(arch)" == aarch64 ];then
ETCD_BINDIR="${VTROOT}/dist/etcd/etcd-${ETCD_VERSION}-${etcd_platform}-arm64/"
else
ETCD_BINDIR="${VTROOT}/dist/etcd/etcd-${ETCD_VERSION}-${etcd_platform}-amd64/"
fi
else
ETCD_BINDIR=$(dirname which etcd)
fi

I think we can totally remove this, and just rely on $PATH :-) The current solution is a problem, because it is implying that we ship etcd in the Vitess packages.

@jiameixie
Copy link
Copy Markdown
Contributor Author

Hi @morgo - I added a condition to check if directory "${VTROOT}/dist/etcd" exists as below. Is this ok?
if [ -d "${VTROOT}/dist/etcd" ];then
if [ "$(arch)" == aarch64 ];then
ETCD_BINDIR="${VTROOT}/dist/etcd/etcd-${ETCD_VERSION}-${etcd_platform}-arm64/"
else
ETCD_BINDIR="${VTROOT}/dist/etcd/etcd-${ETCD_VERSION}-${etcd_platform}-amd64/"
fi
else
ETCD_BINDIR=$(dirname which etcd)
fi

I think we can totally remove this, and just rely on $PATH :-) The current solution is a problem, because it is implying that we ship etcd in the Vitess packages.

Got it. I'll close this request.

@jiameixie jiameixie closed this Nov 13, 2019
@jiameixie jiameixie deleted the etcd_bindir branch November 13, 2019 01:47
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

Successfully merging this pull request may close these issues.

2 participants