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

Convert docker-snmp-sv2 to buster #4529

Merged
merged 9 commits into from
May 14, 2020

Conversation

joyas-joseph
Copy link
Contributor

- Why I did it
This is an enhancement.

- How I did it
Code changes

- How to verify it
Run "snmpwalk -c public -v 2c <node_ip> .1.3.6"

- Description for the changelog
This change converts docker-snmp-sv2 to buster.

The change removes compilation rules for python3.6 as we are using python3.7 provided as part of buster itself.

- A picture of a cute animal (not mandatory but encouraged)

@lguohan
Copy link
Collaborator

lguohan commented May 4, 2020

check the vsimage test, the snmp-subagent is dead. looks like there are some issues during the buster upgrade. can you verify the snmp-subagent is running after your upgrade?

@lguohan lguohan requested a review from qiluo-msft May 4, 2020 20:28
@qiluo-msft qiluo-msft self-assigned this May 4, 2020
Copy link
Collaborator

@qiluo-msft qiluo-msft left a comment

Choose a reason for hiding this comment

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

As comments. Thanks for your contribution!

dockers/docker-snmp-sv2/Dockerfile.j2 Outdated Show resolved Hide resolved
dockers/docker-snmp-sv2/Dockerfile.j2 Outdated Show resolved Hide resolved
dockers/docker-snmp-sv2/Dockerfile.j2 Outdated Show resolved Hide resolved
@lguohan
Copy link
Collaborator

lguohan commented May 6, 2020

looks like snmp-subagent is still dead.

@joyas-joseph
Copy link
Contributor Author

looks like snmp-subagent is still dead.

This requires a fix in snmpagent - sonic-net/sonic-snmpagent#130

@joyas-joseph
Copy link
Contributor Author

retest vsimage please

@joyas-joseph
Copy link
Contributor Author

retest broadcom please

@qiluo-msft
Copy link
Collaborator

You may need to advance submodule of snmpagent in another PR or in this PR.

@joyas-joseph
Copy link
Contributor Author

You may need to advance submodule of snmpagent in another PR or in this PR.

Thanks. I have to do it in this PR. Otherwise, the test will not pass.

@joyas-joseph
Copy link
Contributor Author

retest broadcom please

@joyas-joseph
Copy link
Contributor Author

11:46:39   extracting: build_raw_image_mnt/image-HEAD.3123-3ed6b8f6b/platform/firsttime  
11:46:39    inflating: build_raw_image_mnt/image-HEAD.3123-3ed6b8f6b/fs.squashfs  
11:46:39  tar: ./overlay2/f1483fdaa79d691587eaf053af7ba32287b7e681742af24c233a4fd964d9b068/diff/usr/sbin/telemetry: Wrote only 512 of 10240 bytes
11:46:39  tar: ./overlay2/f1483fdaa79d691587eaf053af7ba32287b7e681742af24c233a4fd964d9b068/diff/usr/sbin/dialout_client_cli: Cannot write: No space left on device
11:46:39  tar: ./overlay2/f1483fdaa79d691587eaf053af7ba32287b7e681742af24c233a4fd964d9b068/diff/usr/sbin/gnmi_get: Cannot write: No space left on device

Not sure why build is failing due to space issue.

@joyas-joseph
Copy link
Contributor Author

retest broadcom please

@joyas-joseph
Copy link
Contributor Author

retest broadcom please

1 similar comment
@lguohan
Copy link
Collaborator

lguohan commented May 13, 2020

retest broadcom please

lguohan
lguohan previously approved these changes May 13, 2020
pavel-shirshov
pavel-shirshov previously approved these changes May 13, 2020
Copy link
Contributor

@pavel-shirshov pavel-shirshov left a comment

Choose a reason for hiding this comment

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

LGTM Please wait Qi

@joyas-joseph joyas-joseph dismissed stale reviews from pavel-shirshov and lguohan via 2955f5c May 14, 2020 05:34
libtool: link: gcc -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -g -O2 -fdebug-prefix-map=/sonic/src/snmpd/net-snmp-5.7.3+dfsg=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/x86_64-linux-gnu/perl/5.28/CORE -o .libs/snmptrapd .libs/snmptrapd.o -specs=/usr/share/dpkg/no-pie-link.specs -Wl,-z -Wl,relro -Wl,-z -Wl,now -Wl,-E  ./.libs/libnetsnmptrapd.so ../agent/.libs/libnetsnmpmibs.so ../agent/.libs/libnetsnmpagent.so ../snmplib/.libs/libnetsnmp.so -L/usr/lib/x86_64-linux-gnu/ -lmariadb -lnl-3 -lm -lwrap
/usr/bin/ld: ./.libs/libnetsnmptrapd.so: undefined reference to `load_defaults'
/usr/bin/ld: ./.libs/libnetsnmptrapd.so: undefined reference to `my_init'
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:297: snmptrapd] Error 1
make[5]: Leaving directory '/sonic/src/snmpd/net-snmp-5.7.3+dfsg/apps'
make[4]: *** [Makefile:657: subdirs] Error 1
make[4]: Leaving directory '/sonic/src/snmpd/net-snmp-5.7.3+dfsg'
dh_auto_build: make -j1 returned exit code 2
make[3]: *** [debian/rules:65: override_dh_auto_build] Error 2
make[3]: Leaving directory '/sonic/src/snmpd/net-snmp-5.7.3+dfsg'
make[2]: *** [debian/rules:41: binary] Error 2
make[2]: Leaving directory '/sonic/src/snmpd/net-snmp-5.7.3+dfsg'
make[1]: *** [Makefile:19: /sonic/target/debs/buster/libsnmp-base_5.7.3+dfsg-1.5_all.deb] Error 2

Fix: The definitions of load_defaults and my_init don't exist and hence
commenting out their use

Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
joyas-joseph and others added 8 commits May 14, 2020 06:18
use python3 provided by buster

Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
- Remove python3-dev (actual installed package) instead of libpython3-dev

Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
Signed-off-by: Joyas Joseph <joyas_joseph@dell.com>
Signed-off-by: Guohan Lu <lguohan@gmail.com>
@qiluo-msft qiluo-msft merged commit 9dea816 into sonic-net:master May 14, 2020
@qiluo-msft
Copy link
Collaborator

@joyas-joseph Could you also remove rules/python3.dep?

@joyas-joseph
Copy link
Contributor Author

@joyas-joseph Could you also remove rules/python3.dep?

Yes. Will do.

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