OpenStack Image Unset - Property BadRequestException:400
版本 Stein OpenStack,一个图像已经用HW_SCSI_MODEL ='Virtio-Scsi'
设置了该属性,现在我必须取消设置,但无法正常工作。
# openstack image unset --property hw_scsi_model debian9.5
BadRequestException: 400: Client Error for url: http://10.10.10.10:9292/v2/images/3***0, Bad Request'
# openstack image show debian9.5 -c status -c visibility -c properties
| Field | Value |
| properties | hw_scsi_model='', os_hash_algo='sha512', ...|
| status | active |
| visibility | shared |
将值设置为null
或无
,使用此图像创建服务器,获取错误字段值无效
# openstack image set --property hw_scsi_model='' debian9.5
# openstack image show debian9.5 -c properties -f value
{u'owner_specified.openstack.sha256': u'5**', 'hw_scsi_model': u''}
or
{u'owner_specified.openstack.sha256': u'5**', 'hw_scsi_model': u'None'}
错误日志>:
INFO nova.api.openstack.wsgi [req-***] HTTP exception thrown: Invalid image metadata. Error: Field value is invalid
如何在图像中解开属性?
Version stein openstack, one image had set the property with hw_scsi_model='virtio-scsi'
, now I have to unset it, but can't work.
# openstack image unset --property hw_scsi_model debian9.5
BadRequestException: 400: Client Error for url: http://10.10.10.10:9292/v2/images/3***0, Bad Request'
# openstack image show debian9.5 -c status -c visibility -c properties
| Field | Value |
| properties | hw_scsi_model='', os_hash_algo='sha512', ...|
| status | active |
| visibility | shared |
While set the value to null
or None
, create server with this image, get error Field value is invalid
# openstack image set --property hw_scsi_model='' debian9.5
# openstack image show debian9.5 -c properties -f value
{u'owner_specified.openstack.sha256': u'5**', 'hw_scsi_model': u''}
or
{u'owner_specified.openstack.sha256': u'5**', 'hw_scsi_model': u'None'}
error log:
INFO nova.api.openstack.wsgi [req-***] HTTP exception thrown: Invalid image metadata. Error: Field value is invalid
How could I unset the property in image?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
glance
组件子命令image-update
:一个解决方法:One solve method by
glance
component sub-commandimage-update
: