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

Remove privileged flag for database and snmp docker #13783

Merged
merged 2 commits into from
Aug 15, 2023

Conversation

andriydnvd
Copy link
Contributor

@andriydnvd andriydnvd commented Feb 11, 2023

Signed-off-by: Andriy Dobush [email protected]

Why I did it

NOT FOR MERGE !!!!
Reduce docker privilege
This is part of HLD sonic-net/SONiC#1364

How I did it

Remove flag --privileged

How to verify it

docker exec -it database bash
root@0048b82b460b:/# ip link add dummy0 type dummy
RTNETLINK answers: Operation not permitted

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

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

@lguohan
Copy link
Collaborator

lguohan commented Feb 13, 2023

please identify reviewer for this pr.

@andriydnvd
Copy link
Contributor Author

please identify reviewer for this pr.

@qiluo-msft

@andriydnvd
Copy link
Contributor Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@qiluo-msft
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@qiluo-msft
Copy link
Collaborator

@andriydnvd
Copy link
Contributor Author

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 13783 in repo sonic-net/sonic-buildimage

@maipbui
Copy link
Contributor

maipbui commented Mar 3, 2023

@andriydnvd I think you should run "azpw run Azure.sonic-buildimage" instead, only pr author can trigger the pipeline using "azpw" command.

@andriydnvd
Copy link
Contributor Author

I retriggered another build: https://dev.azure.com/mssonic/build/_build/results?buildId=226231&view=results
Current bgp fails looks like infrastructure issue. One of neighbors is down
https://www.testbed-tools.org/scheduler/testplan/63fe6654e64d81d25355e867
Retrigerring

@andriydnvd
Copy link
Contributor Author

/azpw run Azure.sonic-buildimage

@mssonicbld
Copy link
Collaborator

/AzurePipelines run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@andriydnvd
Copy link
Contributor Author

@qiluo-msft Passed after rebase onto upstream master

@qiluo-msft
Copy link
Collaborator

I see some changes not related to database docker container. Could you merge latest master or rebase to latest master?

@andriydnvd
Copy link
Contributor Author

I see some changes not related to database docker container. Could you merge latest master or rebase to latest master?

Hi, @qiluo-msft update branch. Pls check

Copy link
Contributor

@maipbui maipbui 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 change PR title to database and snmp

@andriydnvd andriydnvd changed the title Remove privileged flag for database docker Remove privileged flag for database and snmp docker Aug 3, 2023
@andriydnvd
Copy link
Contributor Author

LGTM. Please change PR title to database and snmp

Done, thanks

@Yarden-Z
Copy link

Ready for merger

@qiluo-msft qiluo-msft marked this pull request as ready for review August 15, 2023 18:18
@qiluo-msft qiluo-msft requested a review from xumia as a code owner August 15, 2023 18:18
@qiluo-msft qiluo-msft merged commit cf72683 into sonic-net:master Aug 15, 2023
yejianquan added a commit to yejianquan/sonic-buildimage that referenced this pull request Aug 19, 2023
sonic-otn pushed a commit to sonic-otn/sonic-buildimage that referenced this pull request Sep 20, 2023
#### Why I did it
Reduce docker privilege 
This is part of HLD sonic-net/SONiC#1364

#### How I did it
Remove flag --privileged
#### How to verify it
docker exec -it database bash
root@0048b82b460b:/# ip link add dummy0 type dummy
RTNETLINK answers: Operation not permitted
sonic-otn pushed a commit to sonic-otn/sonic-buildimage that referenced this pull request Sep 20, 2023
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.

6 participants