Activity log for bug #2069938

Date Who What changed Old value New value Message
2024-06-20 07:02:51 Amit Uniyal bug added bug
2024-06-20 07:07:19 Amit Uniyal description trait show API only returns 204, not even trait ID if trait exits, which does not help much, I should tell more. https://docs.openstack.org/api-ref/placement/#show-traits 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 | | +------------+--------------+------+-----+---------+----------------+ trait show API only returns 204, not even trait ID if trait exits, which does not help much, it should tell more. https://docs.openstack.org/api-ref/placement/#show-traits 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 | | +------------+--------------+------+-----+---------+----------------+
2024-06-20 07:29:07 Amit Uniyal description trait show API only returns 204, not even trait ID if trait exits, which does not help much, it should tell more. https://docs.openstack.org/api-ref/placement/#show-traits 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 | | +------------+--------------+------+-----+---------+----------------+ trait show API only returns 204, not even trait ID if trait exits, which does not help much, it should tell more. https://docs.openstack.org/api-ref/placement/#show-traits Show should atleast have in-use information. $ openstack trait show CUSTOM_WB_HOST2 +-------+-----------------+ | Field | Value | +-------+-----------------+ | name | CUSTOM_WB_HOST2 | +-------+-----------------+ Use case: # it may not be something operator really do 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 | | +------------+--------------+------+-----+---------+----------------+