-
Notifications
You must be signed in to change notification settings - Fork 93
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
Hosted Engine Deployment fails when 6900/tcp is already added to Firewalld #283
Comments
Bug-Id: oVirt#283 Signed-off-by: parthdhanjal <[email protected]>
Hi @tim427, can you please share your ansible version? found a similar issue - ansible/ansible#74800 |
I do not understand something: Is it that we always (or for a long time) had 6900 already open, under certain conditions, and the failure started to happen only recently because ansible firewalld module now started failing (#74800)? If so, do we know what/who has it "already open" and under which conditions? Perhaps the correct fix is to simply not add it in hosted-engine, not to remove and then add. That said, there is obviously a deeper issue here: HE deploy uses 6900 temporarily during deployment, for providing access to the internal engine. If something else also uses it for some other function, we risk a real conflict. Perhaps we can check if it's in use (or in firewalld), and if so, use some other port. |
AFAIK gluster uses this port, the failure occurs in HC deployment with (my guess) ansible = 2.9.21. |
Are we sure this is ansible version issue? Or something has changed in firewalld in EL8.4/CS8? |
Not sure yet, I need to check. |
I think you're absolutely right! This only happens after the GlusterFS deployment. A fresh install of CentOS followed by a Hosted Engine setup with NFS, doesn't face this problem. |
$ ansible-playbook a.yml PLAY [test] ********************************************************************************************************************************************************************************************************************************** TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************** TASK [Open a port on firewalld] ************************************************************************************************************************************************************************************************************** PLAY RECAP *********************************************************************************************************************************************************************************************************************************** $ sudo firewall-cmd --zone=public --add-port=6900/tcp |
$ ansible-playbook a.yml -vvv TASK [Open a port on firewalld] ************************************************************************************************************************************************************************************************************** |
I see the same issue after downgrading the ansible version from ansible-2.9.21 to ansible-2.9.18. |
Seems like the issue is when trying to open a port using ansible and firewalld-0.9.3-1 version |
I am working on a fix (the way we get information about ports from firewall) in ansible.posix repo |
@tim427 @arachmani @michalskrivanek @mwperina Could you please check if ansible-collections/ansible.posix#199 works for you and let me know? Thanks |
@Akasurde, ansible-collections/ansible.posix#199 works fine for me, thanks! |
Closing it as this was fixed in - ansible-collections/ansible.posix#179 |
SUMMARY
Hosted Engine Deployment fails when 6900/tcp is already added to Firewalld
COMPONENT NAME
05_add_host.yml
->Open a port on firewalld
ovirt-ansible-collection/roles/hosted_engine_setup/tasks/bootstrap_local_vm/05_add_host.yml
Line 12 in b506a12
STEPS TO REPRODUCE
EXPECTED RESULTS
Successful deployment of a Hosted Engine
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: