-
Notifications
You must be signed in to change notification settings - Fork 138
Support masquerading on the libvirt firewall zone. #3431
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
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
fc542cd to
cdd6a4f
Compare
|
Could you clean up the MR so we can remove do-not-merge/contains-merge-commits tag and proceed with the review. |
cdd6a4f to
e965569
Compare
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
I don't think this will solve the problem, masquerading only works for connection initiated behind the interface that masqurades traffic. In this case the BMC needs to connect from the outside to the OCP nodes, so the OCP nodes must be bridged onto the physical network and have IP addresses from the physical network with no masquerading. |
|
PTAL |
e965569 to
46a1bcd
Compare
@hjensas but this made the curl command working on ocp master nodes, where it wasn't previously working. PS. in the setup we were debugging, "OCP nodes must be bridged onto the physical network and have IP addresses from the physical network" that was exactly the case. Contoller-0 VM did work just fine w/o masquarading. But OCP masters, while having the same bridging config, were not behaving the same way, until we've added that libvirt zone masquerading |
Defaults to False. May be useful in hybrid setups, where a full routing solution is not needed, and outbound only traffic is sufficient Signed-off-by: Bohdan Dobrelia <[email protected]>
46a1bcd to
28b26c8
Compare
I have adjusted the commit msg, thanks! |
| state: enabled | ||
|
|
||
| - name: Enable masquerading for libvirt traffic | ||
| when: cifmw_libvirt_manager_firewalld_libvirt_zone_masquerade | default(false) | bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to set default because it is in defaults/main.yml
| state: enabled | ||
|
|
||
| - name: Enable masquerading for libvirt traffic | ||
| when: cifmw_libvirt_manager_firewalld_libvirt_zone_masquerade | default(false) | bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to set default because it is in defaults/main.yml
|
with a full routing solution, there is no longer need in this a half-measure |
Defaults to False. May be useful in hybrid setups, where a full
routing solution is not needed, and outbound only traffic is sufficient
JIRA: OSPRH-18909