M0ses / kanku

Kanku - Bridging the gap between Open-Build-Service and DevOPS
http://m0ses.github.io/kanku/
GNU General Public License v3.0
10 stars 6 forks source link

Timeout when cache=unsafe #45

Closed dmach closed 2 years ago

dmach commented 2 years ago

The unsafe cache mode seems to be breaking stuff:

[2022/05/24 10:17:43][DEBUG](13230) EXPECT STARTING COMMAND: 'reboot' (timeout: -1)
[2022/05/24 10:17:43][DEBUG](13230) Timeout less then 0 - fire and forget mode
[2022/05/24 10:17:43][DEBUG](13230) Waiting for console for 600sec!
reboot
[2022/05/24 10:17:45][DEBUG](13230) Waiting 300 for login: prompt
[2022/05/24 10:22:46][ERROR](13230) No login prompt seen within 300 sec!

[2022/05/24 10:22:46][DEBUG](13230) setting job state to failed: '{"error_message":"No login prompt seen within 300 sec!\n"} at /usr/lib/kanku/lib/Kanku/Dispatch/Local.pm line 86.
'
[2022/05/24 10:22:46][DEBUG](13230) Finished job: kanku-job (113) with state 'failed'
[2022/05/24 10:22:46][ERROR](13230) Failed to create domain: obs-server
[2022/05/24 10:22:46][ERROR](13230) ipaddress   : 192.168.36.87

Please consider reverting d716902aa0fa47309ee341d504a25d1fa96bea87, maybe even 45ab770dc30d0641092de3b5efd4730f22e4dd95.

My VM's image type is qcow2. I have tested this several times with the original code and with modified /usr/lib/kanku/lib/Kanku/Util/VM.pm with cache='unsafe' removed and it's 100% reproducible on my machine.