charmhelpers.contrib.charmhelpers package

charmhelpers.contrib.charmhelpers.unit_info(service_name, item_name, data=None, unit=None)
charmhelpers.contrib.charmhelpers.wait_for_machine(num_machines=1, timeout=300)

Wait timeout seconds for num_machines machines to come up.

This wait_for… function can be called by other wait_for functions whose timeouts might be too short in situations where only a bare Juju setup has been bootstrapped.

Returns:A tuple of (num_machines, time_taken). This is used for testing.
charmhelpers.contrib.charmhelpers.wait_for_page_contents(url, contents, timeout=120, validate=None)
charmhelpers.contrib.charmhelpers.wait_for_relation(service_name, relation_name, timeout=120)

Wait timeout seconds for a given relation to come up.

charmhelpers.contrib.charmhelpers.wait_for_unit(service_name, timeout=480)

Wait timeout seconds for a given service name to come up.