Skip to content

Conversation

@stormi
Copy link
Member

@stormi stormi commented Sep 22, 2025

It looks like a good change, being clear about what belongs to default configuration you shouldn't touch and what belongs to user configuration.

We need to be careful about potential effects of not removing default rules anymore, but I haven't checked the changes in the SRPM itself.

@stormi stormi requested review from psafont and ydirson September 22, 2025 16:36
* Thu Mar 13 2025 Gerald Elder-Vass <gerald.elder-vass@cloud.com> - 8.4.0-18
- CA-407370: Separate rsyslog configs for xenserver and customer

(yes, the tarball version doesn't match the changelog entry, but both
the tarball version and the SRPM release number are right)

Signed-off-by: Samuel Verschelde <stormi-xcp@ylix.fr>
@stormi stormi force-pushed the 8.3-rebase-XS-20250922 branch from 46a0c24 to f34cd5a Compare September 22, 2025 16:36
@stormi
Copy link
Member Author

stormi commented Sep 22, 2025

I suggest to have the main discussion on xcp-ng-rpms/xcp-ng-release#33 where the full change can be seen at once.

@stormi stormi force-pushed the 8.3-rebase-XS-20250922 branch from f34cd5a to 25cc608 Compare October 15, 2025 09:51
@stormi stormi marked this pull request as ready for review October 15, 2025 09:56
@stormi
Copy link
Member Author

stormi commented Oct 15, 2025

Now ready for review

* Mention XCP-ng in addition to XenServer. I didn't completely
  replace XenServer with XCP-ng. After all, the file is still named
  xenserver.conf, so that would be awkward.
* Do NOT invite users to edit /etc/rsyslog.d/remote.conf, which is
  managed by XAPI.
* Discourage any custom modifications, but in the case where it's
  unavoidable, redirect them to /etc/rsyslog.d/custom.conf,
  after validation by technical support.

Signed-off-by: Samuel Verschelde <stormi-xcp@ylix.fr>
@stormi stormi force-pushed the 8.3-rebase-XS-20250922 branch from 25cc608 to b437967 Compare October 17, 2025 15:55
@stormi
Copy link
Member Author

stormi commented Oct 20, 2025

Converted to draft. We decided to hold back this change and work on a better solution.

# Any other rsyslog configuration change must be avoided.
# However, if there are no other options, they must be evaluated with technical support
# representatives, and written to a file named /etc/rsyslog.d/custom.conf.
# Note that there are no guarantees regarding the order in which rules from different
Copy link
Contributor

@rzr rzr Nov 14, 2025

Choose a reason for hiding this comment

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

Are you sure ? see
xcp-ng-rpms/xcp-ng-release#33 (comment)

I would make rules from custom.conf parsed after remote.conf and before xenserver.conf.

This can be easly achieved by just renaming custom.conf to user-*.conf files

Copy link
Member Author

@stormi stormi Nov 14, 2025

Choose a reason for hiding this comment

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

So I read https://www.rsyslog.com/doc/configuration/global/options/rsconf1_includeconfig.html and it's not clear to me whether the rule they describe applies when you specify a directory, rather than directory/*.conf.

Copy link
Member Author

Choose a reason for hiding this comment

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

I see no point in having the custom rules parsed between remote.conf and xenserver.conf. To me, either we want them parsed before (and then our defaults to still get applied on top), or at the very end (zz-custom.conf).

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.

4 participants