-
Notifications
You must be signed in to change notification settings - Fork 27
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
RHEL 7 packages need fix #15
Comments
Perhaps a path forward here would be to first reconcile with how Fedora builds and packages rsyslog. See http://pkgs.fedoraproject.org/cgit/rsyslog.git/ Since the RHELs flow from Fedora, it might be time well spent getting this repository to be a superset of Fedora, and perhaps even getting Fedora to keep there spec file up-to-date with this repo. |
Well, I have tried to build RHEL 7 packages on a Fedora 21 box but have run into too many problems with the source code references. The latest is that libgt's source reference refers to a master.zip file which has a top level directory of libgt-master when the spec file wants to see libgt-0.3.11. And once that is addressed, then libgt now needs autoconf run to convert the configure.ac to a runnable configure script that the build process can use. |
Okay, here is a patch for hacking libgt spec to work:
|
I don't know if this is useful, but I was able to get an rsyslog build for epel7 going via COPR: https://copr.fedoraproject.org/coprs/portante/rsyslog-v8-stable/ This is a mashup of the v8-stable .spec file with the Fedora .spec file, and the addition of mmutf8fix that I was looking for as well. I'll be feeding backwhat it took to get this all working in the COPR environment. |
My apologies on placing my initial issues in the wrong spot. Hopefully you guys can move them around on the admin side without too much trouble. I've documented some of the items I've had to fix from the RPMS that are provided. rsyslog/rsyslog#645 Additionally, another item I've had to change is integration with systemd journald. ... I'm still looking at a warning thrown when rsyslog is stopped (after added my fixes from issues 645/646) related to syslog.socket. |
@Kryai, not sure you need to be explicit about the socket, though it can't hurt, as it seems that on most systems I have encountered |
@portante, you are right, that config actually isn't required strictly. I was working on our rsyslog config for RHEL7 a few months ago and took up the task yet again today - I think I got my lines crossed somewhere - I've removed it from my config since it is extraneous. /dev/log however is a straightforward socket and not a link to /run/systemd/journal/syslog. My issue from earlier with being unable to stop rsyslog has returned unfortunately. It appears that if /run/systemd/journal/syslog exists - rsyslog exits with a return of 1. I can 'rm /run/systemd/journal/syslog' and then run 'systemctl stop rsyslogd' successfully - I've not looked into why yet or how that might be meaningful. Here's what it looks like when systemd restarts the process after being stopped. Nov 30 15:13:25 daemon.notice testing2 systemd[1]: rsyslog.service: control process exited, code=exited status=1 I'm still looking into the actual underlying issue when I get free cycles. |
So I cheated a bit and looked at the default CentOS7 rsyslog service file - it appears they do comment out the directive "Require=syslog.socket" So far it appears everything works again with this removed. I'll run this way for a while and see if anything appears to be broken. Items that need to be fixed/considered for RHEL7/systemd packaging:
Here's my config for rsyslog.service
I'm not sure why you can't use " |
As an update - with the above config and my rsyslog.conf, I am not getting systemd-journald messages. If I start up the syslog.socket, I do start to get systemd-journald but then I lose messages from say the 'logger' command. I am at a loss with how to configure them to function properly. I rebuilt rsyslog with support for imjournal but have not been able to get that working as desired either. I'm getting fairly frustrated unfortunately after trying multiple configurations and options. Does anyone have a working configuration with RHEL7 w/systemd that isn't the provided from Red Hat? |
I have built 8.14 in Fedora COPR against F21 and EPEL 7, see If that is of interest to you, I can share with you what I did. I'll be -peter On Wed, Dec 2, 2015 at 6:16 PM, Kryai [email protected] wrote:
|
@portante - It is of interest to me, I'm grabbing the src.rpm and will start taking a look at your changes. It would be great to take a look at the work you've done. |
@portante can you describe the changes you made, so we can probably adapt them to the Adiscon packages? |
@Kryai, @friedl, and @theinric, take a look at: https://github.com/portante/rsyslog-fedora/tree/v8.14-updates I would think that we could work to get Adiscon and Fedora spec files to track much more closely with a little work. |
@portante I've built https://copr.fedoraproject.org/coprs/portante/rsyslog-v8.14.0-case-sensitivity-support/ on CentOS7, with some modifications to the spec file, it was not exactly compatible out of the box - and it appears that 'logger' issues messages are not delivered to /var/log/messages. It appears to have the same problems that I've been fighting the last couple days. |
So do you have a On Thu, Dec 3, 2015 at 1:53 PM, Kryai [email protected] wrote:
|
I didn't at the time no, not sure why, good call - rebooted and it was created properly. This time everything worked. I'll make a list shortly with a few issues I came upon building your fork as well as other items I think should be added that incorporated. |
rsyslog.spec I took a look at your rsyslog.service as well as the logrotate config, and they are compatible so you don't need to make additional changes there if you don't want to. All of my tests are passing currently, but I'll add our more complex configuration and see how it fares for some time. |
@Kryai, thanks, glad that Yes, the Fedora -stdlog- thing flummoxed me, so I just built it directly to get around it. :( Those should have come from Fedora, so double check that rsyslog rotation is working properly on your boxes, I found that I did not have the right pid file specified in the |
for the -stdlog- item, you can make the changes that I specified into the spec file and it'll be resolved. Just a minor issue. the /etc/logrotate.d/syslog file is integrated with systemd so you actually don't even need the PID file specified, and it is not. It is a full integration which is probably a good thing. I think this will satisfy the issues with RHEL7 building properly. It's probably a good idea to merge them in now and get some wider testing in perhaps by more RHEL/Fedora guys. On a side note, I'm happy to keep testing but I will be out for vacation for some time coming up after today. |
Just to be clear, my comments were related to the RHEL7 items for rsyslog's branch to make a working spec/config files for RHEL7 hopefully in 8.15.0? |
Hi. Don't know if close-related, but we noticed our centos7 rsyslog 8.30 was unable to forward traffic when run from init.d/systemd (service rsyslog start/systemctl rsyslog start) but works when run from terminal with "-n". |
@mostolog Not sure if the two are related, but I had a few boxes that failed to forward messages properly if rsyslog started up before the network was available. I had to introduce an artificial delay to work around that issue (rsyslog/rsyslog#1656). |
There are a couple of issues when trying to use them as a drop-in replacement for the Red Hat provided ones. For example, imjournal is used by default by RH, but we yet don't even provide a package for it (see #9).
To fix all of this, we need to install a plain RHEL 7 (or CentOS) and work to see which issues show up when we try to use user packages ... and then fix them ;)
The text was updated successfully, but these errors were encountered: