Skip to content

[Fixbug][fast-reboot] [ErrLog] Fix database.sh error log for dpu database#19601

Merged
lguohan merged 1 commit intosonic-net:masterfrom
Pterosaur:fix_issue_19331
Aug 5, 2024
Merged

[Fixbug][fast-reboot] [ErrLog] Fix database.sh error log for dpu database#19601
lguohan merged 1 commit intosonic-net:masterfrom
Pterosaur:fix_issue_19331

Conversation

@Pterosaur
Copy link
Contributor

@Pterosaur Pterosaur commented Jul 17, 2024

Why I did it

Fix #19331

Work item tracking
  • Microsoft ADO (number only):

How I did it

Skip the namespace setting if the dev is DPU, because the DPU databases are only in the host namespace

How to verify it

Check there is no error log after fast-reboot

admin@vlab-01:~$ sudo cat /var/log/syslog  | grep -i asicdpu

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

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

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)

Signed-off-by: Ze Gan <zegan@microsoft.com>
@prgeor
Copy link
Contributor

prgeor commented Jul 26, 2024

@lguohan please merge

@lguohan lguohan merged commit 856bef7 into sonic-net:master Aug 5, 2024
mssonicbld pushed a commit to mssonicbld/sonic-buildimage that referenced this pull request Sep 20, 2024
…base (sonic-net#19601)

Fix sonic-net#19331

How I did it
Skip the namespace setting if the dev is DPU, because the DPU databases are only in the host namespace

How to verify it
Check there is no error log after fast-reboot

admin@vlab-01:~$ sudo cat /var/log/syslog  | grep -i asicdpu

Signed-off-by: Ze Gan <zegan@microsoft.com>
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202405: #20320

mssonicbld pushed a commit that referenced this pull request Sep 21, 2024
…base (#19601)

Fix #19331

How I did it
Skip the namespace setting if the dev is DPU, because the DPU databases are only in the host namespace

How to verify it
Check there is no error log after fast-reboot

admin@vlab-01:~$ sudo cat /var/log/syslog  | grep -i asicdpu

Signed-off-by: Ze Gan <zegan@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[fast-reboot] [ErrLog] ERR sonic-db-cli: :- getDbInfo: Key :asicdpu1 is not a valid key name in config file

6 participants