Project

General

Profile

Revision 676

Fixed: Haizea would crash when fetching nodes for which OpenNebula had not yet collected monitoring information. This fix also has the pleasant side effect of allowing Haizea to detect new hosts added in OpenNebula without having to restart Haizea.

View differences:

resourcepool.py
102 102
        verify_resume_action.from_rr(rr)
103 103
        self.vm.verify_resume(verify_resume_action)    
104 104
    
105
    def refresh_nodes(self):
106
        new_nodes = self.info.refresh()
107
        for node in new_nodes:
108
            self.nodes[node.id] = node
109
        return new_nodes        
110
    
105 111
    def get_nodes(self):
106 112
        return self.nodes.values()
107 113
    

Also available in: Unified diff