Avoid race condition during CI for alma9
For Alma9
kubernetes tests we have this log message:
Default principal: ctaadmin1@TEST.CTA
Valid starting Expires Service principal
03/07/24 01:39:13 03/08/24 01:39:13 krbtgt/TEST.CTA@TEST.CTA
Configuring cta SSS for ctafrontend access from ctaeos..............chown: invalid user: 'cta'
OK
Waiting for EOS to be configured..................OK
Setting workflows in namespace cta-admin-7015044git71a0cbcc-r378 pod ctaeos:
eos attr set sys.workflow.sync::create.default="proto" /eos/ctaeos/proc/cta/workflow
This message, chown: invalid user: 'cta'
, is thrown because ctafronend
didn't have time to install all the packages, specifically cta-common
.
We should check the user cta
is being created before proceed to use chown cta
in ctafronend
.