-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CBA deployment prep #115
CBA deployment prep #115
Conversation
- Since "all" commands redirect log messages to log files (instead of stdout), automatically tail log files during "all up" commands to avoid the need to open a separate terminal to manually tail them. - Since `make terraform-doctor-STACK` commands parse the Terraform "up" log files, but `make up-STACK` commands do not send log messages to the log files, use `tee` to also send stdout to the log files so that `make terraform-doctor-STACK` can also be used after `make up-STACK` runs. - Since `make pre-deploy-setup` calls `terraspace all init`, which sends output to the log files, automatically tail the log files for convenience.
Changed the .env file with TS_ENV=jayanthi-sbx Usage: bin/copy-launchpad-pfx.sh BUCKET |
Did you also set Once you make sure
Then try again:
|
I got my sandbox deploy all the way to the smoke test stage and found an error that I think requires a code change. I looked in S3 and found that the below bucket exists To fix this, I looked a little bit deeper and found the parts of the code which set this. Fixing the code Line: 11: Line: 14 |
@krisstanton, this ticket is for deployment only, not for dealing with test data. I'm working on a separate branch for us to deal with test data, which addresses the issue you pointed out, among many other things that we also need. Approve this PR if your deployment succeeded. Skip creating test data at this point. |
Sorry, I was under the impression that we had to get a smoke test pass before it counted as a complete deploy. The only other thing I should mention before clicking approve is that when I run ` // OUTPUT So I can just manually grab the URI, which for my deploy is: https://gc86mo52vh.execute-api.us-west-2.amazonaws.com/dev/ Sorry if this issue is also out of scope. Let me know if so and I'll click approve. Thanks! |
@krisstanton, if you did your initial deployment with the following line in your
Perhaps you didn't have that line commented out on the first deploy? I'm going to update the original description to indicate that the line should be commented out on the first deploy. |
You are absolutely right. I had not commented that line out. That makes sense. Ok going to click approve now. |
@jsrikish, if you're still having a problem with this, let's do the following:
If I cannot discern the issue from this information, then let's setup a meeting to debug things. |
I tried the above commands but it failed in docker pre-deploy-setup with the same error |
These might be the lines you are looking for:
|
|
I think there's an additional command you need to run, but I missed listing it, so let's do this:
I think without that 2nd "prune" command, your image was not being fully removed, so the image build was still hanging onto some old layers that might be the cause of the problem. I think that should get your Docker container sorted out, and you should then try this again:
🤞 |
@jsrikish, also comment out this line in your
Should be:
|
Didn't work :( |
OK, let's remove some docker volumes that might be causing problems:
Then try |
Still the same error :( |
@jsrikish, would you mind pasting into a reply the entire error output your getting? |
Modify deployment to allow for deployment to both our "old" AWS accounts as well as our "new" CBA accounts.
@krisstanton and @jsrikish, before approving this PR, I want you both to be able to successfully deploy to the CBA sandbox account, as follows:
First, fetch the code:
Next, update your
.env
file as follows:AWS_PROFILE
,TS_ENV
, andTF_VAR_cumulus_distribution_uri
AWS_PROFILE
to the profile you created for the CBA sandbox (perhapscsda-cumulus-sbx-7894
)TS_ENV
to something slightly different, perhaps the same as theTS_ENV
you just commented out, but withcba
as the suffix.TF_VAR_cumulus_distribution_url=
without a value (you won't know the value until after the first deployment)Next, setup and deploy everything. You will eventually (after 30-60 minutes?) be prompted to supply your username and password for your account at https://uat.urs.earthdata.nasa.gov/:
You may have to run
make all-up-yes
2 or 3 times for a clean deploy.Once you get a clean deploy, you have to set
TF_VAR_cumulus_distribution_url
as follows:make output-cumulus
cumulus_distribution_api_uri
and set that as the value ofTF_VAR_cumulus_distribution_url
in your.env
file (and uncomment the line)make all-up-yes
one last time (hopefully)