[CI][ovs/ovn sqlalchemy master] jobs broken with Exception: Not enough arguments given

Bug #2052509 reported by yatin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Undecided
Slawek Kaplonski
neutron
Fix Released
Critical
Slawek Kaplonski

Bug Description

Fails like:-
2024-02-06 02:28:34.618579 | controller | ++ inc/python:_setup_package_with_constraints_edit:400 : cd /opt/stack/sqlalchemy
2024-02-06 02:28:34.621804 | controller | ++ inc/python:_setup_package_with_constraints_edit:400 : pwd
2024-02-06 02:28:34.624859 | controller | + inc/python:_setup_package_with_constraints_edit:400 : project_dir=/opt/stack/sqlalchemy
2024-02-06 02:28:34.627646 | controller | + inc/python:_setup_package_with_constraints_edit:402 : '[' -n /opt/stack/requirements ']'
2024-02-06 02:28:34.630146 | controller | + inc/python:_setup_package_with_constraints_edit:406 : local name
2024-02-06 02:28:34.633640 | controller | ++ inc/python:_setup_package_with_constraints_edit:407 : awk '/^name.*=/ {print $3}' /opt/stack/sqlalchemy/setup.cfg
2024-02-06 02:28:34.639338 | controller | + inc/python:_setup_package_with_constraints_edit:407 : name=
2024-02-06 02:28:34.641840 | controller | + inc/python:_setup_package_with_constraints_edit:409 : /opt/stack/requirements/.venv/bin/edit-constraints /opt/stack/requirements/upper-constraints.txt --
2024-02-06 02:28:34.784286 | controller | Traceback (most recent call last):
2024-02-06 02:28:34.784331 | controller | File "/opt/stack/requirements/.venv/bin/edit-constraints", line 10, in <module>
2024-02-06 02:28:34.784449 | controller | sys.exit(main())
2024-02-06 02:28:34.784484 | controller | File "/opt/stack/requirements/.venv/lib/python3.10/site-packages/openstack_requirements/cmds/edit_constraint.py", line 66, in main
2024-02-06 02:28:34.784629 | controller | _validate_options(options, args)
2024-02-06 02:28:34.784661 | controller | File "/opt/stack/requirements/.venv/lib/python3.10/site-packages/openstack_requirements/cmds/edit_constraint.py", line 47, in _validate_options
2024-02-06 02:28:34.784783 | controller | raise Exception("Not enough arguments given")
2024-02-06 02:28:34.784821 | controller | Exception: Not enough arguments given
2024-02-06 02:28:34.805546 | controller | + inc/python:_setup_package_with_constraints_edit:1 : exit_trap
2024-02-06 02:28:34.808305 | controller | + ./stack.sh:exit_trap:549 : local r=1

Example log:- https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_22d/periodic/opendev.org/openstack/neutron/master/neutron-ovs-tempest-with-sqlalchemy-master/22dfd7f/job-output.txt

Builds:- https://zuul.openstack.org/builds?job_name=neutron-ovs-tempest-with-sqlalchemy-master&job_name=neutron-ovn-tempest-with-sqlalchemy-master

Broken since https://github.com/sqlalchemy/sqlalchemy/commit/a8dbf8763a8fa2ca53cc01033f06681a421bf60b

Changed in neutron:
assignee: nobody → Slawek Kaplonski (slaweq)
importance: Undecided → Critical
status: New → Confirmed
Revision history for this message
Slawek Kaplonski (slaweq) wrote :
Changed in neutron:
status: Confirmed → In Progress
Changed in devstack:
status: New → In Progress
assignee: nobody → Slawek Kaplonski (slaweq)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.opendev.org/c/openstack/devstack/+/908572
Committed: https://opendev.org/openstack/devstack/commit/4ddd456dd3e71bcdf9a02a12dd5914b82ec48e91
Submitter: "Zuul (22348)"
Branch: master

commit 4ddd456dd3e71bcdf9a02a12dd5914b82ec48e91
Author: Slawek Kaplonski <email address hidden>
Date: Fri Feb 9 14:11:44 2024 +0100

    Add support for the pyproject.toml file in setup with constraints

    In the _setup_package_with_constraints_edit name of the package was
    always discovered from the setup.cfg file. But as some projects
    implements PEP-621 (see [1] for the SQLAlchemy for example) it is not
    enough now.
    This patch adds parsing pyproject.toml file also if name is not found in
    the setup.cfg file.

    [1] https://github.com/sqlalchemy/sqlalchemy/commit/a8dbf8763a8fa2ca53cc01033f06681a421bf60b

    Closes-Bug: #2052509
    Change-Id: Iee9262079d09a8bd22cd05a8f17950a41a0d1f9d

Changed in devstack:
status: In Progress → Fix Released
Changed in neutron:
status: In Progress → Triaged
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.