-
Notifications
You must be signed in to change notification settings - Fork 285
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
Adapt firewall-port
to IPv6
#6099
base: master
Are you sure you want to change the base?
Conversation
2b3f548
to
0291690
Compare
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.
This generally looks good; would like @rosslagerwall to take a look at the handling o IP tables.
ocaml/xapi/helpers.ml
Outdated
) | ||
) | ||
in | ||
match pifs with [] -> raise Not_found | pif :: _ -> pif |
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.
I am not comfortable with raising Not_found
. This function should return an option and force the caller to handle this or raise a meaningful error here.
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.
List.nth_opt pifs 0
would do this
@benjamreis any comments on our comments? |
Hi yeah sorry - I was trying to apply your comments and tst them locally but I'm hitting wall after wall. I'll rework the shell option handling but i hav a lot on my plate so I'm often interrupted during my development. I'll try to rcommit something asap |
What if instead getting the management address type from th XAPI I'd read in |
9c0f446
to
962e8ce
Compare
I don't understand the failure of the tests. Looks unrelated to my changes - should I rebase on a newer master? 🤔 |
Yes, always stay on top of master |
Signed-off-by: Benjamin Reis <[email protected]>
962e8ce
to
c9cec23
Compare
Signed-off-by: Benjamin Reis <[email protected]>
c9cec23
to
cc4c324
Compare
👋, it is really strange. I tried to understand the issue and I noticed something that might help pinpoint the issue:
Using strace, I observed that with your patch, the test Without your patch, these file accesses don’t occur during the test (still spotted using strace). This suggests that something related to the inventory lookup might not be mocked correctly in the test environment. I don't understand enough how the tests are setup and why the lookup is causing this behavior but I hope my observations help clarify the issue or evoke some ideas from someone more familiar with the test setup! Let me know if there is anything I can do to test further as I can run tests locally now. |
It seems I'm missing a mock of the inventory file somewher for the tests but for the life of me I can't find anything... any leads would be very welcomed 😇 Beside that we noticed that the rules in iptables are different from the ones in ip6tables:
and so when calling Thx for the help 🙏 |
I believe in the Git test environment |
No description provided.