vCenter storage policies to specify back-end data stores

提问于 2014-09-05 01:26:10 -0500

Qiang 图像

Hi,

I have created storage policy named gold-policy-cinder with local harddisk storage and NFS storage, and setting in Cinder openstack:

root@controller:~#cinder type-create vmware-gold-volume root@controller:~#cinder --os-username admin --os-tenant-name admin type-key vmware-gold-volume set vmware:storage_profile=gold-policy-cinder root@controller:~# cinder --os-username admin --os-tenant-name admin extra-specs-list | e2a40921-a699-4c4a-8005-4aa1d47b9044 | vmware-gold-volume | {u'vmware:storage_profile': u'gold-policy-cinder'} | +----------------------------------

root@controller:~#cinder create --volume_type vmware-gold-volume --display_name vm-gold-vol1 1 in the /var/log/cinder/cinder-volume.log: 2014-09-05 13:51:48.307 15082 ERROR cinder.volume.drivers.vmware.vmdk [req-a71cc8a1-7b9f-43dc-9209-35d92003afc2 c4c93d945b2e449db7fe2a2328f21d8b 5f42cedeae954d658501b591252be8bc - - -] Aborting since none of the datastores match the given storage profile gold-policy-cinder. 2014-09-05 13:51:48.308 15082 WARNING cinder.volume.drivers.vmware.vmdk [req-a71cc8a1-7b9f-43dc-9209-35d92003afc2 c4c93d945b2e449db7fe2a2328f21d8b 5f42cedeae954d658501b591252be8bc - - -] Unable to find suitable datastore for volume of size: 1 GB under host: (obj){ value = "host-108" _type = "HostSystem" }. More details: Aborting since none of the datastores match the given storage profile gold-policy-cinder.

Anyone know how to fix this ? Thanks. -Qiang

edit retag flag offensive close merge delete