report exist trait exception

Bug #2029890 reported by Wenping Song
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cyborg (OpenStack)
Fix Released
Undecided
Wenping Song

Bug Description

as the placement only accept the traits that with "CUSTOM_" prefix, when we report the "OWNER_" prefix trait, the cyborg-conductor will raise excetpion below:
Failed to add device DriverDevice(controlpath_id=DriverControlPathID,created_at=<?>,deployable_list=[DriverDeployable],model='NVIDIA Corporation GV100GL [Tesla V100 PCIe 3
2GB]',std_board_info='{"product_id": "1db6", "controller": "3D controller"}',stub=False,type='GPU',updated_at=<?>,vendor='10de',vendor_board_info='{"device_address": "0000:86:00.0", "vgpu_type": null}'). Reason: Failed to create trait OWNER_CYBORG: HTTP 400: {"errors": [{"status": 400,
"title": "Bad Request", "detail": "The server could not comply with the request since it is either malformed or otherwise incorrect.\n\n The trait is invalid. A valid trait must be no longer than 255 characters, start with the prefix \"CUSTOM_\" and use following characters: \"A\"-\"Z\"
, \"0\"-\"9\" and \"_\" ", "request_id": "req-0cf3985a-d054-4d0b-b7a2-adfd428401dc"}]}

Revision history for this message
Wenping Song (wenping1) wrote :

filter the existed trait when put the trait to placement.

Changed in openstack-cyborg:
assignee: nobody → Wenping Song (wenping1)
status: New → Incomplete
description: updated
Revision history for this message
moneyles (moneysdfr) wrote :

Internal linking: Linking to other pertinent pages on the same website makes it easier for users to navigate and for search engines to find and crawl additional content. https://techzone-agency.com/

Changed in openstack-cyborg:
status: Incomplete → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cyborg (master)

Reviewed: https://review.opendev.org/c/openstack/cyborg/+/890515
Committed: https://opendev.org/openstack/cyborg/commit/867931fb83ead0b71a4951e42774cafd337625f8
Submitter: "Zuul (22348)"
Branch: master

commit 867931fb83ead0b71a4951e42774cafd337625f8
Author: songwenping <email address hidden>
Date: Fri Aug 4 18:21:07 2023 +0800

    Fix bug: report exist trait exception

    check the trait first before create trait to placement

    Closes-Bug: #2029890
    Change-Id: I37cddd13c12536bc20bd6039127d348e6f9949da

Changed in openstack-cyborg:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/cyborg 11.0.0.0rc1

This issue was fixed in the openstack/cyborg 11.0.0.0rc1 release candidate.

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.