~soren/nova/apport-integration

« back to all changes in this revision

Viewing changes to bin/nova-instancemonitor

Make sure all workers look for their flagfile in the same spot.

Stop nova-manage from using /etc/nova/nova-manage.conf as its default
flagfile. This made made development awkward since everything but
nova-manage would use defaults for everything, but nova-manage would use
whatever config was in /etc/nova/nova-manage.conf which was likely put
there by a package of some sort.

This way, we can leave it to the packagers to set this default to
something else.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
if os.path.exists(os.path.join(possible_topdir, 'nova', '__init__.py')):
35
35
    sys.path.insert(0, possible_topdir)
36
36
 
 
37
from nova import utils
37
38
from nova import twistd
38
39
from nova.compute import monitor
39
40
 
44
45
    twistd.serve(__file__)
45
46
 
46
47
if __name__ == '__builtin__':
 
48
    utils.default_flagfile()
47
49
    logging.warn('Starting instance monitor')
48
50
    # pylint: disable-msg=C0103
49
51
    monitor = monitor.InstanceMonitor()