@retry(times=3, delay_secs=10)
def all_kube_system_pods_running():
    ' Check pod status in the kube-system namespace. Returns True if all\n    pods are running, False otherwise. '
    cmd = ['kubectl', 'get', 'po', '-n', 'kube-system', '-o', 'json']
    try:
        output = check_output(cmd).decode('utf-8')
    except CalledProcessError:
        hookenv.log('failed to get kube-system pod status')
        return False
    result = json.loads(output)
    for pod in result['items']:
        status = pod['status']['phase']
        if (status != 'Running'):
            return False
    return True
Check pod status in the kube-system namespace. Returns True if all
pods are running, False otherwise.
@retry(times=3, delay_secs=10)
def all_kube_system_pods_running():
    ' Check pod status in the kube-system namespace. Returns True if all\n    pods are running, False otherwise. '
    cmd = ['kubectl', 'get', 'po', '-n', 'kube-system', '-o', 'json']
    try:
        output = check_output(cmd).decode('utf-8')
    except CalledProcessError:
        hookenv.log('failed to get kube-system pod status')
        return False
    result = json.loads(output)
    for pod in result['items']:
        status = pod['status']['phase']
        if (status != 'Running'):
            return False
    return True