Closed naqsh01 closed 8 years ago
Hi @naqsh01. I hit the exact same problem yesterday and the fix might surprise you :).
The key is
2016-10-06 16:59:20,286 WARN Attempt #1/1 to obtain machine threw error: org.jclouds.rest.AuthorizationException: POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1 -> HTTP/1.1 401 Unauthorized
In my case it was due to Amazon requiring me to accept the license agreement for the image - the official image of the CentOS project. It's failing even if you try to launch it through Amazon's console until the license is accepted. It's a one time process.
Go to the marketplace and try to launch the image. Somewhere along the process you'll see a yellow button in the right column asking you to accept the license agreement. You don't even need to complete the launch process. After accepting go back and retry the deployment.
So, manually go through wizard process and then once I get to the screen about the license, I accept it. I don't have to go any further? And then go back Brooklyn and deploy the blueprint for the docker engine -- and it should work? :)
If I understood that correctly I'll give it a shot.
Side comments: In clocker 2 is the a way to point to an existing docker engine?
Thanks
So, manually go through wizard process and then once I get to the screen about the license, I accept it. I don't have to go any further? And then go back Brooklyn and deploy the blueprint for the docker engine -- and it should work? :)
That's correct.
Side comments: In clocker 2 is the a way to point to an existing docker engine?
No clocker2 is all about deploying docker, swarm, kubernetes, etc. (and of course not be constrained to a single cloud).
You can deploy to docker, swarm, kubernetes using AMP's Cloudsoft Container Service.
@neykov
That was it! Fixed the issue.
One thing worth noting:
securityGroups: <SECURITY GROUP ID>
Is not the group id but the name.
In Clocker2 -- would the blueprint to deploy to docker engine be the same as it was for clocker1? Is there an example I can follow?
Glad it worked @naqsh01. Good point about securityGroups
we will update the docs.
Here's how you can deploy to a docker engine or Swarm endpoint. That's using the Cloudsoft Container Service
which builds on top of Clocker 2
.
Hi--
Deploying to region: us-east-1. But when I look at the IAM Management Console it says the keys were last used on: eu-central-1. Deployment fails. The keys are valid and work, I've verified.
Ver: brooklyn-dist-0.10.0-20160930.1659
Here is my configuration:
Using the following blueprint to deploy docker:
My location:
I get the following error: