Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I roughly hack the method '__getattr' in file 'scheduler/multi.py' on a child zone like this:

def __getattr__(self, key):
    LOG.debug('############ Yo key: %s', key)
    if key == 'select':
        return getattr(self.drivers['compute'], key)
    if not key.startswith('schedule_'):
        raise AttributeError(key)
    method = key[len('schedule_'):]
    if method not in _METHOD_MAP:
        raise AttributeError(key)
    return getattr(self.drivers[_METHOD_MAP[method]], key)

And I can start VM in multi zone Cloud.