$ openstack trait show CUSTOM_WB_HOST2
+-------+-----------------+
| Field | Value |
+-------+-----------------+
| name | CUSTOM_WB_HOST2 |
+-------+-----------------+
Use case:
operator need to delete a trait.
$ openstack trait delete CUSTOM_WB_HOST2
The trait CUSTOM_WB_HOST2 is in use by a resource provider. (HTTP 409)
trait DB do not have status or in-use field.
MariaDB [placement]> desc traits
-> ;
+------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+------------+--------------+------+-----+---------+----------------+
| created_at | datetime | YES | | NULL | |
| updated_at | datetime | YES | | NULL | |
| id | int(11) | NO | PRI | NULL | auto_increment |
| name | varchar(255) | NO | UNI | NULL | |
+------------+--------------+------+-----+---------+----------------+
trait show API only returns 204, not even trait ID if trait exits, which does not help much, I should tell more. /docs.openstack .org/api- ref/placement/ #show-traits
https:/
Show should atleast have in-use information.
$ openstack trait show CUSTOM_WB_HOST2 -+----- ------- -----+ -+----- ------- -----+ -+----- ------- -----+
+------
| Field | Value |
+------
| name | CUSTOM_WB_HOST2 |
+------
Use case:
operator need to delete a trait.
$ openstack trait delete CUSTOM_WB_HOST2
The trait CUSTOM_WB_HOST2 is in use by a resource provider. (HTTP 409)
trait DB do not have status or in-use field.
MariaDB [placement]> desc traits ------+ ------- ------- +------ +-----+ ------- --+---- ------- -----+ ------+ ------- ------- +------ +-----+ ------- --+---- ------- -----+ ------+ ------- ------- +------ +-----+ ------- --+---- ------- -----+
-> ;
+------
| Field | Type | Null | Key | Default | Extra |
+------
| created_at | datetime | YES | | NULL | |
| updated_at | datetime | YES | | NULL | |
| id | int(11) | NO | PRI | NULL | auto_increment |
| name | varchar(255) | NO | UNI | NULL | |
+------