action #4860
closed
action #3136: support remote workers
upload_logs needs to map openqa.suse.de only on local hosts
Added by coolo about 10 years ago.
Updated about 10 years ago.
Category:
Feature requests
Description
upload_logs does a pretty nasty trick to map $OPENQA_HOSTNAME within the VM to a local IP. this only works if the worker runs locally. I guess we should be able to get away without this mapping
One question, what about the option to run tests in constrained network environment? Like BS workers?
The similar problem is when using TAP devices instead qemu user network, so there should be a note in docs that administrator is to provide DNS.
BS workers have no network at all - and I think it's pretty boring to test functionality without network. But the problem here is that we try to work around DNS and that fails, so requiring DNS is ok. The problem is that it needs to work within VM - even at times when network setup failed. That was the idea behind it.
Apart cgi-proxy or tiny http server ideas, what about using libguestfs?
e.g. standardize that all logs should end up in /var/tmp/openqa/logs (in the VM). Then, after tests finish, they are moved to testresults directory on worker directly from VM disk (e.g. by using guestfs).
this only works for cases where yast already installed. And you need to know a lot about the disk setup the test did - i.e. RAID,LVM,cryptlvm, ...
I think our easiest solution still is relying on DNS - and only if we get a real problem with it switch back to localhost and proxying.
even the DNS solution is problematic. The scheduler allows upload_log route only for "allowed_hosts". This would be yet another thing to configure to add a new remote worker - not good ;(
So we need to introduce a shared secret.
so I had a chat with Bernhard about it and we came to the conclusion that having the uploadlogs in openqa is not necessary. So to also make os-autoinst more self contained I'll implement a HTTP interface in os-autoinst (reusing issue #1308) to store the logs in the pool and the worker can then copy it together with the rest.
- Category set to 132
- Status changed from New to Resolved
Also available in: Atom
PDF