Open Siythrun opened 3 weeks ago
the one thought I have is it might be because you flush handlers which I think one of the handlers would remove the log file. I'm wondering if we should tweak something to allow a playbook like this but I would have to think about it a bit.
I tested by removing the second handler flush but no dice, it seems like it's running the handlers twice after this step
- name: Notify RIPU in-place OS upgrade is done handler
ansible.builtin.assert:
that: true
quiet: true
changed_when: true
notify: RIPU in-place OS upgrade is done
Is this caused by this step triggering both the analysis import and the update import?
I face the same issue as well. Look like analysis and update role cannot be run in same playbook. Try to separate it.
something to try as well would be make it another play in the playbook vs a task, that might be all you need to do to make this work. let me know if that solves the issue.
any updates?
Haven't had the chance to run this all in 1 file as I have been away from my stack on leave, but I did test in separate playbooks, and it works fine, the core of my problem is wanting to run them as close together as possible as I thought I needed a passed analysis to run the update, but I didn't want to unmount my disks until I was about to run the update (to reduce as much downtime as possible)
turns out, I can add the following vars to enable it to bypass the errors in the initial analysis check_leapp_analysis_results: false leapp_known_inhibitors: []
I would imagine that running them as separate plays might work, but it would mean defining the vars for every play and defining the host in more than one place
I think the go here since they don't run is to just have 2 separate plays 1 to analysis and review to fix the issues then the actual upgrade after bypassing the results with the stance that they should be fixed now...its interesting that the upgrade since is needs an analysis to be run doesn't just run one instead.
Hi I am running the playbook with an analysis and update step combined but at the end of the upgrade I am getting
"Destination /var/log/ripu/ripu.log does not exist"
I was getting this is the analysis stage before seeing mention of needing to flush Handlers and use tags I have started doing this however now once the update is complete I get the error at the end and it won't move on to my post steps it seems like it slups up the ripu log before adding the end time
Is this something im doing wrong or an issue with the adding of end time