Closed thel0 closed 1 month ago
With regard to the first issue, you are correct that the "Check for inhibitors" task failed because there are no flags in your leapp-report.json file. That would seem to ultimately be an a leapp issue because every entry in a leapp-report.json normally includes a flags object even when there are no flags and it's just an empty list. I'm curious to see an example leapp-report.json and also leapp-preupgrade.log from one of these failures.
For the second issue, I'm surprised that the the job didn't fail at the "Leapp preupgrade report" task. That task uses failed_when: "'report has been generated' not in leapp.stdout"
rather than checking rc
, so maybe there's an issue there. Seeing both the ripu.log and the job log from the ansible play would be helpful in diagnosing this one further.
Please attach those files and let's see what we can figure out. Thanks!
It sounds like the no flags might have been when the file was empty and if that is the case we want it to fail, just maybe with a better error message
It sounds like the no flags might have been when the file was empty and if that is the case we want it to fail, just maybe with a better error message
Yes you are right. I resync my extras repository and i try with last leapp version (leapp 0.17) and all seem to be ok. With no inhibitor, the flags tag is defined in leapp file
thanks
i can close this issue, old version of leapp was my problem . thanks
Hello,
it's my first issue :) I have 2 bug with infraleapp. This is the first
infra.leapp
1.3.0 and 1.3.1
Ansible version:
ansible [core 2.16.6] config file = /home/thel/git/ansible/leapplab/ansible.cfg configured module search path = ['/home/thel/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /home/thel/ansible/lib/python3.11/site-packages/ansible ansible collection location = /home/thel/.ansible/collections:/usr/share/ansible/collections executable location = /home/thel/ansible/bin/ansible python version = 3.11.2 (main, May 2 2024, 11:59:08) [GCC 12.2.0] (/home/thel/ansible/bin/python) jinja version = 3.1.4 libyaml = True
first
The analyse playbook failed on
if I look for the flags tag in the file, it doesn't find any so item.flags is undefined. I think that's why it failed but i'm not an ansible expert :)
second
sometimes, it happened to me that a python error was displayed in the ripu.log file but the analysis playbook continued and generated the leap-report.txt/json file with a size of 0. It ended with success and "No inhibitor found" which was wrong . It would be good to test the size of the file because there is not necessary to looking for inhibitors if the file has a size of 0, because it will never find any
Sorry, i dont keep log for this problem. The next time, i will keep it