-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
S3 Deploy Boto Not Connecting to S3 Correctly #128
Comments
OK this should be a legit issue: ansible/ansible-modules-core#3347 "Indeed. This defect practically rendered the s3 module broken outright. All of our playbooks that use s3 are 100% broken." |
I believe this is only a big in Ansible 1.9+ will dig in further tonight. |
Downgraded to Ansible 1.8 but then ran into this odd issue with permissions, the IAM user has full permissions to S3. |
Under 1.8 even with permissions set for list and read and with root user still having issue. S3 deployments are currently non functional. Going to try to come back to this after ansible stabilizes as a project. |
Figured out the permissions issue, was a couple things combined. Have a new issue with the way I'm packing and uploading, now happening in unpack: ansible/ansible-modules-core#74 Getting closer. |
Hi None of these are Ansistrano bugs but Ansible bugs or environmental issues. Sorry, but there is not much we can do here if the official modules are broken :) |
@ricardclau I got it working last night, had to upgrade to 2.2 dev branch. But I found a real bug while doing all this. The s3 doesn't work if the object is inside a folder. That's a different issue that I will address in some kind of readme or blog post. Sorry for all the noise on a Sunday and thank you for this project! |
Yeah it looks like you found all the things that could possibly go wrong :( The s3 strategy only supports bucket and object but I thought a folder in the object would work (folders in S3 don't really exist... it is part of the object name). Did you ever get it working with folders? I will have a look myself as I am pretty sure I did not test it when I implemented the s3 strategy |
Ok, maybe the problem is:
and we might need to do
Can you please check if that was the problem? |
I'm trying to get ansistrano working on a side project after hours of work. I'll try to get to it this Sunday the latest. If you want I can give you access to the nano box, bitbucket, and jenkins box where this is all running. Feel free to email - michaellouisbenin at gmail dotc com - otherwise I will try my best to get to it Sunday if the weather is bad. |
Currently it's for a node project, and last thing I ran into was this where ansible hangs on me: The s3 shouldn't take long though it's only a 2 line change then push to master to kick off a build. |
We just tagged 1.7.1 which fixes the folders problem Thanks for reporting it! |
Awesome, first thing when a get I chance on my off time I'll upgrade to the latest and pull it down. |
Upgraded to ansistrano deploy 1.7.1, this fixed the issue with folders in buckets. Thank you! |
BTW I have this working with PM2 now. But I feel some additional documentation could be added to the readme for S3 that ansible 2.2 needs to be used. I will try to open source this project as an example node project with pm2 for 0 downtime deploys and rollbacks in ansible. Currently it's in a jenkins job but I could move it to cli for an example. Thanks again! |
Ansible 2.2.0 / Latest Ansistrano Deploy and rollback
Add startup script to pm2:
After any pm2 modifications run:
On first deploy I've found I needed to manually start the process, this is only the case when setting it up the first time. |
I have used the S3 module since Ansible 1.8 and it usually works just fine... what function are you using that you specifically need Ansible 2.2? |
Sorry 4 late response. The two native ansible methods outside of ansistrano was the ids unpacking tar and gzip as well as boto and s3 permissions. |
That's weird, I tested the patch fixing the folders issue with both Ansible 1.9 and 2.x (not sure about the exact version, but either 2.0.2 or 2.1.0) Were you supplying access and secret keys to ansistrano or relying in IAM? Which version of boto? I have seen some weirdos with AIM profiles with non latest boto and awscli setups |
I have boto installed correctly and I am using
In my config.
My output is
Related: ansible/ansible-modules-core#3447
The text was updated successfully, but these errors were encountered: