Request for Debugging Steps or disabling (202305 branch) - Build Failure: sonic_utilities-1.2-py3-none-any.whl

60 views
Skip to first unread message

Margam Mahesh

unread,
Mar 24, 2025, 4:35:41 PMMar 24
to sonicp...@googlegroups.com
Dear Sonic Community,


We encountered a build failure on Ubuntu 20 for the 202305 branch
during the process of building sonic-broadcom.bin, specifically
related to the sonic_utilities-1.2-py3-none-any.whl package. The build
log indicates the following:

==== 12 failed, 2668 passed, 3 skipped, 22 warnings in 804.45s (0:13:24) ======
[ FAIL LOG END ] [
target/python-wheels/bullseye/sonic_utilities-1.2-py3-none-any.whl ]
make: *** [slave.mk:885:
target/python-wheels/bullseye/sonic_utilities-1.2-py3-none-any.whl]
Error 1
make[1]: *** [Makefile.work:608: target/sonic-broadcom.bin] Error 2
make[1]: Leaving directory '/b//work/new/sonic-buildimage'
make: *** [Makefile:41: target/sonic-broadcom.bin] Error 2

From this output, we understand that:

The sonic_utilities-1.2-py3-none-any.whl package failed to build.
This failure resulted in the subsequent failure of target/sonic-broadcom.bin.

However, the provided log lacks sufficient detail to pinpoint the root
cause of the sonic_utilities-1.2-py3-none-any.whl build failure, is
there any way to skip this?

We would greatly appreciate it if someone could provide detailed
debugging steps to help us understand and resolve this issue.
Specifically, we are looking for information on:

