-
Notifications
You must be signed in to change notification settings - Fork 290
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
[FLOC-3983] Acceptance tests prep for node shutdown #2532
base: master
Are you sure you want to change the base?
[FLOC-3983] Acceptance tests prep for node shutdown #2532
Conversation
:returns: A mapping of ``unicode`` compute instance IDs | ||
(compatible with those returned by | ||
``IBlockDeviceAPI.compute_instance_id``) to IPs of those | ||
nodes, also as unicode.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: extra .
also
``unicode``
Good stuff, looks like a nice way to work around the problem. Although, it seems that the loopback tests are currently failing with this change :( I'd really like to see a slightly better interface for listing the live nodes (specifically returning something that is not a map from compute_instance_id to list of ip addresses). I would be much more happy about maintaining something that looked like that long term. For now I think I'm going to ask for a second review after things are patched up. Should be a quick second review though, just to verify the fix for the presently failing loopback acceptance tests and look at the new interface. |
…ep-for-node-shutdown-FLOC-3983
…ep-for-node-shutdown-FLOC-3983
The tests are failing because loopback backend doesn't support |
When a node is shutdown and later started its public IP may have changed. We want to have an acceptance test that shuts down a node, to test moving datasets off dead nodes. We can therefore not rely on a fixed public IP for all tests.
Did so by trusting Flocker's reported IPs for nodes by default. However, if the backend provides
ICloudAPI
we use that to figure out public IP for each node.