This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
"""Unit tests for EvacuationAssistant.""" | |
import ddt | |
import copy | |
import json | |
import mock | |
from evacuation_assistant import evacuation_assistant | |
import random |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Evacuation assistance script to assist in finding destinations for | |
evacuating instances that are in affinity or anti-affinity groups, | |
as a workaround for bug https://bugs.launchpad.net/bugs/1821755. | |
Authors: | |
- [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
This is a tool for recovering lost machine units in current model | |
Usage: | |
{0} model-name dest-dir | |
""" | |
# changes summary: | |
# added logic to prevent overwrite /var/lib/juju to avoid removing non-machine units |