How to extract more verbose make logs for the build process.(V=1 didn't helped)
If there are any known issues with the bullseye build environment.

Providing precise steps and instructions would be incredibly helpful
in resolving this build issue.

Thank you for your time and assistance.

Sincerely,

Mahesh

Murali Vemula

unread,
Mar 25, 2025, 11:27:28 PMMar 25
to sonicproject
Dear Team,

I also got the same error and here are more details on this. Any help will be appreciated.

Thanks,
Murali

tests/cli_autogen_yang_parser_test.py:149:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/cli_autogen_yang_parser_test.py:158: in base_test
    parser = YangParser(yang_model_name=yang_model_name,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <sonic_cli_gen.yang_parser.YangParser object at 0x7f95a8527eb0>
yang_model_name = 'sonic-grouping-complex'
config_db_path = '/sonic/src/sonic-utilities/tests/mock_tables/config_db.json'
allow_tbl_without_yang = True, debug = False

    def __init__(self,
                 yang_model_name,
                 config_db_path,
                 allow_tbl_without_yang,
                 debug):
        self.yang_model_name = yang_model_name
        self.conf_mgmt = None
        self.y_module = None
        self.y_top_level_container = None
        self.y_table_containers = None
        self.yang_2_dict = dict()

        try:
            self.conf_mgmt = ConfigMgmt(config_db_path,
                                        debug,
                                        allow_tbl_without_yang)
        except Exception as e:
>           raise Exception("Failed to load the {} class".format(str(e)))
E           Exception: Failed to load the ConfigMgmt Class creation failed class

sonic_cli_gen/yang_parser.py:76: Exception
----------------------------- Captured stdout call -----------------------------
sonic_yang(3):Failed to load yang module file: /usr/local/yang-models/sonic-dynamic-object-complex-1.yang
sonic_yang(3):Opening file "/usr/local/yang-models/sonic-dynamic-object-complex-1.yang" failed (Permission denied).
sonic_yang(3):Yang Models Load failed:[priority,] message string
Yang Models Load failed
[priority,] message string
----------------------------- Captured stderr call -----------------------------
libyang[0]: Opening file "/usr/local/yang-models/sonic-dynamic-object-complex-1.yang" failed (Permission denied).

Murali Vemula

unread,
Mar 26, 2025, 12:33:18 AMMar 26
to sonicproject
Towards the end this is the error message.

Build server is Ubuntu 20.04.

Thanks,
Murali


----------------------------------------------------------------------------------------
TOTAL                                                  42168   9726  15012   2257    74%
Coverage HTML written to dir htmlcov
Coverage XML written to file coverage.xml

=========================== short test summary info ============================
FAILED tests/cli_autogen_yang_parser_test.py::TestYangParser::test_1_table_container
FAILED tests/cli_autogen_yang_parser_test.py::TestYangParser::test_2_table_containers
FAILED tests/cli_autogen_yang_parser_test.py::TestYangParser::test_1_object_container
FAILED tests/cli_autogen_yang_parser_test.py::TestYangParser::test_2_object_containers
FAILED tests/cli_autogen_yang_parser_test.py::TestYangParser::test_1_list - E...
FAILED tests/cli_autogen_yang_parser_test.py::TestYangParser::test_2_lists - ...
FAILED tests/cli_autogen_yang_parser_test.py::TestYangParser::test_static_object_complex_1
FAILED tests/cli_autogen_yang_parser_test.py::TestYangParser::test_static_object_complex_2
FAILED tests/cli_autogen_yang_parser_test.py::TestYangParser::test_dynamic_object_complex_1
FAILED tests/cli_autogen_yang_parser_test.py::TestYangParser::test_dynamic_object_complex_2
FAILED tests/cli_autogen_yang_parser_test.py::TestYangParser::test_choice_complex
FAILED tests/cli_autogen_yang_parser_test.py::TestYangParser::test_grouping_complex
===== 12 failed, 2668 passed, 3 skipped, 22 warnings in 863.15s (0:14:23) ======

[  FAIL LOG END  ] [ target/python-wheels/bullseye/sonic_utilities-1.2-py3-none-any.whl ]
make: *** [slave.mk:885: target/python-wheels/bullseye/sonic_utilities-1.2-py3-none-any.whl] Error 1
make: *** Waiting for unfinished jobs....
make[1]: *** [Makefile.work:608: all] Error 2
make[1]: Leaving directory '/b/mvemula/sonic-buildimage'
make: *** [Makefile:41: all] Error 2

tsado...@gmail.com

unread,
Mar 28, 2025, 2:17:01 PMMar 28
to Murali Vemula, sonicproject

Hey,

 

May I know why do you need 202305 branch?

 

--

Tomasz Sadowski

Turning Network Teams into SONiC & Linux Ninjas 🥷

🔗 linkedin.com/in/tomasz-sadowski-it/ | Active in SONiC momentum

🌍 Open Networking Enthusiast

--
You received this message because you are subscribed to the Google Groups "sonicproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
sonicproject...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/sonicproject/619d31d6-a9de-45ed-b7f9-8ae6eecbca85n%40googlegroups.com.

Mahesh Margam

unread,
Mar 28, 2025, 10:49:34 PMMar 28
to tsado...@gmail.com, Murali Vemula, sonicproject
Hi,

Thank you for your reply,

We're utilizing the 202305 branch of SONiC because it aligns with our
platform build requirements. Specifically, we're aiming to build our
platforms on this particular SONiC branch.

We've encountered some challenges when attempting to build on Ubuntu
20. Ubuntu 20 is supported for the 202305 branch?

Regards,
Mahesh
> To view this discussion visit https://groups.google.com/d/msgid/sonicproject/002c01dba00d%249449b8c0%24bcdd2a40%24%40gmail.com.



--
Best Regards,
Mahesh

tsado...@gmail.com

unread,
Apr 13, 2025, 3:19:46 AMApr 13
to Mahesh Margam, Murali Vemula, sonicproject
Hey,

I've tried to build the 202305 branch and got a lot of errors. I'm unsure if anyone is still using it.
I don't know what you want to achieve, but I believe using the latest branch will be more efficient from a business perspective.

... or you just want to try to force your old platform to work with SONiC? :)

--
Tomasz Sadowski
Building SONiC & Linux Expertise in Network Engineering Teams
🔗 linkedin.com/in/tomasz-sadowski-it| Active in SONiC momentum
🌍 Open Networking Enthusiast
Reply all
Reply to author
Forward
0 new messages