Skip to content

Instantly share code, notes, and snippets.

View alcamie101's full-sized avatar

Chris Long alcamie101

  • ViiMed
  • Nth Sutton NH
  • 08:35 (UTC -04:00)
View GitHub Profile
@alcamie101
alcamie101 / nova-compute-maintenance.py
Created June 11, 2016 08:27 — forked from mdbooth/nova-compute-maintenance.py
Put a nova compute node into 'maintenance mode'. Disable its service, and attempt to migrate all instances on it to other nodes.
#!/usr/bin/env python
import argparse
from collections import defaultdict
import os
import sys
import time
from novaclient import client
from novaclient import exceptions