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

Jail method: pkgbase: updates are logged to /var/log/messages on the host #1167

Open
grahamperrin opened this issue Aug 26, 2024 · 0 comments

Comments

@grahamperrin
Copy link
Contributor

Prerequisites

  • ☑ Have you checked for an existing issue describing the issue?

Issue

There's potential for confusion with pkgbase-related messages for jails, and for the host for those jails, written to:

  • a single file.

From the attached transcript:

…
% tail /var/log/messages
Aug 26 09:18:22 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-libbz2-lib32 upgraded: 14.snap20240408144247 -> 14.snap20240825063730 
Aug 26 09:18:22 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-runtime-lib32 upgraded: 14.snap20240521025322 -> 14.snap20240825063730 
Aug 26 09:18:23 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-efi-tools-dev-lib32 upgraded: 14.snap20240425073453 -> 14.snap20240825063730 
Aug 26 09:18:23 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-netmap-dev-lib32 upgraded: 14.snap20240512002316 -> 14.snap20240825063730 
Aug 26 09:18:23 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-efi-tools-lib32 upgraded: 14.snap20240503062609 -> 14.snap20240825063730 
Aug 26 09:18:23 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-libcompat-dev upgraded: 14.snap20240510162127 -> 14.snap20240825063730 
Aug 26 09:18:24 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-clibs-dev upgraded: 14.snap20240601092622 -> 14.snap20240825063730 
Aug 26 09:18:24 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-smbutils-dev-lib32 upgraded: 14.snap20240521041605 -> 14.snap20240825063730 
Aug 26 09:18:24 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-libstdbuf-dev upgraded: 14.snap20240408144247 -> 14.snap20240825063730 
Aug 26 09:18:24 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-kerberos-lib-dev-lib32 upgraded: 14.snap20240512002316 -> 14.snap20240825063730 
% uname -mvKU
FreeBSD 15.0-CURRENT main-n271827-c3516c6533a1 GENERIC-NODEBUG amd64 1500023 1500023
% poudriere jail -i -j 14w
Jail name:         14w
Jail version:      14.0-STABLE
Jail arch:         amd64
Jail method:       pkgbase
Jail mount:        /usr/local/poudriere/jails/14w
Jail fs:           internalssd/poudriere/jails/14w
Jail updated:      2024-08-26 09:18:24
Jail pkgbase:      disabled
% 
% grep FreeBSD-kerberos-lib-dev-lib32 /var/log/messages
Aug 24 17:17:31 mowa219-gjp4-zbook-freebsd pkg[32982]: FreeBSD-kerberos-lib-dev-lib32 upgraded: 15.snap20240823184136 -> 15.snap20240824054530 
Aug 24 18:35:47 mowa219-gjp4-zbook-freebsd pkg[4889]: FreeBSD-kerberos-lib-dev-lib32 upgraded: 15.snap20240823184136 -> 15.snap20240824054530 
Aug 25 07:58:16 mowa219-gjp4-zbook-freebsd pkg[96725]: FreeBSD-kerberos-lib-dev-lib32 upgraded: 15.snap20240824054530 -> 15.snap20240824132014 
Aug 25 09:08:40 mowa219-gjp4-zbook-freebsd pkg[6548]: FreeBSD-kerberos-lib-dev-lib32 upgraded: 15.snap20240824054530 -> 15.snap20240824132014 
Aug 26 09:18:24 mowa219-gjp4-zbook-freebsd pkg[95521]: FreeBSD-kerberos-lib-dev-lib32 upgraded: 14.snap20240512002316 -> 14.snap20240825063730 
% 

I know that:

  • process 96725 was an update to the FreeBSD-CURRENT host
  • process 6548 for the same update to FreeBSD-CURRENT was not the host.

(I know it, only because I keep a fairly detailed record of each update to the host.)

poudriere jail -u -j 14w, 2024-08-26.txt

Thoughts

Is there some way for a poudriere jail with the pkgbase method to not mix its update messages with those of the host?

Thanks

Manual pages

poudriere-jail(8)

syslogd(8)

hier(7)

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

No branches or pull requests

1 participant