According to euca_find_cluster source code the service name published by avahi-publish on the CC is only used if the IP address returned by avahi is 169.254.169.254:
if (avahi_address_snprint(human_address, AVAHI_ADDRESS_STR_MAX, address)) { if (address->proto == AVAHI_PROTO_INET6) key = avahi_strdup_printf("[%s]:%u", human_address, port); else if (strncmp(human_address, "169.254.169.254", 15) == 0) key = avahi_strdup_printf("%s:%u", name, port); else key = avahi_strdup_printf("%s:%u", human_address, port);
According to euca_find_cluster source code the service name published by avahi-publish on the CC is only used if the IP address returned by avahi is 169.254.169.254:
if (avahi_ address_ snprint( human_address, AVAHI_ADDRESS_ STR_MAX, address)) {
key = avahi_strdup_ printf( "[%s]:% u", human_address, port);
else if (strncmp( human_address, "169.254.169.254", 15) == 0)
key = avahi_strdup_ printf( "%s:%u" , name, port);
else
key = avahi_strdup_ printf( "%s:%u" , human_address, port);
if (address->proto == AVAHI_PROTO_INET6)