Skip to content

Conversation

d3flex
Copy link
Contributor

@d3flex d3flex commented Aug 4, 2025

Just a small improvement in order to validate what is mount in the container as the wait_for_container_log confirms that it cannot find any keys but we do not know whether the configs which reads are as expected.

related poo: https://progress.opensuse.org/issues/186651

Just a small improvement in order to validate what is mount in the container
as the `wait_for_container_log` confirms that it cannot find any keys but we
do not know whether the configs which reads are as expected.

related poo: https://progress.opensuse.org/issues/186651

Signed-off-by: Ioannis Bonatakis <[email protected]>
@d3flex
Copy link
Contributor Author

d3flex commented Aug 4, 2025

image

Copy link
Contributor

@perlpunk perlpunk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so you're basically just checking whether the volume option in docker works correctly?

my $data_container_path = '/root/openQA/container/openqa_data/data.template/';
$confs{client_conf}{output} = script_output("cat $data_container_path$confs{client_conf}{path}");
$confs{worker_ini}{output} = script_output("cat $data_container_path$confs{worker_ini}{path}");

assert_script_run("docker run -d --network testing $volumes --name openqa_worker openqa_worker");
wait_for_container_log('openqa_worker', 'API key and secret are needed', 'docker');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why aren't you addressing this error message? If that's gone we would know config was ready and the connection works, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressing means? If you mean get a registred worker, that it would imply more changes, as it needs to be clear (at least to me) what is the intention. As I mentioned, I think the message (API key and secret are needed) here is the expected one.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now the worker test prepares a container and validates that it is not able to connect to a web UI.

If you're saying we should test both this, and the case of a successful connection I would say, yes, that makes sense.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we want to redesign the modules?
Does it mean that it will be better a multimachine test?

in any case this PR is just an additional check. it wasnt intented to change how things are now.

@d3flex
Copy link
Contributor Author

d3flex commented Aug 4, 2025

so you're basically just checking whether the volume option in docker works correctly?

Ensure that the API key and secret are needed is indeed because the absence of values for the keys.
At first, we thought that the problem was with the client.conf. I think with this, it will be more visible what is expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants