Skip to content
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

make all fails #207

Open
aeftimia opened this issue Aug 30, 2017 · 6 comments
Open

make all fails #207

aeftimia opened this issue Aug 30, 2017 · 6 comments

Comments

@aeftimia
Copy link

If I just clone the git repo and run make all, I get the following error. I may be new at this, but this at the very least should point to some incompleteness in the Readme file which would have pointed me to the resource needed to fill my knowledge gaps.

Error applying plan:

1 error(s) occurred:

  • module.s3.aws_s3_bucket.pki: 1 error(s) occurred:

  • aws_s3_bucket.pki: Error creating S3 bucket: BucketAlreadyOwnedByYou: Your previous request to create the named bucket succeeded and you already own it.
    status code: 409, request id: FCFE75F95FEFE173, host id: nvIosND/19mGDz/Dj9quII+0CfgbqXNgoIg1wsQ4y37EbyyN/TnfOREZQazNnmwGWhOvaBbBDDg=

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.

@yagonobre
Copy link
Contributor

yagonobre commented Aug 30, 2017

is it the first time that you run make all? If not run make clean and make all or change the cluster name.

@aeftimia
Copy link
Author

aeftimia commented Aug 30, 2017 via email

@yagonobre
Copy link
Contributor

You no need to edit anything, check in s3 if you have a bucket named ${AWS_ACCOUNT_ID}-${CLUSTER_NAME}-${AWS_REGION} and delete this

@aeftimia
Copy link
Author

aeftimia commented Aug 30, 2017 via email

@zacbayhan
Copy link

zacbayhan commented Nov 18, 2017

I'm also having some issues in the create admin cert function, everything else seems to be going well here is some output

❤ create admin certificate
+ echo .cfssl
.cfssl
+ echo WildCat
WildCat
+ echo .keypair/kz8s-Wild.pem
.keypair/kz8s-WildCat.pem
++ terraform output bastion-ip
+ BASTION_IP=XX.XX.XX.XX
+ trap 'error ${LINENO}' ERR
+ ssh-keyscan 

+ trap finish EXIT
+ printf .
.+ curl -d '{"label":"primary"}' http://localhost:8888/api/v1/cfssl/info
+ ssh -o StrictHostKeyChecking=no -i .keypair/kz8s-Wild.pem -nNT -L 8888:pki.Wild.kz8s:8888 [email protected]
+ sleep 2.5
+ printf .
.+ curl -d '{"label":"primary"}' http://localhost:8888/api/v1/cfssl/info
+ echo ✓
✓
+ mkdir -p .cfssl
+ cd .cfssl
+ generate k8s-admin client
+ CN=k8s-admin
+ PROFILE=client
+ cfssl gencert -remote=localhost:8888 -profile=client -
+ cfssljson -bare k8s-admin
++ csr k8s-admin
++ cat
scripts/create-admin-certificate: line 47: cfssljson: command not found
+ echo '{"CN":"k8s-admin","hosts":[""],"key":{"algo":"rsa","size":2048}}'
Must specify bundle target through -cert or -domain
+ finish
+ '[' -z 25664 ']'
+ kill 25664
✗ create admin certificate - FAIL

Makefile:108: recipe for target 'create-admin-certificate' failed
make[1]: *** [create-admin-certificate] Error 127
make[1]: Leaving directory '/home/zack/tack'
Makefile:65: recipe for target 'post-terraform' failed
make: *** [post-terraform] Error 2

@eanderson4
Copy link

@zacbayhan I just encountered that same issue. If you look at the error, you will see this line

scripts/create-admin-certificate: line 47: cfssljson: command not found

I went and installed cfssljson with this and it worked

https://github.com/cloudflare/cfssl

go get -u github.com/cloudflare/cfssl/cmd/cfssljson

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

No branches or pull requests

4 participants