Re: ruby27 vs Puppet
On Tue, May 04, 2021 at 11:16:04AM +0200, Giovanni Bechis wrote: > In the previous diff we forgot about puppetmaster that now has the same > problem, > ok for this diff ? Of course, thanks.
Re: ruby27 vs Puppet
On Sun, Mar 14, 2021 at 05:36:55PM +0100, Giovanni Bechis wrote: > On Sat, Mar 13, 2021 at 02:33:48PM +0100, Klemens Nanni wrote: > > On Sat, Mar 13, 2021 at 09:05:18AM +0100, Giovanni Bechis wrote: > > > Hi, > > > after updating to current I receive daily warnings that my Puppet client > > > is not running. > > > This is because ruby27 starts programs in a different way then ruby26. > > > > > > On OpenBSD 6.8 I have: > > > $ ps auxww | grep puppet > > > root 63876 0.0 10.2 82024 51836 ?? S Fri05PM0:05.56 > > > /usr/local/bin/ruby26 /usr/local/bin/puppet agent > > > snb 29563 0.0 0.2 288 1252 p0 S+p 8:59AM0:00.00 grep > > > puppet > > > > > > on OpenBSD 6.9-current: > > > $ ps auxww | grep puppet > > > root 91047 0.0 1.4 108760 56900 ?? S Fri07PM0:05.86 > > > /usr/local/bin/ruby27 -W0 /usr/local/bin/puppet agent > > > root 81078 0.0 0.0 632 1544 p0 S+p 9:00AM0:00.01 grep > > > puppet > > Not sure, I think this is because sebastia added `-W0' in 5/Makefile: > > > > revision 1.33 > > date: 2021/01/18 22:26:11; author: sebastia; state: Exp; lines: +4 > > -2; commitid: V8KuIdf4R32pgNMt; > > suppress the huge number of deprecation/obsolete warnings since Ruby 2.7 > > > > > The "-W0" parameter breaks "rcctl ls failed" and a daily warning is sent. > > > Is this a known issue ? I think other softwares may be affected. > > I did not notice it because I'm using Puppet 6, but also without the > > rc script, i.e. in a masterless setup. > > > > I think the diff below should have been part of sebastia's commit, > > it is untested however; can you give this a try? > > > That diff fixes it. > ok giovanni@ if sebastia@ agrees. > In the previous diff we forgot about puppetmaster that now has the same problem, ok for this diff ? Giovanni Index: 5/Makefile === RCS file: /cvs/ports/sysutils/ruby-puppet/5/Makefile,v retrieving revision 1.37 diff -u -p -r1.37 Makefile --- 5/Makefile 16 Mar 2021 18:43:40 - 1.37 +++ 5/Makefile 4 May 2021 09:03:50 - @@ -3,7 +3,7 @@ PORTROACH= limit:^5 VERSION= 5.5.22 -REVISION= 7 +REVISION= 8 RUN_DEPENDS+= databases/ruby-hiera3,${MODRUBY_FLAVOR} \ devel/ruby-gettext-setup,${MODRUBY_FLAVOR}>=0.28,<1 \ Index: pkg/puppetmaster.rc === RCS file: /cvs/ports/sysutils/ruby-puppet/pkg/puppetmaster.rc,v retrieving revision 1.2 diff -u -p -r1.2 puppetmaster.rc --- pkg/puppetmaster.rc 11 Jan 2018 19:27:10 - 1.2 +++ pkg/puppetmaster.rc 4 May 2021 09:03:50 - @@ -6,7 +6,7 @@ daemon="${TRUEPREFIX}/bin/puppet master" . /etc/rc.d/rc.subr -pexp="${RUBY} ${daemon}${daemon_flags:+ ${daemon_flags}}" +pexp="${RUBY} -W0 ${daemon}${daemon_flags:+ ${daemon_flags}}" rc_reload=NO rc_cmd $1 signature.asc Description: PGP signature
Re: ruby27 vs Puppet
On Sat, Mar 13, 2021 at 02:33:48PM +0100, Klemens Nanni wrote: > On Sat, Mar 13, 2021 at 09:05:18AM +0100, Giovanni Bechis wrote: > > Hi, > > after updating to current I receive daily warnings that my Puppet client is > > not running. > > This is because ruby27 starts programs in a different way then ruby26. > > > > On OpenBSD 6.8 I have: > > $ ps auxww | grep puppet > > root 63876 0.0 10.2 82024 51836 ?? S Fri05PM0:05.56 > > /usr/local/bin/ruby26 /usr/local/bin/puppet agent > > snb 29563 0.0 0.2 288 1252 p0 S+p 8:59AM0:00.00 grep > > puppet > > > > on OpenBSD 6.9-current: > > $ ps auxww | grep puppet > > root 91047 0.0 1.4 108760 56900 ?? S Fri07PM0:05.86 > > /usr/local/bin/ruby27 -W0 /usr/local/bin/puppet agent > > root 81078 0.0 0.0 632 1544 p0 S+p 9:00AM0:00.01 grep > > puppet > Not sure, I think this is because sebastia added `-W0' in 5/Makefile: > > revision 1.33 > date: 2021/01/18 22:26:11; author: sebastia; state: Exp; lines: +4 > -2; commitid: V8KuIdf4R32pgNMt; > suppress the huge number of deprecation/obsolete warnings since Ruby 2.7 > > > The "-W0" parameter breaks "rcctl ls failed" and a daily warning is sent. > > Is this a known issue ? I think other softwares may be affected. > I did not notice it because I'm using Puppet 6, but also without the > rc script, i.e. in a masterless setup. > > I think the diff below should have been part of sebastia's commit, > it is untested however; can you give this a try? > That diff fixes it. ok giovanni@ if sebastia@ agrees. Cheers & Thanks Giovanni > > Index: 5/Makefile > === > RCS file: /cvs/ports/sysutils/ruby-puppet/5/Makefile,v > retrieving revision 1.36 > diff -u -p -r1.36 Makefile > --- 5/Makefile2 Feb 2021 20:10:09 - 1.36 > +++ 5/Makefile13 Mar 2021 13:26:22 - > @@ -3,7 +3,7 @@ > PORTROACH= limit:^5 > > VERSION= 5.5.22 > -REVISION=6 > +REVISION=7 > > RUN_DEPENDS+=databases/ruby-hiera3,${MODRUBY_FLAVOR} \ > devel/ruby-gettext-setup,${MODRUBY_FLAVOR}>=0.28,<1 \ > Index: 6/Makefile > === > RCS file: /cvs/ports/sysutils/ruby-puppet/6/Makefile,v > retrieving revision 1.16 > diff -u -p -r1.16 Makefile > --- 6/Makefile17 Feb 2021 18:45:58 - 1.16 > +++ 6/Makefile13 Mar 2021 13:26:20 - > @@ -3,6 +3,7 @@ > PORTROACH= limit:^6 > > VERSION= 6.21.1 > +REVISION=0 > > MAINTAINER= Klemens Nanni > > @@ -32,5 +33,7 @@ do-install: > mv ${WRKINST}${SYSCONFDIR}/puppetlabs > ${PREFIX}/${MODRUBY_RELEXAMPLEDIR}-puppet > ${INSTALL_DATA} ${WRKSRC}/conf/*.conf \ > ${PREFIX}/${MODRUBY_RELEXAMPLEDIR}-puppet/puppet/ > + # Suppress a huge number of Ruby deprecation/obsolete warnings > + sed -i -e "s/ruby${MODRUBY_BINREV}/ruby${MODRUBY_BINREV} -W0/" > ${PREFIX}/bin/puppet > > .include > Index: pkg/puppet.rc > === > RCS file: /cvs/ports/sysutils/ruby-puppet/pkg/puppet.rc,v > retrieving revision 1.3 > diff -u -p -r1.3 puppet.rc > --- pkg/puppet.rc 11 Jan 2018 19:27:10 - 1.3 > +++ pkg/puppet.rc 13 Mar 2021 13:26:49 - > @@ -6,7 +6,7 @@ daemon="${TRUEPREFIX}/bin/puppet agent" > > . /etc/rc.d/rc.subr > > -pexp="${RUBY} ${daemon}${daemon_flags:+ ${daemon_flags}}" > +pexp="${RUBY} -W0 ${daemon}${daemon_flags:+ ${daemon_flags}}" > rc_reload=NO > > rc_cmd $1 > signature.asc Description: PGP signature
Re: ruby27 vs Puppet
On Sat, Mar 13, 2021 at 09:05:18AM +0100, Giovanni Bechis wrote: > Hi, > after updating to current I receive daily warnings that my Puppet client is > not running. > This is because ruby27 starts programs in a different way then ruby26. > > On OpenBSD 6.8 I have: > $ ps auxww | grep puppet > root 63876 0.0 10.2 82024 51836 ?? S Fri05PM0:05.56 > /usr/local/bin/ruby26 /usr/local/bin/puppet agent > snb 29563 0.0 0.2 288 1252 p0 S+p 8:59AM0:00.00 grep puppet > > on OpenBSD 6.9-current: > $ ps auxww | grep puppet > root 91047 0.0 1.4 108760 56900 ?? S Fri07PM0:05.86 > /usr/local/bin/ruby27 -W0 /usr/local/bin/puppet agent > root 81078 0.0 0.0 632 1544 p0 S+p 9:00AM0:00.01 grep puppet Not sure, I think this is because sebastia added `-W0' in 5/Makefile: revision 1.33 date: 2021/01/18 22:26:11; author: sebastia; state: Exp; lines: +4 -2; commitid: V8KuIdf4R32pgNMt; suppress the huge number of deprecation/obsolete warnings since Ruby 2.7 > The "-W0" parameter breaks "rcctl ls failed" and a daily warning is sent. > Is this a known issue ? I think other softwares may be affected. I did not notice it because I'm using Puppet 6, but also without the rc script, i.e. in a masterless setup. I think the diff below should have been part of sebastia's commit, it is untested however; can you give this a try? Index: 5/Makefile === RCS file: /cvs/ports/sysutils/ruby-puppet/5/Makefile,v retrieving revision 1.36 diff -u -p -r1.36 Makefile --- 5/Makefile 2 Feb 2021 20:10:09 - 1.36 +++ 5/Makefile 13 Mar 2021 13:26:22 - @@ -3,7 +3,7 @@ PORTROACH= limit:^5 VERSION= 5.5.22 -REVISION= 6 +REVISION= 7 RUN_DEPENDS+= databases/ruby-hiera3,${MODRUBY_FLAVOR} \ devel/ruby-gettext-setup,${MODRUBY_FLAVOR}>=0.28,<1 \ Index: 6/Makefile === RCS file: /cvs/ports/sysutils/ruby-puppet/6/Makefile,v retrieving revision 1.16 diff -u -p -r1.16 Makefile --- 6/Makefile 17 Feb 2021 18:45:58 - 1.16 +++ 6/Makefile 13 Mar 2021 13:26:20 - @@ -3,6 +3,7 @@ PORTROACH= limit:^6 VERSION= 6.21.1 +REVISION= 0 MAINTAINER=Klemens Nanni @@ -32,5 +33,7 @@ do-install: mv ${WRKINST}${SYSCONFDIR}/puppetlabs ${PREFIX}/${MODRUBY_RELEXAMPLEDIR}-puppet ${INSTALL_DATA} ${WRKSRC}/conf/*.conf \ ${PREFIX}/${MODRUBY_RELEXAMPLEDIR}-puppet/puppet/ + # Suppress a huge number of Ruby deprecation/obsolete warnings + sed -i -e "s/ruby${MODRUBY_BINREV}/ruby${MODRUBY_BINREV} -W0/" ${PREFIX}/bin/puppet .include Index: pkg/puppet.rc === RCS file: /cvs/ports/sysutils/ruby-puppet/pkg/puppet.rc,v retrieving revision 1.3 diff -u -p -r1.3 puppet.rc --- pkg/puppet.rc 11 Jan 2018 19:27:10 - 1.3 +++ pkg/puppet.rc 13 Mar 2021 13:26:49 - @@ -6,7 +6,7 @@ daemon="${TRUEPREFIX}/bin/puppet agent" . /etc/rc.d/rc.subr -pexp="${RUBY} ${daemon}${daemon_flags:+ ${daemon_flags}}" +pexp="${RUBY} -W0 ${daemon}${daemon_flags:+ ${daemon_flags}}" rc_reload=NO rc_cmd $1
ruby27 vs Puppet
Hi, after updating to current I receive daily warnings that my Puppet client is not running. This is because ruby27 starts programs in a different way then ruby26. On OpenBSD 6.8 I have: $ ps auxww | grep puppet root 63876 0.0 10.2 82024 51836 ?? S Fri05PM0:05.56 /usr/local/bin/ruby26 /usr/local/bin/puppet agent snb 29563 0.0 0.2 288 1252 p0 S+p 8:59AM0:00.00 grep puppet on OpenBSD 6.9-current: $ ps auxww | grep puppet root 91047 0.0 1.4 108760 56900 ?? S Fri07PM0:05.86 /usr/local/bin/ruby27 -W0 /usr/local/bin/puppet agent root 81078 0.0 0.0 632 1544 p0 S+p 9:00AM0:00.01 grep puppet The "-W0" parameter breaks "rcctl ls failed" and a daily warning is sent. Is this a known issue ? I think other softwares may be affected. Cheers Giovanni OpenBSD 6.9-beta (GENERIC.MP) #396: Thu Mar 11 19:15:56 MST 2021 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 4278124544 (4079MB) avail mem = 4133093376 (3941MB) random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xe0010 (248 entries) bios0: vendor Phoenix Technologies LTD version "6.00" date 12/12/2018 bios0: VMware, Inc. VMware Virtual Platform acpi0 at bios0: ACPI 4.0 acpi0: sleep states S0 S1 S4 S5 acpi0: tables DSDT FACP BOOT APIC MCFG SRAT HPET WAET acpi0: wakeup devices PCI0(S3) USB_(S1) P2P0(S3) S1F0(S3) S2F0(S3) S8F0(S3) S16F(S3) S18F(S3) S22F(S3) S23F(S3) S24F(S3) S25F(S3) PE40(S3) S1F0(S3) PE50(S3) S1F0(S3) [...] acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD Opteron(tm) Processor 4386, 3100.24 MHz, 15-10-00 cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,PCLMUL,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,x2APIC,POPCNT,AES,XSAVE,AVX,F16C,HV,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,XOP,FMA4,TBM,ITSC,BMI1 cpu0: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache cpu0: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 65MHz cpu1 at mainbus0: apid 2 (application processor) cpu1: AMD Opteron(tm) Processor 4386, 3100.08 MHz, 15-10-00 cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,PCLMUL,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,x2APIC,POPCNT,AES,XSAVE,AVX,F16C,HV,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,XOP,FMA4,TBM,ITSC,BMI1 cpu1: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache cpu1: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu1: disabling user TSC (skew=-12705) cpu1: smt 0, core 0, package 2 cpu2 at mainbus0: apid 4 (application processor) cpu2: AMD Opteron(tm) Processor 4386, 3100.08 MHz, 15-10-00 cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,PCLMUL,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,x2APIC,POPCNT,AES,XSAVE,AVX,F16C,HV,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,XOP,FMA4,TBM,ITSC,BMI1 cpu2: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache cpu2: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu2: disabling user TSC (skew=-10069) cpu2: smt 0, core 0, package 4 cpu3 at mainbus0: apid 6 (application processor) cpu3: AMD Opteron(tm) Processor 4386, 3100.08 MHz, 15-10-00 cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,PCLMUL,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,x2APIC,POPCNT,AES,XSAVE,AVX,F16C,HV,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,XOP,FMA4,TBM,ITSC,BMI1 cpu3: 64KB 64b/line 2-way I-cache, 16KB 64b/line 4-way D-cache, 2MB 64b/line 16-way L2 cache cpu3: ITLB 48 4KB entries fully associative, 24 4MB entries fully associative cpu3: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu3: disabling user TSC (skew=-12541) cpu3: smt 0, core 0, package 6 ioapic0 at mainbus0: apid 1 pa 0xfec0, version 11, 24 pins acpimcfg0 at acpi0 acpimcfg0: addr 0xf000, bus 0-127 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpipci0 at acpi0 PCI0: 0x 0x0011 0x0001 acpicmos0 at acpi0 "PNP0A05" at acpi0 not configured acpiac0 at acpi0: AC unit online acpicpu0 at acpi0: C1(@1 halt!) acpicpu1 at acpi0: C1(@1 halt!) acpicpu2 at acpi0: