reproduce this bug steps: 1、I have two hosts and both hosts are installed cinder-volume. [root@2C5_10_DELL05 cinder(keystone_admin)]# cinder service-list +------------------+-----------------------------------+------+----------+-------+----------------------------+-----------------+ | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason | +------------------+-----------------------------------+------+----------+-------+----------------------------+-----------------+ | cinder-scheduler | 2C5_10_DELL05 | nova | enabled | up | 2016-05-09T11:48:31.000000 | None | | cinder-volume | 2C5-10_DELL01@KS3200ISCSIDriver-2 | nova | enabled | up | 2016-05-09T11:49:16.000000 | None | | cinder-volume | 2C5-10_DELL01@lvm | nova | disabled | up | 2016-05-09T11:49:17.000000 | None | | cinder-volume | 2C5_10_DELL05 | nova | enabled | down | 2016-05-06T03:02:08.000000 | None | | cinder-volume | 2C5_10_DELL05@FJDXISCSIDriver-1 | nova | enabled | up | 2016-05-09T11:48:29.000000 | None | | cinder-volume | 2C5_10_DELL05@FJDXISCSIDriver-2 | nova | enabled | up | 2016-05-09T11:48:29.000000 | None | | cinder-volume | 2C5_10_DELL05@KS3200ISCSIDriver-1 | nova | enabled | up | 2016-05-09T11:48:29.000000 | None | | cinder-volume | 2C5_10_DELL05@KS3200ISCSIDriver-2 | nova | enabled | up | 2016-05-09T11:48:30.000000 | None | | cinder-volume | 2C5_10_DELL05@lvm | nova | enabled | up | 2016-05-09T11:48:32.000000 | None | +------------------+-----------------------------------+------+----------+-------+----------------------------+-----------------+ 2.The host "2C5_10_DELL05" driver use support "pools" version. I create a volume in the host. [root@2C5_10_DELL05 cinder(keystone_admin)]# cinder show eb7e638b-8385-4c73-8b60-1c4c9e89a072 +---------------------------------------+------------------------------------------------------------------------+ | Property | Value | +---------------------------------------+------------------------------------------------------------------------+ | attachments | [] | | availability_zone | nova | | bootable | false | | consistencygroup_id | None | | created_at | 2016-05-09T01:10:59.000000 | | description | None | | encrypted | False | | id | eb7e638b-8385-4c73-8b60-1c4c9e89a072 | | metadata | {u'volname': u'OpenCos_R6775347838262577007', u'vdname': u'ipsan_vd2'} | | multiattach | False | | name | test_zy22 | | os-vol-host-attr:host | 2C5_10_DELL05@KS3200ISCSIDriver-2#ipsan_vd2 | | os-vol-mig-status-attr:migstat | error | | os-vol-mig-status-attr:name_id | 6581e25b-2744-4648-8b49-23fc834da6fc | | os-vol-tenant-attr:tenant_id | 853481fe4d1e4d1eb0136c7ecf46e5e7 | | os-volume-replication:driver_data | None | | os-volume-replication:extended_status | None | | replication_status | disabled | | size | 1 | | snapshot_id | None | | source_volid | None | | status | available | | user_id | 95d365ac3e3948c9be554a33855c6e07 | | volume_type | ksip | +---------------------------------------+------------------------------------------------------------------------+
3. The other host(2C5-10_DELL01)use the older driver version(haven't supported the pools) 4. I migrate the volume to the step3 host. cinder migrate eb7e638b-8385-4c73-8b60-1c4c9e89a072 2C5-10_DELL01@KS3200ISCSIDriver-2#KS3200_IPSAN 5. migrate failed. [root@2C5_10_DELL05 cinder(keystone_admin)]# cinder show eb7e638b-8385-4c73-8b60-1c4c9e89a072 +---------------------------------------+------------------------------------------------------------------------+ | Property | Value | +---------------------------------------+------------------------------------------------------------------------+ | attachments | [] | | availability_zone | nova | | bootable | false | | consistencygroup_id | None | | created_at | 2016-05-09T01:10:59.000000 | | description | None | | encrypted | False | | id | eb7e638b-8385-4c73-8b60-1c4c9e89a072 | | metadata | {u'volname': u'OpenCos_R6775347838262577007', u'vdname': u'ipsan_vd2'} | | multiattach | False | | name | test_zy22 | | os-vol-host-attr:host | 2C5_10_DELL05@KS3200ISCSIDriver-2#ipsan_vd2 | | os-vol-mig-status-attr:migstat | error | | os-vol-mig-status-attr:name_id | 6581e25b-2744-4648-8b49-23fc834da6fc | | os-vol-tenant-attr:tenant_id | 853481fe4d1e4d1eb0136c7ecf46e5e7 | | os-volume-replication:driver_data | None | | os-volume-replication:extended_status | None | | replication_status | disabled | | size | 1 | | snapshot_id | None | | source_volid | None | | status | available | | user_id | 95d365ac3e3948c9be554a33855c6e07 | | volume_type | ksip | +---------------------------------------+------------------------------------------------------------------------+ The scheduler log as following: 2016-05-09 19:40:24.610 14702 ERROR cinder.scheduler.manager [req-1bc39a54-1c4b-44a6-88e9-e480067ce12a 95d365ac3e3948c9be554a33855c6e07 853481fe4d1e4d1eb0136c7ecf46e5e7 - - -] Failed to schedule_migrate_volume_to_host: No valid host was found. Cannot place volume eb7e638b-8385-4c73-8b60-1c4c9e89a072 on 2C5-10_DELL01@KS3200ISCSIDriver-2#KS3200_IPSAN
reproduce this bug steps: keystone_ admin)] # cinder service-list ------- -----+- ------- ------- ------- ------- ------+ ------+ ------- ---+--- ----+-- ------- ------- ------- -----+- ------- ------- --+ ------- -----+- ------- ------- ------- ------- ------+ ------+ ------- ---+--- ----+-- ------- ------- ------- -----+- ------- ------- --+ 09T11:48: 31.000000 | None | DELL01@ KS3200ISCSIDriv er-2 | nova | enabled | up | 2016-05- 09T11:49: 16.000000 | None | 09T11:49: 17.000000 | None | 06T03:02: 08.000000 | None | DELL05@ FJDXISCSIDriver -1 | nova | enabled | up | 2016-05- 09T11:48: 29.000000 | None | DELL05@ FJDXISCSIDriver -2 | nova | enabled | up | 2016-05- 09T11:48: 29.000000 | None | DELL05@ KS3200ISCSIDriv er-1 | nova | enabled | up | 2016-05- 09T11:48: 29.000000 | None | DELL05@ KS3200ISCSIDriv er-2 | nova | enabled | up | 2016-05- 09T11:48: 30.000000 | None | 09T11:48: 32.000000 | None | ------- -----+- ------- ------- ------- ------- ------+ ------+ ------- ---+--- ----+-- ------- ------- ------- -----+- ------- ------- --+ keystone_ admin)] # cinder show eb7e638b- 8385-4c73- 8b60-1c4c9e89a0 72 ------- ------- ------- ------- -----+- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -+ ------- ------- ------- ------- -----+- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -+ 09T01:10: 59.000000 | 8385-4c73- 8b60-1c4c9e89a0 72 | R67753478382625 77007', u'vdname': u'ipsan_vd2'} | host-attr: host | 2C5_10_ DELL05@ KS3200ISCSIDriv er-2#ipsan_ vd2 | mig-status- attr:migstat | error | mig-status- attr:name_ id | 6581e25b- 2744-4648- 8b49-23fc834da6 fc | tenant- attr:tenant_ id | 853481fe4d1e4d1 eb0136c7ecf46e5 e7 | replication: driver_ data | None | replication: extended_ status | None | 9be554a33855c6e 07 | ------- ------- ------- ------- -----+- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -+
1、I have two hosts and both hosts are installed cinder-volume.
[root@2C5_10_DELL05 cinder(
+------
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+------
| cinder-scheduler | 2C5_10_DELL05 | nova | enabled | up | 2016-05-
| cinder-volume | 2C5-10_
| cinder-volume | 2C5-10_DELL01@lvm | nova | disabled | up | 2016-05-
| cinder-volume | 2C5_10_DELL05 | nova | enabled | down | 2016-05-
| cinder-volume | 2C5_10_
| cinder-volume | 2C5_10_
| cinder-volume | 2C5_10_
| cinder-volume | 2C5_10_
| cinder-volume | 2C5_10_DELL05@lvm | nova | enabled | up | 2016-05-
+------
2.The host "2C5_10_DELL05" driver use support "pools" version. I create a volume in the host.
[root@2C5_10_DELL05 cinder(
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2016-05-
| description | None |
| encrypted | False |
| id | eb7e638b-
| metadata | {u'volname': u'OpenCos_
| multiattach | False |
| name | test_zy22 |
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| os-volume-
| os-volume-
| replication_status | disabled |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | available |
| user_id | 95d365ac3e3948c
| volume_type | ksip |
+------
3. The other host(2C5- 10_DELL01) use the older driver version(haven't supported the pools) 8385-4c73- 8b60-1c4c9e89a0 72 2C5-10_ DELL01@ KS3200ISCSIDriv er-2#KS3200_ IPSAN 2C5_10_ DELL05 cinder( keystone_ admin)] # cinder show eb7e638b- 8385-4c73- 8b60-1c4c9e89a0 72 ------- ------- ------- ------- -----+- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -+ ------- ------- ------- ------- -----+- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -+ 09T01:10: 59.000000 | 8385-4c73- 8b60-1c4c9e89a0 72 | R67753478382625 77007', u'vdname': u'ipsan_vd2'} | host-attr: host | 2C5_10_ DELL05@ KS3200ISCSIDriv er-2#ipsan_ vd2 | mig-status- attr:migstat | error | mig-status- attr:name_ id | 6581e25b- 2744-4648- 8b49-23fc834da6 fc | tenant- attr:tenant_ id | 853481fe4d1e4d1 eb0136c7ecf46e5 e7 | replication: driver_ data | None | replication: extended_ status | None | 9be554a33855c6e 07 | ------- ------- ------- ------- -----+- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -+ scheduler. manager [req-1bc39a54- 1c4b-44a6- 88e9-e480067ce1 2a 95d365ac3e3948c 9be554a33855c6e 07 853481fe4d1e4d1 eb0136c7ecf46e5 e7 - - -] Failed to schedule_ migrate_ volume_ to_host: No valid host was found. Cannot place volume eb7e638b- 8385-4c73- 8b60-1c4c9e89a0 72 on 2C5-10_ DELL01@ KS3200ISCSIDriv er-2#KS3200_ IPSAN
4. I migrate the volume to the step3 host.
cinder migrate eb7e638b-
5. migrate failed.
[root@
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2016-05-
| description | None |
| encrypted | False |
| id | eb7e638b-
| metadata | {u'volname': u'OpenCos_
| multiattach | False |
| name | test_zy22 |
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| os-volume-
| os-volume-
| replication_status | disabled |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | available |
| user_id | 95d365ac3e3948c
| volume_type | ksip |
+------
The scheduler log as following:
2016-05-09 19:40:24.610 14702 ERROR cinder.