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 ;)
Sorry, my code should have said continue, i think, too many programming languages ;)
In cinder/ cmd/manage. py shared_ target_ hosts(ctxt) :
def _get_non_
Original: ServiceList. get_all_ by_topic( ctxt,
constants. VOLUME_ TOPIC)
capabilities = rpcapi. get_capabilitie s(ctxt, service.host, True)
services = objects.
for service in services:
---
Modified: ServiceList. get_all_ by_topic( ctxt,
constants. VOLUME_ TOPIC)
continue
capabilities = rpcapi. get_capabilitie s(ctxt, service.host, True)
services = objects.
for service in services:
if service.host[:4] == "rbd:":
---
Basically, skip all "unknown hosts with rbd: prefix" since they don't actually exist ;)