This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
sonic-buildimage/src
Mohamed Ghoneim f21a45b68a
[build] fix build exception and revert #9136 (#10037)
#### Why I did it

1. Fix Build exception [example](https://dev.azure.com/mssonic/build/_build/results?buildId=73911&view=logs&jobId=88ce9a53-729c-5fa9-7b6e-3d98f2488e3f&j=cef3d8a9-152e-5193-620b-567dc18af272&t=ac3bce9f-b126-5a26-3fee-28ce0ec1679d)

```
2022-02-19T01:54:23.4200556Z ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/usr/local/lib/python3.8/dist-packages/markupsafe/__init__.py)
```

This is because Jinja2 uses MarkupSafe without specifying an upper limit to the version, MarkupSafe version that was released today removed 'soft_unicode'. So now Jinja2 is complaining.

Related issues:
https://github.com/pallets/jinja/issues/1591
https://github.com/aws/aws-sam-cli/issues/3661


2. Reverts #9136

Fixing build failures in SONiC utils [example](https://dev.azure.com/mssonic/build/_build/results?buildId=73784&view=logs&jobId=83516c17-6666-5250-abde-63983ce72a49&j=83516c17-6666-5250-abde-63983ce72a49&t=6177235f-d4f1-5f72-835a-90ebb93a1784)

One of the errors:
```
 TestPathAddressing.test_find_ref_paths__ref_is_the_whole_key__returns_ref_paths 

self = <tests.generic_config_updater.gu_common_test.TestPathAddressing testMethod=test_find_ref_paths__ref_is_the_whole_key__returns_ref_paths>

    def test_find_ref_paths__ref_is_the_whole_key__returns_ref_paths(self):
        # Arrange
        path = "/PORT/Ethernet0"
        expected = [
            "/ACL_TABLE/NO-NSW-PACL-V4/ports/0",
            "/VLAN_MEMBER/Vlan1000|Ethernet0",
        ]
    
        # Act
        actual = self.path_addressing.find_ref_paths(path, Files.CROPPED_CONFIG_DB_AS_JSON)
    
        # Assert
>       self.assertEqual(expected, actual)
E       AssertionError: Lists differ: ['/ACL_TABLE/NO-NSW-PACL-V4/ports/0', '/VLAN_MEMBER/Vlan1000|Ethernet0'] != ['/ACL_TABLE/NO-NSW-PACL-V4/ports/0']
E       
E       First list contains 1 additional elements.
E       First extra element 1:
E       '/VLAN_MEMBER/Vlan1000|Ethernet0'
E       
E       - ['/ACL_TABLE/NO-NSW-PACL-V4/ports/0', '/VLAN_MEMBER/Vlan1000|Ethernet0']
E       + ['/ACL_TABLE/NO-NSW-PACL-V4/ports/0']
```

The VLAN_MEMBER backlink (can be called referrer link or ref link) is not found.

Issue introduced by https://github.com/Azure/sonic-buildimage/pull/9136
I don't know how this PR passed the build system, it should have failed.

Known YANG issue https://github.com/Azure/sonic-buildimage/issues/9312

#### How I did it
The import to `sonic-vlan` is breaking the build
```
    import sonic-vlan {
        prefix vlan;
    }
```

I am not sure if that's the only issue, so I think reverting the whole PR should be the safer option.

#### How to verify it
Ran sonic-utils tests locally.
2022-02-21 11:07:29 -08:00
..
bash [Bash] Fix bash build break when re-build bash issue. (#9027) 2021-10-22 10:29:12 +08:00
dhcp6relay [dhcp6relay] Support relaying Relay-Forward message (#9887) 2022-02-01 11:36:48 -08:00
dhcpmon Package debugging and hardening for dhcpmon and dhcp6relay (#9862) 2022-01-27 17:48:58 -08:00
ethtool [arm] support compile sonic arm image on arm server (#7285) 2021-04-18 08:17:57 -07:00
flashrom Flashrom refactoring for broadcom platforms (#7693) 2021-06-22 15:29:21 -07:00
gobgp Update go version to 1.11.2 for gobgp and telemetry (#2230) 2018-11-09 21:56:39 -08:00
hiredis [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
iccpd MCLAG enhacements ICCPd initial code commit (#4819) 2021-08-03 17:32:50 -07:00
ifupdown2 ifupdown2: Don't check for new IP addresses if dhcp-wait is set to no (#8535) 2021-08-20 20:28:35 -07:00
initramfs-tools Update initramfs-tools from 0.133 to 0.140 2021-11-10 15:27:22 -08:00
iproute2 [iproute2]: Add macsec-xpn-support iproute2 in syncd (#8702) 2021-11-25 21:38:17 +08:00
iptables Ported iptables patch to 5.10 kernel (#4) 2021-11-10 15:27:22 -08:00
isc-dhcp [docker-dhcprelay]: Update to Bullseye (#9736) 2022-01-18 15:11:36 -08:00
ixgbe Reorganize .gitignore files (#4707) 2020-06-09 21:04:55 -07:00
kdump-tools Update kdump-tools for bullseye 2021-11-10 15:27:22 -08:00
libnl3 [MPLS][libnl3] libnl patches for supporting MPLS 2021-06-16 15:08:23 -07:00
libteam [libteam][warm-reboot] fix issue in teamd warm-reboot that teamd starts (#8227) 2021-08-16 02:54:09 -07:00
libyang Python 2 removal/cleanup 2021-11-10 15:27:22 -08:00
libyang1 [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
linkmgrd@ef1f5ebc9a [sonic-linkmgrd][master] submodule update (#9904) 2022-02-05 13:07:32 -08:00
lldpd [LLDPD] fix to port remove and immediately create problem (#9519) 2021-12-15 13:06:40 -08:00
lm-sensors [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
monit Update monit build for Bullseye 2021-11-10 15:27:22 -08:00
mpdecimal [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
ntp Upgrade to ntp 4.2.8p15 for Bullseye 2021-11-10 15:27:22 -08:00
openssh openssh: Upgrade from 7.9 to 8.4, to match version in Bullseye 2021-11-10 15:27:22 -08:00
ptf@36a3e3d9ac [docker-sonic-mgmt] install ptf framework in mgmt container and upgrade ptf (#3239) 2019-07-30 10:19:48 -07:00
radius [radius]: RADIUS Management User Authentication (#7551) 2021-06-14 07:57:01 -07:00
redis [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
redis-dump-load@7585497951 [redis-dump-load] Update submodule (#5215) 2020-08-19 11:23:42 -07:00
redis-dump-load.patch [build] Use pip to install setup.py dependency instead of python setup.py install (#8997) 2021-10-26 21:12:45 -07:00
sflow [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
smartmontools [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
snmpd Update snmpd to 5.9, as part of the Bullseye upgrade 2021-11-10 15:27:22 -08:00
socat Create docker-base-bullseye and docker-config-engine-bullseye (#9666) 2022-01-11 09:23:42 -08:00
sonic-bgpcfgd Updated Internal BGP Templates for chassis packet (#9674) 2022-02-08 09:36:32 -08:00
sonic-build-hooks [build] docker-sonic-mgmt replace USER by whoami (#9702) 2022-01-11 16:48:04 +08:00
sonic-config-engine [radv] Support multiple ipv6 prefixes per vlan interface (#9934) 2022-02-16 14:17:26 -08:00
sonic-ctrmgrd [k8s]: disable http_proxy for docker by default (#8328) 2021-08-04 00:30:43 -07:00
sonic-dbsyncd@df46ed418e [submodule update] sonic-db-syncd (#7225) 2021-04-03 07:36:11 -07:00
sonic-device-data [ragile] support 32c and 4s platform (#8824) 2021-11-17 23:49:06 -08:00
sonic-frr Fix IPv4 routes with IPv6 link local next hops installed in FPM (#8740) 2022-01-17 19:40:50 -08:00
sonic-frr-mgmt-framework [frrcfgd][bgpcfgd] Add portchannel support (#8911) 2021-10-12 18:54:37 -07:00
sonic-host-services caclmgrd: remove permit source port 179 (#9827) 2022-02-17 15:04:59 -08:00
sonic-host-services-data Revert "sysready (#8889)" 2021-11-10 15:36:20 -08:00
sonic-linux-kernel@10ef3904d9 [submodule] Update linux-kernel submodule pointer (#9937) 2022-02-13 17:13:48 +02:00
sonic-mgmt-common@d43a607d75 [submodule]: update sonic-mgmt-common (#9785) 2022-01-18 21:05:46 +08:00
sonic-mgmt-framework@3c3384cec8 Mgmt reorg -- submodule and build rules for sonic-mgmt-common (#4765) 2020-06-22 16:01:55 -07:00
sonic-p4rt [PINS] Build P4RT container for PINS (#9083) 2021-12-07 11:11:25 -08:00
sonic-platform-common@ee122155e0 [Submodule] sonic-platform-common submodule update (#9753) 2022-01-15 10:43:25 +05:30
sonic-platform-daemons@94fa239a7b [y_cable] Support for initialization of new daemon ycable to support ycables (#9125) 2022-01-25 11:10:25 -08:00
sonic-platform-pde@f18ebc297d [PDE]: introduce the SONiC Platform Development Env (#7510) 2021-07-24 16:24:43 -07:00
sonic-py-common Cache connection handles to prevent duplicate (#9636) 2022-01-07 12:58:01 -08:00
sonic-py-swsssdk@7cd7e0c158 [submodule] swss-common and py-swssdk updates (#9777) 2022-02-18 13:24:04 -08:00
sonic-restapi@94805a39ac [RESTAPI] Update submodule (#9547) 2021-12-17 09:21:32 -08:00
sonic-sairedis@d5866a3dcc [submodule update] sonic-sairedis (#9750) 2022-01-13 08:17:39 -08:00
sonic-snmpagent@4ee573cddc update sonic-snmpagent submodule (#9935) 2022-02-13 15:01:40 +02:00
sonic-swss@53c630b82d [submodule] Update sonic-swss submodule pointer (#9859) 2022-02-01 19:20:00 +02:00
sonic-swss-common@14f068e816 [submodule] swss-common and py-swssdk updates (#9777) 2022-02-18 13:24:04 -08:00
sonic-telemetry@0443e66050 [submodule]: update telemetry submodule (#8282) 2021-07-29 16:53:41 -07:00
sonic-utilities@b6ca76b482 [submodule] Update sonic-utilities submodule (#9871) 2022-02-07 12:58:47 +02:00
sonic-yang-mgmt [yang] Fixing groupings when grouping is in the same module file (#9880) 2022-01-28 10:23:38 -08:00
sonic-yang-models [build] fix build exception and revert #9136 (#10037) 2022-02-21 11:07:29 -08:00
sonic-ztp@f7dd3c54ec [sonic-ztp] Submodule update (#9589) 2022-01-02 17:56:14 +02:00
swig [build]: fix dpkg admindir corruption issue in parallel build (#6408) 2021-01-12 06:03:12 -08:00
system-health Make system health service start early (#9792) 2022-01-27 13:46:52 +02:00
systemd-sonic-generator [build]: marvell-armhf bullseye fixes (#9243) 2021-11-13 10:48:58 -08:00
tacacs [TACACS] fix src\tacacs\bash_tacplus\debian\rules file mode to 755 because it will be change to 755 by debian build and cause dirty image version. (#9821) 2022-01-21 22:28:31 +08:00
thrift Fix CVE-2017-1000487 security alert (#7173) 2021-03-31 22:45:06 -07:00
thrift_0_14_1 Bump Thrift version from 0.13.0 to 0.14.1 (#9881) 2022-02-15 16:39:47 -08:00
wpasupplicant [submodule]: update sonic-wpa-supplicant (#9388) 2022-01-12 20:27:02 -08:00