-
Notifications
You must be signed in to change notification settings - Fork 573
Added support for config parameters elastic_ip => '<ip>', allocate_elast... #129
base: master
Are you sure you want to change the base?
Conversation
…astic_ip => 'standard/vpc'
Does this duplicate #65 (comment) ? |
Damn . I didn't see this earlier . Yes it looks like it but approach is different. Also mine seems to cover most of the cases that the users have pointed out there . But I am guessing its only fair that the earlier commit be merged. |
Hi, |
Yup I was thinking about merging both ;) |
@tralamazza - Great. Let me know if you need anything from my side. I can help in anyway you need. |
Hmm, it seems to me that this are in direct conflict. Both cannot be merged since they provide the same functionality in slightly different ways. I think my PR #65 should be merged, then the code to just associate an EIP from this PR could be added in a new PR. As an aside, neither PR supports Amazon's new feature (within the past week or so) of assigning a public IP in a VPC during launch. I was thinking of adding this functionality as another PR after #65 was merged, but since it has been more than 4 months since I first wrote it I wasn't too keen on getting it done quickly. |
Fair enough. I had one observation an hour back while working with the VM creation . If we create VMs in parallel and create new Elastic ips during this process( I was trying to create 2 to 4 VMs in parallel) , there seems to be a synchronization issue in Fog and the machine creation fails as terminate is called. However, if you pre-create the Elastic IPs and just do the association bit as part of VM creation things work fine ( This is by associating values directly with elastic_ip: "" . I plan to look at this issue but so far the latter approach has worked and the earlier approach has failed multiple times. |
…guration to allow launching instances via vagrant with IAM Instance Profiles.
update gemfile, plugin requires version 1.2+
…t_device_type is instance-store
So, just so I'm clear, is there currently on-going work in the form of a pull request that will soon be merged into the main code to allow associating a pre-allocated elastic IP to the VM rather than just the boolean flag that allocates and assigns one to the VM (as discussed in this issue)? |
Hi, I don't think that's going to happen. However, if you need the functionality , you can use this commit here - madhurranjan@5ef9f1f . |
Want to see this in main rep too |
subscribing |
+1 |
+1 for merging in madhurranjan@5ef9f1f . I have my elastic IP already allocated (and it needs to stay that way), so the ability to associate it without creating a new EIP is just what I've been looking for. |
+1 Subscribe. |
this would be very handy. Reading thru the code, it looks like the elastic ip is always released on |
The Ip isn't released . Its just disassociated - madhurranjan@5ef9f1f#diff-aa52ade045461d146cf02496d14c9371R22 . If you need any change around that I can do it but don't think this is going to be merged. |
We he the same cases with @mark-rushakoff I suppose that @mitchellh do not merge this pull request, because there are a lot of bugs. and so on. |
@mitchellh Please confirm that you will merge this pull request when we will have clean code and most bugs will be fixed. Thanks. |
I suggest such behaviour. Allocated IP on up: Should be allocated and associated. Associte existed elastic IP on up: Should be associated. What do you think about? |
Also I suppose we need to do re-factoring to move IP related code to separated action class from "run_instance". And reuse the same code with "start_instance". |
I actually do not see the purpose of destroying an elastic ip. I view the purpose of an elastic up being to give long term consistency. If yu do nt need a persistent ip, thn there is no need t allocate, associat, dissociate and destroy- just don't use elastic ip. Is there a use case where this is a valuable flow, giving benefit over just using a normal ec2 ip? ~Michael
|
@goruha - I am fine to refactor and include the changes you've suggested and am fine to merge with your code. My use case was/is to spawn off environments , run tests and bring them down after a couple of days, so the code I had initially written suited that perfectly but obviously there are other use cases and I am happy to contribute. |
@fairchild we use vagrant to up instances live develop server and run provision on it. |
First, thanks to the author and contributors for this great plugin. It has been a real lifesaver as I cycle through different AWS deployment strategies. That said a big, huge +1 for being able to specify a pre-allocated EIP. I have to admit I assumed that's how this feature would work from the start, and was momentarily confused when it didn't do what I thought it would. What is the benefit of the feature as it stands (dynamically-created EIP that changes with each "up/destroy" cycle)? I feel I could be missing something important. Thanks again... |
👍 |
I thought the use case for EIPs is that a domain name is pointed at an EIP that gets associated and dissociated with the instances that get spun up and down? |
👍 |
Agreed with @mathomas, I also assumed I could specified a pre-allocated Elastic IP, and this is apparently not the case. I'm sorry I can't contribute the feature. |
This should have been the elastic_ip solution to get merged. A production environment needs to be able to generate the same IP address and the other solution just doesn't provide that. |
Is this feature still under consideration? |
We needed support to add elastic ips to instances on AWS. I've added a couple of config params:
Please let me know your thoughts. I am ready to modify these to get my pull request accepted by such an awesome project!
Thanks