Skip to contentSkip to conversation

corosync: reproducibility issue

PATCH In review Christos Gavros 2 participants 4 messages Feb 13, 2025 – Feb 14, 2025 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH v2 1/1 corosync: reproducibility issue

Corosync is not reproducible due to change of value in NETSNMP_SYS_CONTACT which is set in net-snmp:
NETSNMP_SYS_CONTACT = "$ME@$LOC"
$ME = whoami
$LOC assigned domain name from /etc/resolv.conf

Use build in'--with-sys-contact' to overwrite it

https://autobuilder.yoctoproject.org/valkyrie/#/builders/87/builds/30/steps/28/logs/stdio

CC Yoann Congal <[email protected]>
CC Randy MacLeod <[email protected]>

---
v1->v2
* make NETSNMP_SYS_CONTACT configurable for every DISTRO

---
 meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb +3 -0
index d4945e482d..0840e4955b 100644
@@ -55,6 +55,8 @@ PACKAGECONFIG[perl] = "--enable-embedded-perl --with-perl-modules=yes, --disable
 PACKAGECONFIG[smux] = ""
 PACKAGECONFIG[systemd] = "--with-systemd, --without-systemd"
 
+SYSCONTACT_DISTRO ?= "[email protected]"
+
 EXTRA_OECONF = " \
     --enable-shared \
     --disable-manuals \
@@ -63,6 +65,7 @@ EXTRA_OECONF = " \
     --with-persistent-directory=${localstatedir}/lib/net-snmp \
     --with-endianness=${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', 'little', 'big', d)} \
     --with-mib-modules='${MIB_MODULES}' \
+    --with-sys-contact='${SYSCONTACT_DISTRO}' \
 "
 
 MIB_MODULES = ""
Signature · 1 line
2.34.1
#2 lore raw
Quoted 11 lines · Christos Gavros

Corosync is not reproducible due to change of value in NETSNMP_SYS_CONTACT which is set in net-snmp:
NETSNMP_SYS_CONTACT = "$ME@$LOC"
$ME = whoami
$LOC assigned domain name from /etc/resolv.conf

Use build in'--with-sys-contact' to overwrite it

https://autobuilder.yoctoproject.org/valkyrie/#/builders/87/builds/30/steps/28/logs/stdio

Quoted 9 lines
CC Yoann Congal <[email protected]>
CC Randy MacLeod <[email protected]>

---
v1->v2
* make NETSNMP_SYS_CONTACT configurable for every DISTRO

---
 meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb | 3 +++

Hello Christos,

Thanks for the patch, nice work :)

The title should say "net-snmp: ..." instead (and the commit message explain that you do that to fix corosync reproducibility issue)

There is something weird going on: By tracking the reproducibility issue from corosync, we ended up in net-snmp. But net-snmp did not fail the reproducibility test!
No need to debug this further, your patch is valid as-is, I just wanted to point out this weirdness.

Thanks!

Quoted 30 lines
 1 file changed, 3 insertions(+)
meta-networking/recipes-protocols/net-snmp/net-snmp_5.9.4.bb +3 -1
index d4945e482d..0840e4955b 100644
@@ -55,6 +55,8 @@ PACKAGECONFIG[perl] = "--enable-embedded-perl
--with-perl-modules=yes, --disable
 PACKAGECONFIG[smux] = ""
 PACKAGECONFIG[systemd] = "--with-systemd, --without-systemd"
 
+SYSCONTACT_DISTRO ?= "[email protected]"
+
 EXTRA_OECONF = " \
     --enable-shared \
     --disable-manuals \
@@ -63,6 +65,7 @@ EXTRA_OECONF = " \
     --with-persistent-directory=${localstatedir}/lib/net-snmp \
     --with-endianness=${@oe.utils.conditional('SITEINFO_ENDIANNESS',
 'le', 'little', 'big', d)} \
     --with-mib-modules='${MIB_MODULES}' \
+    --with-sys-contact='${SYSCONTACT_DISTRO}' \
 "
 

MIB_MODULES = ""
--
2.34.1

Signature · 2 lines
Yoann Congal
Smile ECS - Tech expert
#3 lore raw

hi

the patch is merged in master-next, can I still change it and submit v3?
https://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=bb138b9f6b0ae7a77b5be468356a9ed0d7787c88

I was thinking the same... but we ended up that the issue is coming from this macro NETSNMP_SYS_CONTACT by looking the diffoscope
https://valkyrie.yocto.io/pub/repro-fail-openembedded/meta-networking/oe-reproducible-20250201-4tpvm0li/packages/diff-html/#reproducibleA-tmp---reproducibleA-tmp-deploy---reproducibleA-tmp-deploy-deb---reproducibleA-tmp-deploy-deb-core-------reproducibleA-tmp-deploy-deb-core-----corosync-dbg_-.-.--r-_amd--.deb---data.tar.xz---data.tar---.-usr-sbin-.debug-corosync-notifyd---readelf---wide---debug-dump-macro---

NETSNMP_SYS_CONTACT is defined and used in 'net-snmp' in build directory. Then I checked net-snmp source code and find that this macro is defined and assigned there as explained in patch.

Shall we wait for autobuilder to test it and take further actions from there?

#4 lore raw
Quoted 6 lines · Christos Gavros via lists.openembedded.org

hi

the patch is merged in master-next, can I still change it and submit v3?

https://git.openembedded.org/meta-openembedded/commit/?h=master-next&id=bb138b9f6b0ae7a77b5be468356a9ed0d7787c88

master-next is the branch under test. It's not too late to send a v3. That is not a major issue anyway...

Quoted 12 lines

I was thinking the same... but we ended up that the issue is coming from this macro NETSNMP_SYS_CONTACT by looking the diffoscope

https://valkyrie.yocto.io/pub/repro-fail-openembedded/meta-networking/oe-reproducible-20250201-4tpvm0li/packages/diff-html/#reproducibleA-tmp---reproducibleA-tmp-deploy---reproducibleA-tmp-deploy-deb---reproducibleA-tmp-deploy-deb-core-------reproducibleA-tmp-deploy-deb-core-----corosync-dbg_-.-.--r-_amd--.deb---data.tar.xz---data.tar---.-usr-sbin-.debug-corosync-notifyd---readelf---wide---debug-dump-macro---

NETSNMP_SYS_CONTACT is defined and used in 'net-snmp' in build directory. Then I checked net-snmp source code and find that this macro is defined and assigned there as explained in patch.

Shall we wait for autobuilder to test it and take further actions from there?

Yes, I would do that.
Remember that since this reproducibility issue is host distro related, we will have to wait some reproducibility (weekly) runs to be sure it was tested on different host distro.

Quoted 11 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#115480):
https://lists.openembedded.org/g/openembedded-devel/message/115480
Mute This Topic: https://lists.openembedded.org/mt/111173431/4316185
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
Yoann Congal
Smile ECS - Tech expert