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

[201911] Install haveged in 201911 #7308

Merged
merged 1 commit into from
May 2, 2021

Conversation

stephenxs
Copy link
Collaborator

@stephenxs stephenxs commented Apr 13, 2021

Why I did it

Install haveged package on 201911/stretch to accelerate the entropy collect process

Recently, we found on some of our testbeds the entropy collecting process finishes more than 60 seconds after the system started.
This results in some daemons start slowly.
To install haveged can accelerate the entropy collect process.

Signed-off-by: Stephen Sun stephens@nvidia.com

How I did it

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012

Description for the changelog

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

…ollect process

Recently, we found on some of our testbeds the entropy collecting process finishes more than 60 seconds after system started.
This results in swss not able to start sporadically.
To install haveged can accelerate the entropy collect process.

Signed-off-by: Stephen Sun <stephens@nvidia.com>
@liat-grozovik
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@stephenxs stephenxs closed this Apr 18, 2021
@stephenxs stephenxs reopened this Apr 19, 2021
@abdosi
Copy link
Contributor

abdosi commented Apr 20, 2021

can you please add some details what trigger this change ? Background of this change and what does entropy collect means ?

@stephenxs
Copy link
Collaborator Author

change

can you please add some details what trigger this change ? Background of this change and what does entropy collect means ?

Recently, we noticed some of the services start very slow after the system up, like ZTP and ssh. Eventually, we realized those services depend on the entropy collection process. The haveged package help accelerate this process.
This fix is already in buster
For more information regarding entropy collect, refer this page

@abdosi
Copy link
Contributor

abdosi commented Apr 23, 2021

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@abdosi
Copy link
Contributor

abdosi commented Apr 23, 2021

can we move this PR out of draft mode ?

@stephenxs stephenxs marked this pull request as ready for review April 23, 2021 22:43
@stephenxs
Copy link
Collaborator Author

can we move this PR out of draft mode ?

Done

@stephenxs
Copy link
Collaborator Author

Broadcom and kvm building failed. They are not related to this PR.
Can you retrigger it? @liat-grozovik @abdosi
Thanks

Broadcom

2021-04-24T01:45:32.3733378Z cp -r ../sonic-mgmt-framework/src/cvl ./
2021-04-24T01:45:32.3734256Z cp -r ../sonic-mgmt-framework/src/translib ./
2021-04-24T01:45:32.3735544Z find cvl -name \*\.go -exec sed -i -e 's/\"translib/\"github.com\/Azure\/sonic-telemetry\/translib/g' {} \;
2021-04-24T01:45:32.3737154Z find translib -name \*\.go -exec sed -i -e 's/\"translib/\"github.com\/Azure\/sonic-telemetry\/translib/g' {} \;
2021-04-24T01:45:32.3738600Z find cvl -name \*\.go -exec sed -i -e 's/\"cvl/\"github.com\/Azure\/sonic-telemetry\/cvl/g' {} \;
2021-04-24T01:45:32.3740458Z find translib -name \*\.go -exec sed -i -e 's/\"cvl/\"github.com\/Azure\/sonic-telemetry\/cvl/g' {} \;
2021-04-24T01:45:32.3741948Z sed -i -e 's/\.\.\/\.\.\/\.\.\/models\/yang/\.\.\/\.\.\/\.\.\/sonic-mgmt-framework\/models\/yang/' translib/ocbinds/oc.go
2021-04-24T01:45:32.3743396Z sed -i -e 's/\$GO run \$BUILD_GOPATH\/src\/github.com\/openconfig\/ygot\/generator\/generator.go/generator/' translib/ocbinds/oc.go
2021-04-24T01:45:32.3744284Z /usr/local/go/bin/go get github.com/openconfig/gnmi@89b2bf29312cda887da916d0f3a32c1624b7935f
2021-04-24T01:45:32.3746141Z go: github.com/Workiva/go-datastructures@v1.0.50: Get "https://proxy.golang.org/github.com/%21workiva/go-datastructures/@v/v1.0.50.mod": net/http: TLS handshake timeout
2021-04-24T01:45:32.3748290Z Makefile:26: recipe for target 'mgmt-deps' failed
2021-04-24T01:45:32.3751373Z make[2]: *** [mgmt-deps] Error 1

kvm

2021-04-24T01:42:08.3628778Z dh_shlibdeps: Aborting due to earlier error
2021-04-24T01:42:08.3629920Z debian/rules:1364: recipe for target 'binary-arch' failed
2021-04-24T01:42:08.3630913Z make[2]: *** [binary-arch] Error 25
2021-04-24T01:42:08.3631938Z make[2]: Leaving directory '/sonic/src/python3/python3.6-3.6.0'
2021-04-24T01:42:08.3633140Z dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
2021-04-24T01:42:08.3634490Z Makefile:18: recipe for target '/sonic/target/debs/stretch/libpython3.6-minimal_3.6.0-1_amd64.deb' failed
2021-04-24T01:42:08.3636363Z make[1]: *** [/sonic/target/debs/stretch/libpython3.6-minimal_3.6.0-1_amd64.deb] Error 2
2021-04-24T01:42:08.3637460Z make[1]: Leaving directory '/sonic/src/python3'
2021-04-24T01:42:08.3638558Z [  FAIL LOG END  ] [ target/debs/stretch/libpython3.6-minimal_3.6.0-1_amd64.deb ]
2021-04-24T01:42:08.3639748Z make: *** [target/debs/stretch/libpython3.6-minimal_3.6.0-1_amd64.deb] Error 1
2021-04-24T01:42:08.3640452Z make: *** Waiting for unfinished jobs....
2021-04-24T01:42:08.3641632Z slave.mk:335: recipe for target 'target/debs/stretch/libpython3.6-minimal_3.6.0-1_amd64.deb' failed
2021-04-24T01:47:01.1124625Z [ finished ] [ target/docker-lldp-sv2.gz ] 
2021-04-24T01:53:35.5133294Z [ finished ] [ target/debs/stretch/sonic-mgmt-framework_1.0-01_amd64.deb ] 
2021-04-24T03:30:26.9565348Z [ finished ] [ target/debs/stretch/linux-headers-4.9.0-14-2-common_4.9.246-2_all.deb ] 
2021-04-24T03:34:41.5137339Z make[1]: *** [Makefile.work:202: target/sonic-vs.img.gz] Error 2

@lguohan lguohan merged commit 9a163fe into sonic-net:201911 May 2, 2021
@stephenxs stephenxs deleted the install-haveged-201911 branch May 2, 2021 23:15
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