Cinder is not loaded with emc driver

asked 2014-12-19 08:00:40 -0600

kpalania gravatar image

updated 2014-12-19 18:13:08 -0600

smaffulli gravatar image

I have configured volume_driver as emc_smis_driver but it is not loaded. Default lvm is loaded. Here is my setup details.

Controller node : Host A cinder-api and cinder-scheduler configured

Compute node : Host B cinder-volume configured

vinder.conf file on Host B

volume_driver = cinder.volume.drivers.emc.emc_smis_fc.EMCSMISFCDriver
cinder_emc_config_file = /etc/cinder/cinder_emc_config.xml

zoning_mode = fabric

[fc-zone-manager]
fc_fabric_names = openstack
zoning_policy = initiator-target
brcd_sb_connector = cinder.zonemanager.drivers.brocade.brcd_fc_zone_client_cli.BrcdFCZoneClientCLI
fc_san_lookup_service = cinder.zonemanager.drivers.brocade.brcd_fc_san_lookup_service.BrcdFCSanLookupService
zone_driver = cinder.zonemanager.drivers.brocade.brcd_fc_zone_driver.BrcdFCZoneDriver

I am tried creating volumes but it end up with these errors.

# cinder create --display_name vol2 1
+---------------------+--------------------------------------+
|       Property      |                Value                 |
+---------------------+--------------------------------------+
|     attachments     |                  []                  |
|  availability_zone  |                 nova                 |
|       bootable      |                false                 |
|      created_at     |      2014-12-11T11:40:30.739128      |
| display_description |                 None                 |
|     display_name    |                 vol2                 |
|      encrypted      |                False                 |
|          id         | 34a32a27-97f6-4703-a100-319d4dd0c9a5 |
|       metadata      |                  {}                  |
|         size        |                  1                   |
|     snapshot_id     |                 None                 |
|     source_volid    |                 None                 |
|        status       |               creating               |
|     volume_type     |                 None                 |
+---------------------+--------------------------------------+

In /var/log/cinder/cinder-scheduler.log file i am seeing the below error and warning.

2014-12-11 03:40:30.820 30554 WARNING cinder.scheduler.filter_scheduler [req-c74eb1ff-7565-40e4-b296-b1bbb2e6dfd0 eb4048604e6e434581fa16c2aa4192dd bbe16b7efccf4249a44f1ed365b2efbb - - -] No weighed hosts found for volume with properties: {}
2014-12-11 03:40:30.821 30554 ERROR cinder.scheduler.flows.create_volume [req-c74eb1ff-7565-40e4-b296-b1bbb2e6dfd0 eb4048604e6e434581fa16c2aa4192dd bbe16b7efccf4249a44f1ed365b2efbb - - -] Failed to run task cinder.scheduler.flows.create_volume.ScheduleCreateVolumeTask;volume:create: No valid host was found. No weighed hosts available

In /var/log/cinder/cinder-volume.log the loaded volume_driver is lvm but i configured to load emc driver. By default cinder is loading lvm as volume driver

volume_driver = cinder.volume.drivers.emc.emc_smis_fc.EMCSMISFCDriver
cinder_emc_config_file = /etc/cinder/cinder_emc_config.xml

2014-12-10 20:12:11.670 4983 DEBUG cinder.openstack.common.service [-] volume_driver                  = cinder.volume.drivers.lvm.LVMISCSIDriver log_opt_values /usr/lib/python2.7/dist-packages/oslo/config/cfg.py:1992
edit retag flag offensive close merge delete