Currently, when try to get the ip address as mutil threads wait to login to the guest, all threads will call update_db, which need to lock the db file, this will raise error for lots of the threads.
As all these threads just want to get the ip address of the guest, These errors should not happen, and it will never change the db_file, So, no need to call func update_db. By the way, self._INITIALIZED will be set to true after the network interface be init. Signed-off-by: Mike Qiu <[email protected]> --- virttest/utils_misc.py | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/virttest/utils_misc.py b/virttest/utils_misc.py index d37cf87..b83b7cd 100644 --- a/virttest/utils_misc.py +++ b/virttest/utils_misc.py @@ -1004,9 +1004,6 @@ class DbNet(VMNet): def __getitem__(self, index_or_name): # container class attributes are read-only, hook - # update_db here is only alternative - if self._INITIALIZED: - self.update_db() return super(DbNet, self).__getitem__(index_or_name) -- 1.7.7.6 _______________________________________________ Autotest-kernel mailing list [email protected] https://www.redhat.com/mailman/listinfo/autotest-kernel
