-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors in Github Action Tests #873
Comments
Errors were found when taking action on services within the Docker images where the test is installed.
Various problems that may have occurred with processes that use the same Docker images and are having the same problems were reviewed. In the first instance I did not find information and it was extremely necessary to carry out actions with services since with this we can start the complete Wazuh stack that we are installing. After a long search I found a note from the creator of the images in a blog: As a last measure, creating a Centos own image to carry out the tests was analyzed, a first test was made by creating a Dockerfile with the base image that we are using and adding a systemctl file that I looked for in a repository of a user who had the same problem as we have: A first test was carried out with the new image created and it responds to the systemctl command, but a different error was generated:
The investigation continues with this image. |
The found systemctl file worked but with some problems, so I'm still looking for a better version of it, in addition to reviewing some additional parameters that can be added to be able to use systemd without problems. It was possible to install the necessary tools, but when pasting the indexer route in the filebeat template, the following result was obtained
The investigation continues |
Some changes were added in the Also, the runner image was changed from |
We have executed several tests with @vcerenu and apparently we have found a solution. Changes:
|
The provedure was tested with the automatic GH Actions tests and also with the Demo deployment. Both cases succeeded. |
Distributed test keeps failing. The parameter
Added the
It was revised that there are no files inside the Reviewed other Fixed within a repository (https://github.com/gdraheim/docker-systemctl-images) that modify the systemctl binary, so that it works correctly. A new image was created based on the image we used previously with the following FROM geerlingguy/docker-centos7-ansible
# Install systemd
COPY files/docker/systemctl.py /usr/bin/systemctl
RUN mkdir /run/wazuh-indexer && chmod 777 /run/wazuh-indexer
VOLUME [ "/sys/fs/cgroup" ]
CMD["/usr/bin/systemctl"] With this image we were able to start the service, but for no apparent reason it does not show status, so it is impossible to know if the service is running correctly. |
We decided to try to configure an EC2 instance to execute the tests instead of Docker containers.
Now I need to develop the test using that instance. Once this is working, we will need to define what tests and Distros we will use. |
Tasks performed:
|
The EC2 AL2 AMI was created along with the workflows for that OS and tested. It works as expected. |
In the 4.4 branch, the tests performed when creating a Pull Request finish with the error:
It must be verified because the error is generated when trying to start the Wazuh manager service.
The text was updated successfully, but these errors were encountered: