def start(self): # Launch the server that will act as a proxy between the VM's and Nova. proxy = metadata_server.UnixDomainMetadataProxy(self.conf) proxy.run() # Open the connection to OVS database self.ovs_idl = ovsdb.MetadataAgentOvsIdl().start() self.chassis = self._get_own_chassis_name() # Open the connection to OVN SB database. self.sb_idl = ovsdb.MetadataAgentOvnSbIdl( [PortBindingChassisEvent(self), ChassisCreateEvent(self)]).start() # Do the initial sync. self.sync() proxy.wait()
def start(self): # Launch the server that will act as a proxy between the VM's and Nova. proxy = metadata_server.UnixDomainMetadataProxy(self.conf) proxy.run() # Open the connection to OVS database self.ovs_idl = ovsdb.MetadataAgentOvsIdl().start() self._load_config() # Open the connection to OVN SB database. self.sb_idl = ovsdb.MetadataAgentOvnSbIdl( [PortBindingChassisEvent(self), ChassisCreateEvent(self), SbGlobalUpdateEvent(self)]).start() # Do the initial sync. self.sync() # Register the agent with its corresponding Chassis self.register_metadata_agent() proxy.wait()