Comment 26 for bug 1806156

Revision history for this message
Ian Kumlien (pomac) wrote :

Sorry, my code should have said continue, i think, too many programming languages ;)

In cinder/cmd/manage.py
def _get_non_shared_target_hosts(ctxt):

Original:
    services = objects.ServiceList.get_all_by_topic(ctxt,
                                                    constants.VOLUME_TOPIC)
    for service in services:
        capabilities = rpcapi.get_capabilities(ctxt, service.host, True)
---

Modified:
    services = objects.ServiceList.get_all_by_topic(ctxt,
                                                    constants.VOLUME_TOPIC)
    for service in services:
        if service.host[:4] == "rbd:":
            continue
        capabilities = rpcapi.get_capabilities(ctxt, service.host, True)
---

Basically, skip all "unknown hosts with rbd: prefix" since they don't actually exist ;)