Skip to content

Conversation

@rzr
Copy link

@rzr rzr commented Nov 28, 2025

The behaviour is same, except that the file will remain (with empty rules) even if the forwarding log has been disabled (and then prevent the disclaimer loss).

Wording slightly modified to reduce the risk of concurrent management of this file, if the file is still edited by other mean, it will be done knowingly (that x-s-r may override any change soon or later).

For the record remote.conf was introduced in:
468eb75 .

I am assuming that the presence of file is not checked elsewhere that in xen-api (currently only s/x-s-r is referencing this file).

The behaviour is same, except that the file will remain (with empty
rules) even if the forwarding log has been disabled (and then prevent
the disclaimer loss).

Wording slightly modified to reduce the risk of concurrent management
of this file, if the file is still edited by other mean, it will be
done knowingly (that x-s-r may override any change soon or later).

For the record remote.conf was introduced in:
468eb75 .

I am assuming that the presence of file is not checked elsewhere that
in xen-api (currently only s/x-s-r is referencing this file).

Signed-off-by: Philippe Coval <philippe.coval@vates.tech>
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.

Is the main change here not the updated logic? Now remote.conf is never removed because the else branch is removed.

@rzr
Copy link
Author

rzr commented Nov 28, 2025

Is the main change here not the updated logic? Now remote.conf is never removed because the else branch is removed.

yes file will never be removed, this is the motivation of this change

It will be just empty (with header disclaimer) OR filed with rule if remote logging is enabled

Keeping the file, can also give hint to user and prevent him to create an other rule elsewhere.

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