Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upbuild: bake aws into the builder image #31412
Conversation
petermattis
requested a review
from cockroachdb/build-prs
as a
code owner
Oct 16, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
petermattis
Oct 16, 2018
Contributor
Gah, apparently this installs a version of aws that is too old:
> /home/agent/work/.go/bin/roachprod create teamcity-968270-kv95-encrypt-false-nodes-1 -n 2 --clouds=aws --aws-machine-type-ssd=m5d.2xlarge
Creating cluster teamcity-968270-kv95-encrypt-false-nodes-1 with 2 nodes
2018/10/16 00:06:48 imported ${HOME}/.ssh/id_rsa.pub as teamcity-runner-w3i2u7tBwUAjM4_HewnqvX8mV44= in region us-east-2
2018/10/16 00:06:49 imported ${HOME}/.ssh/id_rsa.pub as teamcity-runner-w3i2u7tBwUAjM4_HewnqvX8mV44= in region us-west-2
2018/10/16 00:06:49 usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
Unknown options: --tag-specifications, ResourceType=instance,Tags=[{Key=Lifetime,Value=12h0m0s},{Key=Name,Value=teamcity-968270-kv95-encrypt-false-nodes-1-0001},{Key=Roachprod,Value=true},]
I saw exactly this same error locally and had to upgrade aws. My apt-get fu is weak. How do I track down a newer apt-installable version?
|
Gah, apparently this installs a version of
I saw exactly this same error locally and had to upgrade |
petermattis
requested a review
from
benesch
Oct 16, 2018
petermattis
referenced this pull request
Oct 16, 2018
Closed
roachtest: run a subset of tests on aws #29334
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
petermattis
Oct 16, 2018
Contributor
Switched to explicitly download the awslci-bundle from amazon and installing it. Easier than figuring out if there is an up to date apt-get source or using pip.
|
Switched to explicitly download the awslci-bundle from amazon and installing it. Easier than figuring out if there is an up to date apt-get source or using pip. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
benesch
Oct 16, 2018
Member
Switched to explicitly download the awslci-bundle from amazon and installing it. Easier than figuring out if there is an up to date apt-get source or using pip.
That's exactly what I was about to recommend. I'm not seeing a maintained PPA for awscli, and getting pip to work right in the builder would be a hassle, so I think the bundle is the way to go.
That's exactly what I was about to recommend. I'm not seeing a maintained PPA for awscli, and getting pip to work right in the builder would be a hassle, so I think the bundle is the way to go. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
petermattis
Oct 16, 2018
Contributor
Ugh, what is this failure about. https://teamcity.cockroachdb.com/viewLog.html?buildId=968385&tab=buildLog
[01:20:43][Step 2/2] Status: Downloaded newer image for cockroachdb/builder:20181015-210651
[01:20:50][Step 2/2] Traceback (most recent call last):
[01:20:50][Step 2/2] File "/usr/bin/../lib/google-cloud-sdk/lib/gcloud.py", line 20, in <module>
[01:20:50][Step 2/2] from __future__ import absolute_import
[01:20:50][Step 2/2] ImportError: No module named __future__
It happened twice, so it isn't a fluke.
|
Ugh, what is this failure about. https://teamcity.cockroachdb.com/viewLog.html?buildId=968385&tab=buildLog
It happened twice, so it isn't a fluke. |
build/builder/Dockerfile Outdated
build/builder/Dockerfile Outdated
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
benesch
Oct 16, 2018
Member
It happened twice, so it isn't a fluke.
I think ./awscli-bundle/install -i /usr/local/ aws has a stray space in it and it therefore might have wiped the contents of /usr/local in weird and arbitrary ways.
I think |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
petermattis
Oct 16, 2018
Contributor
Ah, good catch. I've fixed that. Let me see if this gets me farther.
|
Ah, good catch. I've fixed that. Let me see if this gets me farther. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
petermattis
referenced this pull request
Oct 16, 2018
Closed
roachtest: kv95/encrypt=false/nodes=1 failed #31411
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
And we're running a roachtest on AWS! |
benesch
reviewed
Oct 16, 2018
Doesn't look like you actually pushed your latest revision?
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
petermattis
Oct 16, 2018
Contributor
Just adding an extra level of difficulty to the review. Pushed.
|
Just adding an extra level of difficulty to the review. Pushed. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
petermattis
Oct 16, 2018
Contributor
Thanks, though see #31416. Some aws initialization or something is missing. I think this PR is fine, but I'll hold off on merging it until we get that issue figured out.
|
Thanks, though see #31416. Some aws initialization or something is missing. I think this PR is fine, but I'll hold off on merging it until we get that issue figured out. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
bors r=benesch |
bot
pushed a commit
that referenced
this pull request
Oct 16, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
craig
bot
commented
Oct 16, 2018
Build succeeded |
petermattis commentedOct 16, 2018
Release note: None