openstack volume service list 后
±-----------------±--------------±-----±--------±------±---------------------------+
| Binary | Host | Zone | Status | State | Updated At |
±-----------------±--------------±-----±--------±------±---------------------------+
| cinder-scheduler | controller | nova | enabled | up | 2023-04-20T04:59:44.000000 |
| cinder-volume | compute01@lvm | nova | enabled | up | 2023-04-20T04:59:46.000000 |
±-----------------±--------------±-----±--------±------±---------------------------+
openstack volume create --size 1 volume01
The request cannot be fulfilled as the default volume type hdd cannot be found. (HTTP 500) (Request-ID: req-91a0add8-71eb-40dd-8610-9bca90889920)
查看 vim /etc/cinder/cinder.conf 文件
[DEFAULT]
default_volume_type = hdd
问题出在这里,我的硬盘是固态ssd , 修改hdd为ssd
systemctl restart openstack-cinder-api.service openstack-cinder-scheduler.service
重启 cinder
The request cannot be fulfilled as the default volume type ssd cannot be found. (HTTP 500) (Request-ID: req-91a0add8-71eb-40dd-8610-9bca90889920)
尴尬了
最后注释 /etc/cinder/cinder.conf 文件 中的 default_volume_type = xxx 才能创建卷