1.lab install-metrics setup模拟创建环境(metrics-pv.yml资源文件所需及创建pv资源文件)。
[student@workstation ~]$ lab install-metrics setup
Checking prerequisites for GE: Installing the Metrics Subsystem
Checking all VMs are running:
· master VM is up............................................. SUCCESS
· node1 VM is up.............................................. SUCCESS
· node2 VM is up.............................................. SUCCESS
Downloading files for GE: Installing the Metrics Subsystem
· Download exercise files..................................... SUCCESS
· Download solution files..................................... SUCCESS
· Copy lab files to the master VM............................. SUCCESS
· Copy solution files to the master VM........................ SUCCESS
Overall setup status........................................... SUCCESS
2.cat metrics-pv.yml 查看资源文件内容。
[student@workstation install-metrics]$ pwd
/home/student/DO280/labs/install-metrics
[student@workstation install-metrics]$ cat metrics-pv.yml
apiVersion: v1
kind: PersistentVolume
metadata:
name: metrics
spec:
capacity:
storage: 5Gi
accessModes:
- ReadWriteOnce
nfs:
path: /exports/metrics
server: master.lab.example.com
persistentVolumeReclaimPolicy: Recycle
claimRef:
name: metrics-1
namespace: openshift-infra
3. oc login -u admin -p redhat https://master.lab.example.com:8443使用管理员登陆。oc apply -f metrics-pv.yml 声明资源。oc get pv -o wide查看pv资源。
[student@workstation install-metrics]$ oc login -u admin -p redhat https://master.lab.example.com:8443
Login successful.
You have access to the following projects and can switch between them with 'oc project
chicago
* default
ditto
farm
kube-system
logging
management-infra
openshift
openshift-infra
samples
squid
Using project "default".
[student@workstation install-metrics]$ oc apply -f metrics-pv.yml
persistentvolume "metrics" created
[student@workstation install-metrics]$ oc get pv -o wide
NAME CAPACITY ACCESSMODES RECLAIMPOLICY STATUS CLAIM REASON AGE
metrics 5Gi RWO Recycle Available openshift-infra/metrics-1 36s
4. oc login -u admin -p redhat https://master.lab.example.com:8443使用管理员登陆。ansible-playbook -i ~/hosts \
> /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster\
> /openshift-metrics.yml \
> -e openshift_metrics_image_prefix=workstation.lab.example.com:5000\
> /openshift3/ose- \
> -e openshift_metrics_image_version=v3.5 \
> -e openshift_metrics_heapster_requests_memory=300M \
> -e openshift_metrics_hawkular_requests_memory=750M \
> -e openshift_metrics_cassandra_requests_memory=750M \
> -e openshift_metrics_cassandra_storage_type=pv \
> -e openshift_metrics_cassandra_pvc_size=5Gi \
> -e openshift_metrics_cassandra_pvc_prefix=metrics \
> -e openshift_metrics_install_metrics=True执行openshift-metrics.yml文件(内容详见最后附注)并传入参数。
[root@master ~]# oc login -u admin -p redhat https://master.lab.example.com:8443
Login successful.
You have access to the following projects and can switch between them with 'oc project
chicago
* default
ditto
farm
kube-system
logging
management-infra
openshift
openshift-infra
samples
squid
Using project "default".
[root@master ~]# ansible-playbook -i ~/hosts \
> /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster\
> /openshift-metrics.yml \
> -e openshift_metrics_image_prefix=workstation.lab.example.com:5000\
> /openshift3/ose- \
> -e openshift_metrics_image_version=v3.5 \
> -e openshift_metrics_heapster_requests_memory=300M \
> -e openshift_metrics_hawkular_requests_memory=750M \
> -e openshift_metrics_cassandra_requests_memory=750M \
> -e openshift_metrics_cassandra_storage_type=pv \
> -e openshift_metrics_cassandra_pvc_size=5Gi \
> -e openshift_metrics_cassandra_pvc_prefix=metrics \
> -e openshift_metrics_install_metrics=True
PLAY [Create initial host groups for localhost] ********************************
TASK [include_vars] ************************************************************
ok: [localhost]
TASK [Evaluate group l_oo_all_hosts] *******************************************
ok: [localhost] => (item=master.lab.example.com)
ok: [localhost] => (item=node1.lab.example.com)
ok: [localhost] => (item=node2.lab.example.com)
PLAY [Create initial host groups for all hosts] ********************************
TASK [include_vars] ************************************************************
ok: [master.lab.example.com]
ok: [node2.lab.example.com]
ok: [node1.lab.example.com]
PLAY [Populate config host groups] *********************************************
TASK [fail] ********************************************************************
skipping: [localhost]
TASK [fail] ********************************************************************
skipping: [localhost]
TASK [fail] ********************************************************************
skipping: [localhost]
TASK [fail] ********************************************************************
skipping: [localhost]
TASK [fail] ********************************************************************
skipping: [localhost]
TASK [fail] ********************************************************************
skipping: [localhost]
TASK [Evaluate oo_all_hosts] ***************************************************
ok: [localhost] => (item=master.lab.example.com)
ok: [localhost] => (item=node1.lab.example.com)
ok: [localhost] => (item=node2.lab.example.com)
TASK [Evaluate oo_masters] *****************************************************
ok: [localhost] => (item=master.lab.example.com)
TASK [Evaluate oo_etcd_to_config] **********************************************
ok: [localhost] => (item=master.lab.example.com)
TASK [Evaluate oo_masters_to_config] *******************************************
ok: [localhost] => (item=master.lab.example.com)
TASK [Evaluate oo_nodes_to_config] *********************************************
ok: [localhost] => (item=master.lab.example.com)
ok: [localhost] => (item=node1.lab.example.com)
ok: [localhost] => (item=node2.lab.example.com)
TASK [Add master to oo_nodes_to_config] ****************************************
skipping: [localhost] => (item=master.lab.example.com)
TASK [Evaluate oo_first_etcd] **************************************************
ok: [localhost]
TASK [Evaluate oo_first_master] ************************************************
ok: [localhost]
TASK [Evaluate oo_lb_to_config] ************************************************
TASK [Evaluate oo_nfs_to_config] ***********************************************
ok: [localhost] => (item=master.lab.example.com)
PLAY [OpenShift Metrics] *******************************************************
TASK [setup] *******************************************************************
ok: [master.lab.example.com]
TASK [openshift_facts : Detecting Operating System] ****************************
ok: [master.lab.example.com]
TASK [openshift_facts : set_fact] **********************************************
ok: [master.lab.example.com]
TASK [openshift_facts : set_fact] **********************************************
ok: [master.lab.example.com]
TASK [openshift_facts : set_fact] **********************************************
ok: [master.lab.example.com]
TASK [openshift_facts : Validate python version] *******************************
skipping: [master.lab.example.com]
TASK [openshift_facts : Validate python version] *******************************
skipping: [master.lab.example.com]
TASK [openshift_facts : Determine Atomic Host Docker Version] ******************
skipping: [master.lab.example.com]
TASK [openshift_facts : assert] ************************************************
skipping: [master.lab.example.com]
TASK [openshift_facts : Ensure various deps are installed] *********************
ok: [master.lab.example.com] => (item=[u'iproute', u'python-dbus', u'python-six', u'PyYAML', u'yum-utils'])
TASK [openshift_facts : Ensure various deps for running system containers are installed] ***
skipping: [master.lab.example.com] => (item=[])
TASK [openshift_facts : Gather Cluster facts and set is_containerized if needed] ***
ok: [master.lab.example.com]
TASK [openshift_facts : Set repoquery command] *********************************
ok: [master.lab.example.com]
TASK [openshift_metrics : Set default image variables based on deployment_type]
ok: [master.lab.example.com] => (item=/usr/share/ansible/openshift-ansible/roles/openshift_metrics/vars/openshift-enterprise.yml)
TASK [openshift_metrics : Set metrics image facts] *****************************
ok: [master.lab.example.com]
TASK [openshift_metrics : Create temp directory for doing work in on target] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Create temp directory for all our templates] *********
ok: [master.lab.example.com]
TASK [openshift_metrics : Create temp directory local on control node] *********
ok: [master.lab.example.com -> localhost]
TASK [openshift_metrics : Copy the admin client config(s)] *********************
ok: [master.lab.example.com]
TASK [openshift_metrics : include] *********************************************
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/install_metrics.yaml for master.lab.example.com
TASK [openshift_metrics : include] *********************************************
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/pre_install.yaml for master.lab.example.com
TASK [openshift_metrics : Check that hawkular_metrics_hostname is set] *********
skipping: [master.lab.example.com]
TASK [openshift_metrics : Check the value of openshift_metrics_cassandra_storage_type] ***
skipping: [master.lab.example.com]
TASK [openshift_metrics : list existing secrets] *******************************
ok: [master.lab.example.com]
TASK [openshift_metrics : Install Metrics] *************************************
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/install_support.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/install_heapster.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/install_hawkular.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/install_cassandra.yaml for master.lab.example.com
TASK [openshift_metrics : Check control node to see if keytool is installed] ***
ok: [master.lab.example.com -> localhost]
TASK [openshift_metrics : fail] ************************************************
skipping: [master.lab.example.com]
TASK [openshift_metrics : include] *********************************************
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/generate_certificates.yaml for master.lab.example.com
TASK [openshift_metrics : generate ca certificate chain] ***********************
changed: [master.lab.example.com]
TASK [openshift_metrics : include] *********************************************
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/generate_hawkular_certificates.yaml for master.lab.example.com
TASK [openshift_metrics : generate hawkular-metrics certificates] **************
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/setup_certificate.yaml for master.lab.example.com
TASK [openshift_metrics : generate hawkular-metrics keys] **********************
changed: [master.lab.example.com]
TASK [openshift_metrics : slurp] ***********************************************
ok: [master.lab.example.com] => (item=/tmp/openshift-metrics-ansible-3zrEuf/hawkular-metrics.key)
ok: [master.lab.example.com] => (item=/tmp/openshift-metrics-ansible-3zrEuf/hawkular-metrics.crt)
TASK [openshift_metrics : generate hawkular-metrics certificate] ***************
changed: [master.lab.example.com]
TASK [openshift_metrics : generate random password for the hawkular-metrics keystore] ***
changed: [master.lab.example.com]
TASK [openshift_metrics : slurp] ***********************************************
ok: [master.lab.example.com]
TASK [openshift_metrics : create the hawkular-metrics pkcs12 from the pem file]
changed: [master.lab.example.com]
TASK [openshift_metrics : generate random password for the hawkular-metrics truststore] ***
changed: [master.lab.example.com]
TASK [openshift_metrics : generate hawkular-cassandra certificates] ************
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/setup_certificate.yaml for master.lab.example.com
TASK [openshift_metrics : generate hawkular-cassandra keys] ********************
changed: [master.lab.example.com]
TASK [openshift_metrics : slurp] ***********************************************
ok: [master.lab.example.com] => (item=/tmp/openshift-metrics-ansible-3zrEuf/hawkular-cassandra.key)
ok: [master.lab.example.com] => (item=/tmp/openshift-metrics-ansible-3zrEuf/hawkular-cassandra.crt)
TASK [openshift_metrics : generate hawkular-cassandra certificate] *************
changed: [master.lab.example.com]
TASK [openshift_metrics : generate random password for the hawkular-cassandra keystore] ***
changed: [master.lab.example.com]
TASK [openshift_metrics : slurp] ***********************************************
ok: [master.lab.example.com]
TASK [openshift_metrics : create the hawkular-cassandra pkcs12 from the pem file] ***
changed: [master.lab.example.com]
TASK [openshift_metrics : generate random password for the hawkular-cassandra truststore] ***
changed: [master.lab.example.com]
TASK [openshift_metrics : slurp] ***********************************************
ok: [master.lab.example.com]
TASK [openshift_metrics : slurp] ***********************************************
ok: [master.lab.example.com]
TASK [openshift_metrics : stat] ************************************************
ok: [master.lab.example.com] => (item=hawkular-metrics.pwd)
ok: [master.lab.example.com] => (item=hawkular-metrics.htpasswd)
ok: [master.lab.example.com] => (item=hawkular-jgroups-keystore.pwd)
TASK [openshift_metrics : set_fact] ********************************************
ok: [master.lab.example.com] => (item={'_ansible_parsed': True, u'stat': {u'exists': False}, '_ansible_item_result': True, '_ansible_no_log': False, u'changed': False, 'item': u'hawkular-metrics.pwd', 'invocation': {'module_name': u'stat', u'module_args': {u'checksum_algorithm': u'sha1', u'mime': False, u'get_checksum': True, u'follow': False, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/hawkular-metrics.pwd', u'get_md5': True}}})
ok: [master.lab.example.com] => (item={'_ansible_parsed': True, u'stat': {u'exists': False}, '_ansible_item_result': True, '_ansible_no_log': False, u'changed': False, 'item': u'hawkular-metrics.htpasswd', 'invocation': {'module_name': u'stat', u'module_args': {u'checksum_algorithm': u'sha1', u'mime': False, u'get_checksum': True, u'follow': False, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/hawkular-metrics.htpasswd', u'get_md5': True}}})
ok: [master.lab.example.com] => (item={'_ansible_parsed': True, u'stat': {u'exists': False}, '_ansible_item_result': True, '_ansible_no_log': False, u'changed': False, 'item': u'hawkular-jgroups-keystore.pwd', 'invocation': {'module_name': u'stat', u'module_args': {u'checksum_algorithm': u'sha1', u'mime': False, u'get_checksum': True, u'follow': False, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/hawkular-jgroups-keystore.pwd', u'get_md5': True}}})
TASK [openshift_metrics : generate password for hawkular metrics and jgroups] **
changed: [master.lab.example.com -> localhost] => (item=hawkular-metrics)
changed: [master.lab.example.com -> localhost] => (item=hawkular-jgroups-keystore)
TASK [openshift_metrics : slurp] ***********************************************
ok: [master.lab.example.com -> localhost]
TASK [openshift_metrics : generate htpasswd file for hawkular metrics] *********
changed: [master.lab.example.com -> localhost]
TASK [openshift_metrics : copy] ************************************************
changed: [master.lab.example.com] => (item=hawkular-metrics.pwd)
changed: [master.lab.example.com] => (item=hawkular-metrics.htpasswd)
changed: [master.lab.example.com] => (item=hawkular-jgroups-keystore.pwd)
TASK [openshift_metrics : include] *********************************************
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/import_jks_certs.yaml for master.lab.example.com
TASK [openshift_metrics : stat] ************************************************
ok: [master.lab.example.com]
TASK [openshift_metrics : stat] ************************************************
ok: [master.lab.example.com]
TASK [openshift_metrics : stat] ************************************************
ok: [master.lab.example.com]
TASK [openshift_metrics : stat] ************************************************
ok: [master.lab.example.com]
TASK [openshift_metrics : stat] ************************************************
ok: [master.lab.example.com]
TASK [openshift_metrics : slurp] ***********************************************
ok: [master.lab.example.com]
TASK [openshift_metrics : slurp] ***********************************************
ok: [master.lab.example.com]
TASK [openshift_metrics : slurp] ***********************************************
ok: [master.lab.example.com]
TASK [openshift_metrics : fetch] ***********************************************
ok: [master.lab.example.com] => (item=hawkular-metrics.pkcs12)
ok: [master.lab.example.com] => (item=hawkular-cassandra.pkcs12)
ok: [master.lab.example.com] => (item=hawkular-metrics.crt)
ok: [master.lab.example.com] => (item=hawkular-cassandra.crt)
ok: [master.lab.example.com] => (item=ca.crt)
TASK [openshift_metrics : command] *********************************************
ok: [master.lab.example.com -> localhost]
TASK [openshift_metrics : copy] ************************************************
changed: [master.lab.example.com] => (item=/tmp/tmp.mQFL8Qzb3f/hawkular-metrics.keystore)
changed: [master.lab.example.com] => (item=/tmp/tmp.mQFL8Qzb3f/hawkular-cassandra.keystore)
changed: [master.lab.example.com] => (item=/tmp/tmp.mQFL8Qzb3f/hawkular-cassandra.truststore)
changed: [master.lab.example.com] => (item=/tmp/tmp.mQFL8Qzb3f/hawkular-metrics.truststore)
changed: [master.lab.example.com] => (item=/tmp/tmp.mQFL8Qzb3f/hawkular-jgroups.keystore)
TASK [openshift_metrics : read files for the hawkular-metrics secret] **********
ok: [master.lab.example.com] => (item=ca.crt)
ok: [master.lab.example.com] => (item=hawkular-metrics.crt)
ok: [master.lab.example.com] => (item=hawkular-metrics.keystore)
ok: [master.lab.example.com] => (item=hawkular-metrics-keystore.pwd)
ok: [master.lab.example.com] => (item=hawkular-metrics.truststore)
ok: [master.lab.example.com] => (item=hawkular-metrics-truststore.pwd)
ok: [master.lab.example.com] => (item=hawkular-metrics.pwd)
ok: [master.lab.example.com] => (item=hawkular-metrics.htpasswd)
ok: [master.lab.example.com] => (item=hawkular-jgroups.keystore)
ok: [master.lab.example.com] => (item=hawkular-jgroups-keystore.pwd)
ok: [master.lab.example.com] => (item=hawkular-cassandra.crt)
ok: [master.lab.example.com] => (item=hawkular-cassandra.pem)
ok: [master.lab.example.com] => (item=hawkular-cassandra.keystore)
ok: [master.lab.example.com] => (item=hawkular-cassandra-keystore.pwd)
ok: [master.lab.example.com] => (item=hawkular-cassandra.truststore)
ok: [master.lab.example.com] => (item=hawkular-cassandra-truststore.pwd)
TASK [openshift_metrics : set_fact] ********************************************
ok: [master.lab.example.com]
TASK [openshift_metrics : generate hawkular-metrics-secrets secret template] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : generate hawkular-metrics-certificate secret template] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : generate hawkular-metrics-account secret template] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : generate cassandra secret template] ******************
ok: [master.lab.example.com]
TASK [openshift_metrics : generate cassandra-certificate secret template] ******
ok: [master.lab.example.com]
TASK [openshift_metrics : include] *********************************************
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/generate_serviceaccounts.yaml for master.lab.example.com
TASK [openshift_metrics : Generating serviceaccounts for hawkular metrics/cassandra] ***
ok: [master.lab.example.com] => (item={u'secret': u'hawkular-metrics-secrets', u'name': u'hawkular'})
ok: [master.lab.example.com] => (item={u'secret': u'hawkular-cassandra-secrets', u'name': u'cassandra'})
TASK [openshift_metrics : include] *********************************************
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/generate_services.yaml for master.lab.example.com
TASK [openshift_metrics : Generate service for hawkular-metrics] ***************
ok: [master.lab.example.com]
TASK [openshift_metrics : Generate services for cassandra] *********************
ok: [master.lab.example.com] => (item=cassandra)
ok: [master.lab.example.com] => (item=cassandra-nodes)
TASK [openshift_metrics : include] *********************************************
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/generate_rolebindings.yaml for master.lab.example.com
TASK [openshift_metrics : generate view role binding for the hawkular service account] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : command] *********************************************
ok: [master.lab.example.com]
TASK [openshift_metrics : Generate heapster replication controller] ************
ok: [master.lab.example.com]
TASK [openshift_metrics : set_fact] ********************************************
ok: [master.lab.example.com]
TASK [openshift_metrics : set_fact] ********************************************
ok: [master.lab.example.com] => (item=hawkular-metrics-certificate)
ok: [master.lab.example.com] => (item=hawkular-metrics-account)
TASK [openshift_metrics : Generating serviceaccount for heapster] **************
ok: [master.lab.example.com]
TASK [openshift_metrics : Generate service for heapster] ***********************
ok: [master.lab.example.com]
TASK [openshift_metrics : generate cluster-reader role binding for the heapster service account] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : include] *********************************************
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/generate_heapster_certificates.yaml for master.lab.example.com
TASK [openshift_metrics : generate ca certificate chain] ***********************
skipping: [master.lab.example.com]
TASK [openshift_metrics : generate heapster key/cert] **************************
changed: [master.lab.example.com]
TASK [openshift_metrics : read files for the heapster secret] ******************
ok: [master.lab.example.com] => (item=/tmp/openshift-metrics-ansible-3zrEuf/heapster.cert)
ok: [master.lab.example.com] => (item=/tmp/openshift-metrics-ansible-3zrEuf/heapster.key)
ok: [master.lab.example.com] => (item=/etc/origin/master/ca-bundle.crt)
TASK [openshift_metrics : generate heapster secret template] *******************
changed: [master.lab.example.com]
TASK [openshift_metrics : command] *********************************************
ok: [master.lab.example.com]
TASK [openshift_metrics : generate hawkular-metrics replication controller] ****
ok: [master.lab.example.com]
TASK [openshift_metrics : read hawkular-metrics route destination ca certificate] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : set_fact] ********************************************
skipping: [master.lab.example.com]
TASK [openshift_metrics : set_fact] ********************************************
skipping: [master.lab.example.com]
TASK [openshift_metrics : set_fact] ********************************************
skipping: [master.lab.example.com]
TASK [openshift_metrics : generate the hawkular-metrics route] *****************
ok: [master.lab.example.com]
TASK [openshift_metrics : command] *********************************************
ok: [master.lab.example.com] => (item=1)
TASK [openshift_metrics : generate hawkular-cassandra replication controllers] *
ok: [master.lab.example.com] => (item=1)
TASK [openshift_metrics : set_fact] ********************************************
skipping: [master.lab.example.com]
TASK [openshift_metrics : generate hawkular-cassandra persistent volume claims]
ok: [master.lab.example.com] => (item=1)
TASK [openshift_metrics : generate hawkular-cassandra persistent volume claims (dynamic)] ***
skipping: [master.lab.example.com] => (item=1)
TASK [openshift_metrics : Install Heapster Standalone] *************************
skipping: [master.lab.example.com]
TASK [openshift_metrics : find] ************************************************
ok: [master.lab.example.com]
TASK [openshift_metrics : slurp] ***********************************************
ok: [master.lab.example.com] => (item={u'uid': 0, u'woth': False, u'mtime': 1545058597.7435906, u'inode': 33555019, u'isgid': False, u'size': 9565, u'roth': True, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/templates/hawkular_metrics_secrets.yaml', u'xusr': False, u'atime': 1545058597.8965907, u'isdir': False, u'ctime': 1545058597.8995907, u'wgrp': False, u'xgrp': False, u'dev': 64769, u'isblk': False, u'isfifo': False, u'mode': u'0644', u'islnk': False})
ok: [master.lab.example.com] => (item={u'uid': 0, u'woth': False, u'mtime': 1545058598.1785908, u'inode': 46137542, u'isgid': False, u'size': 4712, u'roth': True, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/templates/hawkular_metrics_certificate.yaml', u'xusr': False, u'atime': 1545058598.3475907, u'isdir': False, u'ctime': 1545058598.3515906, u'wgrp': False, u'xgrp': False, u'dev': 64769, u'isblk': False, u'isfifo': False, u'mode': u'0644', u'islnk': False})
ok: [master.lab.example.com] => (item={u'uid': 0, u'woth': False, u'mtime': 1545058598.6505907, u'inode': 58721798, u'isgid': False, u'size': 218, u'roth': True, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/templates/hawkular_metrics_account.yaml', u'xusr': False, u'atime': 1545058598.7865908, u'isdir': False, u'ctime': 1545058598.7895908, u'wgrp': False, u'xgrp': False, u'dev': 64769, u'isblk': False, u'isfifo': False, u'mode': u'0644', u'islnk': False})
ok: [master.lab.example.com] => (item={u'uid': 0, u'woth': False, u'mtime': 1545058599.0725908, u'inode': 71315606, u'isgid': False, u'size': 14895, u'roth': True, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/templates/cassandra_secrets.yaml', u'xusr': False, u'atime': 1545058599.2145908, u'isdir': False, u'ctime': 1545058599.216591, u'wgrp': False, u'xgrp': False, u'dev': 64769, u'isblk': False, u'isfifo': False, u'mode': u'0644', u'islnk': False})
ok: [master.lab.example.com] => (item={u'uid': 0, u'woth': False, u'mtime': 1545058599.498591, u'inode': 83897455, u'isgid': False, u'size': 8270, u'roth': True, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/templates/cassandra_certificate.yaml', u'xusr': False, u'atime': 1545058599.6585908, u'isdir': False, u'ctime': 1545058599.6615908, u'wgrp': False, u'xgrp': False, u'dev': 64769, u'isblk': False, u'isfifo': False, u'mode': u'0644', u'islnk': False})
ok: [master.lab.example.com] => (item={u'uid': 0, u'woth': False, u'mtime': 1545058600.048591, u'inode': 8522243, u'isgid': False, u'size': 159, u'roth': True, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/templates/metrics-hawkular-sa.yaml', u'xusr': False, u'atime': 1545058600.202591, u'isdir': False, u'ctime': 1545058600.205591, u'wgrp': False, u'xgrp': False, u'dev': 64769, u'isblk': False, u'isfifo': False, u'mode': u'0644', u'islnk': False})
ok: [master.lab.example.com] => (item={u'uid': 0, u'woth': False, u'mtime': 1545058600.426591, u'inode': 21039308, u'isgid': False, u'size': 162, u'roth': True, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/templates/metrics-cassandra-sa.yaml', u'xusr': False, u'atime': 1545058600.653591, u'isdir': False, u'ctime': 1545058600.6705909, u'wgrp': False, u'xgrp': False, u'dev': 64769, u'isblk': False, u'isfifo': False, u'mode': u'0644', u'islnk': False})
ok: [master.lab.example.com] => (item={u'uid': 0, u'woth': False, u'mtime': 1545058601.069591, u'inode': 33555020, u'isgid': False, u'size': 249, u'roth': True, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/templates/metrics-hawkular-metrics-svc.yaml', u'xusr': False, u'atime': 1545058601.225591, u'isdir': False, u'ctime': 1545058601.229591, u'wgrp': False, u'xgrp': False, u'dev': 64769, u'isblk': False, u'isfifo': False, u'mode': u'0644', u'islnk': False})
ok: [master.lab.example.com] => (item={u'uid': 0, u'woth': False, u'mtime': 1545058601.531591, u'inode': 46137543, u'isgid': False, u'size': 466, u'roth': True, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/templates/metrics-hawkular-cassandra-svc.yaml', u'xusr': False, u'atime': 1545058601.672591, u'isdir': False, u'ctime': 1545058601.675591, u'wgrp': False, u'xgrp': False, u'dev': 64769, u'isblk': False, u'isfifo': False, u'mode': u'0644', u'islnk': False})
ok: [master.lab.example.com] => (item={u'uid': 0, u'woth': False, u'mtime': 1545058601.914591, u'inode': 58721799, u'isgid': False, u'size': 507, u'roth': True, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/templates/metrics-hawkular-cassandra-nodes-svc.yaml', u'xusr': False, u'atime': 1545058602.052591, u'isdir': False, u'ctime': 1545058602.055591, u'wgrp': False, u'xgrp': False, u'dev': 64769, u'isblk': False, u'isfifo': False, u'mode': u'0644', u'islnk': False})
ok: [master.lab.example.com] => (item={u'uid': 0, u'woth': False, u'mtime': 1545058602.460591, u'inode': 71315607, u'isgid': False, u'size': 179, u'roth': True, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/templates/hawkular-rolebinding.yaml', u'xusr': False, u'atime': 1545058602.624591, u'isdir': False, u'ctime': 1545058602.6275911, u'wgrp': False, u'xgrp': False, u'dev': 64769, u'isblk': False, u'isfifo': False, u'mode': u'0644', u'islnk': False})
ok: [master.lab.example.com] => (item={u'uid': 0, u'woth': False, u'mtime': 1545058603.4745913, u'inode': 4214746, u'isgid': False, u'size': 2407, u'roth': True, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/templates/metrics-heapster-rc.yaml', u'xusr': False, u'atime': 1545058603.6515913, u'isdir': False, u'ctime': 1545058603.6535912, u'wgrp': False, u'xgrp': False, u'dev': 64769, u'isblk': False, u'isfifo': False, u'mode': u'0644', u'islnk': False})
ok: [master.lab.example.com] => (item={u'uid': 0, u'woth': False, u'mtime': 1545058604.1025913, u'inode': 16811325, u'isgid': False, u'size': 204, u'roth': True, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/templates/metrics-heapster-sa.yaml', u'xusr': False, u'atime': 1545058604.2555914, u'isdir': False, u'ctime': 1545058604.2575912, u'wgrp': False, u'xgrp': False, u'dev': 64769, u'isblk': False, u'isfifo': False, u'mode': u'0644', u'islnk': False})
ok: [master.lab.example.com] => (item={u'uid': 0, u'woth': False, u'mtime': 1545058604.5205913, u'inode': 29360463, u'isgid': False, u'size': 215, u'roth': True, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/templates/metrics-heapster-svc.yaml', u'xusr': False, u'atime': 1545058604.6605914, u'isdir': False, u'ctime': 1545058604.6635914, u'wgrp': False, u'xgrp': False, u'dev': 64769, u'isblk': False, u'isfifo': False, u'mode': u'0644', u'islnk': False})
ok: [master.lab.example.com] => (item={u'uid': 0, u'woth': False, u'mtime': 1545058604.9555914, u'inode': 41944976, u'isgid': False, u'size': 257, u'roth': True, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/templates/heapster-rolebinding.yaml', u'xusr': False, u'atime': 1545058605.1115913, u'isdir': False, u'ctime': 1545058605.1145914, u'wgrp': False, u'xgrp': False, u'dev': 64769, u'isblk': False, u'isfifo': False, u'mode': u'0644', u'islnk': False})
ok: [master.lab.example.com] => (item={u'uid': 0, u'woth': False, u'mtime': 1545058607.6345916, u'inode': 41885, u'isgid': False, u'size': 6767, u'roth': True, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/templates/heapster_secrets.yaml', u'xusr': False, u'atime': 1545058607.7895918, u'isdir': False, u'ctime': 1545058607.7915916, u'wgrp': False, u'xgrp': False, u'dev': 64769, u'isblk': False, u'isfifo': False, u'mode': u'0644', u'islnk': False})
ok: [master.lab.example.com] => (item={u'uid': 0, u'woth': False, u'mtime': 1545058608.5965917, u'inode': 21039309, u'isgid': False, u'size': 3849, u'roth': True, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/templates/hawkular_metrics_rc.yaml', u'xusr': False, u'atime': 1545058608.7555919, u'isdir': False, u'ctime': 1545058608.7575917, u'wgrp': False, u'xgrp': False, u'dev': 64769, u'isblk': False, u'isfifo': False, u'mode': u'0644', u'islnk': False})
ok: [master.lab.example.com] => (item={u'uid': 0, u'woth': False, u'mtime': 1545058609.4775918, u'inode': 41944977, u'isgid': False, u'size': 1456, u'roth': True, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/templates/hawkular-metrics-route.yaml', u'xusr': False, u'atime': 1545058609.639592, u'isdir': False, u'ctime': 1545058609.6415918, u'wgrp': False, u'xgrp': False, u'dev': 64769, u'isblk': False, u'isfifo': False, u'mode': u'0644', u'islnk': False})
ok: [master.lab.example.com] => (item={u'uid': 0, u'woth': False, u'mtime': 1545058610.4895918, u'inode': 62922758, u'isgid': False, u'size': 3084, u'roth': True, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/templates/hawkular-cassandra-rc1.yaml', u'xusr': False, u'atime': 1545058610.646592, u'isdir': False, u'ctime': 1545058610.649592, u'wgrp': False, u'xgrp': False, u'dev': 64769, u'isblk': False, u'isfifo': False, u'mode': u'0644', u'islnk': False})
ok: [master.lab.example.com] => (item={u'uid': 0, u'woth': False, u'mtime': 1545058611.029592, u'inode': 75504619, u'isgid': False, u'size': 208, u'roth': True, u'isuid': False, u'isreg': True, u'gid': 0, u'ischr': False, u'wusr': True, u'xoth': False, u'rusr': True, u'nlink': 1, u'issock': False, u'rgrp': True, u'path': u'/tmp/openshift-metrics-ansible-3zrEuf/templates/hawkular-cassandra-pvc1.yaml', u'xusr': False, u'atime': 1545058611.194592, u'isdir': False, u'ctime': 1545058611.198592, u'wgrp': False, u'xgrp': False, u'dev': 64769, u'isblk': False, u'isfifo': False, u'mode': u'0644', u'islnk': False})
TASK [openshift_metrics : Create objects] **************************************
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/oc_apply.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/oc_apply.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/oc_apply.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/oc_apply.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/oc_apply.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/oc_apply.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/oc_apply.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/oc_apply.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/oc_apply.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/oc_apply.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/oc_apply.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/oc_apply.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/oc_apply.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/oc_apply.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/oc_apply.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/oc_apply.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/oc_apply.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/oc_apply.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/oc_apply.yaml for master.lab.example.com
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/oc_apply.yaml for master.lab.example.com
TASK [openshift_metrics : Checking generation of Secret hawkular-metrics-secrets] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Applying /tmp/openshift-metrics-ansible-3zrEuf/templates/hawkular_metrics_secrets.yaml] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Determine change status of Secret hawkular-metrics-secrets] ***
changed: [master.lab.example.com]
TASK [openshift_metrics : Checking generation of Secret hawkular-metrics-certificate] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Applying /tmp/openshift-metrics-ansible-3zrEuf/templates/hawkular_metrics_certificate.yaml] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Determine change status of Secret hawkular-metrics-certificate] ***
changed: [master.lab.example.com]
TASK [openshift_metrics : Checking generation of Secret hawkular-metrics-account] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Applying /tmp/openshift-metrics-ansible-3zrEuf/templates/hawkular_metrics_account.yaml] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Determine change status of Secret hawkular-metrics-account] ***
changed: [master.lab.example.com]
TASK [openshift_metrics : Checking generation of Secret hawkular-cassandra-secrets] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Applying /tmp/openshift-metrics-ansible-3zrEuf/templates/cassandra_secrets.yaml] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Determine change status of Secret hawkular-cassandra-secrets] ***
changed: [master.lab.example.com]
TASK [openshift_metrics : Checking generation of Secret hawkular-cassandra-certificate] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Applying /tmp/openshift-metrics-ansible-3zrEuf/templates/cassandra_certificate.yaml] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Determine change status of Secret hawkular-cassandra-certificate] ***
changed: [master.lab.example.com]
TASK [openshift_metrics : Checking generation of ServiceAccount hawkular] ******
ok: [master.lab.example.com]
TASK [openshift_metrics : Applying /tmp/openshift-metrics-ansible-3zrEuf/templates/metrics-hawkular-sa.yaml] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Determine change status of ServiceAccount hawkular] **
changed: [master.lab.example.com]
TASK [openshift_metrics : Checking generation of ServiceAccount cassandra] *****
ok: [master.lab.example.com]
TASK [openshift_metrics : Applying /tmp/openshift-metrics-ansible-3zrEuf/templates/metrics-cassandra-sa.yaml] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Determine change status of ServiceAccount cassandra] *
changed: [master.lab.example.com]
TASK [openshift_metrics : Checking generation of Service hawkular-metrics] *****
ok: [master.lab.example.com]
TASK [openshift_metrics : Applying /tmp/openshift-metrics-ansible-3zrEuf/templates/metrics-hawkular-metrics-svc.yaml] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Determine change status of Service hawkular-metrics] *
changed: [master.lab.example.com]
TASK [openshift_metrics : Checking generation of Service hawkular-cassandra] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Applying /tmp/openshift-metrics-ansible-3zrEuf/templates/metrics-hawkular-cassandra-svc.yaml] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Determine change status of Service hawkular-cassandra] ***
changed: [master.lab.example.com]
TASK [openshift_metrics : Checking generation of Service hawkular-cassandra-nodes] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Applying /tmp/openshift-metrics-ansible-3zrEuf/templates/metrics-hawkular-cassandra-nodes-svc.yaml] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Determine change status of Service hawkular-cassandra-nodes] ***
changed: [master.lab.example.com]
TASK [openshift_metrics : Checking generation of RoleBinding hawkular-view] ****
ok: [master.lab.example.com]
TASK [openshift_metrics : Applying /tmp/openshift-metrics-ansible-3zrEuf/templates/hawkular-rolebinding.yaml] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Determine change status of RoleBinding hawkular-view]
changed: [master.lab.example.com]
TASK [openshift_metrics : Checking generation of ReplicationController heapster] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Applying /tmp/openshift-metrics-ansible-3zrEuf/templates/metrics-heapster-rc.yaml] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Determine change status of ReplicationController heapster] ***
changed: [master.lab.example.com]
TASK [openshift_metrics : Checking generation of ServiceAccount heapster] ******
ok: [master.lab.example.com]
TASK [openshift_metrics : Applying /tmp/openshift-metrics-ansible-3zrEuf/templates/metrics-heapster-sa.yaml] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Determine change status of ServiceAccount heapster] **
changed: [master.lab.example.com]
TASK [openshift_metrics : Checking generation of Service heapster] *************
ok: [master.lab.example.com]
TASK [openshift_metrics : Applying /tmp/openshift-metrics-ansible-3zrEuf/templates/metrics-heapster-svc.yaml] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Determine change status of Service heapster] *********
changed: [master.lab.example.com]
TASK [openshift_metrics : Checking generation of ClusterRoleBinding heapster-cluster-reader] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Applying /tmp/openshift-metrics-ansible-3zrEuf/templates/heapster-rolebinding.yaml] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Determine change status of ClusterRoleBinding heapster-cluster-reader] ***
changed: [master.lab.example.com]
TASK [openshift_metrics : Checking generation of Secret heapster-secrets] ******
ok: [master.lab.example.com]
TASK [openshift_metrics : Applying /tmp/openshift-metrics-ansible-3zrEuf/templates/heapster_secrets.yaml] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Determine change status of Secret heapster-secrets] **
changed: [master.lab.example.com]
TASK [openshift_metrics : Checking generation of ReplicationController hawkular-metrics] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Applying /tmp/openshift-metrics-ansible-3zrEuf/templates/hawkular_metrics_rc.yaml] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Determine change status of ReplicationController hawkular-metrics] ***
changed: [master.lab.example.com]
TASK [openshift_metrics : Checking generation of Route hawkular-metrics] *******
ok: [master.lab.example.com]
TASK [openshift_metrics : Applying /tmp/openshift-metrics-ansible-3zrEuf/templates/hawkular-metrics-route.yaml] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Determine change status of Route hawkular-metrics] ***
changed: [master.lab.example.com]
TASK [openshift_metrics : Checking generation of ReplicationController hawkular-cassandra-1] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Applying /tmp/openshift-metrics-ansible-3zrEuf/templates/hawkular-cassandra-rc1.yaml] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Determine change status of ReplicationController hawkular-cassandra-1] ***
changed: [master.lab.example.com]
TASK [openshift_metrics : Checking generation of PersistentVolumeClaim metrics-1] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Applying /tmp/openshift-metrics-ansible-3zrEuf/templates/hawkular-cassandra-pvc1.yaml] ***
ok: [master.lab.example.com]
TASK [openshift_metrics : Determine change status of PersistentVolumeClaim metrics-1] ***
changed: [master.lab.example.com]
TASK [openshift_metrics : include] *********************************************
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/update_master_config.yaml for master.lab.example.com
TASK [openshift_metrics : Adding metrics route information to metricsPublicURL]
changed: [master.lab.example.com]
TASK [openshift_metrics : command] *********************************************
ok: [master.lab.example.com]
TASK [openshift_metrics : Scaling down cluster to recognize changes] ***********
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/stop_metrics.yaml for master.lab.example.com
TASK [openshift_metrics : command] *********************************************
changed: [master.lab.example.com]
TASK [openshift_metrics : Stop Heapster] ***************************************
changed: [master.lab.example.com] => (item=replicationcontroller/heapster)
TASK [openshift_metrics : command] *********************************************
changed: [master.lab.example.com]
TASK [openshift_metrics : Stop Hawkular Metrics] *******************************
changed: [master.lab.example.com] => (item=replicationcontroller/hawkular-metrics)
TASK [openshift_metrics : command] *********************************************
changed: [master.lab.example.com]
TASK [openshift_metrics : Stop Hawkular Cassandra] *****************************
changed: [master.lab.example.com] => (item=replicationcontroller/hawkular-cassandra-1)
TASK [openshift_metrics : Scaling up cluster] **********************************
included: /usr/share/ansible/openshift-ansible/roles/openshift_metrics/tasks/start_metrics.yaml for master.lab.example.com
TASK [openshift_metrics : command] *********************************************
ok: [master.lab.example.com]
TASK [openshift_metrics : Start Hawkular Cassandra] ****************************
changed: [master.lab.example.com] => (item=replicationcontroller/hawkular-cassandra-1)
TASK [openshift_metrics : command] *********************************************
ok: [master.lab.example.com]
TASK [openshift_metrics : Start Hawkular Metrics] ******************************
changed: [master.lab.example.com] => (item=replicationcontroller/hawkular-metrics)
TASK [openshift_metrics : command] *********************************************
ok: [master.lab.example.com]
TASK [openshift_metrics : Start Heapster] **************************************
changed: [master.lab.example.com] => (item=replicationcontroller/heapster)
TASK [openshift_metrics : Delete temp directory] *******************************
ok: [master.lab.example.com -> localhost]
RUNNING HANDLER [openshift_metrics : restart master] ***************************
changed: [master.lab.example.com]
RUNNING HANDLER [openshift_metrics : restart master api] ***********************
skipping: [master.lab.example.com]
RUNNING HANDLER [openshift_metrics : restart master controllers] ***************
skipping: [master.lab.example.com]
RUNNING HANDLER [openshift_metrics : Verify API Server] ************************
FAILED - RETRYING: HANDLER: openshift_metrics : Verify API Server (120 retries left).
FAILED - RETRYING: HANDLER: openshift_metrics : Verify API Server (119 retries left).
ok: [master.lab.example.com]
PLAY RECAP *********************************************************************
localhost : ok=10 changed=0 unreachable=0 failed=0
master.lab.example.com : ok=196 changed=48 unreachable=0 failed=0
node1.lab.example.com : ok=1 changed=0 unreachable=0 failed=0
node2.lab.example.com : ok=1 changed=0 unreachable=0 failed=0
5.oc get pvc -n openshift-infra查看pvc资源。oc get route -n openshift-infra查看路由资源。oc get pods -n openshift-infra -o wide查看pod资源。
[student@workstation install-metrics]$ oc get pvc -n openshift-infra
NAME STATUS VOLUME CAPACITY ACCESSMODES AGE
metrics-1 Bound metrics 5Gi RWO 2m
[student@workstation install-metrics]$ oc get route -n openshift-infra
NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
hawkular-metrics hawkular-metrics.cloudapps.lab.example.com hawkular-metrics
[student@workstation install-metrics]$ oc get pods -n openshift-infra -o wide
NAME READY STATUS RESTARTS AGE IP NODE
hawkular-cassandra-1-k741t 1/1 Running 0 4m 10.129.0.10 node2.lab.example.com
hawkular-metrics-vdgn8 1/1 Running 0 4m 10.130.0.10 node1.lab.example.com
heapster-pt5c3 1/1 Running 0 3m 10.129.0.11 node2.lab.example.com
6.按照路由资源提供的HOST/PORT地址,从网页界面进行访问激活。
附注:openshift-metrics.yml文件内容
[root@master ~]# cat /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/openshift-metrics.yml
---
- name: Create initial host groups for localhost
hosts: localhost
connection: local
become: no
gather_facts: no
tags:
- always
tasks:
- include_vars: cluster_hosts.yml
- name: Evaluate group l_oo_all_hosts
add_host:
name: "{{ item }}"
groups: l_oo_all_hosts
with_items: "{{ g_all_hosts | default([]) }}"
changed_when: False
- name: Create initial host groups for all hosts
hosts: l_oo_all_hosts
gather_facts: no
tags:
- always
tasks:
- include_vars: cluster_hosts.yml
- include: ../../common/openshift-cluster/openshift_metrics.yml