I've noticed an error happens at the end of test that uses beakerlib when running on container. The test does not exit with error, but checking the test log there is the following message:
:: [ 10:05:48 ] :: [ LOG ] :: JOURNAL XML: /var/tmp/beakerlib-LEWN6IR/journal.xml :: [ 10:05:48 ] :: [ LOG ] :: JOURNAL XML: /var/tmp/beakerlib-LEWN6IR/journal.xml :: [ 10:05:48 ] :: [ LOG ] :: JOURNAL TXT: /var/tmp/beakerlib-LEWN6IR/journal.txt :: [ 10:05:48 ] :: [ LOG ] :: JOURNAL TXT: /var/tmp/beakerlib-LEWN6IR/journal.txt Traceback (most recent call last): File "/usr/local/bin/beakerlib-journalling", line 29, in <module> from lxml import etree ImportError: No module named lxml
We probably need to make sure python2-lxml is installed on container before executing beakerlib tests.
I saw it when running the tests got gdbm: https://upstreamfirst.fedorainfracloud.org/gdbm
The command line I used to run the test TEST_DEBUG=1 ANSIBLE_INVENTORY=$(test -e inventory && echo inventory || echo /usr/share/ansible/inventory) TEST_SUBJECTS=docker:docker.io/library/fedora:rawhide ansible-playbook --tags=container tests.yml
TEST_DEBUG=1 ANSIBLE_INVENTORY=$(test -e inventory && echo inventory || echo /usr/share/ansible/inventory) TEST_SUBJECTS=docker:docker.io/library/fedora:rawhide ansible-playbook --tags=container tests.yml
Executed from gdbm directory.
Once the test finishes login to the container and check the logs. Eg:
docker exec -it e66bc4347a648f49234b075135d77946778dd2fb73e056311b2b28bdb519ac45 /bin/bash [root@e66bc4347a64 /]# tail /tmp/artifacts/test.testsuite.log :: [ 10:05:48 ] :: [ LOG ] :: Phases: 3 good, 0 bad :: [ 10:05:48 ] :: [ PASS ] :: RESULT: testsuite :: [ 10:05:48 ] :: [ LOG ] :: JOURNAL XML: /var/tmp/beakerlib-LEWN6IR/journal.xml :: [ 10:05:48 ] :: [ LOG ] :: JOURNAL XML: /var/tmp/beakerlib-LEWN6IR/journal.xml :: [ 10:05:48 ] :: [ LOG ] :: JOURNAL TXT: /var/tmp/beakerlib-LEWN6IR/journal.txt :: [ 10:05:48 ] :: [ LOG ] :: JOURNAL TXT: /var/tmp/beakerlib-LEWN6IR/journal.txt Traceback (most recent call last): File "/usr/local/bin/beakerlib-journalling", line 29, in <module> from lxml import etree ImportError: No module named lxml
Metadata Update from @tflink: - Issue assigned to tflink
This should be fixed now that PR#104 has been merged. Please re-open if it continues to be an issue.
Metadata Update from @tflink: - Issue close_status updated to: SOLVED - Issue status updated to: Closed (was: Open)