When I run "cinder service-list", I get "Host" column with names like "host1@lvmdriver-1", but Cinder's scheduler selects host to migrate by HostState's "host" attribute which also includes "#lvmdriver-1" part.
We should either explicitly state that we need "#lvmdriver-1" part in host specification and add it to "cinder service-list" output or ignore these fragments in scheduler.
Steps to reproduce:
$ cinder create --name vol1 1
$ cinder migrate vol1 somehost@lvmdriver-1
Expected result:
Migration gets scheduled to somehost
Actual result:
In nova-scheduler logs:
Failed to schedule_migrate_volume_to_host: No valid host was found. Cannot place volume xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx on somehost@lvmdriver-1
I assume you meant s/nova- scheduler/ cinder- scheduler/