Multi zone configuration

Asked by Édouard Thuleau

Nova trunk rev 11331 on Ubuntu Natty

I try to set up a multi region cloud but i get an error when I try to start a instance.

The parent zone send a 'select' request to the child API zone and the child scheduler fails with 'AttributeError: select': http://paste.openstack.org/show/3076/

I check file 'nova/scheduler/multi.py', the method '__get_attr__' try to filter the request to identify which driver must be use but this method doesn't filter 'select' request and raises an AttributeError exception.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Sandy Walsh
Solved:
Last query:
Last reply:
Revision history for this message
Édouard Thuleau (ethuleau) said :
#1

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.

Revision history for this message
Sandy Walsh (sandy-walsh) said :
#2

Hmm, haven't tried the DistributedScheduler via the MultiScheduler.

Can you try the DistributedScheduler by itself?

--scheduler_driver=nova.scheduler.distributed_scheduler.DistributedScheduler

Revision history for this message
Édouard Thuleau (ethuleau) said :
#3

Hi Sandy,

Yes, it works with if I use the DistributedScheduler itself.
Should I open a bug for the MultiScheduler ?

Revision history for this message
Best Sandy Walsh (sandy-walsh) said :
#4

Yes, I think that'd be best. Hopefully someone can get at it soon.

Revision history for this message
Édouard Thuleau (ethuleau) said :
#5

Thanks Sandy Walsh, that solved my question.

Revision history for this message
Édouard Thuleau (ethuleau) said :
#6