sonic-utilities icon indicating copy to clipboard operation
sonic-utilities copied to clipboard

Fix for GCU function modification for HEAD PR

Open sabakram opened this issue 2 years ago • 9 comments

What I did

This PR is created to resolve submodule HEAD PR KVM t0 Elastic failure issues. KVM Elastic test cases are failing due to missing mode attribute in configuration. When a rollback checks an exisitng patch it showns error: "All keys are not parsed in PORT". "dict_keys(['Ethernet4'])" "exceptionList: [" 'mode' "]

This PR Updated GCU function so that it can be compatible with HEAD PR and passed. This proposed change is a temporary solution to pass failing testcases and it will be reverted back once in hand issue is resolved and sub-modules are added in HEAD.

How I did it

Modified generic_updater.py. Added a logic in def replace function such that it will not fail in rollback. In this way it will pass KVM Elastic (GCU_Dhcp_relay.py test)

sabakram avatar Sep 21 '23 06:09 sabakram

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: sabakram / name: Saba Akram (88eb0581c9ce5804c08e0627be259251be935b8c, 990973fbd6ac2e1d7ea85683b35af9adfd18c382, 5e8cd03e66828f86139a5a12088d710cc008fd87, 44ef3d8b2a267c078d65477035976788d802b2b9)

@qiluo-msft , can you please help review and merge this PR.

ridahanif96 avatar Sep 22 '23 10:09 ridahanif96

@gechiang can you please help review this PR. Thanks!

ridahanif96 avatar Sep 24 '23 11:09 ridahanif96

@yejianquan , I think you were helping @ridahanif96 on this submodule head PR failure. Please check if this is what would "fix" the issue?
Also tagged @qiluo-msft to help review and what this PR is trying to do is acceptable...

gechiang avatar Sep 26 '23 23:09 gechiang

@yejianquan , I think you were helping @ridahanif96 on this submodule head PR failure. Please check if this is what would "fix" the issue?
Also tagged @qiluo-msft to help review and what this PR is trying to do is acceptable...

@gechiang thanks!

ridahanif96 avatar Sep 26 '23 23:09 ridahanif96

@yejianquan , I think you were helping @ridahanif96 on this submodule head PR failure. Please check if this is what would "fix" the issue? Also tagged @qiluo-msft to help review and what this PR is trying to do is acceptable...

@gechiang , In sonic-mgmt repo, Rida had made the compatible change, but I'm still not sure whether this PR could resolve the advancing issue totally since there's implicitly data format things...

I left some comments on the code style side, still need @qiluo-msft to help review for make sure whether 'what this PR is trying to do is acceptable'.

yejianquan avatar Sep 27 '23 00:09 yejianquan

@yejianquan , I think you were helping @ridahanif96 on this submodule head PR failure. Please check if this is what would "fix" the issue? Also tagged @qiluo-msft to help review and what this PR is trying to do is acceptable...

@gechiang , In sonic-mgmt repo, Rida had made the compatible change, but I'm still not sure whether this PR could resolve the advancing issue totally since there's implicitly data format things...

I left some comments on the code style side, still need @qiluo-msft to help review for make sure whether 'what this PR is trying to do is acceptable'.

@yejianquan all of your suggestions are incorportated,thanks. @qiluo-msft can you please help in review this PR, so we can resolve HEAD PR issue, thanks.

ridahanif96 avatar Sep 28 '23 07:09 ridahanif96

@qiluo-msft , can you please help review this PR? Its a time sensitive issue for HEAD PR.

ridahanif96 avatar Oct 04 '23 07:10 ridahanif96

The root issue is PORT/mode is not yang modelled. I see open PR https://github.com/sonic-net/sonic-buildimage/pull/13580.

qiluo-msft avatar Oct 06 '23 00:10 qiluo-msft