Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cizar@castle:~/oro-cloud-ansible$ ansible-playbook consul.yml -e "full_cluster_name=loc-cizar1 env_type=local" -vvv
- [WARNING]: log file at ansible.log is not writeable and we cannot create it, aborting
- Using /home/cizar/oro-cloud-ansible/ansible.cfg as config file
- statically included: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml
- statically included: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml
- statically included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.lb.yml
- statically included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml
- statically included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/acl-vault.yml
- PLAYBOOK: consul.yml ***********************************************************************************************************************************************************************************************
- 4 plays in consul.yml
- PLAY [re-add nodes to inventory] ***********************************************************************************************************************************************************************************
- TASK [Gathering Facts] *********************************************************************************************************************************************************************************************
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/system/setup.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
- ok: [localhost]
- META: ran handlers
- TASK [common/dyn_inventory : check group_vars presence] ************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:3
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
- ok: [localhost] => {
- "changed": false,
- "invocation": {
- "module_args": {
- "checksum_algorithm": "sha1",
- "follow": false,
- "get_attributes": true,
- "get_checksum": true,
- "get_md5": true,
- "get_mime": true,
- "path": "group_vars"
- }
- },
- "stat": {
- "atime": 1509615152.7928565,
- "attr_flags": "e",
- "attributes": [
- "extents"
- ],
- "block_size": 4096,
- "blocks": 8,
- "charset": "binary",
- "ctime": 1509615102.4042282,
- "dev": 2066,
- "device_type": 0,
- "executable": true,
- "exists": true,
- "gid": 1001,
- "gr_name": "cizar",
- "inode": 3375723,
- "isblk": false,
- "ischr": false,
- "isdir": true,
- "isfifo": false,
- "isgid": false,
- "islnk": false,
- "isreg": false,
- "issock": false,
- "isuid": false,
- "mimetype": "inode/directory",
- "mode": "0775",
- "mtime": 1509615102.4042282,
- "nlink": 2,
- "path": "group_vars",
- "pw_name": "cizar",
- "readable": true,
- "rgrp": true,
- "roth": true,
- "rusr": true,
- "size": 4096,
- "uid": 1001,
- "version": "18446744073617112625",
- "wgrp": true,
- "woth": false,
- "writeable": true,
- "wusr": true,
- "xgrp": true,
- "xoth": true,
- "xusr": true
- }
- }
- TASK [common/dyn_inventory : fail] *********************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:8
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : include group_vars] *******************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:11
- ok: [localhost] => {
- "ansible_facts": {
- "EmailPass": "Service123",
- "EmailUser": "service@oroinc.com",
- "allow_destination": [
- {
- "port": "all",
- "proto": "TCP"
- },
- {
- "port": "all",
- "proto": "UDP"
- }
- ],
- "allow_incoming": [
- {
- "port": "all",
- "proto": "TCP"
- },
- {
- "port": "all",
- "proto": "UDP"
- }
- ],
- "ceph_nodes": "10.32.0.8:6789,10.32.0.9:6789,10.32.0.11:6789",
- "ceph_secret": "AQDFpENZqhgsORAAZyKPLswBOrfa/bmoY8dD/g==",
- "cloud_install": false,
- "credentials_file": "{{ project_name }}.json",
- "datadog_api_key": "d629a6affce622c81101c06eaebe56b9",
- "env_type": "local",
- "forwarding_rules": [
- {
- "port": 500,
- "proto": "UDP"
- },
- {
- "port": 4500,
- "proto": "UDP"
- }
- ],
- "gcloud_account": "~/account.json",
- "gcloud_command": "{{ gcloud_path }}/bin/gcloud",
- "gcloud_compute_region": "us-central1",
- "gcloud_compute_zone": "us-central1-f",
- "gcloud_log": "/tmp/gcloud.log",
- "gcloud_path": "~/google-cloud-sdk",
- "gcloud_project_name": "oro-cloud-development",
- "gke_cluster_version": "1.7.6-gke.1",
- "gke_machine_type": "n1-highcpu-8",
- "gluster_server_ip": "10.33.0.5",
- "images_list": [
- {
- "img": "ubuntu",
- "rebuild": true,
- "tag": "14.04-{{ root_version }}"
- },
- {
- "img": "service-root",
- "rebuild": true,
- "tag": "{{ root_image_tag }}"
- },
- {
- "img": "builder-bap-standard",
- "rebuild": true,
- "tag": "1.6.2"
- },
- {
- "img": "deployer-bap-standard",
- "rebuild": true,
- "tag": "1.6.2"
- },
- {
- "img": "builder-bap-monolithic",
- "rebuild": true,
- "tag": "1.6.2"
- },
- {
- "img": "deployer-bap-monolithic",
- "rebuild": true,
- "tag": "1.6.2"
- },
- {
- "img": "destroyer",
- "rebuild": true,
- "tag": "1.0.0"
- },
- {
- "img": "elasticsearch",
- "rebuild": true,
- "tag": "1.0.0"
- },
- {
- "img": "redis",
- "rebuild": true,
- "tag": "1.0.0"
- },
- {
- "img": "archiver",
- "rebuild": true,
- "tag": "1.0.0"
- },
- {
- "img": "fluentd-gcp",
- "rebuild": true,
- "tag": "1.18"
- },
- {
- "img": "clone",
- "rebuild": true,
- "tag": "1.0.0"
- },
- {
- "img": "vault",
- "rebuild": true,
- "tag": "0.6.2"
- },
- {
- "img": "es-cluster",
- "rebuild": true,
- "tag": "2.4.1"
- },
- {
- "img": "rabbitmq",
- "rebuild": true,
- "tag": "3.6.6-management"
- },
- {
- "img": "consul",
- "rebuild": true,
- "tag": "0.7.4"
- },
- {
- "img": "jenkins",
- "rebuild": true,
- "tag": "2.32.2"
- },
- {
- "img": "token-rotator",
- "pull": true,
- "rebuild": true,
- "tag": "1.0"
- }
- ],
- "isolation": false,
- "kubectl_command": "{{ gcloud_path }}/bin/kubectl",
- "kubernetes_salt_bucket": "saltarch",
- "kubernetes_salt_download_host": "storage.googleapis.com",
- "local_install": false,
- "maximum_subnet": "10.124.0.0/15",
- "mgmt_instance_ip": "",
- "mgmt_instance_name": "",
- "minimum_subnet": "10.12.0.0/15",
- "num_nodes": 1,
- "project_name": "oro-cloud-development",
- "proxy_webserver": "apache2",
- "root_image_tag": 1.0,
- "root_version": 1.6,
- "salt_tar_hash": "45716cc2a9deb2441c1d73e7e66045ddf3a9a02f",
- "salt_tar_url": "https:\\/\\/{{kubernetes_salt_download_host}}\\/{{ kubernetes_salt_bucket }}\\/kubernetes-salt-1.6.tar.gz",
- "service_account_path": "/vagrant/bin/kubernetes/serviceaccount.yaml",
- "service_clusters": [
- "app",
- "mgmt"
- ],
- "service_container_pool": "{{ cluster_name.stdout }}",
- "service_email": "account-61@oro-cloud-development.iam.gserviceaccount.com",
- "service_key_path": "/tmp/account.p12",
- "service_mail": "service_mail",
- "sql_instance_ip": "",
- "sql_instance_name": "",
- "srv_container_pool": "{{ env }}",
- "vpn_pass_type": "random"
- },
- "changed": false
- }
- TASK [common/dyn_inventory : Require 'env' variable set for non-local envs] ****************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:14
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : Interrupt operations when using production project without confirmation] **************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:19
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : check inventory presence] *************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:24
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
- ok: [localhost] => {
- "changed": false,
- "invocation": {
- "module_args": {
- "checksum_algorithm": "sha1",
- "follow": false,
- "get_attributes": true,
- "get_checksum": true,
- "get_md5": true,
- "get_mime": true,
- "path": "inventory"
- }
- },
- "stat": {
- "atime": 1509617325.2919712,
- "attr_flags": "e",
- "attributes": [
- "extents"
- ],
- "block_size": 4096,
- "blocks": 8,
- "charset": "binary",
- "ctime": 1509615122.3124764,
- "dev": 2066,
- "device_type": 0,
- "executable": true,
- "exists": true,
- "gid": 1001,
- "gr_name": "cizar",
- "inode": 3375724,
- "isblk": false,
- "ischr": false,
- "isdir": true,
- "isfifo": false,
- "isgid": false,
- "islnk": false,
- "isreg": false,
- "issock": false,
- "isuid": false,
- "mimetype": "inode/directory",
- "mode": "0775",
- "mtime": 1509615122.3124764,
- "nlink": 2,
- "path": "inventory",
- "pw_name": "cizar",
- "readable": true,
- "rgrp": true,
- "roth": true,
- "rusr": true,
- "size": 4096,
- "uid": 1001,
- "version": "18446744071579942450",
- "wgrp": true,
- "woth": false,
- "writeable": true,
- "wusr": true,
- "xgrp": true,
- "xoth": true,
- "xusr": true
- }
- }
- TASK [common/dyn_inventory : fail] *********************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:29
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : change project] ***********************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:32
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud config set project oro-cloud-development",
- "delta": "0:00:00.248755",
- "end": "2017-11-02 14:41:02.229877",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud config set project oro-cloud-development",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:41:01.981122",
- "stderr": "Updated property [core/project].",
- "stderr_lines": [
- "Updated property [core/project]."
- ],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [common/dyn_inventory : define environment prefix for service clusters] ***************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:36
- ok: [localhost] => {
- "ansible_facts": {
- "env_prefix": "loc"
- },
- "changed": false
- }
- TASK [common/dyn_inventory : find available service clusters] ******************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:40
- skipping: [localhost] => (item=app) => {
- "changed": false,
- "item": "app",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=mgmt) => {
- "changed": false,
- "item": "mgmt",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : register available service clusters] **************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:49
- skipping: [localhost] => (item=(censored due to no_log)) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"}
- skipping: [localhost] => (item=(censored due to no_log)) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"}
- TASK [common/dyn_inventory : register a build version supplied via command line if it contained numbers] ***********************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:55
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "echo loc-cizar | sed 's/.*[^0-9]//g'",
- "delta": "0:00:00.002358",
- "end": "2017-11-02 14:41:02.403079",
- "invocation": {
- "module_args": {
- "_raw_params": "echo loc-cizar | sed 's/.*[^0-9]//g'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:41:02.400721",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [common/dyn_inventory : save a version supplied via command line as build_version if it contained numbers] ****************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:59
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : get build_version] ********************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:63
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^loc-cizar[0-9]*$' | sed 's/.*[^0-9]//g' | sort -n | tail -n1",
- "delta": "0:00:01.550369",
- "end": "2017-11-02 14:41:04.082263",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^loc-cizar[0-9]*$' | sed 's/.*[^0-9]//g' | sort -n | tail -n1",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:41:02.531894",
- "stderr": "\n* - There is an upgrade available for your cluster(s).\n\nTo upgrade nodes to the latest available version, run\n $ gcloud container clusters upgrade NAME",
- "stderr_lines": [
- "",
- "* - There is an upgrade available for your cluster(s).",
- "",
- "To upgrade nodes to the latest available version, run",
- " $ gcloud container clusters upgrade NAME"
- ],
- "stdout": "1",
- "stdout_lines": [
- "1"
- ]
- }
- TASK [common/dyn_inventory : set build version when none found] ****************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:68
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : set build version when found] *********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:73
- ok: [localhost] => {
- "ansible_facts": {
- "build_version": "1"
- },
- "changed": false
- }
- TASK [common/dyn_inventory : force user-supplied build_version] ***************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:82
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : set new cluster name] *****************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:86
- ok: [localhost] => {
- "ansible_facts": {
- "full_cluster_name": "loc-cizar1"
- },
- "changed": false
- }
- TASK [common/dyn_inventory : validate preconfigured cluster] *******************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:89
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud container clusters describe loc-cizar1 | grep currentNodeCount | awk '{print $2}'",
- "delta": "0:00:00.783204",
- "end": "2017-11-02 14:41:05.019546",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud container clusters describe loc-cizar1 | grep currentNodeCount | awk '{print $2}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:41:04.236342",
- "stderr": "\n* - There is an upgrade available for your cluster(s).\n\nTo upgrade nodes to the latest available version, run\n $ gcloud container clusters upgrade loc-cizar1",
- "stderr_lines": [
- "",
- "* - There is an upgrade available for your cluster(s).",
- "",
- "To upgrade nodes to the latest available version, run",
- " $ gcloud container clusters upgrade loc-cizar1"
- ],
- "stdout": "1",
- "stdout_lines": [
- "1"
- ]
- }
- TASK [common/dyn_inventory : mark existing cluster as valid] *******************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:94
- ok: [localhost] => {
- "ansible_facts": {
- "reuse_cluster": true
- },
- "changed": false
- }
- TASK [common/dyn_inventory : increment build version] **************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:99
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : update new cluster name] **************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:103
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : point all service clusters to single cluster in non-multicluster env] *****************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:107
- ok: [localhost] => (item=app) => {
- "ansible_facts": {
- "cluster_name_app": "loc-cizar1"
- },
- "changed": false,
- "item": "app"
- }
- ok: [localhost] => (item=mgmt) => {
- "ansible_facts": {
- "cluster_name_mgmt": "loc-cizar1"
- },
- "changed": false,
- "item": "mgmt"
- }
- TASK [common/dyn_inventory : get instance_group] *******************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:112
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "gcloud --quiet compute instance-groups list | awk '/^gke-loc-cizar1/{print $1}'",
- "delta": "0:00:01.679703",
- "end": "2017-11-02 14:41:06.869123",
- "invocation": {
- "module_args": {
- "_raw_params": "gcloud --quiet compute instance-groups list | awk '/^gke-loc-cizar1/{print $1}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:41:05.189420",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "gke-loc-cizar1-default-pool-61e81868-grp",
- "stdout_lines": [
- "gke-loc-cizar1-default-pool-61e81868-grp"
- ]
- }
- TASK [common/dyn_inventory : define instance group] ****************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:117
- ok: [localhost] => {
- "ansible_facts": {
- "instance_group": "gke-loc-cizar1-default-pool-61e81868-grp"
- },
- "changed": false
- }
- TASK [common/dyn_inventory : get instance_zone] ********************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:121
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "gcloud --quiet compute instance-groups list | awk '/^gke-loc-cizar1/{print $2}'",
- "delta": "0:00:01.633226",
- "end": "2017-11-02 14:41:08.602345",
- "invocation": {
- "module_args": {
- "_raw_params": "gcloud --quiet compute instance-groups list | awk '/^gke-loc-cizar1/{print $2}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:41:06.969119",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "us-central1-f",
- "stdout_lines": [
- "us-central1-f"
- ]
- }
- TASK [common/dyn_inventory : define instance zone] *****************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:126
- ok: [localhost] => {
- "ansible_facts": {
- "instance_zone": "us-central1-f"
- },
- "changed": false
- }
- TASK [common/dyn_inventory : get instance in group] ****************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:130
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "gcloud --quiet compute instance-groups list-instances gke-loc-cizar1-default-pool-61e81868-grp --zone=us-central1-f | awk '/loc-cizar1/{print $1}'",
- "delta": "0:00:00.788200",
- "end": "2017-11-02 14:41:09.495722",
- "invocation": {
- "module_args": {
- "_raw_params": "gcloud --quiet compute instance-groups list-instances gke-loc-cizar1-default-pool-61e81868-grp --zone=us-central1-f | awk '/loc-cizar1/{print $1}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:41:08.707522",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "gke-loc-cizar1-default-pool-61e81868-7dtn",
- "stdout_lines": [
- "gke-loc-cizar1-default-pool-61e81868-7dtn"
- ]
- }
- TASK [common/dyn_inventory : define a name of first available gcloud instance] *************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:141
- ok: [localhost] => {
- "ansible_facts": {
- "gcloud_node": "gke-loc-cizar1-default-pool-61e81868-7dtn"
- },
- "changed": false
- }
- TASK [common/dyn_inventory : locate vagrant variables dir] *********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:3
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "vagrant global-status | grep mgmt-node | awk {'print $5'} | tail -n1",
- "delta": "0:00:00.891859",
- "end": "2017-11-02 14:41:10.491330",
- "invocation": {
- "module_args": {
- "_raw_params": "vagrant global-status | grep mgmt-node | awk {'print $5'} | tail -n1",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:41:09.599471",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "/home/cizar/oro-cloud-ansible/vagrant",
- "stdout_lines": [
- "/home/cizar/oro-cloud-ansible/vagrant"
- ]
- }
- TASK [common/dyn_inventory : set vagrant inventory path] ***********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:7
- ok: [localhost] => {
- "ansible_facts": {
- "vagrant_inventory_path": "/home/cizar/oro-cloud-ansible/vagrant/.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory"
- },
- "changed": false
- }
- TASK [common/dyn_inventory : Get Vagrant hosts systemd] ************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:10
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'ANSIBLE_EGR='"'"'egrep -wi "facter_ipaddress_enp0s8|facter_hostname"'"'"' IFS='"'"', '"'"' ANSIBLE_FLT='"'"'filter='"'"'"'"'"'"'"'"'facter*'"'"'"'"'"'"'"'"''"'"' ANSIBLE_RUN='"'"'ansible all -m setup'"'"' ANSIBLE_INV=/home/cizar/oro-cloud-ansible/vagrant/.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory ANSIBLE_USR=vagrant ANSIBLE_HOST_KEY_CHECKING=False /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "$ANSIBLE_RUN -i $ANSIBLE_INV -a $ANSIBLE_FLT -u $ANSIBLE_USR | $ANSIBLE_EGR | awk '{print $2}' | tr -d , | xargs",
- "delta": "0:00:00.461704",
- "end": "2017-11-02 14:41:11.068148",
- "invocation": {
- "module_args": {
- "_raw_params": "$ANSIBLE_RUN -i $ANSIBLE_INV -a $ANSIBLE_FLT -u $ANSIBLE_USR | $ANSIBLE_EGR | awk '{print $2}' | tr -d , | xargs",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:41:10.606444",
- "stderr": "[WARNING]: log file at ansible.log is not writeable and we cannot create it, aborting\n\n [WARNING]: Host file not found: /home/cizar/oro-cloud-ansible/vagrant/.vagrant\n/provisioners/ansible/inventory/vagrant_ansible_inventory\n [WARNING]: provided hosts list is empty, only localhost is available\n [WARNING]: No hosts matched, nothing to do",
- "stderr_lines": [
- "[WARNING]: log file at ansible.log is not writeable and we cannot create it, aborting",
- "",
- " [WARNING]: Host file not found: /home/cizar/oro-cloud-ansible/vagrant/.vagrant",
- "/provisioners/ansible/inventory/vagrant_ansible_inventory",
- " [WARNING]: provided hosts list is empty, only localhost is available",
- " [WARNING]: No hosts matched, nothing to do"
- ],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [common/dyn_inventory : set_fact] *****************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:30
- ok: [localhost] => {
- "ansible_facts": {
- "vagrant_hosts_ip": " | awk {'print $2'}"
- },
- "changed": false
- }
- TASK [common/dyn_inventory : Get Vagrant hosts if systemd wasn't detected] *****************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:33
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : set_fact] *****************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:54
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : save vagrant ip] **********************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:58
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "echo | awk {'print $2'}",
- "delta": "0:00:00.002388",
- "end": "2017-11-02 14:41:11.198998",
- "invocation": {
- "module_args": {
- "_raw_params": "echo | awk {'print $2'}",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:41:11.196610",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [common/dyn_inventory : add vagrant VM as mgmt-node to inventory] *********************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:62
- creating host via 'add_host': hostname=mgmt-node
- changed: [localhost] => {
- "add_host": {
- "groups": [],
- "host_name": "mgmt-node",
- "host_vars": {
- "ansible_host": "",
- "ansible_ssh_private_key_file": "/home/cizar/.vagrant.d/insecure_private_key",
- "ansible_user": "vagrant"
- }
- },
- "changed": true
- }
- TASK [common/dyn_inventory : add mgmt-node as proxy] ***************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:69
- creating host via 'add_host': hostname=mgmt-node
- changed: [localhost] => {
- "add_host": {
- "groups": [
- "proxies"
- ],
- "host_name": "mgmt-node",
- "host_vars": {}
- },
- "changed": true
- }
- TASK [common/dyn_inventory : get mgmt IP for new env] **************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:3
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : set_fact] *****************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:8
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : get mgmt IP for older non-isolated env] ***********************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:12
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : set_fact] *****************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:17
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : get proxy IP for new env] *************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:21
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : set_fact] *****************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:26
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : get proxy IP for older non-isolated env] *********************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:30
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : set_fact] *****************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:35
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : add mgmt to inventory] ****************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:39
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : add proxy to inventory] ***************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:46
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : add proxy nodes to proxy group] *******************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:53
- skipping: [localhost] => (item=a59f9c0aadba5c-app) => {
- "changed": false,
- "item": "a59f9c0aadba5c-app",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=demo-debd774613f6-app1) => {
- "changed": false,
- "item": "demo-debd774613f6-app1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=dvvtes-31053337b430-app1) => {
- "changed": false,
- "item": "dvvtes-31053337b430-app1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=eph5-6719010c4ea1-app1) => {
- "changed": false,
- "item": "eph5-6719010c4ea1-app1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=sch901-27e7a5af8bd1-app1) => {
- "changed": false,
- "item": "sch901-27e7a5af8bd1-app1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=vm59f76db45c3ed6-app) => {
- "changed": false,
- "item": "vm59f76db45c3ed6-app",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro12-fde561ff101c-maintenance1) => {
- "changed": false,
- "item": "zoro12-fde561ff101c-maintenance1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro22-eabb7399bca5-app1) => {
- "changed": false,
- "item": "zoro22-eabb7399bca5-app1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro23-21e810c8d70c-maintenance1) => {
- "changed": false,
- "item": "zoro23-21e810c8d70c-maintenance1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro27-3a880e8ad760-maintenance1) => {
- "changed": false,
- "item": "zoro27-3a880e8ad760-maintenance1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro28-182cd97e2b3d-maintenance1) => {
- "changed": false,
- "item": "zoro28-182cd97e2b3d-maintenance1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro30-9c6eb622d694-app1) => {
- "changed": false,
- "item": "zoro30-9c6eb622d694-app1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=cizartest1-jumphost1) => {
- "changed": false,
- "item": "cizartest1-jumphost1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=gke-loc-ephrin1-default-pool-b5776e0e-lgsm) => {
- "changed": false,
- "item": "gke-loc-ephrin1-default-pool-b5776e0e-lgsm",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-mgmt1-zabbix1) => {
- "changed": false,
- "item": "staging-mgmt1-zabbix1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=dvvtes-31053337b430-ess1) => {
- "changed": false,
- "item": "dvvtes-31053337b430-ess1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=dvvtes-31053337b430-nat1) => {
- "changed": false,
- "item": "dvvtes-31053337b430-nat1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=eph5-6719010c4ea1-ess1) => {
- "changed": false,
- "item": "eph5-6719010c4ea1-ess1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=eph5-6719010c4ea1-nat1) => {
- "changed": false,
- "item": "eph5-6719010c4ea1-nat1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=gke-loc-cizar1-default-pool-61e81868-7dtn) => {
- "changed": false,
- "item": "gke-loc-cizar1-default-pool-61e81868-7dtn",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=gke-loc-dima1-default-pool-09671362-xb5r) => {
- "changed": false,
- "item": "gke-loc-dima1-default-pool-09671362-xb5r",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=gke-loc-scherepanov1-default-pool-45356f1a-drbt) => {
- "changed": false,
- "item": "gke-loc-scherepanov1-default-pool-45356f1a-drbt",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=loc-dima1-jenkins) => {
- "changed": false,
- "item": "loc-dima1-jenkins",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=loc-dima1-vault) => {
- "changed": false,
- "item": "loc-dima1-vault",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=loc-ephrin1-jenkins) => {
- "changed": false,
- "item": "loc-ephrin1-jenkins",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=loc-sch1-jnks) => {
- "changed": false,
- "item": "loc-sch1-jnks",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=loc-sch1-vault) => {
- "changed": false,
- "item": "loc-sch1-vault",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-app1-ceph4) => {
- "changed": false,
- "item": "staging-app1-ceph4",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-app1-ceph5) => {
- "changed": false,
- "item": "staging-app1-ceph5",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-app1-ceph6) => {
- "changed": false,
- "item": "staging-app1-ceph6",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-app1-cephadmin2) => {
- "changed": false,
- "item": "staging-app1-cephadmin2",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-app1-proxy3) => {
- "changed": false,
- "item": "staging-app1-proxy3",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-app1-proxy4) => {
- "changed": false,
- "item": "staging-app1-proxy4",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-app1-router1) => {
- "changed": false,
- "item": "staging-app1-router1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-mgmt1-mgmt1) => {
- "changed": false,
- "item": "staging-mgmt1-mgmt1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-mgmt1-prov1) => {
- "changed": false,
- "item": "staging-mgmt1-prov1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=a59f9c0aadba5c-ess) => {
- "changed": false,
- "item": "a59f9c0aadba5c-ess",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-mgmt1-topmaster1) => {
- "changed": false,
- "item": "staging-mgmt1-topmaster1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=demo-debd774613f6-ess1) => {
- "changed": false,
- "item": "demo-debd774613f6-ess1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=demo-debd774613f6-nat1) => {
- "changed": false,
- "item": "demo-debd774613f6-nat1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=jenkins1-jenkins1) => {
- "changed": false,
- "item": "jenkins1-jenkins1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=loc-dvv1-jenkins) => {
- "changed": false,
- "item": "loc-dvv1-jenkins",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=loc-dvv1-vault1) => {
- "changed": false,
- "item": "loc-dvv1-vault1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=loc-sin1-jenkins1) => {
- "changed": false,
- "item": "loc-sin1-jenkins1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=sch901-27e7a5af8bd1-ess1) => {
- "changed": false,
- "item": "sch901-27e7a5af8bd1-ess1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=sch901-27e7a5af8bd1-nat1) => {
- "changed": false,
- "item": "sch901-27e7a5af8bd1-nat1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-admin1-jumphost1) => {
- "changed": false,
- "item": "staging-admin1-jumphost1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-admin1-to-staging-app1-bridge) => {
- "changed": false,
- "item": "staging-admin1-to-staging-app1-bridge",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-admin1-to-staging-mgmt1-bridge) => {
- "changed": false,
- "item": "staging-admin1-to-staging-mgmt1-bridge",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-app1-nat) => {
- "changed": false,
- "item": "staging-app1-nat",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-mgmt1-jenkins1) => {
- "changed": false,
- "item": "staging-mgmt1-jenkins1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-mgmt1-pupcl1) => {
- "changed": false,
- "item": "staging-mgmt1-pupcl1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-mgmt1-router1) => {
- "changed": false,
- "item": "staging-mgmt1-router1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=vm59f76db45c3ed6-ess) => {
- "changed": false,
- "item": "vm59f76db45c3ed6-ess",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=vm59f76db45c3ed6-maintenance) => {
- "changed": false,
- "item": "vm59f76db45c3ed6-maintenance",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=vm59f76db45c3ed6-nat) => {
- "changed": false,
- "item": "vm59f76db45c3ed6-nat",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro22-eabb7399bca5-ess1) => {
- "changed": false,
- "item": "zoro22-eabb7399bca5-ess1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro22-eabb7399bca5-nat1) => {
- "changed": false,
- "item": "zoro22-eabb7399bca5-nat1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro23-21e810c8d70c-nat1) => {
- "changed": false,
- "item": "zoro23-21e810c8d70c-nat1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro27-3a880e8ad760-nat1) => {
- "changed": false,
- "item": "zoro27-3a880e8ad760-nat1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro28-182cd97e2b3d-nat1) => {
- "changed": false,
- "item": "zoro28-182cd97e2b3d-nat1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro30-9c6eb622d694-ess1) => {
- "changed": false,
- "item": "zoro30-9c6eb622d694-ess1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro30-9c6eb622d694-nat1) => {
- "changed": false,
- "item": "zoro30-9c6eb622d694-nat1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=mgmt-node) => {
- "changed": false,
- "item": "mgmt-node",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : add proxy nodes to proxy group for non-isolated env] **********************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:61
- skipping: [localhost] => (item=a59f9c0aadba5c-app) => {
- "changed": false,
- "item": "a59f9c0aadba5c-app",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=demo-debd774613f6-app1) => {
- "changed": false,
- "item": "demo-debd774613f6-app1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=dvvtes-31053337b430-app1) => {
- "changed": false,
- "item": "dvvtes-31053337b430-app1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=eph5-6719010c4ea1-app1) => {
- "changed": false,
- "item": "eph5-6719010c4ea1-app1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=sch901-27e7a5af8bd1-app1) => {
- "changed": false,
- "item": "sch901-27e7a5af8bd1-app1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=vm59f76db45c3ed6-app) => {
- "changed": false,
- "item": "vm59f76db45c3ed6-app",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro12-fde561ff101c-maintenance1) => {
- "changed": false,
- "item": "zoro12-fde561ff101c-maintenance1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro22-eabb7399bca5-app1) => {
- "changed": false,
- "item": "zoro22-eabb7399bca5-app1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro23-21e810c8d70c-maintenance1) => {
- "changed": false,
- "item": "zoro23-21e810c8d70c-maintenance1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro27-3a880e8ad760-maintenance1) => {
- "changed": false,
- "item": "zoro27-3a880e8ad760-maintenance1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro28-182cd97e2b3d-maintenance1) => {
- "changed": false,
- "item": "zoro28-182cd97e2b3d-maintenance1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro30-9c6eb622d694-app1) => {
- "changed": false,
- "item": "zoro30-9c6eb622d694-app1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=cizartest1-jumphost1) => {
- "changed": false,
- "item": "cizartest1-jumphost1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=gke-loc-ephrin1-default-pool-b5776e0e-lgsm) => {
- "changed": false,
- "item": "gke-loc-ephrin1-default-pool-b5776e0e-lgsm",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-mgmt1-zabbix1) => {
- "changed": false,
- "item": "staging-mgmt1-zabbix1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=dvvtes-31053337b430-ess1) => {
- "changed": false,
- "item": "dvvtes-31053337b430-ess1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=dvvtes-31053337b430-nat1) => {
- "changed": false,
- "item": "dvvtes-31053337b430-nat1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=eph5-6719010c4ea1-ess1) => {
- "changed": false,
- "item": "eph5-6719010c4ea1-ess1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=eph5-6719010c4ea1-nat1) => {
- "changed": false,
- "item": "eph5-6719010c4ea1-nat1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=gke-loc-cizar1-default-pool-61e81868-7dtn) => {
- "changed": false,
- "item": "gke-loc-cizar1-default-pool-61e81868-7dtn",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=gke-loc-dima1-default-pool-09671362-xb5r) => {
- "changed": false,
- "item": "gke-loc-dima1-default-pool-09671362-xb5r",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=gke-loc-scherepanov1-default-pool-45356f1a-drbt) => {
- "changed": false,
- "item": "gke-loc-scherepanov1-default-pool-45356f1a-drbt",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=loc-dima1-jenkins) => {
- "changed": false,
- "item": "loc-dima1-jenkins",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=loc-dima1-vault) => {
- "changed": false,
- "item": "loc-dima1-vault",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=loc-sch1-vault) => {
- "changed": false,
- "item": "loc-sch1-vault",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=loc-sch1-jnks) => {
- "changed": false,
- "item": "loc-sch1-jnks",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=loc-ephrin1-jenkins) => {
- "changed": false,
- "item": "loc-ephrin1-jenkins",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-app1-ceph4) => {
- "changed": false,
- "item": "staging-app1-ceph4",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-app1-ceph6) => {
- "changed": false,
- "item": "staging-app1-ceph6",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-app1-ceph5) => {
- "changed": false,
- "item": "staging-app1-ceph5",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-app1-cephadmin2) => {
- "changed": false,
- "item": "staging-app1-cephadmin2",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-app1-proxy3) => {
- "changed": false,
- "item": "staging-app1-proxy3",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-app1-proxy4) => {
- "changed": false,
- "item": "staging-app1-proxy4",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-app1-router1) => {
- "changed": false,
- "item": "staging-app1-router1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-mgmt1-mgmt1) => {
- "changed": false,
- "item": "staging-mgmt1-mgmt1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-mgmt1-prov1) => {
- "changed": false,
- "item": "staging-mgmt1-prov1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-mgmt1-topmaster1) => {
- "changed": false,
- "item": "staging-mgmt1-topmaster1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=a59f9c0aadba5c-ess) => {
- "changed": false,
- "item": "a59f9c0aadba5c-ess",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=demo-debd774613f6-ess1) => {
- "changed": false,
- "item": "demo-debd774613f6-ess1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=demo-debd774613f6-nat1) => {
- "changed": false,
- "item": "demo-debd774613f6-nat1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=jenkins1-jenkins1) => {
- "changed": false,
- "item": "jenkins1-jenkins1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=loc-dvv1-jenkins) => {
- "changed": false,
- "item": "loc-dvv1-jenkins",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=loc-dvv1-vault1) => {
- "changed": false,
- "item": "loc-dvv1-vault1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=loc-sin1-jenkins1) => {
- "changed": false,
- "item": "loc-sin1-jenkins1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=sch901-27e7a5af8bd1-ess1) => {
- "changed": false,
- "item": "sch901-27e7a5af8bd1-ess1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=sch901-27e7a5af8bd1-nat1) => {
- "changed": false,
- "item": "sch901-27e7a5af8bd1-nat1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-admin1-jumphost1) => {
- "changed": false,
- "item": "staging-admin1-jumphost1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-admin1-to-staging-app1-bridge) => {
- "changed": false,
- "item": "staging-admin1-to-staging-app1-bridge",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-admin1-to-staging-mgmt1-bridge) => {
- "changed": false,
- "item": "staging-admin1-to-staging-mgmt1-bridge",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-app1-nat) => {
- "changed": false,
- "item": "staging-app1-nat",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-mgmt1-jenkins1) => {
- "changed": false,
- "item": "staging-mgmt1-jenkins1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-mgmt1-pupcl1) => {
- "changed": false,
- "item": "staging-mgmt1-pupcl1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=staging-mgmt1-router1) => {
- "changed": false,
- "item": "staging-mgmt1-router1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=vm59f76db45c3ed6-ess) => {
- "changed": false,
- "item": "vm59f76db45c3ed6-ess",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=vm59f76db45c3ed6-maintenance) => {
- "changed": false,
- "item": "vm59f76db45c3ed6-maintenance",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=vm59f76db45c3ed6-nat) => {
- "changed": false,
- "item": "vm59f76db45c3ed6-nat",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro22-eabb7399bca5-ess1) => {
- "changed": false,
- "item": "zoro22-eabb7399bca5-ess1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro22-eabb7399bca5-nat1) => {
- "changed": false,
- "item": "zoro22-eabb7399bca5-nat1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro23-21e810c8d70c-nat1) => {
- "changed": false,
- "item": "zoro23-21e810c8d70c-nat1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro27-3a880e8ad760-nat1) => {
- "changed": false,
- "item": "zoro27-3a880e8ad760-nat1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro28-182cd97e2b3d-nat1) => {
- "changed": false,
- "item": "zoro28-182cd97e2b3d-nat1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro30-9c6eb622d694-ess1) => {
- "changed": false,
- "item": "zoro30-9c6eb622d694-ess1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=zoro30-9c6eb622d694-nat1) => {
- "changed": false,
- "item": "zoro30-9c6eb622d694-nat1",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- skipping: [localhost] => (item=mgmt-node) => {
- "changed": false,
- "item": "mgmt-node",
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : get domain name] **********************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:154
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "gcloud dns managed-zones describe oro-cloud-development | awk /^dnsName:/'{print substr($2,1,length($2)-1)}'",
- "delta": "0:00:00.667198",
- "end": "2017-11-02 14:41:12.759607",
- "invocation": {
- "module_args": {
- "_raw_params": "gcloud dns managed-zones describe oro-cloud-development | awk /^dnsName:/'{print substr($2,1,length($2)-1)}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:41:12.092409",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "cloud-development.oroinc.com",
- "stdout_lines": [
- "cloud-development.oroinc.com"
- ]
- }
- TASK [common/dyn_inventory : set_fact] *****************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:160
- ok: [localhost] => {
- "ansible_facts": {
- "domain": "cloud-development.oroinc.com"
- },
- "changed": false
- }
- TASK [common/dyn_inventory : set network name for isolated cluster] ************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:164
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : set network name for public cluster] **************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:169
- ok: [localhost] => {
- "ansible_facts": {
- "cluster_network_name": "default"
- },
- "changed": false
- }
- TASK [common/dyn_inventory : find pre-existing networks for cluster] ***********************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:174
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud compute networks subnets list --filter NAME=default-subnet-main 2>/dev/null | awk '{ print $4 }' | tail -n1",
- "delta": "0:00:00.786327",
- "end": "2017-11-02 14:41:13.670340",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud compute networks subnets list --filter NAME=default-subnet-main 2>/dev/null | awk '{ print $4 }' | tail -n1",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:41:12.884013",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [common/dyn_inventory : register subnet for nodes] ************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:181
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : extract second octet from node subnet] ************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:186
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : define a subnet for kubernetes] *******************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:191
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : define an aggregate subnet for cluster] ***********************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:195
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : get vpn ip for cluster] ***************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:199
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/dyn_inventory : register vpn gw] **********************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:204
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- META: ran handlers
- META: ran handlers
- Sudo password:
- PLAY [add localnode to gke cluster] ********************************************************************************************************************************************************************************
- TASK [Gathering Facts] *********************************************************************************************************************************************************************************************
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/system/setup.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- ok: [localhost]
- META: ran handlers
- TASK [common/kubernetes_authorization : Check if google-cloud-sdk folder exists] ***********************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:3
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- ok: [localhost] => {
- "changed": false,
- "invocation": {
- "module_args": {
- "checksum_algorithm": "sha1",
- "follow": false,
- "get_attributes": true,
- "get_checksum": true,
- "get_md5": true,
- "get_mime": true,
- "path": "/home/cizar/google-cloud-sdk"
- }
- },
- "stat": {
- "atime": 1509617455.3895943,
- "attr_flags": "e",
- "attributes": [
- "extents"
- ],
- "block_size": 4096,
- "blocks": 8,
- "charset": "binary",
- "ctime": 1509615178.4651768,
- "dev": 2066,
- "device_type": 0,
- "executable": true,
- "exists": true,
- "gid": 1001,
- "gr_name": "cizar",
- "inode": 3368822,
- "isblk": false,
- "ischr": false,
- "isdir": true,
- "isfifo": false,
- "isgid": false,
- "islnk": false,
- "isreg": false,
- "issock": false,
- "isuid": false,
- "mimetype": "inode/directory",
- "mode": "0755",
- "mtime": 1509615173.257111,
- "nlink": 9,
- "path": "/home/cizar/google-cloud-sdk",
- "pw_name": "cizar",
- "readable": true,
- "rgrp": true,
- "roth": true,
- "rusr": true,
- "size": 4096,
- "uid": 1001,
- "version": "18446744073617112838",
- "wgrp": false,
- "woth": false,
- "writeable": true,
- "wusr": true,
- "xgrp": true,
- "xoth": true,
- "xusr": true
- }
- }
- TASK [common/kubernetes_authorization : Download and install gcloud sdk] *******************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:8
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/kubernetes_authorization : add google cloud sdk to path system-wide] **********************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:14
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/lineinfile.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=tbipjkbwyxcvhduqigtoypvaevlepbsh] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-tbipjkbwyxcvhduqigtoypvaevlepbsh; GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python'"'"' && sleep 0'
- ok: [localhost] => {
- "backup": "",
- "changed": false,
- "diff": [
- {
- "after": "",
- "after_header": "/etc/profile.d/999-gcloud.sh (content)",
- "before": "",
- "before_header": "/etc/profile.d/999-gcloud.sh (content)"
- },
- {
- "after_header": "/etc/profile.d/999-gcloud.sh (file attributes)",
- "before_header": "/etc/profile.d/999-gcloud.sh (file attributes)"
- }
- ],
- "invocation": {
- "module_args": {
- "attributes": null,
- "backrefs": false,
- "backup": false,
- "content": null,
- "create": true,
- "delimiter": null,
- "dest": "/etc/profile.d/999-gcloud.sh",
- "directory_mode": null,
- "follow": false,
- "force": null,
- "group": null,
- "insertafter": null,
- "insertbefore": null,
- "line": "export PATH=$PATH:~/google-cloud-sdk/bin",
- "mode": null,
- "owner": null,
- "path": "/etc/profile.d/999-gcloud.sh",
- "regexp": null,
- "remote_src": null,
- "selevel": null,
- "serole": null,
- "setype": null,
- "seuser": null,
- "src": null,
- "state": "present",
- "unsafe_writes": null,
- "validate": null
- }
- },
- "msg": ""
- }
- TASK [common/kubernetes_authorization : Get cluster credentials] ***************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:22
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "/home/cizar/google-cloud-sdk/bin/gcloud container clusters get-credentials loc-cizar1",
- "delta": "0:00:00.841135",
- "end": "2017-11-02 14:41:22.340836",
- "invocation": {
- "module_args": {
- "_raw_params": "/home/cizar/google-cloud-sdk/bin/gcloud container clusters get-credentials loc-cizar1",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:41:21.499701",
- "stderr": "Fetching cluster endpoint and auth data.\nkubeconfig entry generated for loc-cizar1.",
- "stderr_lines": [
- "Fetching cluster endpoint and auth data.",
- "kubeconfig entry generated for loc-cizar1."
- ],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [common/kubernetes_authorization : install kubectl binary for user] *******************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:32
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'CLOUDSDK_CORE_DISABLE_PROMPTS=1 GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "/home/cizar/google-cloud-sdk/bin/gcloud components update kubectl",
- "delta": "0:00:00.561805",
- "end": "2017-11-02 14:41:22.983498",
- "invocation": {
- "module_args": {
- "_raw_params": "/home/cizar/google-cloud-sdk/bin/gcloud components update kubectl",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:41:22.421693",
- "stderr": "\nAll components are up to date.",
- "stderr_lines": [
- "",
- "All components are up to date."
- ],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [common/kubernetes_authorization : Cleanup old gcloud installation in root's home on non-mac] *****************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:38
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=jgfhsmlzijxnxtfttdkvicfdqxvmyhsh] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-jgfhsmlzijxnxtfttdkvicfdqxvmyhsh; GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python'"'"' && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "diff": {
- "after": {
- "path": "/root/google-cloud-sdk",
- "state": "absent"
- },
- "before": {
- "path": "/root/google-cloud-sdk",
- "state": "directory"
- }
- },
- "invocation": {
- "module_args": {
- "attributes": null,
- "backup": null,
- "content": null,
- "delimiter": null,
- "diff_peek": null,
- "directory_mode": null,
- "follow": false,
- "force": false,
- "group": null,
- "mode": null,
- "original_basename": null,
- "owner": null,
- "path": "/root/google-cloud-sdk",
- "recurse": false,
- "regexp": null,
- "remote_src": null,
- "selevel": null,
- "serole": null,
- "setype": null,
- "seuser": null,
- "src": null,
- "state": "absent",
- "unsafe_writes": null,
- "validate": null
- }
- },
- "path": "/root/google-cloud-sdk",
- "state": "absent"
- }
- TASK [common/kubernetes_authorization : Cleanup old gcloud installation in root's home on mac] *********************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:45
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/kubernetes_authorization : Copy gcloud installation to root's home on non-mac] ************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:52
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=agpkjbqzcdezpbnfyjijnwsaofqlujrk] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-agpkjbqzcdezpbnfyjijnwsaofqlujrk; GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python'"'"' && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "cp -Rf /home/cizar/google-cloud-sdk /root/",
- "delta": "0:00:03.155962",
- "end": "2017-11-02 14:41:26.671149",
- "invocation": {
- "module_args": {
- "_raw_params": "cp -Rf /home/cizar/google-cloud-sdk /root/",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:41:23.515187",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [common/kubernetes_authorization : Copy gcloud installation to root's home on mac] ****************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:58
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/kubernetes_authorization : install kubectl binary system-wide] ****************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:64
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=ycnyoypkufhdlysihmmextamgjbenjmd] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-ycnyoypkufhdlysihmmextamgjbenjmd; GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python'"'"' && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "cp -f /home/cizar/google-cloud-sdk/bin/kubectl /usr/local/bin/",
- "delta": "0:00:00.031321",
- "end": "2017-11-02 14:41:26.811213",
- "invocation": {
- "module_args": {
- "_raw_params": "cp -f /home/cizar/google-cloud-sdk/bin/kubectl /usr/local/bin/",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:41:26.779892",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [common/kubernetes_authorization : add GOOGLE_APPLICATION_CREDENTIALS to profile] *****************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:68
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/lineinfile.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=qglvxfdfapcspaelijqjlyyvmcstlqma] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-qglvxfdfapcspaelijqjlyyvmcstlqma; GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python'"'"' && sleep 0'
- ok: [localhost] => {
- "backup": "",
- "changed": false,
- "diff": [
- {
- "after": "",
- "after_header": "/etc/profile.d/999-gcloud.sh (content)",
- "before": "",
- "before_header": "/etc/profile.d/999-gcloud.sh (content)"
- },
- {
- "after_header": "/etc/profile.d/999-gcloud.sh (file attributes)",
- "before_header": "/etc/profile.d/999-gcloud.sh (file attributes)"
- }
- ],
- "invocation": {
- "module_args": {
- "attributes": null,
- "backrefs": false,
- "backup": false,
- "content": null,
- "create": true,
- "delimiter": null,
- "dest": "/etc/profile.d/999-gcloud.sh",
- "directory_mode": null,
- "follow": false,
- "force": null,
- "group": null,
- "insertafter": null,
- "insertbefore": null,
- "line": "export GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json",
- "mode": null,
- "owner": null,
- "path": "/etc/profile.d/999-gcloud.sh",
- "regexp": null,
- "remote_src": null,
- "selevel": null,
- "serole": null,
- "setype": null,
- "seuser": null,
- "src": null,
- "state": "present",
- "unsafe_writes": null,
- "validate": null
- }
- },
- "msg": ""
- }
- TASK [common/kubernetes_authorization : Copy gcloud config to root's home on non-mac] ******************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:76
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=uzswfnswlpahexrncnsczohubsorznbi] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-uzswfnswlpahexrncnsczohubsorznbi; GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python'"'"' && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "cp -Rf /home/cizar/.config /root/",
- "delta": "0:01:13.756209",
- "end": "2017-11-02 14:42:40.740582",
- "invocation": {
- "module_args": {
- "_raw_params": "cp -Rf /home/cizar/.config /root/",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:41:26.984373",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [common/kubernetes_authorization : Copy gcloud config to root's home on mac] **********************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:82
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/kubernetes_authorization : Copy kubernetes config to root's home] *************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:88
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=qwvhzlrmsoqlzmasfwnrzeqxogknsdbv] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-qwvhzlrmsoqlzmasfwnrzeqxogknsdbv; GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python'"'"' && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "cp -Rf /home/cizar/.kube /root/",
- "delta": "0:00:00.132636",
- "end": "2017-11-02 14:42:40.994347",
- "invocation": {
- "module_args": {
- "_raw_params": "cp -Rf /home/cizar/.kube /root/",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:42:40.861711",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [common/kubernetes_authorization : Copy kubernetes config to root's home] *************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:94
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/kubernetes_authorization : add gcloud credentials for use with kubectl] *******************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:100
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/kubernetes_authorization : check /etc/gke.json presence] **********************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:105
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- ok: [localhost] => {
- "changed": false,
- "invocation": {
- "module_args": {
- "checksum_algorithm": "sha1",
- "follow": false,
- "get_attributes": true,
- "get_checksum": true,
- "get_md5": true,
- "get_mime": true,
- "path": "/etc/gke.json"
- }
- },
- "stat": {
- "atime": 1509617529.6425254,
- "attr_flags": "e",
- "attributes": [
- "extents"
- ],
- "block_size": 4096,
- "blocks": 8,
- "charset": "us-ascii",
- "checksum": "52153b88faf9a30b78dc3fde36cbe5ca9aa4ece2",
- "ctime": 1509614187.248771,
- "dev": 2066,
- "device_type": 0,
- "executable": false,
- "exists": true,
- "gid": 0,
- "gr_name": "root",
- "inode": 1315766,
- "isblk": false,
- "ischr": false,
- "isdir": false,
- "isfifo": false,
- "isgid": false,
- "islnk": false,
- "isreg": true,
- "issock": false,
- "isuid": false,
- "md5": "49fc0519622fd5e597f84627819ba072",
- "mimetype": "text/plain",
- "mode": "0644",
- "mtime": 1509614187.248771,
- "nlink": 1,
- "path": "/etc/gke.json",
- "pw_name": "root",
- "readable": true,
- "rgrp": true,
- "roth": true,
- "rusr": true,
- "size": 2345,
- "uid": 0,
- "version": "18446744073105780697",
- "wgrp": false,
- "woth": false,
- "writeable": false,
- "wusr": true,
- "xgrp": false,
- "xoth": false,
- "xusr": false
- }
- }
- TASK [common/kubernetes_authorization : copy json account key for local env] ***************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:110
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=uegziondkpznbesyrsebtwcscfrslxqw] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-uegziondkpznbesyrsebtwcscfrslxqw; GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python'"'"' && sleep 0'
- ok: [localhost] => {
- "changed": false,
- "dest": "/etc/gke.json",
- "src": "/home/cizar/oro-cloud-ansible/oro-cloud-development.json"
- }
- TASK [common/kubernetes_authorization : get service account or wait for it to be created] **************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:118
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/kubernetes_authorization : debug] *********************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:126
- ok: [localhost] => {
- "service_account.stdout": "VARIABLE IS NOT DEFINED!"
- }
- TASK [common/kubernetes_authorization : create /etc/gke.json from service account] *********************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:128
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [common/kubernetes_authorization : Get KUBERNETES_API_TOKEN] **************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:133
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl describe serviceaccount default 2>/dev/null | grep Tokens | kubectl describe secret $(awk '{print $2}') 2>/dev/null | grep token: | awk {'print $2'}",
- "delta": "0:00:02.716602",
- "end": "2017-11-02 14:42:44.069117",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl describe serviceaccount default 2>/dev/null | grep Tokens | kubectl describe secret $(awk '{print $2}') 2>/dev/null | grep token: | awk {'print $2'}",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:42:41.352515",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6ImRlZmF1bHQtdG9rZW4tcGhtY3QiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoiZGVmYXVsdCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6ImY1M2JlNmY3LTcyZGUtMTFlNy04ZjFhLTQyMDEwYTgwMDE3MCIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpkZWZhdWx0OmRlZmF1bHQifQ.ctoRgUxcfzghAMSMBerT6LLy3rlGU9UM-J-4i3xabk4C-vNGRg4Si-urjESRdtpE1kxs5K0lXdaiFJ8GSlaChuTLelzCW0QcffmaQCZAzOAy1NVLnShbjMRaKR43jJ1A3y1YA07wZhXNNSSAkqIUWTLwzYMVZf8bpGLPvBO8TGVzeMOcQDli95ONIJwk9SzBQeIGmHcP1Byn7BjByjqVI8kUNsQBQCk91jIlPHWVhGPudLPE6jKtFDQxeCVip9NT4QMz7DAv4nRt0O9OvdzNS_5cCGAnG9a04nB4rJ8Dael2Lj0tZDw1bCEVuFDPANIJJX7T16a16Ol1xL8xJtLdPw",
- "stdout_lines": [
- "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6ImRlZmF1bHQtdG9rZW4tcGhtY3QiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoiZGVmYXVsdCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6ImY1M2JlNmY3LTcyZGUtMTFlNy04ZjFhLTQyMDEwYTgwMDE3MCIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpkZWZhdWx0OmRlZmF1bHQifQ.ctoRgUxcfzghAMSMBerT6LLy3rlGU9UM-J-4i3xabk4C-vNGRg4Si-urjESRdtpE1kxs5K0lXdaiFJ8GSlaChuTLelzCW0QcffmaQCZAzOAy1NVLnShbjMRaKR43jJ1A3y1YA07wZhXNNSSAkqIUWTLwzYMVZf8bpGLPvBO8TGVzeMOcQDli95ONIJwk9SzBQeIGmHcP1Byn7BjByjqVI8kUNsQBQCk91jIlPHWVhGPudLPE6jKtFDQxeCVip9NT4QMz7DAv4nRt0O9OvdzNS_5cCGAnG9a04nB4rJ8Dael2Lj0tZDw1bCEVuFDPANIJJX7T16a16Ol1xL8xJtLdPw"
- ]
- }
- TASK [common/kubernetes_authorization : Set KUBERNETES_API_TOKEN] **************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:138
- ok: [localhost] => {
- "ansible_facts": {
- "KUBERNETES_API_TOKEN": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6ImRlZmF1bHQtdG9rZW4tcGhtY3QiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoiZGVmYXVsdCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6ImY1M2JlNmY3LTcyZGUtMTFlNy04ZjFhLTQyMDEwYTgwMDE3MCIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpkZWZhdWx0OmRlZmF1bHQifQ.ctoRgUxcfzghAMSMBerT6LLy3rlGU9UM-J-4i3xabk4C-vNGRg4Si-urjESRdtpE1kxs5K0lXdaiFJ8GSlaChuTLelzCW0QcffmaQCZAzOAy1NVLnShbjMRaKR43jJ1A3y1YA07wZhXNNSSAkqIUWTLwzYMVZf8bpGLPvBO8TGVzeMOcQDli95ONIJwk9SzBQeIGmHcP1Byn7BjByjqVI8kUNsQBQCk91jIlPHWVhGPudLPE6jKtFDQxeCVip9NT4QMz7DAv4nRt0O9OvdzNS_5cCGAnG9a04nB4rJ8Dael2Lj0tZDw1bCEVuFDPANIJJX7T16a16Ol1xL8xJtLdPw"
- },
- "changed": false
- }
- TASK [common/kubernetes_authorization : Get KUBERNETES_API_ENDPOINT] ***********************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:141
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl cluster-info | sed -r 's/\\x1b_[^\\x1b]*\\x1b[\\]//g; s/\\x1B\\[[^m]*m//g' | awk '{if($0~\"master\") print $6}'",
- "delta": "0:00:00.676369",
- "end": "2017-11-02 14:42:44.837251",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl cluster-info | sed -r 's/\\x1b_[^\\x1b]*\\x1b[\\]//g; s/\\x1B\\[[^m]*m//g' | awk '{if($0~\"master\") print $6}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:42:44.160882",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "https://35.188.31.238",
- "stdout_lines": [
- "https://35.188.31.238"
- ]
- }
- TASK [common/kubernetes_authorization : Set KUBERNETES_API_ENDPOINT] ***********************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:146
- ok: [localhost] => {
- "ansible_facts": {
- "KUBERNETES_API_ENDPOINT": "https://35.188.31.238"
- },
- "changed": false
- }
- META: ran handlers
- META: ran handlers
- PLAY [Setup Consul] ************************************************************************************************************************************************************************************************
- TASK [Gathering Facts] *********************************************************************************************************************************************************************************************
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/system/setup.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- ok: [localhost]
- META: ran handlers
- TASK [consul : create temporary dir for svc and rc files] **********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:3
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- ok: [localhost] => {
- "changed": false,
- "diff": {
- "after": {
- "path": "/tmp/consul"
- },
- "before": {
- "path": "/tmp/consul"
- }
- },
- "gid": 1001,
- "group": "cizar",
- "invocation": {
- "module_args": {
- "attributes": null,
- "backup": null,
- "content": null,
- "delimiter": null,
- "diff_peek": null,
- "directory_mode": null,
- "follow": false,
- "force": false,
- "group": null,
- "mode": 493,
- "original_basename": null,
- "owner": null,
- "path": "/tmp/consul",
- "recurse": false,
- "regexp": null,
- "remote_src": null,
- "selevel": null,
- "serole": null,
- "setype": null,
- "seuser": null,
- "src": null,
- "state": "directory",
- "unsafe_writes": null,
- "validate": null
- }
- },
- "mode": "0755",
- "owner": "cizar",
- "path": "/tmp/consul",
- "size": 4096,
- "state": "directory",
- "uid": 1001
- }
- TASK [consul : check if vault namespace already exists] ************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:9
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl get namespace -o name | awk '/vault/{print $1}'",
- "delta": "0:00:00.676425",
- "end": "2017-11-02 14:42:45.937338",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl get namespace -o name | awk '/vault/{print $1}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:42:45.260913",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : creating vault namespace if wasn't found] ***********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:14
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl create namespace vault",
- "delta": "0:00:00.663308",
- "end": "2017-11-02 14:42:46.693115",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl create namespace vault",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:42:46.029807",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "namespace \"vault\" created",
- "stdout_lines": [
- "namespace \"vault\" created"
- ]
- }
- TASK [consul : checking if previous consul-config in vault exists] *************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:20
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault get secret | awk '/consul-config/{print $1}'",
- "delta": "0:00:00.666687",
- "end": "2017-11-02 14:42:47.445151",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault get secret | awk '/consul-config/{print $1}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:42:46.778464",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : setting recovery option to false if previous configuration wasn't found] ****************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:25
- ok: [localhost] => {
- "ansible_facts": {
- "recovery_enabled": false
- },
- "changed": false
- }
- TASK [consul : reading previous consul-config in vault namespace was found] ****************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:30
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : setting acl_master_token and encrypt vars from previous install] ************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:37
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : generating new acl_master_token if new installation] ************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:44
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "uuidgen",
- "delta": "0:00:00.003272",
- "end": "2017-11-02 14:42:47.573588",
- "invocation": {
- "module_args": {
- "_raw_params": "uuidgen",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:42:47.570316",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "850a00f1-ef3c-4627-90f5-2aaba0145ba7",
- "stdout_lines": [
- "850a00f1-ef3c-4627-90f5-2aaba0145ba7"
- ]
- }
- TASK [consul : generating new consul encryption key] ***************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:49
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "dd if=/dev/urandom bs=1 count=16 | base64",
- "delta": "0:00:00.004184",
- "end": "2017-11-02 14:42:47.668783",
- "invocation": {
- "module_args": {
- "_raw_params": "dd if=/dev/urandom bs=1 count=16 | base64",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:42:47.664599",
- "stderr": "16+0 records in\n16+0 records out\n16 bytes copied, 2,7522e-05 s, 581 kB/s",
- "stderr_lines": [
- "16+0 records in",
- "16+0 records out",
- "16 bytes copied, 2,7522e-05 s, 581 kB/s"
- ],
- "stdout": "CQsbvnX6NLQJ1R1BF5SRdg==",
- "stdout_lines": [
- "CQsbvnX6NLQJ1R1BF5SRdg=="
- ]
- }
- TASK [consul : setting new consul encryption key] ******************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:55
- ok: [localhost] => {
- "ansible_facts": {
- "acl_master_token": "850a00f1-ef3c-4627-90f5-2aaba0145ba7",
- "consul_encrypt_key": "CQsbvnX6NLQJ1R1BF5SRdg=="
- },
- "changed": false
- }
- TASK [consul : delete previous consul-config] **********************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:61
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- fatal: [localhost]: FAILED! => {
- "changed": true,
- "cmd": "kubectl --namespace=vault delete secret consul-config",
- "delta": "0:00:00.670273",
- "end": "2017-11-02 14:42:48.438864",
- "failed": true,
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault delete secret consul-config",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 1,
- "start": "2017-11-02 14:42:47.768591",
- "stderr": "Error from server (NotFound): secrets \"consul-config\" not found",
- "stderr_lines": [
- "Error from server (NotFound): secrets \"consul-config\" not found"
- ],
- "stdout": "",
- "stdout_lines": []
- }
- ...ignoring
- TASK [consul : creating consul_config.json from template] **********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:66
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/cizar/.ansible/tmp/ansible-tmp-1509626568.54-89876380800295 `" && echo ansible-tmp-1509626568.54-89876380800295="` echo /home/cizar/.ansible/tmp/ansible-tmp-1509626568.54-89876380800295 `" ) && sleep 0'
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> PUT /tmp/tmpb1_gc2 TO /home/cizar/.ansible/tmp/ansible-tmp-1509626568.54-89876380800295/source
- <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/cizar/.ansible/tmp/ansible-tmp-1509626568.54-89876380800295/ /home/cizar/.ansible/tmp/ansible-tmp-1509626568.54-89876380800295/source && sleep 0'
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/copy.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/cizar/.ansible/tmp/ansible-tmp-1509626568.54-89876380800295/ > /dev/null 2>&1 && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "checksum": "3f6497e4121dc0b795a388c41aa743519d2d08aa",
- "dest": "/tmp/consul/consul_config.json",
- "gid": 1001,
- "group": "cizar",
- "invocation": {
- "module_args": {
- "attributes": null,
- "backup": false,
- "content": null,
- "delimiter": null,
- "dest": "/tmp/consul/consul_config.json",
- "directory_mode": null,
- "follow": true,
- "force": true,
- "group": null,
- "mode": null,
- "original_basename": "consul_config.j2",
- "owner": null,
- "regexp": null,
- "remote_src": null,
- "selevel": null,
- "serole": null,
- "setype": null,
- "seuser": null,
- "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626568.54-89876380800295/source",
- "unsafe_writes": null,
- "validate": null
- }
- },
- "md5sum": "9be80152a9d0eb1e09e9300e5ee19609",
- "mode": "0664",
- "owner": "cizar",
- "size": 226,
- "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626568.54-89876380800295/source",
- "state": "file",
- "uid": 1001
- }
- TASK [consul : creating consul_config.json from prevous value] *****************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:72
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : creating kubernetes secret consul-config] ***********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:78
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault create secret generic consul-config --from-file=/tmp/consul/consul_config.json",
- "delta": "0:00:00.673249",
- "end": "2017-11-02 14:42:49.540174",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault create secret generic consul-config --from-file=/tmp/consul/consul_config.json",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:42:48.866925",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "secret \"consul-config\" created",
- "stdout_lines": [
- "secret \"consul-config\" created"
- ]
- }
- TASK [consul : getting previous consul replication controller names] ***********************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:82
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault get rc | awk '/consul/{print $1}'",
- "delta": "0:00:00.690236",
- "end": "2017-11-02 14:42:50.317385",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault get rc | awk '/consul/{print $1}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:42:49.627149",
- "stderr": "No resources found.",
- "stderr_lines": [
- "No resources found."
- ],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : deleting previous consul replication controllers] ***************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:87
- TASK [consul : setting up 3 new consul services] *******************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:94
- included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml for localhost
- included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml for localhost
- included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml for localhost
- TASK [consul : check required variable svc_node_num] ***************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:2
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : create svc files from templates] ********************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:7
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/cizar/.ansible/tmp/ansible-tmp-1509626570.58-177285612828908 `" && echo ansible-tmp-1509626570.58-177285612828908="` echo /home/cizar/.ansible/tmp/ansible-tmp-1509626570.58-177285612828908 `" ) && sleep 0'
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> PUT /tmp/tmpW_PMkG TO /home/cizar/.ansible/tmp/ansible-tmp-1509626570.58-177285612828908/source
- <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/cizar/.ansible/tmp/ansible-tmp-1509626570.58-177285612828908/ /home/cizar/.ansible/tmp/ansible-tmp-1509626570.58-177285612828908/source && sleep 0'
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/copy.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/cizar/.ansible/tmp/ansible-tmp-1509626570.58-177285612828908/ > /dev/null 2>&1 && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "checksum": "801aa32d23a09ab65db98ac18015cce86be22d9f",
- "dest": "/tmp/consul/service.yaml",
- "gid": 1001,
- "group": "cizar",
- "invocation": {
- "module_args": {
- "attributes": null,
- "backup": false,
- "content": null,
- "delimiter": null,
- "dest": "/tmp/consul/service.yaml",
- "directory_mode": null,
- "follow": true,
- "force": true,
- "group": null,
- "mode": null,
- "original_basename": "service.j2",
- "owner": null,
- "regexp": null,
- "remote_src": null,
- "selevel": null,
- "serole": null,
- "setype": null,
- "seuser": null,
- "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626570.58-177285612828908/source",
- "unsafe_writes": null,
- "validate": null
- }
- },
- "md5sum": "a8f665f9a9242d3e35c099f70160914e",
- "mode": "0664",
- "owner": "cizar",
- "size": 738,
- "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626570.58-177285612828908/source",
- "state": "file",
- "uid": 1001
- }
- TASK [consul : check if consul1 svc exists] ************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:12
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault get svc | grep consul1 | awk '{print $1}'",
- "delta": "0:00:00.662326",
- "end": "2017-11-02 14:42:51.467187",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault get svc | grep consul1 | awk '{print $1}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:42:50.804861",
- "stderr": "No resources found.",
- "stderr_lines": [
- "No resources found."
- ],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : create consul1 svc] *********************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:17
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault create -f /tmp/consul/service.yaml",
- "delta": "0:00:00.872646",
- "end": "2017-11-02 14:42:52.424179",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault create -f /tmp/consul/service.yaml",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:42:51.551533",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "service \"consul1\" created",
- "stdout_lines": [
- "service \"consul1\" created"
- ]
- }
- TASK [consul : create DNS record] **********************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:22
- included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml for localhost
- TASK [consul : check if consul1 svc exists] ************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:3
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault get svc -o jsonpath={.items[0].spec.clusterIP}",
- "delta": "0:00:00.639651",
- "end": "2017-11-02 14:42:53.203612",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault get svc -o jsonpath={.items[0].spec.clusterIP}",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:42:52.563961",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "10.3.242.105",
- "stdout_lines": [
- "10.3.242.105"
- ]
- }
- TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:9
- ok: [localhost] => {
- "ansible_facts": {
- "RECORD": "host1.svc.consul.loc-cizar1"
- },
- "changed": false
- }
- TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:13
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : close failed transaction if exists] *****************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:17
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- fatal: [localhost]: FAILED! => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction abort -z oro-cloud-development",
- "delta": "0:00:00.231053",
- "end": "2017-11-02 14:42:53.548453",
- "failed": true,
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction abort -z oro-cloud-development",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 1,
- "start": "2017-11-02 14:42:53.317400",
- "stderr": "ERROR: (gcloud.dns.record-sets.transaction.abort) transaction not found at [transaction.yaml]",
- "stderr_lines": [
- "ERROR: (gcloud.dns.record-sets.transaction.abort) transaction not found at [transaction.yaml]"
- ],
- "stdout": "",
- "stdout_lines": []
- }
- ...ignoring
- TASK [consul : get record if exists] *******************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:22
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets list -z oro-cloud-development | awk /^host1.svc.consul.loc-cizar1/'{print $4}'",
- "delta": "0:00:01.036819",
- "end": "2017-11-02 14:42:54.673583",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets list -z oro-cloud-development | awk /^host1.svc.consul.loc-cizar1/'{print $4}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:42:53.636764",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "10.3.244.126",
- "stdout_lines": [
- "10.3.244.126"
- ]
- }
- TASK [consul : start transaction] **********************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:27
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction start -z oro-cloud-development",
- "delta": "0:00:00.945014",
- "end": "2017-11-02 14:42:55.702404",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction start -z oro-cloud-development",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:42:54.757390",
- "stderr": "Transaction started [transaction.yaml].",
- "stderr_lines": [
- "Transaction started [transaction.yaml]."
- ],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : delete record if exists] ****************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:31
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction remove -z oro-cloud-development --name host1.svc.consul.loc-cizar1.cloud-development.oroinc.com --ttl 300 --type A '10.3.244.126'",
- "delta": "0:00:00.771750",
- "end": "2017-11-02 14:42:56.565770",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction remove -z oro-cloud-development --name host1.svc.consul.loc-cizar1.cloud-development.oroinc.com --ttl 300 --type A '10.3.244.126'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:42:55.794020",
- "stderr": "Record removal appended to transaction at [transaction.yaml].",
- "stderr_lines": [
- "Record removal appended to transaction at [transaction.yaml]."
- ],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : create/update record] *******************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:37
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction add -z oro-cloud-development --name host1.svc.consul.loc-cizar1.cloud-development.oroinc.com --ttl 300 --type A '10.3.242.105'",
- "delta": "0:00:00.234238",
- "end": "2017-11-02 14:42:56.885927",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction add -z oro-cloud-development --name host1.svc.consul.loc-cizar1.cloud-development.oroinc.com --ttl 300 --type A '10.3.242.105'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:42:56.651689",
- "stderr": "Record addition appended to transaction at [transaction.yaml].",
- "stderr_lines": [
- "Record addition appended to transaction at [transaction.yaml]."
- ],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : execute transaction] ********************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:41
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction execute -z oro-cloud-development",
- "delta": "0:00:00.945661",
- "end": "2017-11-02 14:42:57.924902",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction execute -z oro-cloud-development",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:42:56.979241",
- "stderr": "Executed transaction [transaction.yaml] for managed-zone [oro-cloud-development].\nCreated [https://www.googleapis.com/dns/v1/projects/oro-cloud-development/managedZones/oro-cloud-development/changes/1570].",
- "stderr_lines": [
- "Executed transaction [transaction.yaml] for managed-zone [oro-cloud-development].",
- "Created [https://www.googleapis.com/dns/v1/projects/oro-cloud-development/managedZones/oro-cloud-development/changes/1570]."
- ],
- "stdout": "ID START_TIME STATUS\n1570 2017-11-02T12:42:57.536Z pending",
- "stdout_lines": [
- "ID START_TIME STATUS",
- "1570 2017-11-02T12:42:57.536Z pending"
- ]
- }
- TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:45
- ok: [localhost] => {
- "ansible_facts": {
- "HOST_URL1": "host1.svc.consul.loc-cizar1.cloud-development.oroinc.com"
- },
- "changed": false
- }
- TASK [consul : check required variable svc_node_num] ***************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:2
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : create svc files from templates] ********************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:7
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/cizar/.ansible/tmp/ansible-tmp-1509626578.06-40391179723048 `" && echo ansible-tmp-1509626578.06-40391179723048="` echo /home/cizar/.ansible/tmp/ansible-tmp-1509626578.06-40391179723048 `" ) && sleep 0'
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> PUT /tmp/tmpjR5DLr TO /home/cizar/.ansible/tmp/ansible-tmp-1509626578.06-40391179723048/source
- <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/cizar/.ansible/tmp/ansible-tmp-1509626578.06-40391179723048/ /home/cizar/.ansible/tmp/ansible-tmp-1509626578.06-40391179723048/source && sleep 0'
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/copy.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/cizar/.ansible/tmp/ansible-tmp-1509626578.06-40391179723048/ > /dev/null 2>&1 && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "checksum": "628bd3082e53030c0b36c81eb9ceb1ac8c6210f4",
- "dest": "/tmp/consul/service.yaml",
- "gid": 1001,
- "group": "cizar",
- "invocation": {
- "module_args": {
- "attributes": null,
- "backup": false,
- "content": null,
- "delimiter": null,
- "dest": "/tmp/consul/service.yaml",
- "directory_mode": null,
- "follow": true,
- "force": true,
- "group": null,
- "mode": null,
- "original_basename": "service.j2",
- "owner": null,
- "regexp": null,
- "remote_src": null,
- "selevel": null,
- "serole": null,
- "setype": null,
- "seuser": null,
- "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626578.06-40391179723048/source",
- "unsafe_writes": null,
- "validate": null
- }
- },
- "md5sum": "a89b9a8e9567c51a714aec4f67efd7b8",
- "mode": "0664",
- "owner": "cizar",
- "size": 738,
- "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626578.06-40391179723048/source",
- "state": "file",
- "uid": 1001
- }
- TASK [consul : check if consul2 svc exists] ************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:12
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault get svc | grep consul2 | awk '{print $1}'",
- "delta": "0:00:00.647413",
- "end": "2017-11-02 14:42:58.937646",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault get svc | grep consul2 | awk '{print $1}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:42:58.290233",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : create consul2 svc] *********************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:17
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault create -f /tmp/consul/service.yaml",
- "delta": "0:00:00.843284",
- "end": "2017-11-02 14:42:59.876877",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault create -f /tmp/consul/service.yaml",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:42:59.033593",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "service \"consul2\" created",
- "stdout_lines": [
- "service \"consul2\" created"
- ]
- }
- TASK [consul : create DNS record] **********************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:22
- included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml for localhost
- TASK [consul : check if consul2 svc exists] ************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:3
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault get svc -o jsonpath={.items[0].spec.clusterIP}",
- "delta": "0:00:00.642710",
- "end": "2017-11-02 14:43:00.660390",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault get svc -o jsonpath={.items[0].spec.clusterIP}",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:00.017680",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "10.3.242.105",
- "stdout_lines": [
- "10.3.242.105"
- ]
- }
- TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:9
- ok: [localhost] => {
- "ansible_facts": {
- "RECORD": "host2.svc.consul.loc-cizar1"
- },
- "changed": false
- }
- TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:13
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : close failed transaction if exists] *****************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:17
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- fatal: [localhost]: FAILED! => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction abort -z oro-cloud-development",
- "delta": "0:00:00.226910",
- "end": "2017-11-02 14:43:01.000029",
- "failed": true,
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction abort -z oro-cloud-development",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 1,
- "start": "2017-11-02 14:43:00.773119",
- "stderr": "ERROR: (gcloud.dns.record-sets.transaction.abort) transaction not found at [transaction.yaml]",
- "stderr_lines": [
- "ERROR: (gcloud.dns.record-sets.transaction.abort) transaction not found at [transaction.yaml]"
- ],
- "stdout": "",
- "stdout_lines": []
- }
- ...ignoring
- TASK [consul : get record if exists] *******************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:22
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets list -z oro-cloud-development | awk /^host2.svc.consul.loc-cizar1/'{print $4}'",
- "delta": "0:00:01.031750",
- "end": "2017-11-02 14:43:02.121311",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets list -z oro-cloud-development | awk /^host2.svc.consul.loc-cizar1/'{print $4}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:01.089561",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "10.3.244.126",
- "stdout_lines": [
- "10.3.244.126"
- ]
- }
- TASK [consul : start transaction] **********************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:27
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction start -z oro-cloud-development",
- "delta": "0:00:00.898036",
- "end": "2017-11-02 14:43:03.100436",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction start -z oro-cloud-development",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:02.202400",
- "stderr": "Transaction started [transaction.yaml].",
- "stderr_lines": [
- "Transaction started [transaction.yaml]."
- ],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : delete record if exists] ****************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:31
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction remove -z oro-cloud-development --name host2.svc.consul.loc-cizar1.cloud-development.oroinc.com --ttl 300 --type A '10.3.244.126'",
- "delta": "0:00:00.656880",
- "end": "2017-11-02 14:43:03.841177",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction remove -z oro-cloud-development --name host2.svc.consul.loc-cizar1.cloud-development.oroinc.com --ttl 300 --type A '10.3.244.126'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:03.184297",
- "stderr": "Record removal appended to transaction at [transaction.yaml].",
- "stderr_lines": [
- "Record removal appended to transaction at [transaction.yaml]."
- ],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : create/update record] *******************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:37
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction add -z oro-cloud-development --name host2.svc.consul.loc-cizar1.cloud-development.oroinc.com --ttl 300 --type A '10.3.242.105'",
- "delta": "0:00:00.227364",
- "end": "2017-11-02 14:43:04.150932",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction add -z oro-cloud-development --name host2.svc.consul.loc-cizar1.cloud-development.oroinc.com --ttl 300 --type A '10.3.242.105'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:03.923568",
- "stderr": "Record addition appended to transaction at [transaction.yaml].",
- "stderr_lines": [
- "Record addition appended to transaction at [transaction.yaml]."
- ],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : execute transaction] ********************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:41
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction execute -z oro-cloud-development",
- "delta": "0:00:00.878452",
- "end": "2017-11-02 14:43:05.110238",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction execute -z oro-cloud-development",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:04.231786",
- "stderr": "Executed transaction [transaction.yaml] for managed-zone [oro-cloud-development].\nCreated [https://www.googleapis.com/dns/v1/projects/oro-cloud-development/managedZones/oro-cloud-development/changes/1571].",
- "stderr_lines": [
- "Executed transaction [transaction.yaml] for managed-zone [oro-cloud-development].",
- "Created [https://www.googleapis.com/dns/v1/projects/oro-cloud-development/managedZones/oro-cloud-development/changes/1571]."
- ],
- "stdout": "ID START_TIME STATUS\n1571 2017-11-02T12:43:04.744Z pending",
- "stdout_lines": [
- "ID START_TIME STATUS",
- "1571 2017-11-02T12:43:04.744Z pending"
- ]
- }
- TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:45
- ok: [localhost] => {
- "ansible_facts": {
- "HOST_URL2": "host2.svc.consul.loc-cizar1.cloud-development.oroinc.com"
- },
- "changed": false
- }
- TASK [consul : check required variable svc_node_num] ***************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:2
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : create svc files from templates] ********************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:7
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/cizar/.ansible/tmp/ansible-tmp-1509626585.28-97271187885283 `" && echo ansible-tmp-1509626585.28-97271187885283="` echo /home/cizar/.ansible/tmp/ansible-tmp-1509626585.28-97271187885283 `" ) && sleep 0'
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> PUT /tmp/tmpzKT27t TO /home/cizar/.ansible/tmp/ansible-tmp-1509626585.28-97271187885283/source
- <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/cizar/.ansible/tmp/ansible-tmp-1509626585.28-97271187885283/ /home/cizar/.ansible/tmp/ansible-tmp-1509626585.28-97271187885283/source && sleep 0'
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/copy.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/cizar/.ansible/tmp/ansible-tmp-1509626585.28-97271187885283/ > /dev/null 2>&1 && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "checksum": "2ccf50a2169596fe5da97d63c99b9518a2b1a66c",
- "dest": "/tmp/consul/service.yaml",
- "gid": 1001,
- "group": "cizar",
- "invocation": {
- "module_args": {
- "attributes": null,
- "backup": false,
- "content": null,
- "delimiter": null,
- "dest": "/tmp/consul/service.yaml",
- "directory_mode": null,
- "follow": true,
- "force": true,
- "group": null,
- "mode": null,
- "original_basename": "service.j2",
- "owner": null,
- "regexp": null,
- "remote_src": null,
- "selevel": null,
- "serole": null,
- "setype": null,
- "seuser": null,
- "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626585.28-97271187885283/source",
- "unsafe_writes": null,
- "validate": null
- }
- },
- "md5sum": "77cf0aa3e1264d578eb466a66d6f81c3",
- "mode": "0664",
- "owner": "cizar",
- "size": 738,
- "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626585.28-97271187885283/source",
- "state": "file",
- "uid": 1001
- }
- TASK [consul : check if consul3 svc exists] ************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:12
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault get svc | grep consul3 | awk '{print $1}'",
- "delta": "0:00:00.648147",
- "end": "2017-11-02 14:43:06.158099",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault get svc | grep consul3 | awk '{print $1}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:05.509952",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : create consul3 svc] *********************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:17
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault create -f /tmp/consul/service.yaml",
- "delta": "0:00:00.820397",
- "end": "2017-11-02 14:43:07.067283",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault create -f /tmp/consul/service.yaml",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:06.246886",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "service \"consul3\" created",
- "stdout_lines": [
- "service \"consul3\" created"
- ]
- }
- TASK [consul : create DNS record] **********************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:22
- included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml for localhost
- TASK [consul : check if consul3 svc exists] ************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:3
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault get svc -o jsonpath={.items[0].spec.clusterIP}",
- "delta": "0:00:00.641644",
- "end": "2017-11-02 14:43:07.858857",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault get svc -o jsonpath={.items[0].spec.clusterIP}",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:07.217213",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "10.3.242.105",
- "stdout_lines": [
- "10.3.242.105"
- ]
- }
- TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:9
- ok: [localhost] => {
- "ansible_facts": {
- "RECORD": "host3.svc.consul.loc-cizar1"
- },
- "changed": false
- }
- TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:13
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : close failed transaction if exists] *****************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:17
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- fatal: [localhost]: FAILED! => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction abort -z oro-cloud-development",
- "delta": "0:00:00.221944",
- "end": "2017-11-02 14:43:08.198459",
- "failed": true,
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction abort -z oro-cloud-development",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 1,
- "start": "2017-11-02 14:43:07.976515",
- "stderr": "ERROR: (gcloud.dns.record-sets.transaction.abort) transaction not found at [transaction.yaml]",
- "stderr_lines": [
- "ERROR: (gcloud.dns.record-sets.transaction.abort) transaction not found at [transaction.yaml]"
- ],
- "stdout": "",
- "stdout_lines": []
- }
- ...ignoring
- TASK [consul : get record if exists] *******************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:22
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets list -z oro-cloud-development | awk /^host3.svc.consul.loc-cizar1/'{print $4}'",
- "delta": "0:00:01.012012",
- "end": "2017-11-02 14:43:09.293810",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets list -z oro-cloud-development | awk /^host3.svc.consul.loc-cizar1/'{print $4}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:08.281798",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "10.3.244.126",
- "stdout_lines": [
- "10.3.244.126"
- ]
- }
- TASK [consul : start transaction] **********************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:27
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction start -z oro-cloud-development",
- "delta": "0:00:00.903194",
- "end": "2017-11-02 14:43:10.283341",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction start -z oro-cloud-development",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:09.380147",
- "stderr": "Transaction started [transaction.yaml].",
- "stderr_lines": [
- "Transaction started [transaction.yaml]."
- ],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : delete record if exists] ****************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:31
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction remove -z oro-cloud-development --name host3.svc.consul.loc-cizar1.cloud-development.oroinc.com --ttl 300 --type A '10.3.244.126'",
- "delta": "0:00:00.644449",
- "end": "2017-11-02 14:43:11.019211",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction remove -z oro-cloud-development --name host3.svc.consul.loc-cizar1.cloud-development.oroinc.com --ttl 300 --type A '10.3.244.126'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:10.374762",
- "stderr": "Record removal appended to transaction at [transaction.yaml].",
- "stderr_lines": [
- "Record removal appended to transaction at [transaction.yaml]."
- ],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : create/update record] *******************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:37
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction add -z oro-cloud-development --name host3.svc.consul.loc-cizar1.cloud-development.oroinc.com --ttl 300 --type A '10.3.242.105'",
- "delta": "0:00:00.226783",
- "end": "2017-11-02 14:43:11.331698",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction add -z oro-cloud-development --name host3.svc.consul.loc-cizar1.cloud-development.oroinc.com --ttl 300 --type A '10.3.242.105'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:11.104915",
- "stderr": "Record addition appended to transaction at [transaction.yaml].",
- "stderr_lines": [
- "Record addition appended to transaction at [transaction.yaml]."
- ],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : execute transaction] ********************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:41
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction execute -z oro-cloud-development",
- "delta": "0:00:00.891709",
- "end": "2017-11-02 14:43:12.309717",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction execute -z oro-cloud-development",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:11.418008",
- "stderr": "Executed transaction [transaction.yaml] for managed-zone [oro-cloud-development].\nCreated [https://www.googleapis.com/dns/v1/projects/oro-cloud-development/managedZones/oro-cloud-development/changes/1572].",
- "stderr_lines": [
- "Executed transaction [transaction.yaml] for managed-zone [oro-cloud-development].",
- "Created [https://www.googleapis.com/dns/v1/projects/oro-cloud-development/managedZones/oro-cloud-development/changes/1572]."
- ],
- "stdout": "ID START_TIME STATUS\n1572 2017-11-02T12:43:11.946Z pending",
- "stdout_lines": [
- "ID START_TIME STATUS",
- "1572 2017-11-02T12:43:11.946Z pending"
- ]
- }
- TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:45
- ok: [localhost] => {
- "ansible_facts": {
- "HOST_URL3": "host3.svc.consul.loc-cizar1.cloud-development.oroinc.com"
- },
- "changed": false
- }
- TASK [consul : creating svc files from templates] ******************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.lb.yml:3
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/cizar/.ansible/tmp/ansible-tmp-1509626592.43-245473775218920 `" && echo ansible-tmp-1509626592.43-245473775218920="` echo /home/cizar/.ansible/tmp/ansible-tmp-1509626592.43-245473775218920 `" ) && sleep 0'
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/cizar/.ansible/tmp/ansible-tmp-1509626592.43-245473775218920/ > /dev/null 2>&1 && sleep 0'
- ok: [localhost] => {
- "changed": false,
- "diff": {
- "after": {
- "path": "/tmp/consul/service.lb.yaml"
- },
- "before": {
- "path": "/tmp/consul/service.lb.yaml"
- }
- },
- "gid": 1001,
- "group": "cizar",
- "invocation": {
- "module_args": {
- "attributes": null,
- "backup": null,
- "content": null,
- "delimiter": null,
- "dest": "/tmp/consul/service.lb.yaml",
- "diff_peek": null,
- "directory_mode": null,
- "follow": true,
- "force": false,
- "group": null,
- "mode": null,
- "original_basename": "service.lb.j2",
- "owner": null,
- "path": "/tmp/consul/service.lb.yaml",
- "recurse": false,
- "regexp": null,
- "remote_src": null,
- "selevel": null,
- "serole": null,
- "setype": null,
- "seuser": null,
- "src": null,
- "state": null,
- "unsafe_writes": null,
- "validate": null
- }
- },
- "mode": "0664",
- "owner": "cizar",
- "path": "/tmp/consul/service.lb.yaml",
- "size": 164,
- "state": "file",
- "uid": 1001
- }
- TASK [consul : creating if consul-lb svc exists] *******************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.lb.yml:8
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault get svc | awk '/consul-lb/{print $1}'",
- "delta": "0:00:00.645152",
- "end": "2017-11-02 14:43:13.315706",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault get svc | awk '/consul-lb/{print $1}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:12.670554",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : deleting consul-lb svc] *****************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.lb.yml:13
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : creating consul-lb svc] *****************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.lb.yml:18
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault create -f /tmp/consul/service.lb.yaml",
- "delta": "0:00:00.838215",
- "end": "2017-11-02 14:43:14.256273",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault create -f /tmp/consul/service.lb.yaml",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:13.418058",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "service \"consul-lb\" created",
- "stdout_lines": [
- "service \"consul-lb\" created"
- ]
- }
- TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.lb.yml:22
- ok: [localhost] => {
- "ansible_facts": {
- "svc_node_num": "-lb"
- },
- "changed": false
- }
- TASK [consul : check if consul-lb svc exists] **********************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:3
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault get svc -o jsonpath={.items[0].spec.clusterIP}",
- "delta": "0:00:00.675933",
- "end": "2017-11-02 14:43:15.034692",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault get svc -o jsonpath={.items[0].spec.clusterIP}",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:14.358759",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "10.3.245.46",
- "stdout_lines": [
- "10.3.245.46"
- ]
- }
- TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:9
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:13
- ok: [localhost] => {
- "ansible_facts": {
- "RECORD": "lb.svc.consul.loc-cizar1"
- },
- "changed": false
- }
- TASK [consul : close failed transaction if exists] *****************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:17
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- fatal: [localhost]: FAILED! => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction abort -z oro-cloud-development",
- "delta": "0:00:00.217817",
- "end": "2017-11-02 14:43:15.371402",
- "failed": true,
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction abort -z oro-cloud-development",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 1,
- "start": "2017-11-02 14:43:15.153585",
- "stderr": "ERROR: (gcloud.dns.record-sets.transaction.abort) transaction not found at [transaction.yaml]",
- "stderr_lines": [
- "ERROR: (gcloud.dns.record-sets.transaction.abort) transaction not found at [transaction.yaml]"
- ],
- "stdout": "",
- "stdout_lines": []
- }
- ...ignoring
- TASK [consul : get record if exists] *******************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:22
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets list -z oro-cloud-development | awk /^lb.svc.consul.loc-cizar1/'{print $4}'",
- "delta": "0:00:01.011732",
- "end": "2017-11-02 14:43:16.469872",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets list -z oro-cloud-development | awk /^lb.svc.consul.loc-cizar1/'{print $4}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:15.458140",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "10.3.241.172",
- "stdout_lines": [
- "10.3.241.172"
- ]
- }
- TASK [consul : start transaction] **********************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:27
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction start -z oro-cloud-development",
- "delta": "0:00:00.966509",
- "end": "2017-11-02 14:43:17.532817",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction start -z oro-cloud-development",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:16.566308",
- "stderr": "Transaction started [transaction.yaml].",
- "stderr_lines": [
- "Transaction started [transaction.yaml]."
- ],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : delete record if exists] ****************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:31
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction remove -z oro-cloud-development --name lb.svc.consul.loc-cizar1.cloud-development.oroinc.com --ttl 300 --type A '10.3.241.172'",
- "delta": "0:00:00.684628",
- "end": "2017-11-02 14:43:18.308588",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction remove -z oro-cloud-development --name lb.svc.consul.loc-cizar1.cloud-development.oroinc.com --ttl 300 --type A '10.3.241.172'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:17.623960",
- "stderr": "Record removal appended to transaction at [transaction.yaml].",
- "stderr_lines": [
- "Record removal appended to transaction at [transaction.yaml]."
- ],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : create/update record] *******************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:37
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction add -z oro-cloud-development --name lb.svc.consul.loc-cizar1.cloud-development.oroinc.com --ttl 300 --type A '10.3.245.46'",
- "delta": "0:00:00.231149",
- "end": "2017-11-02 14:43:18.630110",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction add -z oro-cloud-development --name lb.svc.consul.loc-cizar1.cloud-development.oroinc.com --ttl 300 --type A '10.3.245.46'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:18.398961",
- "stderr": "Record addition appended to transaction at [transaction.yaml].",
- "stderr_lines": [
- "Record addition appended to transaction at [transaction.yaml]."
- ],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : execute transaction] ********************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:41
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction execute -z oro-cloud-development",
- "delta": "0:00:00.900543",
- "end": "2017-11-02 14:43:19.620215",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction execute -z oro-cloud-development",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:18.719672",
- "stderr": "Executed transaction [transaction.yaml] for managed-zone [oro-cloud-development].\nCreated [https://www.googleapis.com/dns/v1/projects/oro-cloud-development/managedZones/oro-cloud-development/changes/1573].",
- "stderr_lines": [
- "Executed transaction [transaction.yaml] for managed-zone [oro-cloud-development].",
- "Created [https://www.googleapis.com/dns/v1/projects/oro-cloud-development/managedZones/oro-cloud-development/changes/1573]."
- ],
- "stdout": "ID START_TIME STATUS\n1573 2017-11-02T12:43:19.261Z pending",
- "stdout_lines": [
- "ID START_TIME STATUS",
- "1573 2017-11-02T12:43:19.261Z pending"
- ]
- }
- TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:45
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : writing empty string to consul peers.json if recovery not required] *********************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:103
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "echo \"\" | base64",
- "delta": "0:00:00.001640",
- "end": "2017-11-02 14:43:19.720895",
- "invocation": {
- "module_args": {
- "_raw_params": "echo \"\" | base64",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:19.719255",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "Cg==",
- "stdout_lines": [
- "Cg=="
- ]
- }
- TASK [consul : writing service ips to consul peers.json if recovery required] **************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:109
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:115
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:119
- ok: [localhost] => {
- "ansible_facts": {
- "consul_peers": "Cg=="
- },
- "changed": false
- }
- TASK [consul : checking if consul-peers secret exists] *************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:123
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault get secret | awk '/consul-peers/{print $1}'",
- "delta": "0:00:00.651894",
- "end": "2017-11-02 14:43:20.509958",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault get secret | awk '/consul-peers/{print $1}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:19.858064",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : deleting consul-peers if exists] ********************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:128
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : creating secret.peers.yml] **************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:133
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/cizar/.ansible/tmp/ansible-tmp-1509626600.64-29148522734594 `" && echo ansible-tmp-1509626600.64-29148522734594="` echo /home/cizar/.ansible/tmp/ansible-tmp-1509626600.64-29148522734594 `" ) && sleep 0'
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/cizar/.ansible/tmp/ansible-tmp-1509626600.64-29148522734594/ > /dev/null 2>&1 && sleep 0'
- ok: [localhost] => {
- "changed": false,
- "diff": {
- "after": {
- "path": "/tmp/consul/secret.peers.yml"
- },
- "before": {
- "path": "/tmp/consul/secret.peers.yml"
- }
- },
- "gid": 1001,
- "group": "cizar",
- "invocation": {
- "module_args": {
- "attributes": null,
- "backup": null,
- "content": null,
- "delimiter": null,
- "dest": "/tmp/consul/secret.peers.yml",
- "diff_peek": null,
- "directory_mode": null,
- "follow": true,
- "force": false,
- "group": null,
- "mode": null,
- "original_basename": "secret.peers.j2",
- "owner": null,
- "path": "/tmp/consul/secret.peers.yml",
- "recurse": false,
- "regexp": null,
- "remote_src": null,
- "selevel": null,
- "serole": null,
- "setype": null,
- "seuser": null,
- "src": null,
- "state": null,
- "unsafe_writes": null,
- "validate": null
- }
- },
- "mode": "0664",
- "owner": "cizar",
- "path": "/tmp/consul/secret.peers.yml",
- "size": 101,
- "state": "file",
- "uid": 1001
- }
- TASK [consul : creating consul-peers secret in kubernetes] *********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:138
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault create -f /tmp/consul/secret.peers.yml",
- "delta": "0:00:00.808433",
- "end": "2017-11-02 14:43:21.674878",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault create -f /tmp/consul/secret.peers.yml",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:20.866445",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "secret \"consul-peers\" created",
- "stdout_lines": [
- "secret \"consul-peers\" created"
- ]
- }
- TASK [consul : setting up 3 consul replication controllers] ********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:142
- included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml for localhost
- included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml for localhost
- included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml for localhost
- TASK [consul : check required variable rc_node_num] ****************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:3
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable acl_datacenter] *************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:8
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable datacenter] *****************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:13
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable acl_default_policy] *********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:18
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable acl_down_policy] ************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:23
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable acl_master_token] ***********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:28
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable consul_encrypt_key] *********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:33
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable node_memory_limits] *********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:38
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable node_memory_requests] *******************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:43
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable node_cpu_limits] ************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:48
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable node_cpu_requests] **********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:53
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:58
- ok: [localhost] => {
- "ansible_facts": {
- "consul_per_disk": "loc-cizar1-consul1-disk1"
- },
- "changed": false
- }
- TASK [consul : Create rc files from templates] *********************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:61
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/cizar/.ansible/tmp/ansible-tmp-1509626602.16-104821500655579 `" && echo ansible-tmp-1509626602.16-104821500655579="` echo /home/cizar/.ansible/tmp/ansible-tmp-1509626602.16-104821500655579 `" ) && sleep 0'
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> PUT /tmp/tmpkJTuvE TO /home/cizar/.ansible/tmp/ansible-tmp-1509626602.16-104821500655579/source
- <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/cizar/.ansible/tmp/ansible-tmp-1509626602.16-104821500655579/ /home/cizar/.ansible/tmp/ansible-tmp-1509626602.16-104821500655579/source && sleep 0'
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/copy.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/cizar/.ansible/tmp/ansible-tmp-1509626602.16-104821500655579/ > /dev/null 2>&1 && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "checksum": "cd73479649b61bf9325a1c047006bea96790727f",
- "dest": "/tmp/consul/rc.yaml",
- "gid": 1001,
- "group": "cizar",
- "invocation": {
- "module_args": {
- "attributes": null,
- "backup": false,
- "content": null,
- "delimiter": null,
- "dest": "/tmp/consul/rc.yaml",
- "directory_mode": null,
- "follow": true,
- "force": true,
- "group": null,
- "mode": null,
- "original_basename": "rc.j2",
- "owner": null,
- "regexp": null,
- "remote_src": null,
- "selevel": null,
- "serole": null,
- "setype": null,
- "seuser": null,
- "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626602.16-104821500655579/source",
- "unsafe_writes": null,
- "validate": null
- }
- },
- "md5sum": "6515aac3632939552d60f972ae338061",
- "mode": "0664",
- "owner": "cizar",
- "size": 2373,
- "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626602.16-104821500655579/source",
- "state": "file",
- "uid": 1001
- }
- TASK [consul : check if consul1 rc exists] *************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:66
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault get rc | grep consul1 | awk '{print $1}'",
- "delta": "0:00:00.642356",
- "end": "2017-11-02 14:43:23.053525",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault get rc | grep consul1 | awk '{print $1}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:22.411169",
- "stderr": "No resources found.",
- "stderr_lines": [
- "No resources found."
- ],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : check if "loc-cizar1-consul1-disk1" persistent disk has been already created] ***********************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:71
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud compute disks list | awk '/loc-cizar1-consul1-disk1/{print $1}'",
- "delta": "0:00:01.475438",
- "end": "2017-11-02 14:43:24.617314",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud compute disks list | awk '/loc-cizar1-consul1-disk1/{print $1}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:23.141876",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "loc-cizar1-consul1-disk1",
- "stdout_lines": [
- "loc-cizar1-consul1-disk1"
- ]
- }
- TASK [consul : creating "loc-cizar1-consul1-disk1" persistent disk] ************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:76
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : create consul1 rc] **********************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:82
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault create -f /tmp/consul/rc.yaml",
- "delta": "0:00:00.864700",
- "end": "2017-11-02 14:43:25.586099",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault create -f /tmp/consul/rc.yaml",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:24.721399",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "replicationcontroller \"consul1\" created",
- "stdout_lines": [
- "replicationcontroller \"consul1\" created"
- ]
- }
- TASK [consul : check required variable rc_node_num] ****************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:3
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable acl_datacenter] *************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:8
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable datacenter] *****************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:13
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable acl_default_policy] *********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:18
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable acl_down_policy] ************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:23
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable acl_master_token] ***********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:28
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable consul_encrypt_key] *********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:33
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable node_memory_limits] *********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:38
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable node_memory_requests] *******************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:43
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable node_cpu_limits] ************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:48
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable node_cpu_requests] **********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:53
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:58
- ok: [localhost] => {
- "ansible_facts": {
- "consul_per_disk": "loc-cizar1-consul2-disk1"
- },
- "changed": false
- }
- TASK [consul : Create rc files from templates] *********************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:61
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/cizar/.ansible/tmp/ansible-tmp-1509626605.86-180564106292643 `" && echo ansible-tmp-1509626605.86-180564106292643="` echo /home/cizar/.ansible/tmp/ansible-tmp-1509626605.86-180564106292643 `" ) && sleep 0'
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> PUT /tmp/tmp3Ugx2t TO /home/cizar/.ansible/tmp/ansible-tmp-1509626605.86-180564106292643/source
- <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/cizar/.ansible/tmp/ansible-tmp-1509626605.86-180564106292643/ /home/cizar/.ansible/tmp/ansible-tmp-1509626605.86-180564106292643/source && sleep 0'
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/copy.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/cizar/.ansible/tmp/ansible-tmp-1509626605.86-180564106292643/ > /dev/null 2>&1 && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "checksum": "2c42c771fab92c12f62ecd0f3a076417c2ae2d9d",
- "dest": "/tmp/consul/rc.yaml",
- "gid": 1001,
- "group": "cizar",
- "invocation": {
- "module_args": {
- "attributes": null,
- "backup": false,
- "content": null,
- "delimiter": null,
- "dest": "/tmp/consul/rc.yaml",
- "directory_mode": null,
- "follow": true,
- "force": true,
- "group": null,
- "mode": null,
- "original_basename": "rc.j2",
- "owner": null,
- "regexp": null,
- "remote_src": null,
- "selevel": null,
- "serole": null,
- "setype": null,
- "seuser": null,
- "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626605.86-180564106292643/source",
- "unsafe_writes": null,
- "validate": null
- }
- },
- "md5sum": "b5eb64a0c0440bc4df7c53b7d22de5dc",
- "mode": "0664",
- "owner": "cizar",
- "size": 2373,
- "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626605.86-180564106292643/source",
- "state": "file",
- "uid": 1001
- }
- TASK [consul : check if consul2 rc exists] *************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:66
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault get rc | grep consul2 | awk '{print $1}'",
- "delta": "0:00:00.670357",
- "end": "2017-11-02 14:43:26.777073",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault get rc | grep consul2 | awk '{print $1}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:26.106716",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : check if "loc-cizar1-consul2-disk1" persistent disk has been already created] ***********************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:71
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud compute disks list | awk '/loc-cizar1-consul2-disk1/{print $1}'",
- "delta": "0:00:01.315316",
- "end": "2017-11-02 14:43:28.180030",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud compute disks list | awk '/loc-cizar1-consul2-disk1/{print $1}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:26.864714",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "loc-cizar1-consul2-disk1",
- "stdout_lines": [
- "loc-cizar1-consul2-disk1"
- ]
- }
- TASK [consul : creating "loc-cizar1-consul2-disk1" persistent disk] ************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:76
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : create consul2 rc] **********************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:82
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault create -f /tmp/consul/rc.yaml",
- "delta": "0:00:00.820378",
- "end": "2017-11-02 14:43:29.104025",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault create -f /tmp/consul/rc.yaml",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:28.283647",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "replicationcontroller \"consul2\" created",
- "stdout_lines": [
- "replicationcontroller \"consul2\" created"
- ]
- }
- TASK [consul : check required variable rc_node_num] ****************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:3
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable acl_datacenter] *************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:8
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable datacenter] *****************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:13
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable acl_default_policy] *********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:18
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable acl_down_policy] ************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:23
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable acl_master_token] ***********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:28
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable consul_encrypt_key] *********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:33
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable node_memory_limits] *********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:38
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable node_memory_requests] *******************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:43
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable node_cpu_limits] ************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:48
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : check required variable node_cpu_requests] **********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:53
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:58
- ok: [localhost] => {
- "ansible_facts": {
- "consul_per_disk": "loc-cizar1-consul3-disk1"
- },
- "changed": false
- }
- TASK [consul : Create rc files from templates] *********************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:61
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/cizar/.ansible/tmp/ansible-tmp-1509626609.4-163825154305356 `" && echo ansible-tmp-1509626609.4-163825154305356="` echo /home/cizar/.ansible/tmp/ansible-tmp-1509626609.4-163825154305356 `" ) && sleep 0'
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> PUT /tmp/tmp9Vt9t4 TO /home/cizar/.ansible/tmp/ansible-tmp-1509626609.4-163825154305356/source
- <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/cizar/.ansible/tmp/ansible-tmp-1509626609.4-163825154305356/ /home/cizar/.ansible/tmp/ansible-tmp-1509626609.4-163825154305356/source && sleep 0'
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/copy.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/cizar/.ansible/tmp/ansible-tmp-1509626609.4-163825154305356/ > /dev/null 2>&1 && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "checksum": "6cf45017643bd17877c2c8c0d3284d819929120f",
- "dest": "/tmp/consul/rc.yaml",
- "gid": 1001,
- "group": "cizar",
- "invocation": {
- "module_args": {
- "attributes": null,
- "backup": false,
- "content": null,
- "delimiter": null,
- "dest": "/tmp/consul/rc.yaml",
- "directory_mode": null,
- "follow": true,
- "force": true,
- "group": null,
- "mode": null,
- "original_basename": "rc.j2",
- "owner": null,
- "regexp": null,
- "remote_src": null,
- "selevel": null,
- "serole": null,
- "setype": null,
- "seuser": null,
- "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626609.4-163825154305356/source",
- "unsafe_writes": null,
- "validate": null
- }
- },
- "md5sum": "9ad5c93a01e01fdec462f056faac7d36",
- "mode": "0664",
- "owner": "cizar",
- "size": 2373,
- "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626609.4-163825154305356/source",
- "state": "file",
- "uid": 1001
- }
- TASK [consul : check if consul3 rc exists] *************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:66
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault get rc | grep consul3 | awk '{print $1}'",
- "delta": "0:00:00.687463",
- "end": "2017-11-02 14:43:30.323377",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault get rc | grep consul3 | awk '{print $1}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:29.635914",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : check if "loc-cizar1-consul3-disk1" persistent disk has been already created] ***********************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:71
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "~/google-cloud-sdk/bin/gcloud compute disks list | awk '/loc-cizar1-consul3-disk1/{print $1}'",
- "delta": "0:00:01.131914",
- "end": "2017-11-02 14:43:31.542907",
- "invocation": {
- "module_args": {
- "_raw_params": "~/google-cloud-sdk/bin/gcloud compute disks list | awk '/loc-cizar1-consul3-disk1/{print $1}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:30.410993",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "loc-cizar1-consul3-disk1",
- "stdout_lines": [
- "loc-cizar1-consul3-disk1"
- ]
- }
- TASK [consul : creating "loc-cizar1-consul3-disk1" persistent disk] ************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:76
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : create consul3 rc] **********************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:82
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault create -f /tmp/consul/rc.yaml",
- "delta": "0:00:00.810418",
- "end": "2017-11-02 14:43:32.461579",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault create -f /tmp/consul/rc.yaml",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:31.651161",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "replicationcontroller \"consul3\" created",
- "stdout_lines": [
- "replicationcontroller \"consul3\" created"
- ]
- }
- TASK [consul : waiting until consul pod is creating] ***************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:148
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- FAILED - RETRYING: waiting until consul pod is creating (30 retries left).Result was: {
- "attempts": 1,
- "changed": true,
- "cmd": "kubectl get pod --namespace=vault | awk '/consul1/{print $3}'",
- "delta": "0:00:00.848231",
- "end": "2017-11-02 14:43:33.390600",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl get pod --namespace=vault | awk '/consul1/{print $3}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "retries": 31,
- "start": "2017-11-02 14:43:32.542369",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "ContainerCreating",
- "stdout_lines": [
- "ContainerCreating"
- ]
- }
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "attempts": 2,
- "changed": true,
- "cmd": "kubectl get pod --namespace=vault | awk '/consul1/{print $3}'",
- "delta": "0:00:00.815985",
- "end": "2017-11-02 14:43:44.280205",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl get pod --namespace=vault | awk '/consul1/{print $3}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:43.464220",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "Running",
- "stdout_lines": [
- "Running"
- ]
- }
- TASK [consul : checking if previous init pod exists] ***************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/acl-vault.yml:3
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl get pod --namespace=vault | awk '/consul-init/{print $1}'",
- "delta": "0:00:00.885563",
- "end": "2017-11-02 14:43:45.283476",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl get pod --namespace=vault | awk '/consul-init/{print $1}'",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:44.397913",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- TASK [consul : delete previous init pod if exists] *****************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/acl-vault.yml:8
- skipping: [localhost] => {
- "changed": false,
- "skip_reason": "Conditional result was False",
- "skipped": true
- }
- TASK [consul : getting consul-lb ip-address] ***********************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/acl-vault.yml:13
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- changed: [localhost] => {
- "changed": true,
- "cmd": "kubectl --namespace=vault get svc -o jsonpath={.items[0].spec.clusterIP}",
- "delta": "0:00:00.649124",
- "end": "2017-11-02 14:43:46.034914",
- "invocation": {
- "module_args": {
- "_raw_params": "kubectl --namespace=vault get svc -o jsonpath={.items[0].spec.clusterIP}",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "start": "2017-11-02 14:43:45.385790",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "10.3.245.46",
- "stdout_lines": [
- "10.3.245.46"
- ]
- }
- TASK [consul : setting consul_lb_ip fact] **************************************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/acl-vault.yml:18
- ok: [localhost] => {
- "ansible_facts": {
- "consul_lb_ip": "10.3.245.46"
- },
- "changed": false
- }
- TASK [consul : waiting until new leader will be elected] ***********************************************************************************************************************************************************
- task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/acl-vault.yml:22
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- FAILED - RETRYING: waiting until new leader will be elected (30 retries left).Result was: {
- "attempts": 1,
- "changed": true,
- "cmd": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "delta": "0:00:03.033170",
- "end": "2017-11-02 14:43:49.169910",
- "invocation": {
- "module_args": {
- "_raw_params": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "retries": 31,
- "start": "2017-11-02 14:43:46.136740",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- FAILED - RETRYING: waiting until new leader will be elected (29 retries left).Result was: {
- "attempts": 2,
- "changed": true,
- "cmd": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "delta": "0:00:02.921364",
- "end": "2017-11-02 14:44:02.167466",
- "invocation": {
- "module_args": {
- "_raw_params": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "retries": 31,
- "start": "2017-11-02 14:43:59.246102",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- FAILED - RETRYING: waiting until new leader will be elected (28 retries left).Result was: {
- "attempts": 3,
- "changed": true,
- "cmd": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "delta": "0:00:02.704054",
- "end": "2017-11-02 14:44:14.949768",
- "invocation": {
- "module_args": {
- "_raw_params": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "retries": 31,
- "start": "2017-11-02 14:44:12.245714",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- FAILED - RETRYING: waiting until new leader will be elected (27 retries left).Result was: {
- "attempts": 4,
- "changed": true,
- "cmd": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "delta": "0:00:02.945345",
- "end": "2017-11-02 14:44:27.972057",
- "invocation": {
- "module_args": {
- "_raw_params": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "retries": 31,
- "start": "2017-11-02 14:44:25.026712",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- FAILED - RETRYING: waiting until new leader will be elected (26 retries left).Result was: {
- "attempts": 5,
- "changed": true,
- "cmd": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "delta": "0:00:02.927823",
- "end": "2017-11-02 14:44:40.977949",
- "invocation": {
- "module_args": {
- "_raw_params": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "retries": 31,
- "start": "2017-11-02 14:44:38.050126",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- FAILED - RETRYING: waiting until new leader will be elected (25 retries left).Result was: {
- "attempts": 6,
- "changed": true,
- "cmd": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "delta": "0:00:03.132253",
- "end": "2017-11-02 14:44:54.183794",
- "invocation": {
- "module_args": {
- "_raw_params": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "retries": 31,
- "start": "2017-11-02 14:44:51.051541",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- FAILED - RETRYING: waiting until new leader will be elected (24 retries left).Result was: {
- "attempts": 7,
- "changed": true,
- "cmd": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "delta": "0:00:03.416827",
- "end": "2017-11-02 14:45:07.670265",
- "invocation": {
- "module_args": {
- "_raw_params": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "retries": 31,
- "start": "2017-11-02 14:45:04.253438",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- FAILED - RETRYING: waiting until new leader will be elected (23 retries left).Result was: {
- "attempts": 8,
- "changed": true,
- "cmd": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "delta": "0:00:02.825456",
- "end": "2017-11-02 14:45:20.573584",
- "invocation": {
- "module_args": {
- "_raw_params": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "retries": 31,
- "start": "2017-11-02 14:45:17.748128",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- FAILED - RETRYING: waiting until new leader will be elected (22 retries left).Result was: {
- "attempts": 9,
- "changed": true,
- "cmd": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "delta": "0:00:02.925315",
- "end": "2017-11-02 14:45:33.570869",
- "invocation": {
- "module_args": {
- "_raw_params": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "retries": 31,
- "start": "2017-11-02 14:45:30.645554",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- FAILED - RETRYING: waiting until new leader will be elected (21 retries left).Result was: {
- "attempts": 10,
- "changed": true,
- "cmd": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "delta": "0:00:02.922832",
- "end": "2017-11-02 14:45:46.572813",
- "invocation": {
- "module_args": {
- "_raw_params": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "retries": 31,
- "start": "2017-11-02 14:45:43.649981",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- FAILED - RETRYING: waiting until new leader will be elected (20 retries left).Result was: {
- "attempts": 11,
- "changed": true,
- "cmd": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "delta": "0:00:02.935587",
- "end": "2017-11-02 14:45:59.585235",
- "invocation": {
- "module_args": {
- "_raw_params": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "retries": 31,
- "start": "2017-11-02 14:45:56.649648",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- FAILED - RETRYING: waiting until new leader will be elected (19 retries left).Result was: {
- "attempts": 12,
- "changed": true,
- "cmd": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "delta": "0:00:03.009344",
- "end": "2017-11-02 14:46:12.671769",
- "invocation": {
- "module_args": {
- "_raw_params": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "retries": 31,
- "start": "2017-11-02 14:46:09.662425",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- FAILED - RETRYING: waiting until new leader will be elected (18 retries left).Result was: {
- "attempts": 13,
- "changed": true,
- "cmd": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "delta": "0:00:02.933448",
- "end": "2017-11-02 14:46:25.673055",
- "invocation": {
- "module_args": {
- "_raw_params": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "retries": 31,
- "start": "2017-11-02 14:46:22.739607",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- FAILED - RETRYING: waiting until new leader will be elected (17 retries left).Result was: {
- "attempts": 14,
- "changed": true,
- "cmd": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "delta": "0:00:03.114985",
- "end": "2017-11-02 14:46:38.875658",
- "invocation": {
- "module_args": {
- "_raw_params": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "retries": 31,
- "start": "2017-11-02 14:46:35.760673",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- FAILED - RETRYING: waiting until new leader will be elected (16 retries left).Result was: {
- "attempts": 15,
- "changed": true,
- "cmd": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "delta": "0:00:02.825462",
- "end": "2017-11-02 14:46:51.778791",
- "invocation": {
- "module_args": {
- "_raw_params": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "retries": 31,
- "start": "2017-11-02 14:46:48.953329",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- FAILED - RETRYING: waiting until new leader will be elected (15 retries left).Result was: {
- "attempts": 16,
- "changed": true,
- "cmd": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "delta": "0:00:03.210620",
- "end": "2017-11-02 14:47:05.069764",
- "invocation": {
- "module_args": {
- "_raw_params": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "retries": 31,
- "start": "2017-11-02 14:47:01.859144",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- FAILED - RETRYING: waiting until new leader will be elected (14 retries left).Result was: {
- "attempts": 17,
- "changed": true,
- "cmd": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "delta": "0:00:05.325715",
- "end": "2017-11-02 14:47:20.476618",
- "invocation": {
- "module_args": {
- "_raw_params": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "retries": 31,
- "start": "2017-11-02 14:47:15.150903",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- FAILED - RETRYING: waiting until new leader will be elected (13 retries left).Result was: {
- "attempts": 18,
- "changed": true,
- "cmd": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "delta": "0:00:02.818301",
- "end": "2017-11-02 14:47:33.373927",
- "invocation": {
- "module_args": {
- "_raw_params": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "retries": 31,
- "start": "2017-11-02 14:47:30.555626",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- FAILED - RETRYING: waiting until new leader will be elected (12 retries left).Result was: {
- "attempts": 19,
- "changed": true,
- "cmd": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "delta": "0:00:02.921927",
- "end": "2017-11-02 14:47:46.363894",
- "invocation": {
- "module_args": {
- "_raw_params": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "retries": 31,
- "start": "2017-11-02 14:47:43.441967",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
- Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
- <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
- FAILED - RETRYING: waiting until new leader will be elected (11 retries left).Result was: {
- "attempts": 20,
- "changed": true,
- "cmd": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "delta": "0:00:02.816872",
- "end": "2017-11-02 14:47:59.257751",
- "invocation": {
- "module_args": {
- "_raw_params": "echo $(kubectl --namespace=vault exec $(kubectl --namespace=vault get pod -o name | grep consul1 | awk -F/ '{print $2}') consul info | grep leader_addr | awk -F= '{print $2}')",
- "_uses_shell": true,
- "chdir": null,
- "creates": null,
- "executable": null,
- "removes": null,
- "warn": true
- }
- },
- "rc": 0,
- "retries": 31,
- "start": "2017-11-02 14:47:56.440879",
- "stderr": "",
- "stderr_lines": [],
- "stdout": "",
- "stdout_lines": []
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement