Esempio n. 1
0
def image_service_relation_changed():
    # If the API is ready we publish the astara appliance(s) into Glance
    # and advertise those to the orchestrator.
    if not is_glance_api_ready():
        return
    publish_astara_appliance_image()
    for rid in relation_ids('astara-orchestrator'):
        astara_orchestrator_relation_joined(rid)
Esempio n. 2
0
def image_service_relation_changed():
    # If the API is ready we publish the astara appliance(s) into Glance
    # and advertise those to the orchestrator.
    if not is_glance_api_ready():
        return
    publish_astara_appliance_image()
    for rid in relation_ids('astara-orchestrator'):
        astara_orchestrator_relation_joined(rid)
Esempio n. 3
0
def keystone_changed():
    # once we have sufficent keystone creds and the neutron ap is ready, we
    # can create networks in neutron and images in glance, then advertise
    # those to the orchestrator.
    if is_neutron_api_ready():
        create_networks()
    if is_glance_api_ready():
        publish_astara_appliance_image()
    for rid in relation_ids('astara-orchestrator'):
        astara_orchestrator_relation_joined(rid)
Esempio n. 4
0
def keystone_changed():
    # once we have sufficent keystone creds and the neutron ap is ready, we
    # can create networks in neutron and images in glance, then advertise
    # those to the orchestrator.
    if is_neutron_api_ready():
        create_networks()
    if is_glance_api_ready():
        publish_astara_appliance_image()
    for rid in relation_ids('astara-orchestrator'):
        astara_orchestrator_relation_joined(rid)