Skip to content
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

CA-341155: Fix console refresh when starting management server + other improvements #4176

Merged
merged 4 commits into from
Aug 14, 2020

Conversation

robhoes
Copy link
Member

@robhoes robhoes commented Aug 12, 2020

No description provided.

The intention of the if-statement in `start` is to only refresh the consoles on
the master if management is enabled, which is the case when the server is
running on all IP addresses. The `listening_all` ref, however, is updated only
_after_ the call to the `start` function. Instead refer to the `addr` parameter.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
The only user is `Xapi_pif.reconfigure_ipv6`, which does not actually need it
anymore, because we always listen on all IPv4 and IPv6 addresses by default.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
@robhoes
Copy link
Member Author

robhoes commented Aug 12, 2020

Reviewers: I suggest reviewing patch-by-patch, and with whitespace changes suppressed for the "restructure" patch.

Copy link
Contributor

@lindig lindig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small comment - I'm not familiar with the overall logic

Copy link
Contributor

@lindig lindig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Random small comments

ocaml/xapi/xapi_mgmt_iface.ml Outdated Show resolved Hide resolved
ocaml/xapi/xapi_mgmt_iface.ml Show resolved Hide resolved
ocaml/xapi/xapi_mgmt_iface.ml Outdated Show resolved Hide resolved
ocaml/xapi/xapi_mgmt_iface.ml Show resolved Hide resolved
@robhoes
Copy link
Member Author

robhoes commented Aug 13, 2020

@lippirk @lindig Thanks for your comments. I've addressed them in the new commit.

Combined the server state refs into a single one with a clear type, and a
matching state transformation function.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
The only way to update the HIMN address is through the `enable_himn` function.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
@robhoes robhoes merged commit ed9bdc7 into xapi-project:master Aug 14, 2020
@robhoes robhoes deleted the ca341155 branch August 14, 2020 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants