Skip to content

Fixed restapi.service_branch files inside docker-restapi-sidecar#25429

Merged
qiluo-msft merged 2 commits intosonic-net:masterfrom
qiluo-msft:qiluo/restservuser
Feb 19, 2026
Merged

Fixed restapi.service_branch files inside docker-restapi-sidecar#25429
qiluo-msft merged 2 commits intosonic-net:masterfrom
qiluo-msft:qiluo/restservuser

Conversation

@qiluo-msft
Copy link
Collaborator

Why I did it

Fix restapi.service_202505 with DPU env vars.
Fix User setting in restapi.service_BRANCH files, the change is required to operate k8s rollout containers.

Work item tracking
  • Microsoft ADO (number only):

How I did it

How to verify it

Manually tested on 202505 DUT, checked /usr/lib/systemd/system/restapi.service is expected to be override with changes.

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

  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

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

@qiluo-msft qiluo-msft requested a review from lguohan as a code owner February 11, 2026 00:59
Copilot AI review requested due to automatic review settings February 11, 2026 00:59
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@qiluo-msft qiluo-msft changed the title Qiluo/restservuser Fixed restapi.service_branch files inside docker-restapi-sidecar Feb 11, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the restapi.service systemd service files across multiple SONiC branches to change the User from "admin" to "root", which is required for Kubernetes pod rollout operations. Additionally, it adds DPU environment variables (NUM_DPU and IS_DPU_DEVICE) to the 202505 branch and removes the unused base restapi.service file.

Changes:

  • Updated User directive from "admin" to "root" in all branch-specific service files (202311, 202405, 202411, 202505, 202511)
  • Added NUM_DPU and IS_DPU_DEVICE environment variables to restapi.service_202505
  • Removed the base restapi.service file which was unused since branch-specific files are selected at runtime

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
restapi.service_202511 Changed User from admin to root for k8s operations
restapi.service_202505 Changed User to root and added DPU environment variables
restapi.service_202411 Changed User from admin to root for k8s operations
restapi.service_202405 Changed User from admin to root for k8s operations
restapi.service_202311 Changed User from admin to root for k8s operations
restapi.service Removed unused base service file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@KrisNey-MSFT
Copy link

hi @qiluo-msft looks like changes are approved. Does this need a merge? TY!

@qiluo-msft qiluo-msft merged commit 32dac6f into sonic-net:master Feb 19, 2026
32 checks passed
@qiluo-msft
Copy link
Collaborator Author

Does this need a merge? T

Just merged it.

@qiluo-msft qiluo-msft deleted the qiluo/restservuser branch February 19, 2026 08:22
FengPan-Frank pushed a commit to FengPan-Frank/sonic-buildimage that referenced this pull request Mar 6, 2026
…ic-net#25429)

Why I did it
Fix restapi.service_202505 with DPU env vars.
Fix User setting in restapi.service_BRANCH files, the change is required to operate k8s rollout containers.

Work item tracking
Microsoft ADO (number only):
How I did it
How to verify it
Manually tested on 202505 DUT, checked /usr/lib/systemd/system/restapi.service is expected to be override with changes.

Signed-off-by: Feng Pan <[email protected]>
dprital pushed a commit that referenced this pull request Mar 19, 2026
)

Why I did it
Fix restapi.service_202505 with DPU env vars.
Fix User setting in restapi.service_BRANCH files, the change is required to operate k8s rollout containers.

Work item tracking
Microsoft ADO (number only):
How I did it
How to verify it
Manually tested on 202505 DUT, checked /usr/lib/systemd/system/restapi.service is expected to be override with changes.

Signed-off-by: dprital <[email protected]>
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