[mgmt-vrf]: Fix mgmt VRF configuration failure#25332
[mgmt-vrf]: Fix mgmt VRF configuration failure#25332lihuay merged 12 commits intosonic-net:masterfrom
Conversation
Older versions of iproute2 package created /etc/iproute2/rt_tables.d directory because of which ifupdown2_vrf_map.conf generation succeeded. New version of iproute2 (6.15.0-1) in trixie doesn't create /etc/iproute2, because of this vrf map conf generation failing, inturn resulting in mgmt VRF creation failure Fix is to ensure /etc/iproute2/rt_tables.d directory present before generating ifupdown2_vrf_map.conf Signed-off-by: Ravi Minnikanti <rminnikanti@marvell.com>
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@rminnikanti, Is this an upstream commit? If not, it is worth upstreaming it to ifupdown2 IMO |
|
/azp run Azure.sonic-buildimage |
@vivekrnv, thanks for the review. I see that this change is not present in upstream. Sure, I will upstream it. |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Created: |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@rminnikanti , Please re-trigger the CI |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@saiarcot895 can this be merged? |
|
Can a user with write-permission please approve this |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Older versions of iproute2 package created /etc/iproute2/rt_tables.d directory because of which ifupdown2_vrf_map.conf generation succeeded. New version of iproute2 (6.15.0-1) in trixie doesn't create /etc/iproute2, because of this vrf map conf generation failing, inturn resulting in mgmt VRF creation failure Fix is to ensure /etc/iproute2/rt_tables.d directory present before generating ifupdown2_vrf_map.conf Signed-off-by: Ravi Minnikanti <rminnikanti@marvell.com> Co-authored-by: Lihua Yuan <lihuay@users.noreply.github.com> Signed-off-by: Feng Pan <fenpan@microsoft.com>
|
Cherry-pick PR to 202511: #25978 |
Older versions of iproute2 package created /etc/iproute2/rt_tables.d directory because of which ifupdown2_vrf_map.conf generation succeeded. New version of iproute2 (6.15.0-1) in trixie doesn't create /etc/iproute2, because of this vrf map conf generation failing, inturn resulting in mgmt VRF creation failure Fix is to ensure /etc/iproute2/rt_tables.d directory present before generating ifupdown2_vrf_map.conf Signed-off-by: Ravi Minnikanti <rminnikanti@marvell.com> Co-authored-by: Lihua Yuan <lihuay@users.noreply.github.com>
Why I did it
Adding mgmt vrf is failing on latest 202511 images after trixie update. Older versions of iproute2 package on bookworm (6.1.0-3) has /etc/iproute2/rt_tables.d directory because of which ifupdown2_vrf_map.conf generated by ifupdown2 in this directory always succeeded.
New version of iproute2 (6.15.0-1) in trixie doesn't have /etc/iproute2 directory, because of which vrf map conf generation failing, in-turn resulting in mgmt VRF creation failure.
Work item tracking
How I did it
Fix is to ensure /etc/iproute2/rt_tables.d directory present before generating ifupdown2_vrf_map.conf in ifupdown2 vrf addon.
How to verify it
Create mgmt VRF and observe the failure without the fix.
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Fixed mgmt VRF addition failure after trixie upgrade
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)