Fix version parsing for neutron

The neutron code has removed the pbr package from its dependencies
and changed the `version_info` field from a `VersionInfo` instance
to a simple string. This caused the code generation to fail for
neutron, which is fixed with this commit by simply extracting the
major version from the new string.

Remove the nodeset pin for the keystone-tips job that started to fail on
old runner.

Depends-On: https://review.opendev.org/c/openstack/neutron/+/988378
Change-Id: Icc5e238010bc503fe143d70fa1c40d8d63d91d11
Signed-off-by: Sebastian Hafner <sebastian.hafner@protonmail.com>
Signed-off-by: Artem Goncharov <artem.goncharov@gmail.com>
This commit is contained in:
Sebastian Hafner
2026-05-21 16:36:28 +02:00
committed by Artem Goncharov
parent f16a425af0
commit 1c60a1d01b
3 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -255,8 +255,8 @@ class NeutronGenerator(OpenStackServerSourceBase):
"""Read the spec from file or create an empty one"""
from neutron import version as neutron_version
nv = neutron_version.version_info.semantic_version().version_tuple()
self.api_version = f"2.{nv[0]}"
nv = neutron_version.version_info.split(".")[0]
self.api_version = f"2.{nv}"
impl_path = Path(
work_dir, "openapi_specs", "network", f"v{self.api_version}.yaml"
)
+1 -1
View File
@@ -1264,7 +1264,7 @@ class RustCliGenerator(BaseGenerator):
# mod_name = args.operation_name or args.operation_type.value
impl_path = Path(
work_dir,
"cli-cmd",
"cli",
args.service_type,
"src",
"/".join(x.lower() for x in cli_output_path),
-1
View File
@@ -183,7 +183,6 @@
parent: codegenerator-openapi-tips-base
description: |
Generate OpenAPI spec for Keystone
nodeset: ubuntu-jammy
required-projects:
- name: openstack/keystone