Duplicate public addresses
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Eucalyptus |
Fix Released
|
Critical
|
chris grzegorczyk |
Bug Description
We have found occasions where ec2din reports 2 instances with the same public IP address, but only one is accessible.
During investigations we were lucky enough to be able to reproduce this and capture the log files. This led us to believe that there is a race condition in AddressManager.
If, during the very early stages of ec2run, another request is received by the cloud controller for DescribeAddresses, an Address whose instanceId is set to "available" will be unassigned by the "housekeeping" code in AddressManager.
This issue leads to ec2din reporting incorrectly and an "orphaned" instance on the vm-container. The database and iptables appear to be correct though.
We suggest a couple of options for resolution:
1. Remove the "housekeeping" code from DescribeAddresses.
2. Amend the "housekeeping" code to ignore Addresses that are isPending().
Changed in eucalyptus: | |
status: | Confirmed → Fix Committed |
Changed in eucalyptus: | |
status: | Fix Committed → Fix Released |
Indeed, this is a regression. Solution #2 which you suggest should be done.