Issue metadata
Sign in to add a comment
|
AttributeError: 'localhost_host' object has no attribute 'verify_moblab_services' |
||||||||||||||||||||
Issue descriptionmoblab-generic-vm-paladin failed with this error in autotest moblab code in the logs. None of the CLs pulled in looks like an obvious culprit to me, FWIW. You can find the error and sometimes whole traceback in many of the logs. I've linked directly to two of them, and copied snippets from them. I'm marking this as P1 in case this continues to be a CQ blocker, and tentatively assigning to guocb@ as current infra deputy. https://cros-goldeneye.corp.google.com/chromeos/healthmonitoring/buildDetails?buildbucketId=8927220848271632096 https://pantheon.corp.google.com/storage/browser/chromeos-image-archive/moblab-generic-vm-paladin/R73-11398.0.0-rc1/moblab_vm_test_results https://00e9e64bac165c506ac78956da681ace2c2f66d88281efb0d9-apidata.googleusercontent.com/download/storage/v1/b/chromeos-image-archive/o/moblab-generic-vm-paladin%2FR73-11398.0.0-rc1%2Fmoblab_vm_test_results%2Fresults-1-moblab_DummyServerNoSspSuite%2Fmoblab_RunSuite%2Fdebug%2Fmoblab_RunSuite.INFO?qk=AD5uMEul0bFssSNE0gSm4QQJoG6JZw5SDBDJ6Kek5BlJdxMzz2T2Waq1SHJEnyYLerND0Mrm8JoT44DtMczaq8GiD1EbwyvE3Io36eDI7cMcWooQzSlycvdFi0h8j6Giq8Ssi6r60LWXCGBwlCKyjy9hTla458hQlCBniBM8ybrfHkZFV4t2JMfanAu-szHpDb_O1jj2rJqbH_DrMruU3H-G-hrhbkWgC5bRhkBysXobwolt9bmqUAm9Bn-br_024270rRASffmBWL_8VHbKveBbB8j_M3D3hyJC9_L8KHBVRsF0DLpRFP13D-9C0ACj5P7SvjKqk-M2CPc-mukLaF5_YKMNIipo10KkhQD_6u9v3uJepN7moKugSvA3rDzaBRwiLmD6o_CF9ka2uBWUkPZGAc_K1VpeLArdmmwxa7t2kUJiqlY8HLlcyQqE3FLSiUdxEkTn_5DPywl7sYz-kihF62bTOkiUW9jM8KnmsNllWClYQnadCm01hzK8CIg_MIfzReKnr7TK30D3x6oOPiMRgHDpHL_lygLNWWJbvaIx2HYMWgtJpUkDRgwvQinAg0fai6DiIu2Hd4eOD4lGAzlc1kl5bqtLnI7vtxo0LClosCxm58WkcApBrs8Gato5Rb8LnCGSOKU9pHyNYkiyvb0VZnAR316FOd3rrs267Ydx5nR4Lw1_L5JAlBtuv1TEpjuRHZi8AcMXyicQwmOdWQZt0z5kuBTTsXVRmiu-ZtVW1zzxXQ6tG0gP9bHDWRJA84Bb2uqvHLkaOaWEKVCN6zgK1gCFccj067cBQkR0KiC9tVhJ4BoIIN5txc9-yWGlUjhT1I8ltMJrMFW5Xw27-OvPBDHOW3nnWc0snLtOZsOU3Wxhv7ezp9hgx3BTOmn1KkrGEZ0DPwxDNLM4HtBMNCkSNCXiRhBMoPDeZlJxVAiYKA-K4O78ShBSkifLolYEolG5RHx-yTfMxFifkQN9_8B2sju-asHi8Q 12/13 15:07:42.139 WARNI| test:0606| The test failed with the following exception Traceback (most recent call last): File "/build/moblab-generic-vm/usr/local/build/autotest/client/common_lib/test.py", line 567, in _exec _cherry_pick_call(self.initialize, *args, **dargs) File "/build/moblab-generic-vm/usr/local/build/autotest/client/common_lib/test.py", line 715, in _cherry_pick_call return func(*p_args, **p_dargs) File "/build/moblab-generic-vm/usr/local/build/autotest/server/cros/moblab_test.py", line 49, in initialize self._host.verify_moblab_services( AttributeError: 'localhost_host' object has no attribute 'verify_moblab_services' https://00e9e64bac51444bdbfd9b3257d90ae5a114abf689e7a8d2ee-apidata.googleusercontent.com/download/storage/v1/b/chromeos-image-archive/o/moblab-generic-vm-paladin%2FR73-11398.0.0-rc1%2Fmoblab_vm_test_results%2Ftest_report.log?qk=AD5uMEv6VKvnuzAWTydPi1LFk-N3PcQaN-2bvU1C1jS7KQa5_CJfMIXkJ1eQS1lAcCyHDKCBoZb_AL3EUjJ3GNOobgqFuACbydPi2Z3RO42LOj6KFTXmC06SF1P7N6AwWmEHV09y3qIBcYEAQz-kIw5Nb5N0xzppLBBSiXIzaVu3l1pk8qMtoxqaJ_JoCpv0pdjAFA4E3Kni71nKuxlKHLTKMBq3pSKskE391ZCl28KzsEPWUuQLbZ1hLekAowEbRiW6Em14h2ouCR61tdupAQKjboJIOt4WJ0LT2Zi_D0_FMLrVHfzAV9uF_hzwBNCHZHqKG4YqbzOKhTPXVo1APGGR47L7EM4411PMI5miRpRnl-cczUO9JUTsM-GUm2_nfHwaEB0h9xENtQkiNlV0QcvwtXuFn77gIwWxgjovu00JRKbIjpGmgeuxCW45w7pfJssNpIW7ZS4y8Crsg4kYrYcl21kkvgga7JXLlPgYX-68GvV_LMaf7Cuj9GAP7xIax2nxUWaLvius5NdagC44gr-U9B6fOlBfvbjPcT9q3IR2Y8JR9GNLG7FBionPYYRmd4qGp0qqce8imJzRAB6li9Qib6S44nyk9WAHtaLFHffUJ9DpbljMw_HUqs3DxMsroEUOtkFsupc_yBjE2_x82aCqXWXXtiB6BaS01DX785mi2BazzsCFYnDv6Fj-vPLy0WbRKiIIvtRT0d8kat406OusyCWZbND4SfZmXk44Mu4yvgQsYsSpaPH4tXIaYfPfzByIkxZ6Eut-z-ANHJucIn5JsJt5YJfyMsr7DkHHfEzXnKtP8qwC6dyqL0lwpW2FUQ6DNxITVEgqQklI03HuSmghrambAm1n15rGnn24EbkipcGhBdVVDbI ----------------------------------------------------------------------------------------------- /tmp/cbuildboth0GGrG/results/results-1-moblab_DummyServerNoSspSuite [ FAILED ] /tmp/cbuildboth0GGrG/results/results-1-moblab_DummyServerNoSspSuite ERROR: Unhandled AttributeError: 'localhost_host' object has no attribute 'verify_moblab_services' /tmp/cbuildboth0GGrG/results/results-1-moblab_DummyServerNoSspSuite/moblab_RunSuite [ FAILED ] /tmp/cbuildboth0GGrG/results/results-1-moblab_DummyServerNoSspSuite/moblab_RunSuite ERROR: Unhandled AttributeError: 'localhost_host' object has no attribute 'verify_moblab_services' ----------------------------------------------------------------------------------------------- Total PASS: 0/2 (0%)
,
Dec 14
This is failing consistently. Please treat as P0.
,
Dec 14
,
Dec 14
Looks like a test failure to me?
,
Dec 14
It looks like a bug in the test. If this isn't the right component and/or you're not the right assignee, please help me find the right owner for this.
,
Dec 14
Already assigned to akeshet :)
,
Dec 14
The stacktrace looks like it is masking some other root failure. -> haddowk any insight on moblab failure?
,
Dec 14
,
Dec 14
Nothing recently has been checked in for moblab ( that I am aware of ) Autotest is creating another host type for the test, not moblab_host - I need to trace back to how that decision is make in the code. If something in lsb-release has changed it might cause that.
,
Dec 14
My guess is the the VM is not booting correctly, I see this log 12/13 15:07:15.686 INFO | test_runner_utils:0259| autoserv| Failed to verify connectivity to host. Skipping host auto detection logic. https://cs.corp.google.com/chromeos_public/src/third_party/autotest/files/server/hosts/factory.py?rcl=43ff6a9e662219e91c474c279cb931971ff7f978&l=219 So it is just assigning it a default host type rather than a moblab host
,
Dec 17
So I can bring up the VM locally - moblab seems to be booting correctly, there are some issues with provisioning the betty DUT but that is not what this error is about. Honestly I think this is a generic VM issue - it just happens that the default host works for the other VM's not moblab, I have not checked for the SSH error in other VM runs though. At this point I see it as an infra problem : 12/13 15:07:15.686 INFO | test_runner_utils:0259| autoserv| Failed to verify connectivity to host. Skipping host auto detection However I will keep working on the DUT provisioning inside the moblab VM
,
Dec 17
Hi, anything could be done from infra side? How can we find why "VM is not booting correctly"?
,
Dec 17
Just to be clear the VM is booting correctly when copied onto my workstation. Since it works locally ( exact same VM image ) it has to be something environmental, like the VM takes longer to boot in the lab infrastructure, any suggestion on how to test / debug that ?
,
Dec 17
Re: #11-#12 - It looks like that INFO line comes from a subprocess which originally outputs it as a WARNING: https://cs.corp.google.com/chromeos_public/src/third_party/autotest/files/server/hosts/factory.py?rcl=5a0ec3144726f22695024865b42e209726067396&l=219-220 Since host auto detection seems to be essential, how about we make the test hard fail at that point, to not obfuscate the problem? Note the TODO from pprabhu@ to make exactly that change. If we stop trying to continue running after such a failure, the error.AutoservRunError traceback might provide some useful information for troubleshooting, or at least get us closer to finding the original source of the error. Can anyone on this bug craft and test a CL for that? I do see the comment saying "We need to make sure stopping here does not block repair flows." I'm not very familiar with lab DUT repair flows. Is anyone here familiar enough with the lab DUT repair process to comment on whether that would really be a problem? If that will be a problem, perhaps we can stop relying on auto-detection in this case by passing in the correct host class? (For that matter, how about doing that always? Are there any scenarios where we don't already know what kind of DUT / VM we are running tests against?)
,
Dec 18
Taking myself off this bug. For the moment the test is back to green, leaving open in case someone want to take up the suggestions in #14 which I think is very reasonable. I do not think at this point there is anything moblab specific breaking, it is just that the default value in host detection works for all other VM's but not moblab. |
|||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||
Comment 1 by fukino@chromium.org
, Dec 14