This bug has been migrated to another issue tracking site. It has been closed here and may no longer be being monitored.

If you would like to get updates for this issue, or to participate in it, you may do so at Red Hat Issue Tracker .
Bug 2275329 - Using deprecated version of jsonschema schema for unit tests with redfish module
Summary: Using deprecated version of jsonschema schema for unit tests with redfish module
Keywords:
Status: CLOSED MIGRATED
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-ironic
Version: 18.0 (Zed)
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: OSP Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-04-16 18:30 UTC by Alexon Oliveira
Modified: 2024-04-29 20:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-04-29 20:02:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 2061160 0 None None None 2024-04-16 18:33:25 UTC
OpenStack gerrit 915909 0 None MERGED Remove deprecation warning by setting schema 2024-04-16 18:34:56 UTC
Red Hat Issue Tracker OSP-31896 0 None None None 2024-04-16 18:33:45 UTC
Red Hat Issue Tracker OSP-31980 0 None None None 2024-04-29 20:04:16 UTC
Red Hat Issue Tracker   OSPRH-6658 0 None None None 2024-04-29 20:02:13 UTC

Description Alexon Oliveira 2024-04-16 18:30:54 UTC
Description of problem:

According to bug https://bugs.launchpad.net/ironic/+bug/2061160, our unit tests now issue this warning:

    /home/dtantsur/Projects/ironic/.tox/py3/lib/python3.12/site-packages/jsonschema/validators.py:1300: DeprecationWarning: The metaschema specified by $schema was not found. Using the latest draft to validate, but this will raise an error in the future.
  cls = validator_for(schema)


Version-Release number of selected component (if applicable):

OSP 18 (Zed)

How reproducible:

Always

Steps to Reproduce:

1. Clone the repo and run "tox -e py39 -- ironic.tests.unit.drivers.modules.redfish.test_management" (chose your py version)
2. The warning highlighted in the bug will show up.


Actual results:

DeprecationWarning bein thrown

Expected results:

No DeprecationWarning should be thrown

Additional info:

The following is an acceptable schema:

http://json-schema.org/draft-04/schema#

Comment 2 Alexon Oliveira 2024-04-16 18:37:19 UTC
Patch is available (and merged) in upstream:

https://review.opendev.org/c/openstack/ironic/+/915909

Same was backported to downstream. Waiting for review and merging.

Comment 3 Steve Baker 2024-04-29 20:01:53 UTC
Since this is for 18.0, migrated to https://issues.redhat.com/browse/OSPRH-6658


Note You need to log in before you can comment on or make changes to this bug.