Comment 1 for bug 1339743

Revision history for this message
Robert Levas (rlevas) wrote :

It appears that there is an error in hdfs_helper.py:

~~~~~~
def _get_cluster_hosts_information(host, cluster):
    for clust in conductor.cluster_get_all(context.ctx()):
        if clust.id == cluster.id:
            continue

        for i in u.get_instances(***c***):
            if i.instance_name == host:
                return g.generate_etc_hosts(***c***)

    return None
~~~~~~

Should probably be:

~~~~~~
def _get_cluster_hosts_information(host, cluster):
    for clust in conductor.cluster_get_all(context.ctx()):
        if clust.id == cluster.id:
            continue

        for i in u.get_instances(***clust***):
            if i.instance_name == host:
                return g.generate_etc_hosts(***clust***)

    return None
~~~~~~