Ask Your Question
0

Multi zone configuration

asked 2011-11-04 15:05:33 -0500

ethuleau gravatar image

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.

edit retag flag offensive close merge delete

6 answers

Sort by ยป oldest newest most voted
0

answered 2011-11-04 15:26:42 -0500

ethuleau gravatar image

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.

edit flag offensive delete link more
0

answered 2011-11-04 15:36:30 -0500

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

Can you try the DistributedScheduler by itself?

--scheduler_driver=nova.scheduler.distributed_scheduler.DistributedScheduler

edit flag offensive delete link more
0

answered 2011-11-07 10:33:44 -0500

ethuleau gravatar image

Hi Sandy,

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

edit flag offensive delete link more
0

answered 2011-11-07 14:13:18 -0500

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

edit flag offensive delete link more
0

answered 2011-11-07 15:26:13 -0500

ethuleau gravatar image

Thanks Sandy Walsh, that solved my question.

edit flag offensive delete link more
0

answered 2011-11-07 16:04:08 -0500

ethuleau gravatar image

Open bug:

https://bugs.launchpad.net/nova/+bug/887164 (https://bugs.launchpad.net/nova/+bug/...)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-11-04 15:05:33 -0500

Seen: 36 times

Last updated: Nov 07 '11