Advertisement
cizarkiev

Untitled

Nov 2nd, 2017
542
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 270.36 KB | None | 0 0
  1. cizar@castle:~/oro-cloud-ansible$ ansible-playbook consul.yml -e "full_cluster_name=loc-cizar1 env_type=local" -vvv
  2. [WARNING]: log file at ansible.log is not writeable and we cannot create it, aborting
  3.  
  4. Using /home/cizar/oro-cloud-ansible/ansible.cfg as config file
  5. statically included: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml
  6. statically included: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml
  7. statically included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.lb.yml
  8. statically included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml
  9. statically included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/acl-vault.yml
  10.  
  11. PLAYBOOK: consul.yml ***********************************************************************************************************************************************************************************************
  12. 4 plays in consul.yml
  13.  
  14. PLAY [re-add nodes to inventory] ***********************************************************************************************************************************************************************************
  15.  
  16. TASK [Gathering Facts] *********************************************************************************************************************************************************************************************
  17. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/system/setup.py
  18. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  19. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  20. ok: [localhost]
  21. META: ran handlers
  22.  
  23. TASK [common/dyn_inventory : check group_vars presence] ************************************************************************************************************************************************************
  24. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:3
  25. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  26. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  27. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  28. ok: [localhost] => {
  29. "changed": false,
  30. "invocation": {
  31. "module_args": {
  32. "checksum_algorithm": "sha1",
  33. "follow": false,
  34. "get_attributes": true,
  35. "get_checksum": true,
  36. "get_md5": true,
  37. "get_mime": true,
  38. "path": "group_vars"
  39. }
  40. },
  41. "stat": {
  42. "atime": 1509615152.7928565,
  43. "attr_flags": "e",
  44. "attributes": [
  45. "extents"
  46. ],
  47. "block_size": 4096,
  48. "blocks": 8,
  49. "charset": "binary",
  50. "ctime": 1509615102.4042282,
  51. "dev": 2066,
  52. "device_type": 0,
  53. "executable": true,
  54. "exists": true,
  55. "gid": 1001,
  56. "gr_name": "cizar",
  57. "inode": 3375723,
  58. "isblk": false,
  59. "ischr": false,
  60. "isdir": true,
  61. "isfifo": false,
  62. "isgid": false,
  63. "islnk": false,
  64. "isreg": false,
  65. "issock": false,
  66. "isuid": false,
  67. "mimetype": "inode/directory",
  68. "mode": "0775",
  69. "mtime": 1509615102.4042282,
  70. "nlink": 2,
  71. "path": "group_vars",
  72. "pw_name": "cizar",
  73. "readable": true,
  74. "rgrp": true,
  75. "roth": true,
  76. "rusr": true,
  77. "size": 4096,
  78. "uid": 1001,
  79. "version": "18446744073617112625",
  80. "wgrp": true,
  81. "woth": false,
  82. "writeable": true,
  83. "wusr": true,
  84. "xgrp": true,
  85. "xoth": true,
  86. "xusr": true
  87. }
  88. }
  89.  
  90. TASK [common/dyn_inventory : fail] *********************************************************************************************************************************************************************************
  91. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:8
  92. skipping: [localhost] => {
  93. "changed": false,
  94. "skip_reason": "Conditional result was False",
  95. "skipped": true
  96. }
  97.  
  98. TASK [common/dyn_inventory : include group_vars] *******************************************************************************************************************************************************************
  99. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:11
  100. ok: [localhost] => {
  101. "ansible_facts": {
  102. "EmailPass": "Service123",
  103. "EmailUser": "service@oroinc.com",
  104. "allow_destination": [
  105. {
  106. "port": "all",
  107. "proto": "TCP"
  108. },
  109. {
  110. "port": "all",
  111. "proto": "UDP"
  112. }
  113. ],
  114. "allow_incoming": [
  115. {
  116. "port": "all",
  117. "proto": "TCP"
  118. },
  119. {
  120. "port": "all",
  121. "proto": "UDP"
  122. }
  123. ],
  124. "ceph_nodes": "10.32.0.8:6789,10.32.0.9:6789,10.32.0.11:6789",
  125. "ceph_secret": "AQDFpENZqhgsORAAZyKPLswBOrfa/bmoY8dD/g==",
  126. "cloud_install": false,
  127. "credentials_file": "{{ project_name }}.json",
  128. "datadog_api_key": "d629a6affce622c81101c06eaebe56b9",
  129. "env_type": "local",
  130. "forwarding_rules": [
  131. {
  132. "port": 500,
  133. "proto": "UDP"
  134. },
  135. {
  136. "port": 4500,
  137. "proto": "UDP"
  138. }
  139. ],
  140. "gcloud_account": "~/account.json",
  141. "gcloud_command": "{{ gcloud_path }}/bin/gcloud",
  142. "gcloud_compute_region": "us-central1",
  143. "gcloud_compute_zone": "us-central1-f",
  144. "gcloud_log": "/tmp/gcloud.log",
  145. "gcloud_path": "~/google-cloud-sdk",
  146. "gcloud_project_name": "oro-cloud-development",
  147. "gke_cluster_version": "1.7.6-gke.1",
  148. "gke_machine_type": "n1-highcpu-8",
  149. "gluster_server_ip": "10.33.0.5",
  150. "images_list": [
  151. {
  152. "img": "ubuntu",
  153. "rebuild": true,
  154. "tag": "14.04-{{ root_version }}"
  155. },
  156. {
  157. "img": "service-root",
  158. "rebuild": true,
  159. "tag": "{{ root_image_tag }}"
  160. },
  161. {
  162. "img": "builder-bap-standard",
  163. "rebuild": true,
  164. "tag": "1.6.2"
  165. },
  166. {
  167. "img": "deployer-bap-standard",
  168. "rebuild": true,
  169. "tag": "1.6.2"
  170. },
  171. {
  172. "img": "builder-bap-monolithic",
  173. "rebuild": true,
  174. "tag": "1.6.2"
  175. },
  176. {
  177. "img": "deployer-bap-monolithic",
  178. "rebuild": true,
  179. "tag": "1.6.2"
  180. },
  181. {
  182. "img": "destroyer",
  183. "rebuild": true,
  184. "tag": "1.0.0"
  185. },
  186. {
  187. "img": "elasticsearch",
  188. "rebuild": true,
  189. "tag": "1.0.0"
  190. },
  191. {
  192. "img": "redis",
  193. "rebuild": true,
  194. "tag": "1.0.0"
  195. },
  196. {
  197. "img": "archiver",
  198. "rebuild": true,
  199. "tag": "1.0.0"
  200. },
  201. {
  202. "img": "fluentd-gcp",
  203. "rebuild": true,
  204. "tag": "1.18"
  205. },
  206. {
  207. "img": "clone",
  208. "rebuild": true,
  209. "tag": "1.0.0"
  210. },
  211. {
  212. "img": "vault",
  213. "rebuild": true,
  214. "tag": "0.6.2"
  215. },
  216. {
  217. "img": "es-cluster",
  218. "rebuild": true,
  219. "tag": "2.4.1"
  220. },
  221. {
  222. "img": "rabbitmq",
  223. "rebuild": true,
  224. "tag": "3.6.6-management"
  225. },
  226. {
  227. "img": "consul",
  228. "rebuild": true,
  229. "tag": "0.7.4"
  230. },
  231. {
  232. "img": "jenkins",
  233. "rebuild": true,
  234. "tag": "2.32.2"
  235. },
  236. {
  237. "img": "token-rotator",
  238. "pull": true,
  239. "rebuild": true,
  240. "tag": "1.0"
  241. }
  242. ],
  243. "isolation": false,
  244. "kubectl_command": "{{ gcloud_path }}/bin/kubectl",
  245. "kubernetes_salt_bucket": "saltarch",
  246. "kubernetes_salt_download_host": "storage.googleapis.com",
  247. "local_install": false,
  248. "maximum_subnet": "10.124.0.0/15",
  249. "mgmt_instance_ip": "",
  250. "mgmt_instance_name": "",
  251. "minimum_subnet": "10.12.0.0/15",
  252. "num_nodes": 1,
  253. "project_name": "oro-cloud-development",
  254. "proxy_webserver": "apache2",
  255. "root_image_tag": 1.0,
  256. "root_version": 1.6,
  257. "salt_tar_hash": "45716cc2a9deb2441c1d73e7e66045ddf3a9a02f",
  258. "salt_tar_url": "https:\\/\\/{{kubernetes_salt_download_host}}\\/{{ kubernetes_salt_bucket }}\\/kubernetes-salt-1.6.tar.gz",
  259. "service_account_path": "/vagrant/bin/kubernetes/serviceaccount.yaml",
  260. "service_clusters": [
  261. "app",
  262. "mgmt"
  263. ],
  264. "service_container_pool": "{{ cluster_name.stdout }}",
  265. "service_email": "account-61@oro-cloud-development.iam.gserviceaccount.com",
  266. "service_key_path": "/tmp/account.p12",
  267. "service_mail": "service_mail",
  268. "sql_instance_ip": "",
  269. "sql_instance_name": "",
  270. "srv_container_pool": "{{ env }}",
  271. "vpn_pass_type": "random"
  272. },
  273. "changed": false
  274. }
  275.  
  276. TASK [common/dyn_inventory : Require 'env' variable set for non-local envs] ****************************************************************************************************************************************
  277. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:14
  278. skipping: [localhost] => {
  279. "changed": false,
  280. "skip_reason": "Conditional result was False",
  281. "skipped": true
  282. }
  283.  
  284. TASK [common/dyn_inventory : Interrupt operations when using production project without confirmation] **************************************************************************************************************
  285. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:19
  286. skipping: [localhost] => {
  287. "changed": false,
  288. "skip_reason": "Conditional result was False",
  289. "skipped": true
  290. }
  291.  
  292. TASK [common/dyn_inventory : check inventory presence] *************************************************************************************************************************************************************
  293. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:24
  294. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  295. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  296. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  297. ok: [localhost] => {
  298. "changed": false,
  299. "invocation": {
  300. "module_args": {
  301. "checksum_algorithm": "sha1",
  302. "follow": false,
  303. "get_attributes": true,
  304. "get_checksum": true,
  305. "get_md5": true,
  306. "get_mime": true,
  307. "path": "inventory"
  308. }
  309. },
  310. "stat": {
  311. "atime": 1509617325.2919712,
  312. "attr_flags": "e",
  313. "attributes": [
  314. "extents"
  315. ],
  316. "block_size": 4096,
  317. "blocks": 8,
  318. "charset": "binary",
  319. "ctime": 1509615122.3124764,
  320. "dev": 2066,
  321. "device_type": 0,
  322. "executable": true,
  323. "exists": true,
  324. "gid": 1001,
  325. "gr_name": "cizar",
  326. "inode": 3375724,
  327. "isblk": false,
  328. "ischr": false,
  329. "isdir": true,
  330. "isfifo": false,
  331. "isgid": false,
  332. "islnk": false,
  333. "isreg": false,
  334. "issock": false,
  335. "isuid": false,
  336. "mimetype": "inode/directory",
  337. "mode": "0775",
  338. "mtime": 1509615122.3124764,
  339. "nlink": 2,
  340. "path": "inventory",
  341. "pw_name": "cizar",
  342. "readable": true,
  343. "rgrp": true,
  344. "roth": true,
  345. "rusr": true,
  346. "size": 4096,
  347. "uid": 1001,
  348. "version": "18446744071579942450",
  349. "wgrp": true,
  350. "woth": false,
  351. "writeable": true,
  352. "wusr": true,
  353. "xgrp": true,
  354. "xoth": true,
  355. "xusr": true
  356. }
  357. }
  358.  
  359. TASK [common/dyn_inventory : fail] *********************************************************************************************************************************************************************************
  360. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:29
  361. skipping: [localhost] => {
  362. "changed": false,
  363. "skip_reason": "Conditional result was False",
  364. "skipped": true
  365. }
  366.  
  367. TASK [common/dyn_inventory : change project] ***********************************************************************************************************************************************************************
  368. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:32
  369. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  370. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  371. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  372. changed: [localhost] => {
  373. "changed": true,
  374. "cmd": "~/google-cloud-sdk/bin/gcloud config set project oro-cloud-development",
  375. "delta": "0:00:00.248755",
  376. "end": "2017-11-02 14:41:02.229877",
  377. "invocation": {
  378. "module_args": {
  379. "_raw_params": "~/google-cloud-sdk/bin/gcloud config set project oro-cloud-development",
  380. "_uses_shell": true,
  381. "chdir": null,
  382. "creates": null,
  383. "executable": null,
  384. "removes": null,
  385. "warn": true
  386. }
  387. },
  388. "rc": 0,
  389. "start": "2017-11-02 14:41:01.981122",
  390. "stderr": "Updated property [core/project].",
  391. "stderr_lines": [
  392. "Updated property [core/project]."
  393. ],
  394. "stdout": "",
  395. "stdout_lines": []
  396. }
  397.  
  398. TASK [common/dyn_inventory : define environment prefix for service clusters] ***************************************************************************************************************************************
  399. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:36
  400. ok: [localhost] => {
  401. "ansible_facts": {
  402. "env_prefix": "loc"
  403. },
  404. "changed": false
  405. }
  406.  
  407. TASK [common/dyn_inventory : find available service clusters] ******************************************************************************************************************************************************
  408. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:40
  409. skipping: [localhost] => (item=app) => {
  410. "changed": false,
  411. "item": "app",
  412. "skip_reason": "Conditional result was False",
  413. "skipped": true
  414. }
  415. skipping: [localhost] => (item=mgmt) => {
  416. "changed": false,
  417. "item": "mgmt",
  418. "skip_reason": "Conditional result was False",
  419. "skipped": true
  420. }
  421.  
  422. TASK [common/dyn_inventory : register available service clusters] **************************************************************************************************************************************************
  423. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:49
  424. 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"}
  425. 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"}
  426.  
  427. TASK [common/dyn_inventory : register a build version supplied via command line if it contained numbers] ***********************************************************************************************************
  428. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:55
  429. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  430. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  431. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  432. changed: [localhost] => {
  433. "changed": true,
  434. "cmd": "echo loc-cizar | sed 's/.*[^0-9]//g'",
  435. "delta": "0:00:00.002358",
  436. "end": "2017-11-02 14:41:02.403079",
  437. "invocation": {
  438. "module_args": {
  439. "_raw_params": "echo loc-cizar | sed 's/.*[^0-9]//g'",
  440. "_uses_shell": true,
  441. "chdir": null,
  442. "creates": null,
  443. "executable": null,
  444. "removes": null,
  445. "warn": true
  446. }
  447. },
  448. "rc": 0,
  449. "start": "2017-11-02 14:41:02.400721",
  450. "stderr": "",
  451. "stderr_lines": [],
  452. "stdout": "",
  453. "stdout_lines": []
  454. }
  455.  
  456. TASK [common/dyn_inventory : save a version supplied via command line as build_version if it contained numbers] ****************************************************************************************************
  457. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:59
  458. skipping: [localhost] => {
  459. "changed": false,
  460. "skip_reason": "Conditional result was False",
  461. "skipped": true
  462. }
  463.  
  464. TASK [common/dyn_inventory : get build_version] ********************************************************************************************************************************************************************
  465. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:63
  466. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  467. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  468. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  469. changed: [localhost] => {
  470. "changed": true,
  471. "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",
  472. "delta": "0:00:01.550369",
  473. "end": "2017-11-02 14:41:04.082263",
  474. "invocation": {
  475. "module_args": {
  476. "_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",
  477. "_uses_shell": true,
  478. "chdir": null,
  479. "creates": null,
  480. "executable": null,
  481. "removes": null,
  482. "warn": true
  483. }
  484. },
  485. "rc": 0,
  486. "start": "2017-11-02 14:41:02.531894",
  487. "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",
  488. "stderr_lines": [
  489. "",
  490. "* - There is an upgrade available for your cluster(s).",
  491. "",
  492. "To upgrade nodes to the latest available version, run",
  493. " $ gcloud container clusters upgrade NAME"
  494. ],
  495. "stdout": "1",
  496. "stdout_lines": [
  497. "1"
  498. ]
  499. }
  500.  
  501. TASK [common/dyn_inventory : set build version when none found] ****************************************************************************************************************************************************
  502. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:68
  503. skipping: [localhost] => {
  504. "changed": false,
  505. "skip_reason": "Conditional result was False",
  506. "skipped": true
  507. }
  508.  
  509. TASK [common/dyn_inventory : set build version when found] *********************************************************************************************************************************************************
  510. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:73
  511. ok: [localhost] => {
  512. "ansible_facts": {
  513. "build_version": "1"
  514. },
  515. "changed": false
  516. }
  517.  
  518. TASK [common/dyn_inventory : force user-supplied build_version] ***************************************************************************************************************************************************
  519. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:82
  520. skipping: [localhost] => {
  521. "changed": false,
  522. "skip_reason": "Conditional result was False",
  523. "skipped": true
  524. }
  525.  
  526. TASK [common/dyn_inventory : set new cluster name] *****************************************************************************************************************************************************************
  527. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:86
  528. ok: [localhost] => {
  529. "ansible_facts": {
  530. "full_cluster_name": "loc-cizar1"
  531. },
  532. "changed": false
  533. }
  534.  
  535. TASK [common/dyn_inventory : validate preconfigured cluster] *******************************************************************************************************************************************************
  536. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:89
  537. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  538. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  539. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  540. changed: [localhost] => {
  541. "changed": true,
  542. "cmd": "~/google-cloud-sdk/bin/gcloud container clusters describe loc-cizar1 | grep currentNodeCount | awk '{print $2}'",
  543. "delta": "0:00:00.783204",
  544. "end": "2017-11-02 14:41:05.019546",
  545. "invocation": {
  546. "module_args": {
  547. "_raw_params": "~/google-cloud-sdk/bin/gcloud container clusters describe loc-cizar1 | grep currentNodeCount | awk '{print $2}'",
  548. "_uses_shell": true,
  549. "chdir": null,
  550. "creates": null,
  551. "executable": null,
  552. "removes": null,
  553. "warn": true
  554. }
  555. },
  556. "rc": 0,
  557. "start": "2017-11-02 14:41:04.236342",
  558. "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",
  559. "stderr_lines": [
  560. "",
  561. "* - There is an upgrade available for your cluster(s).",
  562. "",
  563. "To upgrade nodes to the latest available version, run",
  564. " $ gcloud container clusters upgrade loc-cizar1"
  565. ],
  566. "stdout": "1",
  567. "stdout_lines": [
  568. "1"
  569. ]
  570. }
  571.  
  572. TASK [common/dyn_inventory : mark existing cluster as valid] *******************************************************************************************************************************************************
  573. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:94
  574. ok: [localhost] => {
  575. "ansible_facts": {
  576. "reuse_cluster": true
  577. },
  578. "changed": false
  579. }
  580.  
  581. TASK [common/dyn_inventory : increment build version] **************************************************************************************************************************************************************
  582. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:99
  583. skipping: [localhost] => {
  584. "changed": false,
  585. "skip_reason": "Conditional result was False",
  586. "skipped": true
  587. }
  588.  
  589. TASK [common/dyn_inventory : update new cluster name] **************************************************************************************************************************************************************
  590. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:103
  591. skipping: [localhost] => {
  592. "changed": false,
  593. "skip_reason": "Conditional result was False",
  594. "skipped": true
  595. }
  596.  
  597. TASK [common/dyn_inventory : point all service clusters to single cluster in non-multicluster env] *****************************************************************************************************************
  598. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:107
  599. ok: [localhost] => (item=app) => {
  600. "ansible_facts": {
  601. "cluster_name_app": "loc-cizar1"
  602. },
  603. "changed": false,
  604. "item": "app"
  605. }
  606. ok: [localhost] => (item=mgmt) => {
  607. "ansible_facts": {
  608. "cluster_name_mgmt": "loc-cizar1"
  609. },
  610. "changed": false,
  611. "item": "mgmt"
  612. }
  613.  
  614. TASK [common/dyn_inventory : get instance_group] *******************************************************************************************************************************************************************
  615. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:112
  616. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  617. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  618. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  619. changed: [localhost] => {
  620. "changed": true,
  621. "cmd": "gcloud --quiet compute instance-groups list | awk '/^gke-loc-cizar1/{print $1}'",
  622. "delta": "0:00:01.679703",
  623. "end": "2017-11-02 14:41:06.869123",
  624. "invocation": {
  625. "module_args": {
  626. "_raw_params": "gcloud --quiet compute instance-groups list | awk '/^gke-loc-cizar1/{print $1}'",
  627. "_uses_shell": true,
  628. "chdir": null,
  629. "creates": null,
  630. "executable": null,
  631. "removes": null,
  632. "warn": true
  633. }
  634. },
  635. "rc": 0,
  636. "start": "2017-11-02 14:41:05.189420",
  637. "stderr": "",
  638. "stderr_lines": [],
  639. "stdout": "gke-loc-cizar1-default-pool-61e81868-grp",
  640. "stdout_lines": [
  641. "gke-loc-cizar1-default-pool-61e81868-grp"
  642. ]
  643. }
  644.  
  645. TASK [common/dyn_inventory : define instance group] ****************************************************************************************************************************************************************
  646. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:117
  647. ok: [localhost] => {
  648. "ansible_facts": {
  649. "instance_group": "gke-loc-cizar1-default-pool-61e81868-grp"
  650. },
  651. "changed": false
  652. }
  653.  
  654. TASK [common/dyn_inventory : get instance_zone] ********************************************************************************************************************************************************************
  655. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:121
  656. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  657. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  658. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  659. changed: [localhost] => {
  660. "changed": true,
  661. "cmd": "gcloud --quiet compute instance-groups list | awk '/^gke-loc-cizar1/{print $2}'",
  662. "delta": "0:00:01.633226",
  663. "end": "2017-11-02 14:41:08.602345",
  664. "invocation": {
  665. "module_args": {
  666. "_raw_params": "gcloud --quiet compute instance-groups list | awk '/^gke-loc-cizar1/{print $2}'",
  667. "_uses_shell": true,
  668. "chdir": null,
  669. "creates": null,
  670. "executable": null,
  671. "removes": null,
  672. "warn": true
  673. }
  674. },
  675. "rc": 0,
  676. "start": "2017-11-02 14:41:06.969119",
  677. "stderr": "",
  678. "stderr_lines": [],
  679. "stdout": "us-central1-f",
  680. "stdout_lines": [
  681. "us-central1-f"
  682. ]
  683. }
  684.  
  685. TASK [common/dyn_inventory : define instance zone] *****************************************************************************************************************************************************************
  686. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:126
  687. ok: [localhost] => {
  688. "ansible_facts": {
  689. "instance_zone": "us-central1-f"
  690. },
  691. "changed": false
  692. }
  693.  
  694. TASK [common/dyn_inventory : get instance in group] ****************************************************************************************************************************************************************
  695. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:130
  696. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  697. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  698. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  699. changed: [localhost] => {
  700. "changed": true,
  701. "cmd": "gcloud --quiet compute instance-groups list-instances gke-loc-cizar1-default-pool-61e81868-grp --zone=us-central1-f | awk '/loc-cizar1/{print $1}'",
  702. "delta": "0:00:00.788200",
  703. "end": "2017-11-02 14:41:09.495722",
  704. "invocation": {
  705. "module_args": {
  706. "_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}'",
  707. "_uses_shell": true,
  708. "chdir": null,
  709. "creates": null,
  710. "executable": null,
  711. "removes": null,
  712. "warn": true
  713. }
  714. },
  715. "rc": 0,
  716. "start": "2017-11-02 14:41:08.707522",
  717. "stderr": "",
  718. "stderr_lines": [],
  719. "stdout": "gke-loc-cizar1-default-pool-61e81868-7dtn",
  720. "stdout_lines": [
  721. "gke-loc-cizar1-default-pool-61e81868-7dtn"
  722. ]
  723. }
  724.  
  725. TASK [common/dyn_inventory : define a name of first available gcloud instance] *************************************************************************************************************************************
  726. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:141
  727. ok: [localhost] => {
  728. "ansible_facts": {
  729. "gcloud_node": "gke-loc-cizar1-default-pool-61e81868-7dtn"
  730. },
  731. "changed": false
  732. }
  733.  
  734. TASK [common/dyn_inventory : locate vagrant variables dir] *********************************************************************************************************************************************************
  735. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:3
  736. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  737. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  738. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  739. changed: [localhost] => {
  740. "changed": true,
  741. "cmd": "vagrant global-status | grep mgmt-node | awk {'print $5'} | tail -n1",
  742. "delta": "0:00:00.891859",
  743. "end": "2017-11-02 14:41:10.491330",
  744. "invocation": {
  745. "module_args": {
  746. "_raw_params": "vagrant global-status | grep mgmt-node | awk {'print $5'} | tail -n1",
  747. "_uses_shell": true,
  748. "chdir": null,
  749. "creates": null,
  750. "executable": null,
  751. "removes": null,
  752. "warn": true
  753. }
  754. },
  755. "rc": 0,
  756. "start": "2017-11-02 14:41:09.599471",
  757. "stderr": "",
  758. "stderr_lines": [],
  759. "stdout": "/home/cizar/oro-cloud-ansible/vagrant",
  760. "stdout_lines": [
  761. "/home/cizar/oro-cloud-ansible/vagrant"
  762. ]
  763. }
  764.  
  765. TASK [common/dyn_inventory : set vagrant inventory path] ***********************************************************************************************************************************************************
  766. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:7
  767. ok: [localhost] => {
  768. "ansible_facts": {
  769. "vagrant_inventory_path": "/home/cizar/oro-cloud-ansible/vagrant/.vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory"
  770. },
  771. "changed": false
  772. }
  773.  
  774. TASK [common/dyn_inventory : Get Vagrant hosts systemd] ************************************************************************************************************************************************************
  775. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:10
  776. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  777. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  778. <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'
  779. changed: [localhost] => {
  780. "changed": true,
  781. "cmd": "$ANSIBLE_RUN -i $ANSIBLE_INV -a $ANSIBLE_FLT -u $ANSIBLE_USR | $ANSIBLE_EGR | awk '{print $2}' | tr -d , | xargs",
  782. "delta": "0:00:00.461704",
  783. "end": "2017-11-02 14:41:11.068148",
  784. "invocation": {
  785. "module_args": {
  786. "_raw_params": "$ANSIBLE_RUN -i $ANSIBLE_INV -a $ANSIBLE_FLT -u $ANSIBLE_USR | $ANSIBLE_EGR | awk '{print $2}' | tr -d , | xargs",
  787. "_uses_shell": true,
  788. "chdir": null,
  789. "creates": null,
  790. "executable": null,
  791. "removes": null,
  792. "warn": true
  793. }
  794. },
  795. "rc": 0,
  796. "start": "2017-11-02 14:41:10.606444",
  797. "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",
  798. "stderr_lines": [
  799. "[WARNING]: log file at ansible.log is not writeable and we cannot create it, aborting",
  800. "",
  801. " [WARNING]: Host file not found: /home/cizar/oro-cloud-ansible/vagrant/.vagrant",
  802. "/provisioners/ansible/inventory/vagrant_ansible_inventory",
  803. " [WARNING]: provided hosts list is empty, only localhost is available",
  804. " [WARNING]: No hosts matched, nothing to do"
  805. ],
  806. "stdout": "",
  807. "stdout_lines": []
  808. }
  809.  
  810. TASK [common/dyn_inventory : set_fact] *****************************************************************************************************************************************************************************
  811. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:30
  812. ok: [localhost] => {
  813. "ansible_facts": {
  814. "vagrant_hosts_ip": " | awk {'print $2'}"
  815. },
  816. "changed": false
  817. }
  818.  
  819. TASK [common/dyn_inventory : Get Vagrant hosts if systemd wasn't detected] *****************************************************************************************************************************************
  820. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:33
  821. skipping: [localhost] => {
  822. "changed": false,
  823. "skip_reason": "Conditional result was False",
  824. "skipped": true
  825. }
  826.  
  827. TASK [common/dyn_inventory : set_fact] *****************************************************************************************************************************************************************************
  828. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:54
  829. skipping: [localhost] => {
  830. "changed": false,
  831. "skip_reason": "Conditional result was False",
  832. "skipped": true
  833. }
  834.  
  835. TASK [common/dyn_inventory : save vagrant ip] **********************************************************************************************************************************************************************
  836. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:58
  837. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  838. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  839. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  840. changed: [localhost] => {
  841. "changed": true,
  842. "cmd": "echo | awk {'print $2'}",
  843. "delta": "0:00:00.002388",
  844. "end": "2017-11-02 14:41:11.198998",
  845. "invocation": {
  846. "module_args": {
  847. "_raw_params": "echo | awk {'print $2'}",
  848. "_uses_shell": true,
  849. "chdir": null,
  850. "creates": null,
  851. "executable": null,
  852. "removes": null,
  853. "warn": true
  854. }
  855. },
  856. "rc": 0,
  857. "start": "2017-11-02 14:41:11.196610",
  858. "stderr": "",
  859. "stderr_lines": [],
  860. "stdout": "",
  861. "stdout_lines": []
  862. }
  863.  
  864. TASK [common/dyn_inventory : add vagrant VM as mgmt-node to inventory] *********************************************************************************************************************************************
  865. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:62
  866. creating host via 'add_host': hostname=mgmt-node
  867. changed: [localhost] => {
  868. "add_host": {
  869. "groups": [],
  870. "host_name": "mgmt-node",
  871. "host_vars": {
  872. "ansible_host": "",
  873. "ansible_ssh_private_key_file": "/home/cizar/.vagrant.d/insecure_private_key",
  874. "ansible_user": "vagrant"
  875. }
  876. },
  877. "changed": true
  878. }
  879.  
  880. TASK [common/dyn_inventory : add mgmt-node as proxy] ***************************************************************************************************************************************************************
  881. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:69
  882. creating host via 'add_host': hostname=mgmt-node
  883. changed: [localhost] => {
  884. "add_host": {
  885. "groups": [
  886. "proxies"
  887. ],
  888. "host_name": "mgmt-node",
  889. "host_vars": {}
  890. },
  891. "changed": true
  892. }
  893.  
  894. TASK [common/dyn_inventory : get mgmt IP for new env] **************************************************************************************************************************************************************
  895. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:3
  896. skipping: [localhost] => {
  897. "changed": false,
  898. "skip_reason": "Conditional result was False",
  899. "skipped": true
  900. }
  901.  
  902. TASK [common/dyn_inventory : set_fact] *****************************************************************************************************************************************************************************
  903. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:8
  904. skipping: [localhost] => {
  905. "changed": false,
  906. "skip_reason": "Conditional result was False",
  907. "skipped": true
  908. }
  909.  
  910. TASK [common/dyn_inventory : get mgmt IP for older non-isolated env] ***********************************************************************************************************************************************
  911. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:12
  912. skipping: [localhost] => {
  913. "changed": false,
  914. "skip_reason": "Conditional result was False",
  915. "skipped": true
  916. }
  917.  
  918. TASK [common/dyn_inventory : set_fact] *****************************************************************************************************************************************************************************
  919. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:17
  920. skipping: [localhost] => {
  921. "changed": false,
  922. "skip_reason": "Conditional result was False",
  923. "skipped": true
  924. }
  925.  
  926. TASK [common/dyn_inventory : get proxy IP for new env] *************************************************************************************************************************************************************
  927. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:21
  928. skipping: [localhost] => {
  929. "changed": false,
  930. "skip_reason": "Conditional result was False",
  931. "skipped": true
  932. }
  933.  
  934. TASK [common/dyn_inventory : set_fact] *****************************************************************************************************************************************************************************
  935. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:26
  936. skipping: [localhost] => {
  937. "changed": false,
  938. "skip_reason": "Conditional result was False",
  939. "skipped": true
  940. }
  941.  
  942. TASK [common/dyn_inventory : get proxy IP for older non-isolated env] *********************************************************************************************************************************************
  943. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:30
  944. skipping: [localhost] => {
  945. "changed": false,
  946. "skip_reason": "Conditional result was False",
  947. "skipped": true
  948. }
  949.  
  950. TASK [common/dyn_inventory : set_fact] *****************************************************************************************************************************************************************************
  951. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:35
  952. skipping: [localhost] => {
  953. "changed": false,
  954. "skip_reason": "Conditional result was False",
  955. "skipped": true
  956. }
  957.  
  958. TASK [common/dyn_inventory : add mgmt to inventory] ****************************************************************************************************************************************************************
  959. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:39
  960. skipping: [localhost] => {
  961. "changed": false,
  962. "skip_reason": "Conditional result was False",
  963. "skipped": true
  964. }
  965.  
  966. TASK [common/dyn_inventory : add proxy to inventory] ***************************************************************************************************************************************************************
  967. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:46
  968. skipping: [localhost] => {
  969. "changed": false,
  970. "skip_reason": "Conditional result was False",
  971. "skipped": true
  972. }
  973.  
  974. TASK [common/dyn_inventory : add proxy nodes to proxy group] *******************************************************************************************************************************************************
  975. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:53
  976. skipping: [localhost] => (item=a59f9c0aadba5c-app) => {
  977. "changed": false,
  978. "item": "a59f9c0aadba5c-app",
  979. "skip_reason": "Conditional result was False",
  980. "skipped": true
  981. }
  982. skipping: [localhost] => (item=demo-debd774613f6-app1) => {
  983. "changed": false,
  984. "item": "demo-debd774613f6-app1",
  985. "skip_reason": "Conditional result was False",
  986. "skipped": true
  987. }
  988. skipping: [localhost] => (item=dvvtes-31053337b430-app1) => {
  989. "changed": false,
  990. "item": "dvvtes-31053337b430-app1",
  991. "skip_reason": "Conditional result was False",
  992. "skipped": true
  993. }
  994. skipping: [localhost] => (item=eph5-6719010c4ea1-app1) => {
  995. "changed": false,
  996. "item": "eph5-6719010c4ea1-app1",
  997. "skip_reason": "Conditional result was False",
  998. "skipped": true
  999. }
  1000. skipping: [localhost] => (item=sch901-27e7a5af8bd1-app1) => {
  1001. "changed": false,
  1002. "item": "sch901-27e7a5af8bd1-app1",
  1003. "skip_reason": "Conditional result was False",
  1004. "skipped": true
  1005. }
  1006. skipping: [localhost] => (item=vm59f76db45c3ed6-app) => {
  1007. "changed": false,
  1008. "item": "vm59f76db45c3ed6-app",
  1009. "skip_reason": "Conditional result was False",
  1010. "skipped": true
  1011. }
  1012. skipping: [localhost] => (item=zoro12-fde561ff101c-maintenance1) => {
  1013. "changed": false,
  1014. "item": "zoro12-fde561ff101c-maintenance1",
  1015. "skip_reason": "Conditional result was False",
  1016. "skipped": true
  1017. }
  1018. skipping: [localhost] => (item=zoro22-eabb7399bca5-app1) => {
  1019. "changed": false,
  1020. "item": "zoro22-eabb7399bca5-app1",
  1021. "skip_reason": "Conditional result was False",
  1022. "skipped": true
  1023. }
  1024. skipping: [localhost] => (item=zoro23-21e810c8d70c-maintenance1) => {
  1025. "changed": false,
  1026. "item": "zoro23-21e810c8d70c-maintenance1",
  1027. "skip_reason": "Conditional result was False",
  1028. "skipped": true
  1029. }
  1030. skipping: [localhost] => (item=zoro27-3a880e8ad760-maintenance1) => {
  1031. "changed": false,
  1032. "item": "zoro27-3a880e8ad760-maintenance1",
  1033. "skip_reason": "Conditional result was False",
  1034. "skipped": true
  1035. }
  1036. skipping: [localhost] => (item=zoro28-182cd97e2b3d-maintenance1) => {
  1037. "changed": false,
  1038. "item": "zoro28-182cd97e2b3d-maintenance1",
  1039. "skip_reason": "Conditional result was False",
  1040. "skipped": true
  1041. }
  1042. skipping: [localhost] => (item=zoro30-9c6eb622d694-app1) => {
  1043. "changed": false,
  1044. "item": "zoro30-9c6eb622d694-app1",
  1045. "skip_reason": "Conditional result was False",
  1046. "skipped": true
  1047. }
  1048. skipping: [localhost] => (item=cizartest1-jumphost1) => {
  1049. "changed": false,
  1050. "item": "cizartest1-jumphost1",
  1051. "skip_reason": "Conditional result was False",
  1052. "skipped": true
  1053. }
  1054. skipping: [localhost] => (item=gke-loc-ephrin1-default-pool-b5776e0e-lgsm) => {
  1055. "changed": false,
  1056. "item": "gke-loc-ephrin1-default-pool-b5776e0e-lgsm",
  1057. "skip_reason": "Conditional result was False",
  1058. "skipped": true
  1059. }
  1060. skipping: [localhost] => (item=staging-mgmt1-zabbix1) => {
  1061. "changed": false,
  1062. "item": "staging-mgmt1-zabbix1",
  1063. "skip_reason": "Conditional result was False",
  1064. "skipped": true
  1065. }
  1066. skipping: [localhost] => (item=dvvtes-31053337b430-ess1) => {
  1067. "changed": false,
  1068. "item": "dvvtes-31053337b430-ess1",
  1069. "skip_reason": "Conditional result was False",
  1070. "skipped": true
  1071. }
  1072. skipping: [localhost] => (item=dvvtes-31053337b430-nat1) => {
  1073. "changed": false,
  1074. "item": "dvvtes-31053337b430-nat1",
  1075. "skip_reason": "Conditional result was False",
  1076. "skipped": true
  1077. }
  1078. skipping: [localhost] => (item=eph5-6719010c4ea1-ess1) => {
  1079. "changed": false,
  1080. "item": "eph5-6719010c4ea1-ess1",
  1081. "skip_reason": "Conditional result was False",
  1082. "skipped": true
  1083. }
  1084. skipping: [localhost] => (item=eph5-6719010c4ea1-nat1) => {
  1085. "changed": false,
  1086. "item": "eph5-6719010c4ea1-nat1",
  1087. "skip_reason": "Conditional result was False",
  1088. "skipped": true
  1089. }
  1090. skipping: [localhost] => (item=gke-loc-cizar1-default-pool-61e81868-7dtn) => {
  1091. "changed": false,
  1092. "item": "gke-loc-cizar1-default-pool-61e81868-7dtn",
  1093. "skip_reason": "Conditional result was False",
  1094. "skipped": true
  1095. }
  1096. skipping: [localhost] => (item=gke-loc-dima1-default-pool-09671362-xb5r) => {
  1097. "changed": false,
  1098. "item": "gke-loc-dima1-default-pool-09671362-xb5r",
  1099. "skip_reason": "Conditional result was False",
  1100. "skipped": true
  1101. }
  1102. skipping: [localhost] => (item=gke-loc-scherepanov1-default-pool-45356f1a-drbt) => {
  1103. "changed": false,
  1104. "item": "gke-loc-scherepanov1-default-pool-45356f1a-drbt",
  1105. "skip_reason": "Conditional result was False",
  1106. "skipped": true
  1107. }
  1108. skipping: [localhost] => (item=loc-dima1-jenkins) => {
  1109. "changed": false,
  1110. "item": "loc-dima1-jenkins",
  1111. "skip_reason": "Conditional result was False",
  1112. "skipped": true
  1113. }
  1114. skipping: [localhost] => (item=loc-dima1-vault) => {
  1115. "changed": false,
  1116. "item": "loc-dima1-vault",
  1117. "skip_reason": "Conditional result was False",
  1118. "skipped": true
  1119. }
  1120. skipping: [localhost] => (item=loc-ephrin1-jenkins) => {
  1121. "changed": false,
  1122. "item": "loc-ephrin1-jenkins",
  1123. "skip_reason": "Conditional result was False",
  1124. "skipped": true
  1125. }
  1126. skipping: [localhost] => (item=loc-sch1-jnks) => {
  1127. "changed": false,
  1128. "item": "loc-sch1-jnks",
  1129. "skip_reason": "Conditional result was False",
  1130. "skipped": true
  1131. }
  1132. skipping: [localhost] => (item=loc-sch1-vault) => {
  1133. "changed": false,
  1134. "item": "loc-sch1-vault",
  1135. "skip_reason": "Conditional result was False",
  1136. "skipped": true
  1137. }
  1138. skipping: [localhost] => (item=staging-app1-ceph4) => {
  1139. "changed": false,
  1140. "item": "staging-app1-ceph4",
  1141. "skip_reason": "Conditional result was False",
  1142. "skipped": true
  1143. }
  1144. skipping: [localhost] => (item=staging-app1-ceph5) => {
  1145. "changed": false,
  1146. "item": "staging-app1-ceph5",
  1147. "skip_reason": "Conditional result was False",
  1148. "skipped": true
  1149. }
  1150. skipping: [localhost] => (item=staging-app1-ceph6) => {
  1151. "changed": false,
  1152. "item": "staging-app1-ceph6",
  1153. "skip_reason": "Conditional result was False",
  1154. "skipped": true
  1155. }
  1156. skipping: [localhost] => (item=staging-app1-cephadmin2) => {
  1157. "changed": false,
  1158. "item": "staging-app1-cephadmin2",
  1159. "skip_reason": "Conditional result was False",
  1160. "skipped": true
  1161. }
  1162. skipping: [localhost] => (item=staging-app1-proxy3) => {
  1163. "changed": false,
  1164. "item": "staging-app1-proxy3",
  1165. "skip_reason": "Conditional result was False",
  1166. "skipped": true
  1167. }
  1168. skipping: [localhost] => (item=staging-app1-proxy4) => {
  1169. "changed": false,
  1170. "item": "staging-app1-proxy4",
  1171. "skip_reason": "Conditional result was False",
  1172. "skipped": true
  1173. }
  1174. skipping: [localhost] => (item=staging-app1-router1) => {
  1175. "changed": false,
  1176. "item": "staging-app1-router1",
  1177. "skip_reason": "Conditional result was False",
  1178. "skipped": true
  1179. }
  1180. skipping: [localhost] => (item=staging-mgmt1-mgmt1) => {
  1181. "changed": false,
  1182. "item": "staging-mgmt1-mgmt1",
  1183. "skip_reason": "Conditional result was False",
  1184. "skipped": true
  1185. }
  1186. skipping: [localhost] => (item=staging-mgmt1-prov1) => {
  1187. "changed": false,
  1188. "item": "staging-mgmt1-prov1",
  1189. "skip_reason": "Conditional result was False",
  1190. "skipped": true
  1191. }
  1192. skipping: [localhost] => (item=a59f9c0aadba5c-ess) => {
  1193. "changed": false,
  1194. "item": "a59f9c0aadba5c-ess",
  1195. "skip_reason": "Conditional result was False",
  1196. "skipped": true
  1197. }
  1198. skipping: [localhost] => (item=staging-mgmt1-topmaster1) => {
  1199. "changed": false,
  1200. "item": "staging-mgmt1-topmaster1",
  1201. "skip_reason": "Conditional result was False",
  1202. "skipped": true
  1203. }
  1204. skipping: [localhost] => (item=demo-debd774613f6-ess1) => {
  1205. "changed": false,
  1206. "item": "demo-debd774613f6-ess1",
  1207. "skip_reason": "Conditional result was False",
  1208. "skipped": true
  1209. }
  1210. skipping: [localhost] => (item=demo-debd774613f6-nat1) => {
  1211. "changed": false,
  1212. "item": "demo-debd774613f6-nat1",
  1213. "skip_reason": "Conditional result was False",
  1214. "skipped": true
  1215. }
  1216. skipping: [localhost] => (item=jenkins1-jenkins1) => {
  1217. "changed": false,
  1218. "item": "jenkins1-jenkins1",
  1219. "skip_reason": "Conditional result was False",
  1220. "skipped": true
  1221. }
  1222. skipping: [localhost] => (item=loc-dvv1-jenkins) => {
  1223. "changed": false,
  1224. "item": "loc-dvv1-jenkins",
  1225. "skip_reason": "Conditional result was False",
  1226. "skipped": true
  1227. }
  1228. skipping: [localhost] => (item=loc-dvv1-vault1) => {
  1229. "changed": false,
  1230. "item": "loc-dvv1-vault1",
  1231. "skip_reason": "Conditional result was False",
  1232. "skipped": true
  1233. }
  1234. skipping: [localhost] => (item=loc-sin1-jenkins1) => {
  1235. "changed": false,
  1236. "item": "loc-sin1-jenkins1",
  1237. "skip_reason": "Conditional result was False",
  1238. "skipped": true
  1239. }
  1240. skipping: [localhost] => (item=sch901-27e7a5af8bd1-ess1) => {
  1241. "changed": false,
  1242. "item": "sch901-27e7a5af8bd1-ess1",
  1243. "skip_reason": "Conditional result was False",
  1244. "skipped": true
  1245. }
  1246. skipping: [localhost] => (item=sch901-27e7a5af8bd1-nat1) => {
  1247. "changed": false,
  1248. "item": "sch901-27e7a5af8bd1-nat1",
  1249. "skip_reason": "Conditional result was False",
  1250. "skipped": true
  1251. }
  1252. skipping: [localhost] => (item=staging-admin1-jumphost1) => {
  1253. "changed": false,
  1254. "item": "staging-admin1-jumphost1",
  1255. "skip_reason": "Conditional result was False",
  1256. "skipped": true
  1257. }
  1258. skipping: [localhost] => (item=staging-admin1-to-staging-app1-bridge) => {
  1259. "changed": false,
  1260. "item": "staging-admin1-to-staging-app1-bridge",
  1261. "skip_reason": "Conditional result was False",
  1262. "skipped": true
  1263. }
  1264. skipping: [localhost] => (item=staging-admin1-to-staging-mgmt1-bridge) => {
  1265. "changed": false,
  1266. "item": "staging-admin1-to-staging-mgmt1-bridge",
  1267. "skip_reason": "Conditional result was False",
  1268. "skipped": true
  1269. }
  1270. skipping: [localhost] => (item=staging-app1-nat) => {
  1271. "changed": false,
  1272. "item": "staging-app1-nat",
  1273. "skip_reason": "Conditional result was False",
  1274. "skipped": true
  1275. }
  1276. skipping: [localhost] => (item=staging-mgmt1-jenkins1) => {
  1277. "changed": false,
  1278. "item": "staging-mgmt1-jenkins1",
  1279. "skip_reason": "Conditional result was False",
  1280. "skipped": true
  1281. }
  1282. skipping: [localhost] => (item=staging-mgmt1-pupcl1) => {
  1283. "changed": false,
  1284. "item": "staging-mgmt1-pupcl1",
  1285. "skip_reason": "Conditional result was False",
  1286. "skipped": true
  1287. }
  1288. skipping: [localhost] => (item=staging-mgmt1-router1) => {
  1289. "changed": false,
  1290. "item": "staging-mgmt1-router1",
  1291. "skip_reason": "Conditional result was False",
  1292. "skipped": true
  1293. }
  1294. skipping: [localhost] => (item=vm59f76db45c3ed6-ess) => {
  1295. "changed": false,
  1296. "item": "vm59f76db45c3ed6-ess",
  1297. "skip_reason": "Conditional result was False",
  1298. "skipped": true
  1299. }
  1300. skipping: [localhost] => (item=vm59f76db45c3ed6-maintenance) => {
  1301. "changed": false,
  1302. "item": "vm59f76db45c3ed6-maintenance",
  1303. "skip_reason": "Conditional result was False",
  1304. "skipped": true
  1305. }
  1306. skipping: [localhost] => (item=vm59f76db45c3ed6-nat) => {
  1307. "changed": false,
  1308. "item": "vm59f76db45c3ed6-nat",
  1309. "skip_reason": "Conditional result was False",
  1310. "skipped": true
  1311. }
  1312. skipping: [localhost] => (item=zoro22-eabb7399bca5-ess1) => {
  1313. "changed": false,
  1314. "item": "zoro22-eabb7399bca5-ess1",
  1315. "skip_reason": "Conditional result was False",
  1316. "skipped": true
  1317. }
  1318. skipping: [localhost] => (item=zoro22-eabb7399bca5-nat1) => {
  1319. "changed": false,
  1320. "item": "zoro22-eabb7399bca5-nat1",
  1321. "skip_reason": "Conditional result was False",
  1322. "skipped": true
  1323. }
  1324. skipping: [localhost] => (item=zoro23-21e810c8d70c-nat1) => {
  1325. "changed": false,
  1326. "item": "zoro23-21e810c8d70c-nat1",
  1327. "skip_reason": "Conditional result was False",
  1328. "skipped": true
  1329. }
  1330. skipping: [localhost] => (item=zoro27-3a880e8ad760-nat1) => {
  1331. "changed": false,
  1332. "item": "zoro27-3a880e8ad760-nat1",
  1333. "skip_reason": "Conditional result was False",
  1334. "skipped": true
  1335. }
  1336. skipping: [localhost] => (item=zoro28-182cd97e2b3d-nat1) => {
  1337. "changed": false,
  1338. "item": "zoro28-182cd97e2b3d-nat1",
  1339. "skip_reason": "Conditional result was False",
  1340. "skipped": true
  1341. }
  1342. skipping: [localhost] => (item=zoro30-9c6eb622d694-ess1) => {
  1343. "changed": false,
  1344. "item": "zoro30-9c6eb622d694-ess1",
  1345. "skip_reason": "Conditional result was False",
  1346. "skipped": true
  1347. }
  1348. skipping: [localhost] => (item=zoro30-9c6eb622d694-nat1) => {
  1349. "changed": false,
  1350. "item": "zoro30-9c6eb622d694-nat1",
  1351. "skip_reason": "Conditional result was False",
  1352. "skipped": true
  1353. }
  1354. skipping: [localhost] => (item=mgmt-node) => {
  1355. "changed": false,
  1356. "item": "mgmt-node",
  1357. "skip_reason": "Conditional result was False",
  1358. "skipped": true
  1359. }
  1360.  
  1361. TASK [common/dyn_inventory : add proxy nodes to proxy group for non-isolated env] **********************************************************************************************************************************
  1362. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:61
  1363. skipping: [localhost] => (item=a59f9c0aadba5c-app) => {
  1364. "changed": false,
  1365. "item": "a59f9c0aadba5c-app",
  1366. "skip_reason": "Conditional result was False",
  1367. "skipped": true
  1368. }
  1369. skipping: [localhost] => (item=demo-debd774613f6-app1) => {
  1370. "changed": false,
  1371. "item": "demo-debd774613f6-app1",
  1372. "skip_reason": "Conditional result was False",
  1373. "skipped": true
  1374. }
  1375. skipping: [localhost] => (item=dvvtes-31053337b430-app1) => {
  1376. "changed": false,
  1377. "item": "dvvtes-31053337b430-app1",
  1378. "skip_reason": "Conditional result was False",
  1379. "skipped": true
  1380. }
  1381. skipping: [localhost] => (item=eph5-6719010c4ea1-app1) => {
  1382. "changed": false,
  1383. "item": "eph5-6719010c4ea1-app1",
  1384. "skip_reason": "Conditional result was False",
  1385. "skipped": true
  1386. }
  1387. skipping: [localhost] => (item=sch901-27e7a5af8bd1-app1) => {
  1388. "changed": false,
  1389. "item": "sch901-27e7a5af8bd1-app1",
  1390. "skip_reason": "Conditional result was False",
  1391. "skipped": true
  1392. }
  1393. skipping: [localhost] => (item=vm59f76db45c3ed6-app) => {
  1394. "changed": false,
  1395. "item": "vm59f76db45c3ed6-app",
  1396. "skip_reason": "Conditional result was False",
  1397. "skipped": true
  1398. }
  1399. skipping: [localhost] => (item=zoro12-fde561ff101c-maintenance1) => {
  1400. "changed": false,
  1401. "item": "zoro12-fde561ff101c-maintenance1",
  1402. "skip_reason": "Conditional result was False",
  1403. "skipped": true
  1404. }
  1405. skipping: [localhost] => (item=zoro22-eabb7399bca5-app1) => {
  1406. "changed": false,
  1407. "item": "zoro22-eabb7399bca5-app1",
  1408. "skip_reason": "Conditional result was False",
  1409. "skipped": true
  1410. }
  1411. skipping: [localhost] => (item=zoro23-21e810c8d70c-maintenance1) => {
  1412. "changed": false,
  1413. "item": "zoro23-21e810c8d70c-maintenance1",
  1414. "skip_reason": "Conditional result was False",
  1415. "skipped": true
  1416. }
  1417. skipping: [localhost] => (item=zoro27-3a880e8ad760-maintenance1) => {
  1418. "changed": false,
  1419. "item": "zoro27-3a880e8ad760-maintenance1",
  1420. "skip_reason": "Conditional result was False",
  1421. "skipped": true
  1422. }
  1423. skipping: [localhost] => (item=zoro28-182cd97e2b3d-maintenance1) => {
  1424. "changed": false,
  1425. "item": "zoro28-182cd97e2b3d-maintenance1",
  1426. "skip_reason": "Conditional result was False",
  1427. "skipped": true
  1428. }
  1429. skipping: [localhost] => (item=zoro30-9c6eb622d694-app1) => {
  1430. "changed": false,
  1431. "item": "zoro30-9c6eb622d694-app1",
  1432. "skip_reason": "Conditional result was False",
  1433. "skipped": true
  1434. }
  1435. skipping: [localhost] => (item=cizartest1-jumphost1) => {
  1436. "changed": false,
  1437. "item": "cizartest1-jumphost1",
  1438. "skip_reason": "Conditional result was False",
  1439. "skipped": true
  1440. }
  1441. skipping: [localhost] => (item=gke-loc-ephrin1-default-pool-b5776e0e-lgsm) => {
  1442. "changed": false,
  1443. "item": "gke-loc-ephrin1-default-pool-b5776e0e-lgsm",
  1444. "skip_reason": "Conditional result was False",
  1445. "skipped": true
  1446. }
  1447. skipping: [localhost] => (item=staging-mgmt1-zabbix1) => {
  1448. "changed": false,
  1449. "item": "staging-mgmt1-zabbix1",
  1450. "skip_reason": "Conditional result was False",
  1451. "skipped": true
  1452. }
  1453. skipping: [localhost] => (item=dvvtes-31053337b430-ess1) => {
  1454. "changed": false,
  1455. "item": "dvvtes-31053337b430-ess1",
  1456. "skip_reason": "Conditional result was False",
  1457. "skipped": true
  1458. }
  1459. skipping: [localhost] => (item=dvvtes-31053337b430-nat1) => {
  1460. "changed": false,
  1461. "item": "dvvtes-31053337b430-nat1",
  1462. "skip_reason": "Conditional result was False",
  1463. "skipped": true
  1464. }
  1465. skipping: [localhost] => (item=eph5-6719010c4ea1-ess1) => {
  1466. "changed": false,
  1467. "item": "eph5-6719010c4ea1-ess1",
  1468. "skip_reason": "Conditional result was False",
  1469. "skipped": true
  1470. }
  1471. skipping: [localhost] => (item=eph5-6719010c4ea1-nat1) => {
  1472. "changed": false,
  1473. "item": "eph5-6719010c4ea1-nat1",
  1474. "skip_reason": "Conditional result was False",
  1475. "skipped": true
  1476. }
  1477. skipping: [localhost] => (item=gke-loc-cizar1-default-pool-61e81868-7dtn) => {
  1478. "changed": false,
  1479. "item": "gke-loc-cizar1-default-pool-61e81868-7dtn",
  1480. "skip_reason": "Conditional result was False",
  1481. "skipped": true
  1482. }
  1483. skipping: [localhost] => (item=gke-loc-dima1-default-pool-09671362-xb5r) => {
  1484. "changed": false,
  1485. "item": "gke-loc-dima1-default-pool-09671362-xb5r",
  1486. "skip_reason": "Conditional result was False",
  1487. "skipped": true
  1488. }
  1489. skipping: [localhost] => (item=gke-loc-scherepanov1-default-pool-45356f1a-drbt) => {
  1490. "changed": false,
  1491. "item": "gke-loc-scherepanov1-default-pool-45356f1a-drbt",
  1492. "skip_reason": "Conditional result was False",
  1493. "skipped": true
  1494. }
  1495. skipping: [localhost] => (item=loc-dima1-jenkins) => {
  1496. "changed": false,
  1497. "item": "loc-dima1-jenkins",
  1498. "skip_reason": "Conditional result was False",
  1499. "skipped": true
  1500. }
  1501. skipping: [localhost] => (item=loc-dima1-vault) => {
  1502. "changed": false,
  1503. "item": "loc-dima1-vault",
  1504. "skip_reason": "Conditional result was False",
  1505. "skipped": true
  1506. }
  1507. skipping: [localhost] => (item=loc-sch1-vault) => {
  1508. "changed": false,
  1509. "item": "loc-sch1-vault",
  1510. "skip_reason": "Conditional result was False",
  1511. "skipped": true
  1512. }
  1513. skipping: [localhost] => (item=loc-sch1-jnks) => {
  1514. "changed": false,
  1515. "item": "loc-sch1-jnks",
  1516. "skip_reason": "Conditional result was False",
  1517. "skipped": true
  1518. }
  1519. skipping: [localhost] => (item=loc-ephrin1-jenkins) => {
  1520. "changed": false,
  1521. "item": "loc-ephrin1-jenkins",
  1522. "skip_reason": "Conditional result was False",
  1523. "skipped": true
  1524. }
  1525. skipping: [localhost] => (item=staging-app1-ceph4) => {
  1526. "changed": false,
  1527. "item": "staging-app1-ceph4",
  1528. "skip_reason": "Conditional result was False",
  1529. "skipped": true
  1530. }
  1531. skipping: [localhost] => (item=staging-app1-ceph6) => {
  1532. "changed": false,
  1533. "item": "staging-app1-ceph6",
  1534. "skip_reason": "Conditional result was False",
  1535. "skipped": true
  1536. }
  1537. skipping: [localhost] => (item=staging-app1-ceph5) => {
  1538. "changed": false,
  1539. "item": "staging-app1-ceph5",
  1540. "skip_reason": "Conditional result was False",
  1541. "skipped": true
  1542. }
  1543. skipping: [localhost] => (item=staging-app1-cephadmin2) => {
  1544. "changed": false,
  1545. "item": "staging-app1-cephadmin2",
  1546. "skip_reason": "Conditional result was False",
  1547. "skipped": true
  1548. }
  1549. skipping: [localhost] => (item=staging-app1-proxy3) => {
  1550. "changed": false,
  1551. "item": "staging-app1-proxy3",
  1552. "skip_reason": "Conditional result was False",
  1553. "skipped": true
  1554. }
  1555. skipping: [localhost] => (item=staging-app1-proxy4) => {
  1556. "changed": false,
  1557. "item": "staging-app1-proxy4",
  1558. "skip_reason": "Conditional result was False",
  1559. "skipped": true
  1560. }
  1561. skipping: [localhost] => (item=staging-app1-router1) => {
  1562. "changed": false,
  1563. "item": "staging-app1-router1",
  1564. "skip_reason": "Conditional result was False",
  1565. "skipped": true
  1566. }
  1567. skipping: [localhost] => (item=staging-mgmt1-mgmt1) => {
  1568. "changed": false,
  1569. "item": "staging-mgmt1-mgmt1",
  1570. "skip_reason": "Conditional result was False",
  1571. "skipped": true
  1572. }
  1573. skipping: [localhost] => (item=staging-mgmt1-prov1) => {
  1574. "changed": false,
  1575. "item": "staging-mgmt1-prov1",
  1576. "skip_reason": "Conditional result was False",
  1577. "skipped": true
  1578. }
  1579. skipping: [localhost] => (item=staging-mgmt1-topmaster1) => {
  1580. "changed": false,
  1581. "item": "staging-mgmt1-topmaster1",
  1582. "skip_reason": "Conditional result was False",
  1583. "skipped": true
  1584. }
  1585. skipping: [localhost] => (item=a59f9c0aadba5c-ess) => {
  1586. "changed": false,
  1587. "item": "a59f9c0aadba5c-ess",
  1588. "skip_reason": "Conditional result was False",
  1589. "skipped": true
  1590. }
  1591. skipping: [localhost] => (item=demo-debd774613f6-ess1) => {
  1592. "changed": false,
  1593. "item": "demo-debd774613f6-ess1",
  1594. "skip_reason": "Conditional result was False",
  1595. "skipped": true
  1596. }
  1597. skipping: [localhost] => (item=demo-debd774613f6-nat1) => {
  1598. "changed": false,
  1599. "item": "demo-debd774613f6-nat1",
  1600. "skip_reason": "Conditional result was False",
  1601. "skipped": true
  1602. }
  1603. skipping: [localhost] => (item=jenkins1-jenkins1) => {
  1604. "changed": false,
  1605. "item": "jenkins1-jenkins1",
  1606. "skip_reason": "Conditional result was False",
  1607. "skipped": true
  1608. }
  1609. skipping: [localhost] => (item=loc-dvv1-jenkins) => {
  1610. "changed": false,
  1611. "item": "loc-dvv1-jenkins",
  1612. "skip_reason": "Conditional result was False",
  1613. "skipped": true
  1614. }
  1615. skipping: [localhost] => (item=loc-dvv1-vault1) => {
  1616. "changed": false,
  1617. "item": "loc-dvv1-vault1",
  1618. "skip_reason": "Conditional result was False",
  1619. "skipped": true
  1620. }
  1621. skipping: [localhost] => (item=loc-sin1-jenkins1) => {
  1622. "changed": false,
  1623. "item": "loc-sin1-jenkins1",
  1624. "skip_reason": "Conditional result was False",
  1625. "skipped": true
  1626. }
  1627. skipping: [localhost] => (item=sch901-27e7a5af8bd1-ess1) => {
  1628. "changed": false,
  1629. "item": "sch901-27e7a5af8bd1-ess1",
  1630. "skip_reason": "Conditional result was False",
  1631. "skipped": true
  1632. }
  1633. skipping: [localhost] => (item=sch901-27e7a5af8bd1-nat1) => {
  1634. "changed": false,
  1635. "item": "sch901-27e7a5af8bd1-nat1",
  1636. "skip_reason": "Conditional result was False",
  1637. "skipped": true
  1638. }
  1639. skipping: [localhost] => (item=staging-admin1-jumphost1) => {
  1640. "changed": false,
  1641. "item": "staging-admin1-jumphost1",
  1642. "skip_reason": "Conditional result was False",
  1643. "skipped": true
  1644. }
  1645. skipping: [localhost] => (item=staging-admin1-to-staging-app1-bridge) => {
  1646. "changed": false,
  1647. "item": "staging-admin1-to-staging-app1-bridge",
  1648. "skip_reason": "Conditional result was False",
  1649. "skipped": true
  1650. }
  1651. skipping: [localhost] => (item=staging-admin1-to-staging-mgmt1-bridge) => {
  1652. "changed": false,
  1653. "item": "staging-admin1-to-staging-mgmt1-bridge",
  1654. "skip_reason": "Conditional result was False",
  1655. "skipped": true
  1656. }
  1657. skipping: [localhost] => (item=staging-app1-nat) => {
  1658. "changed": false,
  1659. "item": "staging-app1-nat",
  1660. "skip_reason": "Conditional result was False",
  1661. "skipped": true
  1662. }
  1663. skipping: [localhost] => (item=staging-mgmt1-jenkins1) => {
  1664. "changed": false,
  1665. "item": "staging-mgmt1-jenkins1",
  1666. "skip_reason": "Conditional result was False",
  1667. "skipped": true
  1668. }
  1669. skipping: [localhost] => (item=staging-mgmt1-pupcl1) => {
  1670. "changed": false,
  1671. "item": "staging-mgmt1-pupcl1",
  1672. "skip_reason": "Conditional result was False",
  1673. "skipped": true
  1674. }
  1675. skipping: [localhost] => (item=staging-mgmt1-router1) => {
  1676. "changed": false,
  1677. "item": "staging-mgmt1-router1",
  1678. "skip_reason": "Conditional result was False",
  1679. "skipped": true
  1680. }
  1681. skipping: [localhost] => (item=vm59f76db45c3ed6-ess) => {
  1682. "changed": false,
  1683. "item": "vm59f76db45c3ed6-ess",
  1684. "skip_reason": "Conditional result was False",
  1685. "skipped": true
  1686. }
  1687. skipping: [localhost] => (item=vm59f76db45c3ed6-maintenance) => {
  1688. "changed": false,
  1689. "item": "vm59f76db45c3ed6-maintenance",
  1690. "skip_reason": "Conditional result was False",
  1691. "skipped": true
  1692. }
  1693. skipping: [localhost] => (item=vm59f76db45c3ed6-nat) => {
  1694. "changed": false,
  1695. "item": "vm59f76db45c3ed6-nat",
  1696. "skip_reason": "Conditional result was False",
  1697. "skipped": true
  1698. }
  1699. skipping: [localhost] => (item=zoro22-eabb7399bca5-ess1) => {
  1700. "changed": false,
  1701. "item": "zoro22-eabb7399bca5-ess1",
  1702. "skip_reason": "Conditional result was False",
  1703. "skipped": true
  1704. }
  1705. skipping: [localhost] => (item=zoro22-eabb7399bca5-nat1) => {
  1706. "changed": false,
  1707. "item": "zoro22-eabb7399bca5-nat1",
  1708. "skip_reason": "Conditional result was False",
  1709. "skipped": true
  1710. }
  1711. skipping: [localhost] => (item=zoro23-21e810c8d70c-nat1) => {
  1712. "changed": false,
  1713. "item": "zoro23-21e810c8d70c-nat1",
  1714. "skip_reason": "Conditional result was False",
  1715. "skipped": true
  1716. }
  1717. skipping: [localhost] => (item=zoro27-3a880e8ad760-nat1) => {
  1718. "changed": false,
  1719. "item": "zoro27-3a880e8ad760-nat1",
  1720. "skip_reason": "Conditional result was False",
  1721. "skipped": true
  1722. }
  1723. skipping: [localhost] => (item=zoro28-182cd97e2b3d-nat1) => {
  1724. "changed": false,
  1725. "item": "zoro28-182cd97e2b3d-nat1",
  1726. "skip_reason": "Conditional result was False",
  1727. "skipped": true
  1728. }
  1729. skipping: [localhost] => (item=zoro30-9c6eb622d694-ess1) => {
  1730. "changed": false,
  1731. "item": "zoro30-9c6eb622d694-ess1",
  1732. "skip_reason": "Conditional result was False",
  1733. "skipped": true
  1734. }
  1735. skipping: [localhost] => (item=zoro30-9c6eb622d694-nat1) => {
  1736. "changed": false,
  1737. "item": "zoro30-9c6eb622d694-nat1",
  1738. "skip_reason": "Conditional result was False",
  1739. "skipped": true
  1740. }
  1741. skipping: [localhost] => (item=mgmt-node) => {
  1742. "changed": false,
  1743. "item": "mgmt-node",
  1744. "skip_reason": "Conditional result was False",
  1745. "skipped": true
  1746. }
  1747.  
  1748. TASK [common/dyn_inventory : get domain name] **********************************************************************************************************************************************************************
  1749. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:154
  1750. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  1751. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  1752. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  1753. changed: [localhost] => {
  1754. "changed": true,
  1755. "cmd": "gcloud dns managed-zones describe oro-cloud-development | awk /^dnsName:/'{print substr($2,1,length($2)-1)}'",
  1756. "delta": "0:00:00.667198",
  1757. "end": "2017-11-02 14:41:12.759607",
  1758. "invocation": {
  1759. "module_args": {
  1760. "_raw_params": "gcloud dns managed-zones describe oro-cloud-development | awk /^dnsName:/'{print substr($2,1,length($2)-1)}'",
  1761. "_uses_shell": true,
  1762. "chdir": null,
  1763. "creates": null,
  1764. "executable": null,
  1765. "removes": null,
  1766. "warn": true
  1767. }
  1768. },
  1769. "rc": 0,
  1770. "start": "2017-11-02 14:41:12.092409",
  1771. "stderr": "",
  1772. "stderr_lines": [],
  1773. "stdout": "cloud-development.oroinc.com",
  1774. "stdout_lines": [
  1775. "cloud-development.oroinc.com"
  1776. ]
  1777. }
  1778.  
  1779. TASK [common/dyn_inventory : set_fact] *****************************************************************************************************************************************************************************
  1780. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:160
  1781. ok: [localhost] => {
  1782. "ansible_facts": {
  1783. "domain": "cloud-development.oroinc.com"
  1784. },
  1785. "changed": false
  1786. }
  1787.  
  1788. TASK [common/dyn_inventory : set network name for isolated cluster] ************************************************************************************************************************************************
  1789. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:164
  1790. skipping: [localhost] => {
  1791. "changed": false,
  1792. "skip_reason": "Conditional result was False",
  1793. "skipped": true
  1794. }
  1795.  
  1796. TASK [common/dyn_inventory : set network name for public cluster] **************************************************************************************************************************************************
  1797. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:169
  1798. ok: [localhost] => {
  1799. "ansible_facts": {
  1800. "cluster_network_name": "default"
  1801. },
  1802. "changed": false
  1803. }
  1804.  
  1805. TASK [common/dyn_inventory : find pre-existing networks for cluster] ***********************************************************************************************************************************************
  1806. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:174
  1807. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  1808. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  1809. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  1810. changed: [localhost] => {
  1811. "changed": true,
  1812. "cmd": "~/google-cloud-sdk/bin/gcloud compute networks subnets list --filter NAME=default-subnet-main 2>/dev/null | awk '{ print $4 }' | tail -n1",
  1813. "delta": "0:00:00.786327",
  1814. "end": "2017-11-02 14:41:13.670340",
  1815. "invocation": {
  1816. "module_args": {
  1817. "_raw_params": "~/google-cloud-sdk/bin/gcloud compute networks subnets list --filter NAME=default-subnet-main 2>/dev/null | awk '{ print $4 }' | tail -n1",
  1818. "_uses_shell": true,
  1819. "chdir": null,
  1820. "creates": null,
  1821. "executable": null,
  1822. "removes": null,
  1823. "warn": true
  1824. }
  1825. },
  1826. "rc": 0,
  1827. "start": "2017-11-02 14:41:12.884013",
  1828. "stderr": "",
  1829. "stderr_lines": [],
  1830. "stdout": "",
  1831. "stdout_lines": []
  1832. }
  1833.  
  1834. TASK [common/dyn_inventory : register subnet for nodes] ************************************************************************************************************************************************************
  1835. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:181
  1836. skipping: [localhost] => {
  1837. "changed": false,
  1838. "skip_reason": "Conditional result was False",
  1839. "skipped": true
  1840. }
  1841.  
  1842. TASK [common/dyn_inventory : extract second octet from node subnet] ************************************************************************************************************************************************
  1843. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:186
  1844. skipping: [localhost] => {
  1845. "changed": false,
  1846. "skip_reason": "Conditional result was False",
  1847. "skipped": true
  1848. }
  1849.  
  1850. TASK [common/dyn_inventory : define a subnet for kubernetes] *******************************************************************************************************************************************************
  1851. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:191
  1852. skipping: [localhost] => {
  1853. "changed": false,
  1854. "skip_reason": "Conditional result was False",
  1855. "skipped": true
  1856. }
  1857.  
  1858. TASK [common/dyn_inventory : define an aggregate subnet for cluster] ***********************************************************************************************************************************************
  1859. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:195
  1860. skipping: [localhost] => {
  1861. "changed": false,
  1862. "skip_reason": "Conditional result was False",
  1863. "skipped": true
  1864. }
  1865.  
  1866. TASK [common/dyn_inventory : get vpn ip for cluster] ***************************************************************************************************************************************************************
  1867. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:199
  1868. skipping: [localhost] => {
  1869. "changed": false,
  1870. "skip_reason": "Conditional result was False",
  1871. "skipped": true
  1872. }
  1873.  
  1874. TASK [common/dyn_inventory : register vpn gw] **********************************************************************************************************************************************************************
  1875. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:204
  1876. skipping: [localhost] => {
  1877. "changed": false,
  1878. "skip_reason": "Conditional result was False",
  1879. "skipped": true
  1880. }
  1881. META: ran handlers
  1882. META: ran handlers
  1883. Sudo password:
  1884.  
  1885. PLAY [add localnode to gke cluster] ********************************************************************************************************************************************************************************
  1886.  
  1887. TASK [Gathering Facts] *********************************************************************************************************************************************************************************************
  1888. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/system/setup.py
  1889. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  1890. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  1891. ok: [localhost]
  1892. META: ran handlers
  1893.  
  1894. TASK [common/kubernetes_authorization : Check if google-cloud-sdk folder exists] ***********************************************************************************************************************************
  1895. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:3
  1896. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  1897. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  1898. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  1899. ok: [localhost] => {
  1900. "changed": false,
  1901. "invocation": {
  1902. "module_args": {
  1903. "checksum_algorithm": "sha1",
  1904. "follow": false,
  1905. "get_attributes": true,
  1906. "get_checksum": true,
  1907. "get_md5": true,
  1908. "get_mime": true,
  1909. "path": "/home/cizar/google-cloud-sdk"
  1910. }
  1911. },
  1912. "stat": {
  1913. "atime": 1509617455.3895943,
  1914. "attr_flags": "e",
  1915. "attributes": [
  1916. "extents"
  1917. ],
  1918. "block_size": 4096,
  1919. "blocks": 8,
  1920. "charset": "binary",
  1921. "ctime": 1509615178.4651768,
  1922. "dev": 2066,
  1923. "device_type": 0,
  1924. "executable": true,
  1925. "exists": true,
  1926. "gid": 1001,
  1927. "gr_name": "cizar",
  1928. "inode": 3368822,
  1929. "isblk": false,
  1930. "ischr": false,
  1931. "isdir": true,
  1932. "isfifo": false,
  1933. "isgid": false,
  1934. "islnk": false,
  1935. "isreg": false,
  1936. "issock": false,
  1937. "isuid": false,
  1938. "mimetype": "inode/directory",
  1939. "mode": "0755",
  1940. "mtime": 1509615173.257111,
  1941. "nlink": 9,
  1942. "path": "/home/cizar/google-cloud-sdk",
  1943. "pw_name": "cizar",
  1944. "readable": true,
  1945. "rgrp": true,
  1946. "roth": true,
  1947. "rusr": true,
  1948. "size": 4096,
  1949. "uid": 1001,
  1950. "version": "18446744073617112838",
  1951. "wgrp": false,
  1952. "woth": false,
  1953. "writeable": true,
  1954. "wusr": true,
  1955. "xgrp": true,
  1956. "xoth": true,
  1957. "xusr": true
  1958. }
  1959. }
  1960.  
  1961. TASK [common/kubernetes_authorization : Download and install gcloud sdk] *******************************************************************************************************************************************
  1962. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:8
  1963. skipping: [localhost] => {
  1964. "changed": false,
  1965. "skip_reason": "Conditional result was False",
  1966. "skipped": true
  1967. }
  1968.  
  1969. TASK [common/kubernetes_authorization : add google cloud sdk to path system-wide] **********************************************************************************************************************************
  1970. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:14
  1971. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/lineinfile.py
  1972. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  1973. <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'
  1974. ok: [localhost] => {
  1975. "backup": "",
  1976. "changed": false,
  1977. "diff": [
  1978. {
  1979. "after": "",
  1980. "after_header": "/etc/profile.d/999-gcloud.sh (content)",
  1981. "before": "",
  1982. "before_header": "/etc/profile.d/999-gcloud.sh (content)"
  1983. },
  1984. {
  1985. "after_header": "/etc/profile.d/999-gcloud.sh (file attributes)",
  1986. "before_header": "/etc/profile.d/999-gcloud.sh (file attributes)"
  1987. }
  1988. ],
  1989. "invocation": {
  1990. "module_args": {
  1991. "attributes": null,
  1992. "backrefs": false,
  1993. "backup": false,
  1994. "content": null,
  1995. "create": true,
  1996. "delimiter": null,
  1997. "dest": "/etc/profile.d/999-gcloud.sh",
  1998. "directory_mode": null,
  1999. "follow": false,
  2000. "force": null,
  2001. "group": null,
  2002. "insertafter": null,
  2003. "insertbefore": null,
  2004. "line": "export PATH=$PATH:~/google-cloud-sdk/bin",
  2005. "mode": null,
  2006. "owner": null,
  2007. "path": "/etc/profile.d/999-gcloud.sh",
  2008. "regexp": null,
  2009. "remote_src": null,
  2010. "selevel": null,
  2011. "serole": null,
  2012. "setype": null,
  2013. "seuser": null,
  2014. "src": null,
  2015. "state": "present",
  2016. "unsafe_writes": null,
  2017. "validate": null
  2018. }
  2019. },
  2020. "msg": ""
  2021. }
  2022.  
  2023. TASK [common/kubernetes_authorization : Get cluster credentials] ***************************************************************************************************************************************************
  2024. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:22
  2025. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  2026. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2027. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  2028. changed: [localhost] => {
  2029. "changed": true,
  2030. "cmd": "/home/cizar/google-cloud-sdk/bin/gcloud container clusters get-credentials loc-cizar1",
  2031. "delta": "0:00:00.841135",
  2032. "end": "2017-11-02 14:41:22.340836",
  2033. "invocation": {
  2034. "module_args": {
  2035. "_raw_params": "/home/cizar/google-cloud-sdk/bin/gcloud container clusters get-credentials loc-cizar1",
  2036. "_uses_shell": true,
  2037. "chdir": null,
  2038. "creates": null,
  2039. "executable": null,
  2040. "removes": null,
  2041. "warn": true
  2042. }
  2043. },
  2044. "rc": 0,
  2045. "start": "2017-11-02 14:41:21.499701",
  2046. "stderr": "Fetching cluster endpoint and auth data.\nkubeconfig entry generated for loc-cizar1.",
  2047. "stderr_lines": [
  2048. "Fetching cluster endpoint and auth data.",
  2049. "kubeconfig entry generated for loc-cizar1."
  2050. ],
  2051. "stdout": "",
  2052. "stdout_lines": []
  2053. }
  2054.  
  2055. TASK [common/kubernetes_authorization : install kubectl binary for user] *******************************************************************************************************************************************
  2056. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:32
  2057. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  2058. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2059. <127.0.0.1> EXEC /bin/sh -c 'CLOUDSDK_CORE_DISABLE_PROMPTS=1 GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  2060. changed: [localhost] => {
  2061. "changed": true,
  2062. "cmd": "/home/cizar/google-cloud-sdk/bin/gcloud components update kubectl",
  2063. "delta": "0:00:00.561805",
  2064. "end": "2017-11-02 14:41:22.983498",
  2065. "invocation": {
  2066. "module_args": {
  2067. "_raw_params": "/home/cizar/google-cloud-sdk/bin/gcloud components update kubectl",
  2068. "_uses_shell": true,
  2069. "chdir": null,
  2070. "creates": null,
  2071. "executable": null,
  2072. "removes": null,
  2073. "warn": true
  2074. }
  2075. },
  2076. "rc": 0,
  2077. "start": "2017-11-02 14:41:22.421693",
  2078. "stderr": "\nAll components are up to date.",
  2079. "stderr_lines": [
  2080. "",
  2081. "All components are up to date."
  2082. ],
  2083. "stdout": "",
  2084. "stdout_lines": []
  2085. }
  2086.  
  2087. TASK [common/kubernetes_authorization : Cleanup old gcloud installation in root's home on non-mac] *****************************************************************************************************************
  2088. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:38
  2089. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
  2090. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2091. <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'
  2092. changed: [localhost] => {
  2093. "changed": true,
  2094. "diff": {
  2095. "after": {
  2096. "path": "/root/google-cloud-sdk",
  2097. "state": "absent"
  2098. },
  2099. "before": {
  2100. "path": "/root/google-cloud-sdk",
  2101. "state": "directory"
  2102. }
  2103. },
  2104. "invocation": {
  2105. "module_args": {
  2106. "attributes": null,
  2107. "backup": null,
  2108. "content": null,
  2109. "delimiter": null,
  2110. "diff_peek": null,
  2111. "directory_mode": null,
  2112. "follow": false,
  2113. "force": false,
  2114. "group": null,
  2115. "mode": null,
  2116. "original_basename": null,
  2117. "owner": null,
  2118. "path": "/root/google-cloud-sdk",
  2119. "recurse": false,
  2120. "regexp": null,
  2121. "remote_src": null,
  2122. "selevel": null,
  2123. "serole": null,
  2124. "setype": null,
  2125. "seuser": null,
  2126. "src": null,
  2127. "state": "absent",
  2128. "unsafe_writes": null,
  2129. "validate": null
  2130. }
  2131. },
  2132. "path": "/root/google-cloud-sdk",
  2133. "state": "absent"
  2134. }
  2135.  
  2136. TASK [common/kubernetes_authorization : Cleanup old gcloud installation in root's home on mac] *********************************************************************************************************************
  2137. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:45
  2138. skipping: [localhost] => {
  2139. "changed": false,
  2140. "skip_reason": "Conditional result was False",
  2141. "skipped": true
  2142. }
  2143.  
  2144. TASK [common/kubernetes_authorization : Copy gcloud installation to root's home on non-mac] ************************************************************************************************************************
  2145. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:52
  2146. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  2147. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2148. <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'
  2149. changed: [localhost] => {
  2150. "changed": true,
  2151. "cmd": "cp -Rf /home/cizar/google-cloud-sdk /root/",
  2152. "delta": "0:00:03.155962",
  2153. "end": "2017-11-02 14:41:26.671149",
  2154. "invocation": {
  2155. "module_args": {
  2156. "_raw_params": "cp -Rf /home/cizar/google-cloud-sdk /root/",
  2157. "_uses_shell": true,
  2158. "chdir": null,
  2159. "creates": null,
  2160. "executable": null,
  2161. "removes": null,
  2162. "warn": true
  2163. }
  2164. },
  2165. "rc": 0,
  2166. "start": "2017-11-02 14:41:23.515187",
  2167. "stderr": "",
  2168. "stderr_lines": [],
  2169. "stdout": "",
  2170. "stdout_lines": []
  2171. }
  2172.  
  2173. TASK [common/kubernetes_authorization : Copy gcloud installation to root's home on mac] ****************************************************************************************************************************
  2174. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:58
  2175. skipping: [localhost] => {
  2176. "changed": false,
  2177. "skip_reason": "Conditional result was False",
  2178. "skipped": true
  2179. }
  2180.  
  2181. TASK [common/kubernetes_authorization : install kubectl binary system-wide] ****************************************************************************************************************************************
  2182. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:64
  2183. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  2184. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2185. <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'
  2186. changed: [localhost] => {
  2187. "changed": true,
  2188. "cmd": "cp -f /home/cizar/google-cloud-sdk/bin/kubectl /usr/local/bin/",
  2189. "delta": "0:00:00.031321",
  2190. "end": "2017-11-02 14:41:26.811213",
  2191. "invocation": {
  2192. "module_args": {
  2193. "_raw_params": "cp -f /home/cizar/google-cloud-sdk/bin/kubectl /usr/local/bin/",
  2194. "_uses_shell": true,
  2195. "chdir": null,
  2196. "creates": null,
  2197. "executable": null,
  2198. "removes": null,
  2199. "warn": true
  2200. }
  2201. },
  2202. "rc": 0,
  2203. "start": "2017-11-02 14:41:26.779892",
  2204. "stderr": "",
  2205. "stderr_lines": [],
  2206. "stdout": "",
  2207. "stdout_lines": []
  2208. }
  2209.  
  2210. TASK [common/kubernetes_authorization : add GOOGLE_APPLICATION_CREDENTIALS to profile] *****************************************************************************************************************************
  2211. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:68
  2212. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/lineinfile.py
  2213. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2214. <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'
  2215. ok: [localhost] => {
  2216. "backup": "",
  2217. "changed": false,
  2218. "diff": [
  2219. {
  2220. "after": "",
  2221. "after_header": "/etc/profile.d/999-gcloud.sh (content)",
  2222. "before": "",
  2223. "before_header": "/etc/profile.d/999-gcloud.sh (content)"
  2224. },
  2225. {
  2226. "after_header": "/etc/profile.d/999-gcloud.sh (file attributes)",
  2227. "before_header": "/etc/profile.d/999-gcloud.sh (file attributes)"
  2228. }
  2229. ],
  2230. "invocation": {
  2231. "module_args": {
  2232. "attributes": null,
  2233. "backrefs": false,
  2234. "backup": false,
  2235. "content": null,
  2236. "create": true,
  2237. "delimiter": null,
  2238. "dest": "/etc/profile.d/999-gcloud.sh",
  2239. "directory_mode": null,
  2240. "follow": false,
  2241. "force": null,
  2242. "group": null,
  2243. "insertafter": null,
  2244. "insertbefore": null,
  2245. "line": "export GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json",
  2246. "mode": null,
  2247. "owner": null,
  2248. "path": "/etc/profile.d/999-gcloud.sh",
  2249. "regexp": null,
  2250. "remote_src": null,
  2251. "selevel": null,
  2252. "serole": null,
  2253. "setype": null,
  2254. "seuser": null,
  2255. "src": null,
  2256. "state": "present",
  2257. "unsafe_writes": null,
  2258. "validate": null
  2259. }
  2260. },
  2261. "msg": ""
  2262. }
  2263.  
  2264. TASK [common/kubernetes_authorization : Copy gcloud config to root's home on non-mac] ******************************************************************************************************************************
  2265. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:76
  2266. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  2267. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2268. <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'
  2269. changed: [localhost] => {
  2270. "changed": true,
  2271. "cmd": "cp -Rf /home/cizar/.config /root/",
  2272. "delta": "0:01:13.756209",
  2273. "end": "2017-11-02 14:42:40.740582",
  2274. "invocation": {
  2275. "module_args": {
  2276. "_raw_params": "cp -Rf /home/cizar/.config /root/",
  2277. "_uses_shell": true,
  2278. "chdir": null,
  2279. "creates": null,
  2280. "executable": null,
  2281. "removes": null,
  2282. "warn": true
  2283. }
  2284. },
  2285. "rc": 0,
  2286. "start": "2017-11-02 14:41:26.984373",
  2287. "stderr": "",
  2288. "stderr_lines": [],
  2289. "stdout": "",
  2290. "stdout_lines": []
  2291. }
  2292.  
  2293. TASK [common/kubernetes_authorization : Copy gcloud config to root's home on mac] **********************************************************************************************************************************
  2294. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:82
  2295. skipping: [localhost] => {
  2296. "changed": false,
  2297. "skip_reason": "Conditional result was False",
  2298. "skipped": true
  2299. }
  2300.  
  2301. TASK [common/kubernetes_authorization : Copy kubernetes config to root's home] *************************************************************************************************************************************
  2302. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:88
  2303. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  2304. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2305. <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'
  2306. changed: [localhost] => {
  2307. "changed": true,
  2308. "cmd": "cp -Rf /home/cizar/.kube /root/",
  2309. "delta": "0:00:00.132636",
  2310. "end": "2017-11-02 14:42:40.994347",
  2311. "invocation": {
  2312. "module_args": {
  2313. "_raw_params": "cp -Rf /home/cizar/.kube /root/",
  2314. "_uses_shell": true,
  2315. "chdir": null,
  2316. "creates": null,
  2317. "executable": null,
  2318. "removes": null,
  2319. "warn": true
  2320. }
  2321. },
  2322. "rc": 0,
  2323. "start": "2017-11-02 14:42:40.861711",
  2324. "stderr": "",
  2325. "stderr_lines": [],
  2326. "stdout": "",
  2327. "stdout_lines": []
  2328. }
  2329.  
  2330. TASK [common/kubernetes_authorization : Copy kubernetes config to root's home] *************************************************************************************************************************************
  2331. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:94
  2332. skipping: [localhost] => {
  2333. "changed": false,
  2334. "skip_reason": "Conditional result was False",
  2335. "skipped": true
  2336. }
  2337.  
  2338. TASK [common/kubernetes_authorization : add gcloud credentials for use with kubectl] *******************************************************************************************************************************
  2339. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:100
  2340. skipping: [localhost] => {
  2341. "changed": false,
  2342. "skip_reason": "Conditional result was False",
  2343. "skipped": true
  2344. }
  2345.  
  2346. TASK [common/kubernetes_authorization : check /etc/gke.json presence] **********************************************************************************************************************************************
  2347. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:105
  2348. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  2349. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2350. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  2351. ok: [localhost] => {
  2352. "changed": false,
  2353. "invocation": {
  2354. "module_args": {
  2355. "checksum_algorithm": "sha1",
  2356. "follow": false,
  2357. "get_attributes": true,
  2358. "get_checksum": true,
  2359. "get_md5": true,
  2360. "get_mime": true,
  2361. "path": "/etc/gke.json"
  2362. }
  2363. },
  2364. "stat": {
  2365. "atime": 1509617529.6425254,
  2366. "attr_flags": "e",
  2367. "attributes": [
  2368. "extents"
  2369. ],
  2370. "block_size": 4096,
  2371. "blocks": 8,
  2372. "charset": "us-ascii",
  2373. "checksum": "52153b88faf9a30b78dc3fde36cbe5ca9aa4ece2",
  2374. "ctime": 1509614187.248771,
  2375. "dev": 2066,
  2376. "device_type": 0,
  2377. "executable": false,
  2378. "exists": true,
  2379. "gid": 0,
  2380. "gr_name": "root",
  2381. "inode": 1315766,
  2382. "isblk": false,
  2383. "ischr": false,
  2384. "isdir": false,
  2385. "isfifo": false,
  2386. "isgid": false,
  2387. "islnk": false,
  2388. "isreg": true,
  2389. "issock": false,
  2390. "isuid": false,
  2391. "md5": "49fc0519622fd5e597f84627819ba072",
  2392. "mimetype": "text/plain",
  2393. "mode": "0644",
  2394. "mtime": 1509614187.248771,
  2395. "nlink": 1,
  2396. "path": "/etc/gke.json",
  2397. "pw_name": "root",
  2398. "readable": true,
  2399. "rgrp": true,
  2400. "roth": true,
  2401. "rusr": true,
  2402. "size": 2345,
  2403. "uid": 0,
  2404. "version": "18446744073105780697",
  2405. "wgrp": false,
  2406. "woth": false,
  2407. "writeable": false,
  2408. "wusr": true,
  2409. "xgrp": false,
  2410. "xoth": false,
  2411. "xusr": false
  2412. }
  2413. }
  2414.  
  2415. TASK [common/kubernetes_authorization : copy json account key for local env] ***************************************************************************************************************************************
  2416. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:110
  2417. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  2418. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2419. <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'
  2420. ok: [localhost] => {
  2421. "changed": false,
  2422. "dest": "/etc/gke.json",
  2423. "src": "/home/cizar/oro-cloud-ansible/oro-cloud-development.json"
  2424. }
  2425.  
  2426. TASK [common/kubernetes_authorization : get service account or wait for it to be created] **************************************************************************************************************************
  2427. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:118
  2428. skipping: [localhost] => {
  2429. "changed": false,
  2430. "skip_reason": "Conditional result was False",
  2431. "skipped": true
  2432. }
  2433.  
  2434. TASK [common/kubernetes_authorization : debug] *********************************************************************************************************************************************************************
  2435. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:126
  2436. ok: [localhost] => {
  2437. "service_account.stdout": "VARIABLE IS NOT DEFINED!"
  2438. }
  2439.  
  2440. TASK [common/kubernetes_authorization : create /etc/gke.json from service account] *********************************************************************************************************************************
  2441. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:128
  2442. skipping: [localhost] => {
  2443. "changed": false,
  2444. "skip_reason": "Conditional result was False",
  2445. "skipped": true
  2446. }
  2447.  
  2448. TASK [common/kubernetes_authorization : Get KUBERNETES_API_TOKEN] **************************************************************************************************************************************************
  2449. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:133
  2450. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  2451. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2452. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  2453. changed: [localhost] => {
  2454. "changed": true,
  2455. "cmd": "kubectl describe serviceaccount default 2>/dev/null | grep Tokens | kubectl describe secret $(awk '{print $2}') 2>/dev/null | grep token: | awk {'print $2'}",
  2456. "delta": "0:00:02.716602",
  2457. "end": "2017-11-02 14:42:44.069117",
  2458. "invocation": {
  2459. "module_args": {
  2460. "_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'}",
  2461. "_uses_shell": true,
  2462. "chdir": null,
  2463. "creates": null,
  2464. "executable": null,
  2465. "removes": null,
  2466. "warn": true
  2467. }
  2468. },
  2469. "rc": 0,
  2470. "start": "2017-11-02 14:42:41.352515",
  2471. "stderr": "",
  2472. "stderr_lines": [],
  2473. "stdout": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6ImRlZmF1bHQtdG9rZW4tcGhtY3QiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoiZGVmYXVsdCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6ImY1M2JlNmY3LTcyZGUtMTFlNy04ZjFhLTQyMDEwYTgwMDE3MCIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpkZWZhdWx0OmRlZmF1bHQifQ.ctoRgUxcfzghAMSMBerT6LLy3rlGU9UM-J-4i3xabk4C-vNGRg4Si-urjESRdtpE1kxs5K0lXdaiFJ8GSlaChuTLelzCW0QcffmaQCZAzOAy1NVLnShbjMRaKR43jJ1A3y1YA07wZhXNNSSAkqIUWTLwzYMVZf8bpGLPvBO8TGVzeMOcQDli95ONIJwk9SzBQeIGmHcP1Byn7BjByjqVI8kUNsQBQCk91jIlPHWVhGPudLPE6jKtFDQxeCVip9NT4QMz7DAv4nRt0O9OvdzNS_5cCGAnG9a04nB4rJ8Dael2Lj0tZDw1bCEVuFDPANIJJX7T16a16Ol1xL8xJtLdPw",
  2474. "stdout_lines": [
  2475. "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6ImRlZmF1bHQtdG9rZW4tcGhtY3QiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoiZGVmYXVsdCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6ImY1M2JlNmY3LTcyZGUtMTFlNy04ZjFhLTQyMDEwYTgwMDE3MCIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpkZWZhdWx0OmRlZmF1bHQifQ.ctoRgUxcfzghAMSMBerT6LLy3rlGU9UM-J-4i3xabk4C-vNGRg4Si-urjESRdtpE1kxs5K0lXdaiFJ8GSlaChuTLelzCW0QcffmaQCZAzOAy1NVLnShbjMRaKR43jJ1A3y1YA07wZhXNNSSAkqIUWTLwzYMVZf8bpGLPvBO8TGVzeMOcQDli95ONIJwk9SzBQeIGmHcP1Byn7BjByjqVI8kUNsQBQCk91jIlPHWVhGPudLPE6jKtFDQxeCVip9NT4QMz7DAv4nRt0O9OvdzNS_5cCGAnG9a04nB4rJ8Dael2Lj0tZDw1bCEVuFDPANIJJX7T16a16Ol1xL8xJtLdPw"
  2476. ]
  2477. }
  2478.  
  2479. TASK [common/kubernetes_authorization : Set KUBERNETES_API_TOKEN] **************************************************************************************************************************************************
  2480. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:138
  2481. ok: [localhost] => {
  2482. "ansible_facts": {
  2483. "KUBERNETES_API_TOKEN": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6ImRlZmF1bHQtdG9rZW4tcGhtY3QiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoiZGVmYXVsdCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6ImY1M2JlNmY3LTcyZGUtMTFlNy04ZjFhLTQyMDEwYTgwMDE3MCIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpkZWZhdWx0OmRlZmF1bHQifQ.ctoRgUxcfzghAMSMBerT6LLy3rlGU9UM-J-4i3xabk4C-vNGRg4Si-urjESRdtpE1kxs5K0lXdaiFJ8GSlaChuTLelzCW0QcffmaQCZAzOAy1NVLnShbjMRaKR43jJ1A3y1YA07wZhXNNSSAkqIUWTLwzYMVZf8bpGLPvBO8TGVzeMOcQDli95ONIJwk9SzBQeIGmHcP1Byn7BjByjqVI8kUNsQBQCk91jIlPHWVhGPudLPE6jKtFDQxeCVip9NT4QMz7DAv4nRt0O9OvdzNS_5cCGAnG9a04nB4rJ8Dael2Lj0tZDw1bCEVuFDPANIJJX7T16a16Ol1xL8xJtLdPw"
  2484. },
  2485. "changed": false
  2486. }
  2487.  
  2488. TASK [common/kubernetes_authorization : Get KUBERNETES_API_ENDPOINT] ***********************************************************************************************************************************************
  2489. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:141
  2490. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  2491. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2492. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  2493. changed: [localhost] => {
  2494. "changed": true,
  2495. "cmd": "kubectl cluster-info | sed -r 's/\\x1b_[^\\x1b]*\\x1b[\\]//g; s/\\x1B\\[[^m]*m//g' | awk '{if($0~\"master\") print $6}'",
  2496. "delta": "0:00:00.676369",
  2497. "end": "2017-11-02 14:42:44.837251",
  2498. "invocation": {
  2499. "module_args": {
  2500. "_raw_params": "kubectl cluster-info | sed -r 's/\\x1b_[^\\x1b]*\\x1b[\\]//g; s/\\x1B\\[[^m]*m//g' | awk '{if($0~\"master\") print $6}'",
  2501. "_uses_shell": true,
  2502. "chdir": null,
  2503. "creates": null,
  2504. "executable": null,
  2505. "removes": null,
  2506. "warn": true
  2507. }
  2508. },
  2509. "rc": 0,
  2510. "start": "2017-11-02 14:42:44.160882",
  2511. "stderr": "",
  2512. "stderr_lines": [],
  2513. "stdout": "https://35.188.31.238",
  2514. "stdout_lines": [
  2515. "https://35.188.31.238"
  2516. ]
  2517. }
  2518.  
  2519. TASK [common/kubernetes_authorization : Set KUBERNETES_API_ENDPOINT] ***********************************************************************************************************************************************
  2520. task path: /home/cizar/oro-cloud-ansible/roles/common/kubernetes_authorization/tasks/main.yml:146
  2521. ok: [localhost] => {
  2522. "ansible_facts": {
  2523. "KUBERNETES_API_ENDPOINT": "https://35.188.31.238"
  2524. },
  2525. "changed": false
  2526. }
  2527. META: ran handlers
  2528. META: ran handlers
  2529.  
  2530. PLAY [Setup Consul] ************************************************************************************************************************************************************************************************
  2531.  
  2532. TASK [Gathering Facts] *********************************************************************************************************************************************************************************************
  2533. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/system/setup.py
  2534. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2535. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  2536. ok: [localhost]
  2537. META: ran handlers
  2538.  
  2539. TASK [consul : create temporary dir for svc and rc files] **********************************************************************************************************************************************************
  2540. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:3
  2541. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
  2542. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2543. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  2544. ok: [localhost] => {
  2545. "changed": false,
  2546. "diff": {
  2547. "after": {
  2548. "path": "/tmp/consul"
  2549. },
  2550. "before": {
  2551. "path": "/tmp/consul"
  2552. }
  2553. },
  2554. "gid": 1001,
  2555. "group": "cizar",
  2556. "invocation": {
  2557. "module_args": {
  2558. "attributes": null,
  2559. "backup": null,
  2560. "content": null,
  2561. "delimiter": null,
  2562. "diff_peek": null,
  2563. "directory_mode": null,
  2564. "follow": false,
  2565. "force": false,
  2566. "group": null,
  2567. "mode": 493,
  2568. "original_basename": null,
  2569. "owner": null,
  2570. "path": "/tmp/consul",
  2571. "recurse": false,
  2572. "regexp": null,
  2573. "remote_src": null,
  2574. "selevel": null,
  2575. "serole": null,
  2576. "setype": null,
  2577. "seuser": null,
  2578. "src": null,
  2579. "state": "directory",
  2580. "unsafe_writes": null,
  2581. "validate": null
  2582. }
  2583. },
  2584. "mode": "0755",
  2585. "owner": "cizar",
  2586. "path": "/tmp/consul",
  2587. "size": 4096,
  2588. "state": "directory",
  2589. "uid": 1001
  2590. }
  2591.  
  2592. TASK [consul : check if vault namespace already exists] ************************************************************************************************************************************************************
  2593. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:9
  2594. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  2595. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2596. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  2597. changed: [localhost] => {
  2598. "changed": true,
  2599. "cmd": "kubectl get namespace -o name | awk '/vault/{print $1}'",
  2600. "delta": "0:00:00.676425",
  2601. "end": "2017-11-02 14:42:45.937338",
  2602. "invocation": {
  2603. "module_args": {
  2604. "_raw_params": "kubectl get namespace -o name | awk '/vault/{print $1}'",
  2605. "_uses_shell": true,
  2606. "chdir": null,
  2607. "creates": null,
  2608. "executable": null,
  2609. "removes": null,
  2610. "warn": true
  2611. }
  2612. },
  2613. "rc": 0,
  2614. "start": "2017-11-02 14:42:45.260913",
  2615. "stderr": "",
  2616. "stderr_lines": [],
  2617. "stdout": "",
  2618. "stdout_lines": []
  2619. }
  2620.  
  2621. TASK [consul : creating vault namespace if wasn't found] ***********************************************************************************************************************************************************
  2622. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:14
  2623. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  2624. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2625. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  2626. changed: [localhost] => {
  2627. "changed": true,
  2628. "cmd": "kubectl create namespace vault",
  2629. "delta": "0:00:00.663308",
  2630. "end": "2017-11-02 14:42:46.693115",
  2631. "invocation": {
  2632. "module_args": {
  2633. "_raw_params": "kubectl create namespace vault",
  2634. "_uses_shell": true,
  2635. "chdir": null,
  2636. "creates": null,
  2637. "executable": null,
  2638. "removes": null,
  2639. "warn": true
  2640. }
  2641. },
  2642. "rc": 0,
  2643. "start": "2017-11-02 14:42:46.029807",
  2644. "stderr": "",
  2645. "stderr_lines": [],
  2646. "stdout": "namespace \"vault\" created",
  2647. "stdout_lines": [
  2648. "namespace \"vault\" created"
  2649. ]
  2650. }
  2651.  
  2652. TASK [consul : checking if previous consul-config in vault exists] *************************************************************************************************************************************************
  2653. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:20
  2654. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  2655. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2656. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  2657. changed: [localhost] => {
  2658. "changed": true,
  2659. "cmd": "kubectl --namespace=vault get secret | awk '/consul-config/{print $1}'",
  2660. "delta": "0:00:00.666687",
  2661. "end": "2017-11-02 14:42:47.445151",
  2662. "invocation": {
  2663. "module_args": {
  2664. "_raw_params": "kubectl --namespace=vault get secret | awk '/consul-config/{print $1}'",
  2665. "_uses_shell": true,
  2666. "chdir": null,
  2667. "creates": null,
  2668. "executable": null,
  2669. "removes": null,
  2670. "warn": true
  2671. }
  2672. },
  2673. "rc": 0,
  2674. "start": "2017-11-02 14:42:46.778464",
  2675. "stderr": "",
  2676. "stderr_lines": [],
  2677. "stdout": "",
  2678. "stdout_lines": []
  2679. }
  2680.  
  2681. TASK [consul : setting recovery option to false if previous configuration wasn't found] ****************************************************************************************************************************
  2682. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:25
  2683. ok: [localhost] => {
  2684. "ansible_facts": {
  2685. "recovery_enabled": false
  2686. },
  2687. "changed": false
  2688. }
  2689.  
  2690. TASK [consul : reading previous consul-config in vault namespace was found] ****************************************************************************************************************************************
  2691. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:30
  2692. skipping: [localhost] => {
  2693. "changed": false,
  2694. "skip_reason": "Conditional result was False",
  2695. "skipped": true
  2696. }
  2697.  
  2698. TASK [consul : setting acl_master_token and encrypt vars from previous install] ************************************************************************************************************************************
  2699. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:37
  2700. skipping: [localhost] => {
  2701. "changed": false,
  2702. "skip_reason": "Conditional result was False",
  2703. "skipped": true
  2704. }
  2705.  
  2706. TASK [consul : generating new acl_master_token if new installation] ************************************************************************************************************************************************
  2707. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:44
  2708. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  2709. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2710. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  2711. changed: [localhost] => {
  2712. "changed": true,
  2713. "cmd": "uuidgen",
  2714. "delta": "0:00:00.003272",
  2715. "end": "2017-11-02 14:42:47.573588",
  2716. "invocation": {
  2717. "module_args": {
  2718. "_raw_params": "uuidgen",
  2719. "_uses_shell": true,
  2720. "chdir": null,
  2721. "creates": null,
  2722. "executable": null,
  2723. "removes": null,
  2724. "warn": true
  2725. }
  2726. },
  2727. "rc": 0,
  2728. "start": "2017-11-02 14:42:47.570316",
  2729. "stderr": "",
  2730. "stderr_lines": [],
  2731. "stdout": "850a00f1-ef3c-4627-90f5-2aaba0145ba7",
  2732. "stdout_lines": [
  2733. "850a00f1-ef3c-4627-90f5-2aaba0145ba7"
  2734. ]
  2735. }
  2736.  
  2737. TASK [consul : generating new consul encryption key] ***************************************************************************************************************************************************************
  2738. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:49
  2739. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  2740. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2741. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  2742. changed: [localhost] => {
  2743. "changed": true,
  2744. "cmd": "dd if=/dev/urandom bs=1 count=16 | base64",
  2745. "delta": "0:00:00.004184",
  2746. "end": "2017-11-02 14:42:47.668783",
  2747. "invocation": {
  2748. "module_args": {
  2749. "_raw_params": "dd if=/dev/urandom bs=1 count=16 | base64",
  2750. "_uses_shell": true,
  2751. "chdir": null,
  2752. "creates": null,
  2753. "executable": null,
  2754. "removes": null,
  2755. "warn": true
  2756. }
  2757. },
  2758. "rc": 0,
  2759. "start": "2017-11-02 14:42:47.664599",
  2760. "stderr": "16+0 records in\n16+0 records out\n16 bytes copied, 2,7522e-05 s, 581 kB/s",
  2761. "stderr_lines": [
  2762. "16+0 records in",
  2763. "16+0 records out",
  2764. "16 bytes copied, 2,7522e-05 s, 581 kB/s"
  2765. ],
  2766. "stdout": "CQsbvnX6NLQJ1R1BF5SRdg==",
  2767. "stdout_lines": [
  2768. "CQsbvnX6NLQJ1R1BF5SRdg=="
  2769. ]
  2770. }
  2771.  
  2772. TASK [consul : setting new consul encryption key] ******************************************************************************************************************************************************************
  2773. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:55
  2774. ok: [localhost] => {
  2775. "ansible_facts": {
  2776. "acl_master_token": "850a00f1-ef3c-4627-90f5-2aaba0145ba7",
  2777. "consul_encrypt_key": "CQsbvnX6NLQJ1R1BF5SRdg=="
  2778. },
  2779. "changed": false
  2780. }
  2781.  
  2782. TASK [consul : delete previous consul-config] **********************************************************************************************************************************************************************
  2783. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:61
  2784. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  2785. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2786. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  2787. fatal: [localhost]: FAILED! => {
  2788. "changed": true,
  2789. "cmd": "kubectl --namespace=vault delete secret consul-config",
  2790. "delta": "0:00:00.670273",
  2791. "end": "2017-11-02 14:42:48.438864",
  2792. "failed": true,
  2793. "invocation": {
  2794. "module_args": {
  2795. "_raw_params": "kubectl --namespace=vault delete secret consul-config",
  2796. "_uses_shell": true,
  2797. "chdir": null,
  2798. "creates": null,
  2799. "executable": null,
  2800. "removes": null,
  2801. "warn": true
  2802. }
  2803. },
  2804. "rc": 1,
  2805. "start": "2017-11-02 14:42:47.768591",
  2806. "stderr": "Error from server (NotFound): secrets \"consul-config\" not found",
  2807. "stderr_lines": [
  2808. "Error from server (NotFound): secrets \"consul-config\" not found"
  2809. ],
  2810. "stdout": "",
  2811. "stdout_lines": []
  2812. }
  2813. ...ignoring
  2814.  
  2815. TASK [consul : creating consul_config.json from template] **********************************************************************************************************************************************************
  2816. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:66
  2817. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  2818. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2819. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  2820. <127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
  2821. <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'
  2822. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  2823. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  2824. <127.0.0.1> PUT /tmp/tmpb1_gc2 TO /home/cizar/.ansible/tmp/ansible-tmp-1509626568.54-89876380800295/source
  2825. <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'
  2826. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/copy.py
  2827. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  2828. <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'
  2829. changed: [localhost] => {
  2830. "changed": true,
  2831. "checksum": "3f6497e4121dc0b795a388c41aa743519d2d08aa",
  2832. "dest": "/tmp/consul/consul_config.json",
  2833. "gid": 1001,
  2834. "group": "cizar",
  2835. "invocation": {
  2836. "module_args": {
  2837. "attributes": null,
  2838. "backup": false,
  2839. "content": null,
  2840. "delimiter": null,
  2841. "dest": "/tmp/consul/consul_config.json",
  2842. "directory_mode": null,
  2843. "follow": true,
  2844. "force": true,
  2845. "group": null,
  2846. "mode": null,
  2847. "original_basename": "consul_config.j2",
  2848. "owner": null,
  2849. "regexp": null,
  2850. "remote_src": null,
  2851. "selevel": null,
  2852. "serole": null,
  2853. "setype": null,
  2854. "seuser": null,
  2855. "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626568.54-89876380800295/source",
  2856. "unsafe_writes": null,
  2857. "validate": null
  2858. }
  2859. },
  2860. "md5sum": "9be80152a9d0eb1e09e9300e5ee19609",
  2861. "mode": "0664",
  2862. "owner": "cizar",
  2863. "size": 226,
  2864. "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626568.54-89876380800295/source",
  2865. "state": "file",
  2866. "uid": 1001
  2867. }
  2868.  
  2869. TASK [consul : creating consul_config.json from prevous value] *****************************************************************************************************************************************************
  2870. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:72
  2871. skipping: [localhost] => {
  2872. "changed": false,
  2873. "skip_reason": "Conditional result was False",
  2874. "skipped": true
  2875. }
  2876.  
  2877. TASK [consul : creating kubernetes secret consul-config] ***********************************************************************************************************************************************************
  2878. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:78
  2879. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  2880. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2881. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  2882. changed: [localhost] => {
  2883. "changed": true,
  2884. "cmd": "kubectl --namespace=vault create secret generic consul-config --from-file=/tmp/consul/consul_config.json",
  2885. "delta": "0:00:00.673249",
  2886. "end": "2017-11-02 14:42:49.540174",
  2887. "invocation": {
  2888. "module_args": {
  2889. "_raw_params": "kubectl --namespace=vault create secret generic consul-config --from-file=/tmp/consul/consul_config.json",
  2890. "_uses_shell": true,
  2891. "chdir": null,
  2892. "creates": null,
  2893. "executable": null,
  2894. "removes": null,
  2895. "warn": true
  2896. }
  2897. },
  2898. "rc": 0,
  2899. "start": "2017-11-02 14:42:48.866925",
  2900. "stderr": "",
  2901. "stderr_lines": [],
  2902. "stdout": "secret \"consul-config\" created",
  2903. "stdout_lines": [
  2904. "secret \"consul-config\" created"
  2905. ]
  2906. }
  2907.  
  2908. TASK [consul : getting previous consul replication controller names] ***********************************************************************************************************************************************
  2909. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:82
  2910. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  2911. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2912. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  2913. changed: [localhost] => {
  2914. "changed": true,
  2915. "cmd": "kubectl --namespace=vault get rc | awk '/consul/{print $1}'",
  2916. "delta": "0:00:00.690236",
  2917. "end": "2017-11-02 14:42:50.317385",
  2918. "invocation": {
  2919. "module_args": {
  2920. "_raw_params": "kubectl --namespace=vault get rc | awk '/consul/{print $1}'",
  2921. "_uses_shell": true,
  2922. "chdir": null,
  2923. "creates": null,
  2924. "executable": null,
  2925. "removes": null,
  2926. "warn": true
  2927. }
  2928. },
  2929. "rc": 0,
  2930. "start": "2017-11-02 14:42:49.627149",
  2931. "stderr": "No resources found.",
  2932. "stderr_lines": [
  2933. "No resources found."
  2934. ],
  2935. "stdout": "",
  2936. "stdout_lines": []
  2937. }
  2938.  
  2939. TASK [consul : deleting previous consul replication controllers] ***************************************************************************************************************************************************
  2940. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:87
  2941.  
  2942. TASK [consul : setting up 3 new consul services] *******************************************************************************************************************************************************************
  2943. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:94
  2944. included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml for localhost
  2945. included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml for localhost
  2946. included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml for localhost
  2947.  
  2948. TASK [consul : check required variable svc_node_num] ***************************************************************************************************************************************************************
  2949. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:2
  2950. skipping: [localhost] => {
  2951. "changed": false,
  2952. "skip_reason": "Conditional result was False",
  2953. "skipped": true
  2954. }
  2955.  
  2956. TASK [consul : create svc files from templates] ********************************************************************************************************************************************************************
  2957. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:7
  2958. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  2959. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2960. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  2961. <127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
  2962. <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'
  2963. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  2964. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  2965. <127.0.0.1> PUT /tmp/tmpW_PMkG TO /home/cizar/.ansible/tmp/ansible-tmp-1509626570.58-177285612828908/source
  2966. <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'
  2967. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/copy.py
  2968. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  2969. <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'
  2970. changed: [localhost] => {
  2971. "changed": true,
  2972. "checksum": "801aa32d23a09ab65db98ac18015cce86be22d9f",
  2973. "dest": "/tmp/consul/service.yaml",
  2974. "gid": 1001,
  2975. "group": "cizar",
  2976. "invocation": {
  2977. "module_args": {
  2978. "attributes": null,
  2979. "backup": false,
  2980. "content": null,
  2981. "delimiter": null,
  2982. "dest": "/tmp/consul/service.yaml",
  2983. "directory_mode": null,
  2984. "follow": true,
  2985. "force": true,
  2986. "group": null,
  2987. "mode": null,
  2988. "original_basename": "service.j2",
  2989. "owner": null,
  2990. "regexp": null,
  2991. "remote_src": null,
  2992. "selevel": null,
  2993. "serole": null,
  2994. "setype": null,
  2995. "seuser": null,
  2996. "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626570.58-177285612828908/source",
  2997. "unsafe_writes": null,
  2998. "validate": null
  2999. }
  3000. },
  3001. "md5sum": "a8f665f9a9242d3e35c099f70160914e",
  3002. "mode": "0664",
  3003. "owner": "cizar",
  3004. "size": 738,
  3005. "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626570.58-177285612828908/source",
  3006. "state": "file",
  3007. "uid": 1001
  3008. }
  3009.  
  3010. TASK [consul : check if consul1 svc exists] ************************************************************************************************************************************************************************
  3011. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:12
  3012. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3013. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3014. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3015. changed: [localhost] => {
  3016. "changed": true,
  3017. "cmd": "kubectl --namespace=vault get svc | grep consul1 | awk '{print $1}'",
  3018. "delta": "0:00:00.662326",
  3019. "end": "2017-11-02 14:42:51.467187",
  3020. "invocation": {
  3021. "module_args": {
  3022. "_raw_params": "kubectl --namespace=vault get svc | grep consul1 | awk '{print $1}'",
  3023. "_uses_shell": true,
  3024. "chdir": null,
  3025. "creates": null,
  3026. "executable": null,
  3027. "removes": null,
  3028. "warn": true
  3029. }
  3030. },
  3031. "rc": 0,
  3032. "start": "2017-11-02 14:42:50.804861",
  3033. "stderr": "No resources found.",
  3034. "stderr_lines": [
  3035. "No resources found."
  3036. ],
  3037. "stdout": "",
  3038. "stdout_lines": []
  3039. }
  3040.  
  3041. TASK [consul : create consul1 svc] *********************************************************************************************************************************************************************************
  3042. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:17
  3043. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3044. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3045. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3046. changed: [localhost] => {
  3047. "changed": true,
  3048. "cmd": "kubectl --namespace=vault create -f /tmp/consul/service.yaml",
  3049. "delta": "0:00:00.872646",
  3050. "end": "2017-11-02 14:42:52.424179",
  3051. "invocation": {
  3052. "module_args": {
  3053. "_raw_params": "kubectl --namespace=vault create -f /tmp/consul/service.yaml",
  3054. "_uses_shell": true,
  3055. "chdir": null,
  3056. "creates": null,
  3057. "executable": null,
  3058. "removes": null,
  3059. "warn": true
  3060. }
  3061. },
  3062. "rc": 0,
  3063. "start": "2017-11-02 14:42:51.551533",
  3064. "stderr": "",
  3065. "stderr_lines": [],
  3066. "stdout": "service \"consul1\" created",
  3067. "stdout_lines": [
  3068. "service \"consul1\" created"
  3069. ]
  3070. }
  3071.  
  3072. TASK [consul : create DNS record] **********************************************************************************************************************************************************************************
  3073. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:22
  3074. included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml for localhost
  3075.  
  3076. TASK [consul : check if consul1 svc exists] ************************************************************************************************************************************************************************
  3077. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:3
  3078. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3079. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3080. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3081. changed: [localhost] => {
  3082. "changed": true,
  3083. "cmd": "kubectl --namespace=vault get svc -o jsonpath={.items[0].spec.clusterIP}",
  3084. "delta": "0:00:00.639651",
  3085. "end": "2017-11-02 14:42:53.203612",
  3086. "invocation": {
  3087. "module_args": {
  3088. "_raw_params": "kubectl --namespace=vault get svc -o jsonpath={.items[0].spec.clusterIP}",
  3089. "_uses_shell": true,
  3090. "chdir": null,
  3091. "creates": null,
  3092. "executable": null,
  3093. "removes": null,
  3094. "warn": true
  3095. }
  3096. },
  3097. "rc": 0,
  3098. "start": "2017-11-02 14:42:52.563961",
  3099. "stderr": "",
  3100. "stderr_lines": [],
  3101. "stdout": "10.3.242.105",
  3102. "stdout_lines": [
  3103. "10.3.242.105"
  3104. ]
  3105. }
  3106.  
  3107. TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
  3108. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:9
  3109. ok: [localhost] => {
  3110. "ansible_facts": {
  3111. "RECORD": "host1.svc.consul.loc-cizar1"
  3112. },
  3113. "changed": false
  3114. }
  3115.  
  3116. TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
  3117. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:13
  3118. skipping: [localhost] => {
  3119. "changed": false,
  3120. "skip_reason": "Conditional result was False",
  3121. "skipped": true
  3122. }
  3123.  
  3124. TASK [consul : close failed transaction if exists] *****************************************************************************************************************************************************************
  3125. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:17
  3126. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3127. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3128. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3129. fatal: [localhost]: FAILED! => {
  3130. "changed": true,
  3131. "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction abort -z oro-cloud-development",
  3132. "delta": "0:00:00.231053",
  3133. "end": "2017-11-02 14:42:53.548453",
  3134. "failed": true,
  3135. "invocation": {
  3136. "module_args": {
  3137. "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction abort -z oro-cloud-development",
  3138. "_uses_shell": true,
  3139. "chdir": null,
  3140. "creates": null,
  3141. "executable": null,
  3142. "removes": null,
  3143. "warn": true
  3144. }
  3145. },
  3146. "rc": 1,
  3147. "start": "2017-11-02 14:42:53.317400",
  3148. "stderr": "ERROR: (gcloud.dns.record-sets.transaction.abort) transaction not found at [transaction.yaml]",
  3149. "stderr_lines": [
  3150. "ERROR: (gcloud.dns.record-sets.transaction.abort) transaction not found at [transaction.yaml]"
  3151. ],
  3152. "stdout": "",
  3153. "stdout_lines": []
  3154. }
  3155. ...ignoring
  3156.  
  3157. TASK [consul : get record if exists] *******************************************************************************************************************************************************************************
  3158. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:22
  3159. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3160. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3161. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3162. changed: [localhost] => {
  3163. "changed": true,
  3164. "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets list -z oro-cloud-development | awk /^host1.svc.consul.loc-cizar1/'{print $4}'",
  3165. "delta": "0:00:01.036819",
  3166. "end": "2017-11-02 14:42:54.673583",
  3167. "invocation": {
  3168. "module_args": {
  3169. "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets list -z oro-cloud-development | awk /^host1.svc.consul.loc-cizar1/'{print $4}'",
  3170. "_uses_shell": true,
  3171. "chdir": null,
  3172. "creates": null,
  3173. "executable": null,
  3174. "removes": null,
  3175. "warn": true
  3176. }
  3177. },
  3178. "rc": 0,
  3179. "start": "2017-11-02 14:42:53.636764",
  3180. "stderr": "",
  3181. "stderr_lines": [],
  3182. "stdout": "10.3.244.126",
  3183. "stdout_lines": [
  3184. "10.3.244.126"
  3185. ]
  3186. }
  3187.  
  3188. TASK [consul : start transaction] **********************************************************************************************************************************************************************************
  3189. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:27
  3190. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3191. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3192. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3193. changed: [localhost] => {
  3194. "changed": true,
  3195. "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction start -z oro-cloud-development",
  3196. "delta": "0:00:00.945014",
  3197. "end": "2017-11-02 14:42:55.702404",
  3198. "invocation": {
  3199. "module_args": {
  3200. "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction start -z oro-cloud-development",
  3201. "_uses_shell": true,
  3202. "chdir": null,
  3203. "creates": null,
  3204. "executable": null,
  3205. "removes": null,
  3206. "warn": true
  3207. }
  3208. },
  3209. "rc": 0,
  3210. "start": "2017-11-02 14:42:54.757390",
  3211. "stderr": "Transaction started [transaction.yaml].",
  3212. "stderr_lines": [
  3213. "Transaction started [transaction.yaml]."
  3214. ],
  3215. "stdout": "",
  3216. "stdout_lines": []
  3217. }
  3218.  
  3219. TASK [consul : delete record if exists] ****************************************************************************************************************************************************************************
  3220. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:31
  3221. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3222. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3223. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3224. changed: [localhost] => {
  3225. "changed": true,
  3226. "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'",
  3227. "delta": "0:00:00.771750",
  3228. "end": "2017-11-02 14:42:56.565770",
  3229. "invocation": {
  3230. "module_args": {
  3231. "_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'",
  3232. "_uses_shell": true,
  3233. "chdir": null,
  3234. "creates": null,
  3235. "executable": null,
  3236. "removes": null,
  3237. "warn": true
  3238. }
  3239. },
  3240. "rc": 0,
  3241. "start": "2017-11-02 14:42:55.794020",
  3242. "stderr": "Record removal appended to transaction at [transaction.yaml].",
  3243. "stderr_lines": [
  3244. "Record removal appended to transaction at [transaction.yaml]."
  3245. ],
  3246. "stdout": "",
  3247. "stdout_lines": []
  3248. }
  3249.  
  3250. TASK [consul : create/update record] *******************************************************************************************************************************************************************************
  3251. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:37
  3252. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3253. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3254. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3255. changed: [localhost] => {
  3256. "changed": true,
  3257. "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'",
  3258. "delta": "0:00:00.234238",
  3259. "end": "2017-11-02 14:42:56.885927",
  3260. "invocation": {
  3261. "module_args": {
  3262. "_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'",
  3263. "_uses_shell": true,
  3264. "chdir": null,
  3265. "creates": null,
  3266. "executable": null,
  3267. "removes": null,
  3268. "warn": true
  3269. }
  3270. },
  3271. "rc": 0,
  3272. "start": "2017-11-02 14:42:56.651689",
  3273. "stderr": "Record addition appended to transaction at [transaction.yaml].",
  3274. "stderr_lines": [
  3275. "Record addition appended to transaction at [transaction.yaml]."
  3276. ],
  3277. "stdout": "",
  3278. "stdout_lines": []
  3279. }
  3280.  
  3281. TASK [consul : execute transaction] ********************************************************************************************************************************************************************************
  3282. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:41
  3283. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3284. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3285. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3286. changed: [localhost] => {
  3287. "changed": true,
  3288. "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction execute -z oro-cloud-development",
  3289. "delta": "0:00:00.945661",
  3290. "end": "2017-11-02 14:42:57.924902",
  3291. "invocation": {
  3292. "module_args": {
  3293. "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction execute -z oro-cloud-development",
  3294. "_uses_shell": true,
  3295. "chdir": null,
  3296. "creates": null,
  3297. "executable": null,
  3298. "removes": null,
  3299. "warn": true
  3300. }
  3301. },
  3302. "rc": 0,
  3303. "start": "2017-11-02 14:42:56.979241",
  3304. "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].",
  3305. "stderr_lines": [
  3306. "Executed transaction [transaction.yaml] for managed-zone [oro-cloud-development].",
  3307. "Created [https://www.googleapis.com/dns/v1/projects/oro-cloud-development/managedZones/oro-cloud-development/changes/1570]."
  3308. ],
  3309. "stdout": "ID START_TIME STATUS\n1570 2017-11-02T12:42:57.536Z pending",
  3310. "stdout_lines": [
  3311. "ID START_TIME STATUS",
  3312. "1570 2017-11-02T12:42:57.536Z pending"
  3313. ]
  3314. }
  3315.  
  3316. TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
  3317. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:45
  3318. ok: [localhost] => {
  3319. "ansible_facts": {
  3320. "HOST_URL1": "host1.svc.consul.loc-cizar1.cloud-development.oroinc.com"
  3321. },
  3322. "changed": false
  3323. }
  3324.  
  3325. TASK [consul : check required variable svc_node_num] ***************************************************************************************************************************************************************
  3326. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:2
  3327. skipping: [localhost] => {
  3328. "changed": false,
  3329. "skip_reason": "Conditional result was False",
  3330. "skipped": true
  3331. }
  3332.  
  3333. TASK [consul : create svc files from templates] ********************************************************************************************************************************************************************
  3334. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:7
  3335. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  3336. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3337. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3338. <127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
  3339. <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'
  3340. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  3341. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3342. <127.0.0.1> PUT /tmp/tmpjR5DLr TO /home/cizar/.ansible/tmp/ansible-tmp-1509626578.06-40391179723048/source
  3343. <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'
  3344. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/copy.py
  3345. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3346. <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'
  3347. changed: [localhost] => {
  3348. "changed": true,
  3349. "checksum": "628bd3082e53030c0b36c81eb9ceb1ac8c6210f4",
  3350. "dest": "/tmp/consul/service.yaml",
  3351. "gid": 1001,
  3352. "group": "cizar",
  3353. "invocation": {
  3354. "module_args": {
  3355. "attributes": null,
  3356. "backup": false,
  3357. "content": null,
  3358. "delimiter": null,
  3359. "dest": "/tmp/consul/service.yaml",
  3360. "directory_mode": null,
  3361. "follow": true,
  3362. "force": true,
  3363. "group": null,
  3364. "mode": null,
  3365. "original_basename": "service.j2",
  3366. "owner": null,
  3367. "regexp": null,
  3368. "remote_src": null,
  3369. "selevel": null,
  3370. "serole": null,
  3371. "setype": null,
  3372. "seuser": null,
  3373. "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626578.06-40391179723048/source",
  3374. "unsafe_writes": null,
  3375. "validate": null
  3376. }
  3377. },
  3378. "md5sum": "a89b9a8e9567c51a714aec4f67efd7b8",
  3379. "mode": "0664",
  3380. "owner": "cizar",
  3381. "size": 738,
  3382. "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626578.06-40391179723048/source",
  3383. "state": "file",
  3384. "uid": 1001
  3385. }
  3386.  
  3387. TASK [consul : check if consul2 svc exists] ************************************************************************************************************************************************************************
  3388. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:12
  3389. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3390. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3391. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3392. changed: [localhost] => {
  3393. "changed": true,
  3394. "cmd": "kubectl --namespace=vault get svc | grep consul2 | awk '{print $1}'",
  3395. "delta": "0:00:00.647413",
  3396. "end": "2017-11-02 14:42:58.937646",
  3397. "invocation": {
  3398. "module_args": {
  3399. "_raw_params": "kubectl --namespace=vault get svc | grep consul2 | awk '{print $1}'",
  3400. "_uses_shell": true,
  3401. "chdir": null,
  3402. "creates": null,
  3403. "executable": null,
  3404. "removes": null,
  3405. "warn": true
  3406. }
  3407. },
  3408. "rc": 0,
  3409. "start": "2017-11-02 14:42:58.290233",
  3410. "stderr": "",
  3411. "stderr_lines": [],
  3412. "stdout": "",
  3413. "stdout_lines": []
  3414. }
  3415.  
  3416. TASK [consul : create consul2 svc] *********************************************************************************************************************************************************************************
  3417. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:17
  3418. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3419. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3420. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3421. changed: [localhost] => {
  3422. "changed": true,
  3423. "cmd": "kubectl --namespace=vault create -f /tmp/consul/service.yaml",
  3424. "delta": "0:00:00.843284",
  3425. "end": "2017-11-02 14:42:59.876877",
  3426. "invocation": {
  3427. "module_args": {
  3428. "_raw_params": "kubectl --namespace=vault create -f /tmp/consul/service.yaml",
  3429. "_uses_shell": true,
  3430. "chdir": null,
  3431. "creates": null,
  3432. "executable": null,
  3433. "removes": null,
  3434. "warn": true
  3435. }
  3436. },
  3437. "rc": 0,
  3438. "start": "2017-11-02 14:42:59.033593",
  3439. "stderr": "",
  3440. "stderr_lines": [],
  3441. "stdout": "service \"consul2\" created",
  3442. "stdout_lines": [
  3443. "service \"consul2\" created"
  3444. ]
  3445. }
  3446.  
  3447. TASK [consul : create DNS record] **********************************************************************************************************************************************************************************
  3448. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:22
  3449. included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml for localhost
  3450.  
  3451. TASK [consul : check if consul2 svc exists] ************************************************************************************************************************************************************************
  3452. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:3
  3453. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3454. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3455. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3456. changed: [localhost] => {
  3457. "changed": true,
  3458. "cmd": "kubectl --namespace=vault get svc -o jsonpath={.items[0].spec.clusterIP}",
  3459. "delta": "0:00:00.642710",
  3460. "end": "2017-11-02 14:43:00.660390",
  3461. "invocation": {
  3462. "module_args": {
  3463. "_raw_params": "kubectl --namespace=vault get svc -o jsonpath={.items[0].spec.clusterIP}",
  3464. "_uses_shell": true,
  3465. "chdir": null,
  3466. "creates": null,
  3467. "executable": null,
  3468. "removes": null,
  3469. "warn": true
  3470. }
  3471. },
  3472. "rc": 0,
  3473. "start": "2017-11-02 14:43:00.017680",
  3474. "stderr": "",
  3475. "stderr_lines": [],
  3476. "stdout": "10.3.242.105",
  3477. "stdout_lines": [
  3478. "10.3.242.105"
  3479. ]
  3480. }
  3481.  
  3482. TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
  3483. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:9
  3484. ok: [localhost] => {
  3485. "ansible_facts": {
  3486. "RECORD": "host2.svc.consul.loc-cizar1"
  3487. },
  3488. "changed": false
  3489. }
  3490.  
  3491. TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
  3492. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:13
  3493. skipping: [localhost] => {
  3494. "changed": false,
  3495. "skip_reason": "Conditional result was False",
  3496. "skipped": true
  3497. }
  3498.  
  3499. TASK [consul : close failed transaction if exists] *****************************************************************************************************************************************************************
  3500. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:17
  3501. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3502. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3503. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3504. fatal: [localhost]: FAILED! => {
  3505. "changed": true,
  3506. "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction abort -z oro-cloud-development",
  3507. "delta": "0:00:00.226910",
  3508. "end": "2017-11-02 14:43:01.000029",
  3509. "failed": true,
  3510. "invocation": {
  3511. "module_args": {
  3512. "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction abort -z oro-cloud-development",
  3513. "_uses_shell": true,
  3514. "chdir": null,
  3515. "creates": null,
  3516. "executable": null,
  3517. "removes": null,
  3518. "warn": true
  3519. }
  3520. },
  3521. "rc": 1,
  3522. "start": "2017-11-02 14:43:00.773119",
  3523. "stderr": "ERROR: (gcloud.dns.record-sets.transaction.abort) transaction not found at [transaction.yaml]",
  3524. "stderr_lines": [
  3525. "ERROR: (gcloud.dns.record-sets.transaction.abort) transaction not found at [transaction.yaml]"
  3526. ],
  3527. "stdout": "",
  3528. "stdout_lines": []
  3529. }
  3530. ...ignoring
  3531.  
  3532. TASK [consul : get record if exists] *******************************************************************************************************************************************************************************
  3533. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:22
  3534. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3535. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3536. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3537. changed: [localhost] => {
  3538. "changed": true,
  3539. "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets list -z oro-cloud-development | awk /^host2.svc.consul.loc-cizar1/'{print $4}'",
  3540. "delta": "0:00:01.031750",
  3541. "end": "2017-11-02 14:43:02.121311",
  3542. "invocation": {
  3543. "module_args": {
  3544. "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets list -z oro-cloud-development | awk /^host2.svc.consul.loc-cizar1/'{print $4}'",
  3545. "_uses_shell": true,
  3546. "chdir": null,
  3547. "creates": null,
  3548. "executable": null,
  3549. "removes": null,
  3550. "warn": true
  3551. }
  3552. },
  3553. "rc": 0,
  3554. "start": "2017-11-02 14:43:01.089561",
  3555. "stderr": "",
  3556. "stderr_lines": [],
  3557. "stdout": "10.3.244.126",
  3558. "stdout_lines": [
  3559. "10.3.244.126"
  3560. ]
  3561. }
  3562.  
  3563. TASK [consul : start transaction] **********************************************************************************************************************************************************************************
  3564. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:27
  3565. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3566. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3567. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3568. changed: [localhost] => {
  3569. "changed": true,
  3570. "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction start -z oro-cloud-development",
  3571. "delta": "0:00:00.898036",
  3572. "end": "2017-11-02 14:43:03.100436",
  3573. "invocation": {
  3574. "module_args": {
  3575. "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction start -z oro-cloud-development",
  3576. "_uses_shell": true,
  3577. "chdir": null,
  3578. "creates": null,
  3579. "executable": null,
  3580. "removes": null,
  3581. "warn": true
  3582. }
  3583. },
  3584. "rc": 0,
  3585. "start": "2017-11-02 14:43:02.202400",
  3586. "stderr": "Transaction started [transaction.yaml].",
  3587. "stderr_lines": [
  3588. "Transaction started [transaction.yaml]."
  3589. ],
  3590. "stdout": "",
  3591. "stdout_lines": []
  3592. }
  3593.  
  3594. TASK [consul : delete record if exists] ****************************************************************************************************************************************************************************
  3595. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:31
  3596. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3597. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3598. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3599. changed: [localhost] => {
  3600. "changed": true,
  3601. "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'",
  3602. "delta": "0:00:00.656880",
  3603. "end": "2017-11-02 14:43:03.841177",
  3604. "invocation": {
  3605. "module_args": {
  3606. "_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'",
  3607. "_uses_shell": true,
  3608. "chdir": null,
  3609. "creates": null,
  3610. "executable": null,
  3611. "removes": null,
  3612. "warn": true
  3613. }
  3614. },
  3615. "rc": 0,
  3616. "start": "2017-11-02 14:43:03.184297",
  3617. "stderr": "Record removal appended to transaction at [transaction.yaml].",
  3618. "stderr_lines": [
  3619. "Record removal appended to transaction at [transaction.yaml]."
  3620. ],
  3621. "stdout": "",
  3622. "stdout_lines": []
  3623. }
  3624.  
  3625. TASK [consul : create/update record] *******************************************************************************************************************************************************************************
  3626. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:37
  3627. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3628. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3629. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3630. changed: [localhost] => {
  3631. "changed": true,
  3632. "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'",
  3633. "delta": "0:00:00.227364",
  3634. "end": "2017-11-02 14:43:04.150932",
  3635. "invocation": {
  3636. "module_args": {
  3637. "_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'",
  3638. "_uses_shell": true,
  3639. "chdir": null,
  3640. "creates": null,
  3641. "executable": null,
  3642. "removes": null,
  3643. "warn": true
  3644. }
  3645. },
  3646. "rc": 0,
  3647. "start": "2017-11-02 14:43:03.923568",
  3648. "stderr": "Record addition appended to transaction at [transaction.yaml].",
  3649. "stderr_lines": [
  3650. "Record addition appended to transaction at [transaction.yaml]."
  3651. ],
  3652. "stdout": "",
  3653. "stdout_lines": []
  3654. }
  3655.  
  3656. TASK [consul : execute transaction] ********************************************************************************************************************************************************************************
  3657. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:41
  3658. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3659. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3660. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3661. changed: [localhost] => {
  3662. "changed": true,
  3663. "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction execute -z oro-cloud-development",
  3664. "delta": "0:00:00.878452",
  3665. "end": "2017-11-02 14:43:05.110238",
  3666. "invocation": {
  3667. "module_args": {
  3668. "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction execute -z oro-cloud-development",
  3669. "_uses_shell": true,
  3670. "chdir": null,
  3671. "creates": null,
  3672. "executable": null,
  3673. "removes": null,
  3674. "warn": true
  3675. }
  3676. },
  3677. "rc": 0,
  3678. "start": "2017-11-02 14:43:04.231786",
  3679. "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].",
  3680. "stderr_lines": [
  3681. "Executed transaction [transaction.yaml] for managed-zone [oro-cloud-development].",
  3682. "Created [https://www.googleapis.com/dns/v1/projects/oro-cloud-development/managedZones/oro-cloud-development/changes/1571]."
  3683. ],
  3684. "stdout": "ID START_TIME STATUS\n1571 2017-11-02T12:43:04.744Z pending",
  3685. "stdout_lines": [
  3686. "ID START_TIME STATUS",
  3687. "1571 2017-11-02T12:43:04.744Z pending"
  3688. ]
  3689. }
  3690.  
  3691. TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
  3692. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:45
  3693. ok: [localhost] => {
  3694. "ansible_facts": {
  3695. "HOST_URL2": "host2.svc.consul.loc-cizar1.cloud-development.oroinc.com"
  3696. },
  3697. "changed": false
  3698. }
  3699.  
  3700. TASK [consul : check required variable svc_node_num] ***************************************************************************************************************************************************************
  3701. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:2
  3702. skipping: [localhost] => {
  3703. "changed": false,
  3704. "skip_reason": "Conditional result was False",
  3705. "skipped": true
  3706. }
  3707.  
  3708. TASK [consul : create svc files from templates] ********************************************************************************************************************************************************************
  3709. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:7
  3710. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  3711. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3712. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3713. <127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
  3714. <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'
  3715. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  3716. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3717. <127.0.0.1> PUT /tmp/tmpzKT27t TO /home/cizar/.ansible/tmp/ansible-tmp-1509626585.28-97271187885283/source
  3718. <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'
  3719. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/copy.py
  3720. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3721. <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'
  3722. changed: [localhost] => {
  3723. "changed": true,
  3724. "checksum": "2ccf50a2169596fe5da97d63c99b9518a2b1a66c",
  3725. "dest": "/tmp/consul/service.yaml",
  3726. "gid": 1001,
  3727. "group": "cizar",
  3728. "invocation": {
  3729. "module_args": {
  3730. "attributes": null,
  3731. "backup": false,
  3732. "content": null,
  3733. "delimiter": null,
  3734. "dest": "/tmp/consul/service.yaml",
  3735. "directory_mode": null,
  3736. "follow": true,
  3737. "force": true,
  3738. "group": null,
  3739. "mode": null,
  3740. "original_basename": "service.j2",
  3741. "owner": null,
  3742. "regexp": null,
  3743. "remote_src": null,
  3744. "selevel": null,
  3745. "serole": null,
  3746. "setype": null,
  3747. "seuser": null,
  3748. "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626585.28-97271187885283/source",
  3749. "unsafe_writes": null,
  3750. "validate": null
  3751. }
  3752. },
  3753. "md5sum": "77cf0aa3e1264d578eb466a66d6f81c3",
  3754. "mode": "0664",
  3755. "owner": "cizar",
  3756. "size": 738,
  3757. "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626585.28-97271187885283/source",
  3758. "state": "file",
  3759. "uid": 1001
  3760. }
  3761.  
  3762. TASK [consul : check if consul3 svc exists] ************************************************************************************************************************************************************************
  3763. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:12
  3764. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3765. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3766. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3767. changed: [localhost] => {
  3768. "changed": true,
  3769. "cmd": "kubectl --namespace=vault get svc | grep consul3 | awk '{print $1}'",
  3770. "delta": "0:00:00.648147",
  3771. "end": "2017-11-02 14:43:06.158099",
  3772. "invocation": {
  3773. "module_args": {
  3774. "_raw_params": "kubectl --namespace=vault get svc | grep consul3 | awk '{print $1}'",
  3775. "_uses_shell": true,
  3776. "chdir": null,
  3777. "creates": null,
  3778. "executable": null,
  3779. "removes": null,
  3780. "warn": true
  3781. }
  3782. },
  3783. "rc": 0,
  3784. "start": "2017-11-02 14:43:05.509952",
  3785. "stderr": "",
  3786. "stderr_lines": [],
  3787. "stdout": "",
  3788. "stdout_lines": []
  3789. }
  3790.  
  3791. TASK [consul : create consul3 svc] *********************************************************************************************************************************************************************************
  3792. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:17
  3793. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3794. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3795. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3796. changed: [localhost] => {
  3797. "changed": true,
  3798. "cmd": "kubectl --namespace=vault create -f /tmp/consul/service.yaml",
  3799. "delta": "0:00:00.820397",
  3800. "end": "2017-11-02 14:43:07.067283",
  3801. "invocation": {
  3802. "module_args": {
  3803. "_raw_params": "kubectl --namespace=vault create -f /tmp/consul/service.yaml",
  3804. "_uses_shell": true,
  3805. "chdir": null,
  3806. "creates": null,
  3807. "executable": null,
  3808. "removes": null,
  3809. "warn": true
  3810. }
  3811. },
  3812. "rc": 0,
  3813. "start": "2017-11-02 14:43:06.246886",
  3814. "stderr": "",
  3815. "stderr_lines": [],
  3816. "stdout": "service \"consul3\" created",
  3817. "stdout_lines": [
  3818. "service \"consul3\" created"
  3819. ]
  3820. }
  3821.  
  3822. TASK [consul : create DNS record] **********************************************************************************************************************************************************************************
  3823. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.yml:22
  3824. included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml for localhost
  3825.  
  3826. TASK [consul : check if consul3 svc exists] ************************************************************************************************************************************************************************
  3827. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:3
  3828. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3829. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3830. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3831. changed: [localhost] => {
  3832. "changed": true,
  3833. "cmd": "kubectl --namespace=vault get svc -o jsonpath={.items[0].spec.clusterIP}",
  3834. "delta": "0:00:00.641644",
  3835. "end": "2017-11-02 14:43:07.858857",
  3836. "invocation": {
  3837. "module_args": {
  3838. "_raw_params": "kubectl --namespace=vault get svc -o jsonpath={.items[0].spec.clusterIP}",
  3839. "_uses_shell": true,
  3840. "chdir": null,
  3841. "creates": null,
  3842. "executable": null,
  3843. "removes": null,
  3844. "warn": true
  3845. }
  3846. },
  3847. "rc": 0,
  3848. "start": "2017-11-02 14:43:07.217213",
  3849. "stderr": "",
  3850. "stderr_lines": [],
  3851. "stdout": "10.3.242.105",
  3852. "stdout_lines": [
  3853. "10.3.242.105"
  3854. ]
  3855. }
  3856.  
  3857. TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
  3858. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:9
  3859. ok: [localhost] => {
  3860. "ansible_facts": {
  3861. "RECORD": "host3.svc.consul.loc-cizar1"
  3862. },
  3863. "changed": false
  3864. }
  3865.  
  3866. TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
  3867. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:13
  3868. skipping: [localhost] => {
  3869. "changed": false,
  3870. "skip_reason": "Conditional result was False",
  3871. "skipped": true
  3872. }
  3873.  
  3874. TASK [consul : close failed transaction if exists] *****************************************************************************************************************************************************************
  3875. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:17
  3876. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3877. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3878. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3879. fatal: [localhost]: FAILED! => {
  3880. "changed": true,
  3881. "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction abort -z oro-cloud-development",
  3882. "delta": "0:00:00.221944",
  3883. "end": "2017-11-02 14:43:08.198459",
  3884. "failed": true,
  3885. "invocation": {
  3886. "module_args": {
  3887. "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction abort -z oro-cloud-development",
  3888. "_uses_shell": true,
  3889. "chdir": null,
  3890. "creates": null,
  3891. "executable": null,
  3892. "removes": null,
  3893. "warn": true
  3894. }
  3895. },
  3896. "rc": 1,
  3897. "start": "2017-11-02 14:43:07.976515",
  3898. "stderr": "ERROR: (gcloud.dns.record-sets.transaction.abort) transaction not found at [transaction.yaml]",
  3899. "stderr_lines": [
  3900. "ERROR: (gcloud.dns.record-sets.transaction.abort) transaction not found at [transaction.yaml]"
  3901. ],
  3902. "stdout": "",
  3903. "stdout_lines": []
  3904. }
  3905. ...ignoring
  3906.  
  3907. TASK [consul : get record if exists] *******************************************************************************************************************************************************************************
  3908. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:22
  3909. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3910. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3911. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3912. changed: [localhost] => {
  3913. "changed": true,
  3914. "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets list -z oro-cloud-development | awk /^host3.svc.consul.loc-cizar1/'{print $4}'",
  3915. "delta": "0:00:01.012012",
  3916. "end": "2017-11-02 14:43:09.293810",
  3917. "invocation": {
  3918. "module_args": {
  3919. "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets list -z oro-cloud-development | awk /^host3.svc.consul.loc-cizar1/'{print $4}'",
  3920. "_uses_shell": true,
  3921. "chdir": null,
  3922. "creates": null,
  3923. "executable": null,
  3924. "removes": null,
  3925. "warn": true
  3926. }
  3927. },
  3928. "rc": 0,
  3929. "start": "2017-11-02 14:43:08.281798",
  3930. "stderr": "",
  3931. "stderr_lines": [],
  3932. "stdout": "10.3.244.126",
  3933. "stdout_lines": [
  3934. "10.3.244.126"
  3935. ]
  3936. }
  3937.  
  3938. TASK [consul : start transaction] **********************************************************************************************************************************************************************************
  3939. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:27
  3940. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3941. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3942. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3943. changed: [localhost] => {
  3944. "changed": true,
  3945. "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction start -z oro-cloud-development",
  3946. "delta": "0:00:00.903194",
  3947. "end": "2017-11-02 14:43:10.283341",
  3948. "invocation": {
  3949. "module_args": {
  3950. "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction start -z oro-cloud-development",
  3951. "_uses_shell": true,
  3952. "chdir": null,
  3953. "creates": null,
  3954. "executable": null,
  3955. "removes": null,
  3956. "warn": true
  3957. }
  3958. },
  3959. "rc": 0,
  3960. "start": "2017-11-02 14:43:09.380147",
  3961. "stderr": "Transaction started [transaction.yaml].",
  3962. "stderr_lines": [
  3963. "Transaction started [transaction.yaml]."
  3964. ],
  3965. "stdout": "",
  3966. "stdout_lines": []
  3967. }
  3968.  
  3969. TASK [consul : delete record if exists] ****************************************************************************************************************************************************************************
  3970. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:31
  3971. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  3972. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3973. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  3974. changed: [localhost] => {
  3975. "changed": true,
  3976. "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'",
  3977. "delta": "0:00:00.644449",
  3978. "end": "2017-11-02 14:43:11.019211",
  3979. "invocation": {
  3980. "module_args": {
  3981. "_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'",
  3982. "_uses_shell": true,
  3983. "chdir": null,
  3984. "creates": null,
  3985. "executable": null,
  3986. "removes": null,
  3987. "warn": true
  3988. }
  3989. },
  3990. "rc": 0,
  3991. "start": "2017-11-02 14:43:10.374762",
  3992. "stderr": "Record removal appended to transaction at [transaction.yaml].",
  3993. "stderr_lines": [
  3994. "Record removal appended to transaction at [transaction.yaml]."
  3995. ],
  3996. "stdout": "",
  3997. "stdout_lines": []
  3998. }
  3999.  
  4000. TASK [consul : create/update record] *******************************************************************************************************************************************************************************
  4001. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:37
  4002. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  4003. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4004. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4005. changed: [localhost] => {
  4006. "changed": true,
  4007. "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'",
  4008. "delta": "0:00:00.226783",
  4009. "end": "2017-11-02 14:43:11.331698",
  4010. "invocation": {
  4011. "module_args": {
  4012. "_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'",
  4013. "_uses_shell": true,
  4014. "chdir": null,
  4015. "creates": null,
  4016. "executable": null,
  4017. "removes": null,
  4018. "warn": true
  4019. }
  4020. },
  4021. "rc": 0,
  4022. "start": "2017-11-02 14:43:11.104915",
  4023. "stderr": "Record addition appended to transaction at [transaction.yaml].",
  4024. "stderr_lines": [
  4025. "Record addition appended to transaction at [transaction.yaml]."
  4026. ],
  4027. "stdout": "",
  4028. "stdout_lines": []
  4029. }
  4030.  
  4031. TASK [consul : execute transaction] ********************************************************************************************************************************************************************************
  4032. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:41
  4033. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  4034. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4035. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4036. changed: [localhost] => {
  4037. "changed": true,
  4038. "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction execute -z oro-cloud-development",
  4039. "delta": "0:00:00.891709",
  4040. "end": "2017-11-02 14:43:12.309717",
  4041. "invocation": {
  4042. "module_args": {
  4043. "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction execute -z oro-cloud-development",
  4044. "_uses_shell": true,
  4045. "chdir": null,
  4046. "creates": null,
  4047. "executable": null,
  4048. "removes": null,
  4049. "warn": true
  4050. }
  4051. },
  4052. "rc": 0,
  4053. "start": "2017-11-02 14:43:11.418008",
  4054. "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].",
  4055. "stderr_lines": [
  4056. "Executed transaction [transaction.yaml] for managed-zone [oro-cloud-development].",
  4057. "Created [https://www.googleapis.com/dns/v1/projects/oro-cloud-development/managedZones/oro-cloud-development/changes/1572]."
  4058. ],
  4059. "stdout": "ID START_TIME STATUS\n1572 2017-11-02T12:43:11.946Z pending",
  4060. "stdout_lines": [
  4061. "ID START_TIME STATUS",
  4062. "1572 2017-11-02T12:43:11.946Z pending"
  4063. ]
  4064. }
  4065.  
  4066. TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
  4067. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:45
  4068. ok: [localhost] => {
  4069. "ansible_facts": {
  4070. "HOST_URL3": "host3.svc.consul.loc-cizar1.cloud-development.oroinc.com"
  4071. },
  4072. "changed": false
  4073. }
  4074.  
  4075. TASK [consul : creating svc files from templates] ******************************************************************************************************************************************************************
  4076. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.lb.yml:3
  4077. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  4078. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4079. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4080. <127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
  4081. <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'
  4082. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  4083. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4084. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
  4085. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4086. <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'
  4087. ok: [localhost] => {
  4088. "changed": false,
  4089. "diff": {
  4090. "after": {
  4091. "path": "/tmp/consul/service.lb.yaml"
  4092. },
  4093. "before": {
  4094. "path": "/tmp/consul/service.lb.yaml"
  4095. }
  4096. },
  4097. "gid": 1001,
  4098. "group": "cizar",
  4099. "invocation": {
  4100. "module_args": {
  4101. "attributes": null,
  4102. "backup": null,
  4103. "content": null,
  4104. "delimiter": null,
  4105. "dest": "/tmp/consul/service.lb.yaml",
  4106. "diff_peek": null,
  4107. "directory_mode": null,
  4108. "follow": true,
  4109. "force": false,
  4110. "group": null,
  4111. "mode": null,
  4112. "original_basename": "service.lb.j2",
  4113. "owner": null,
  4114. "path": "/tmp/consul/service.lb.yaml",
  4115. "recurse": false,
  4116. "regexp": null,
  4117. "remote_src": null,
  4118. "selevel": null,
  4119. "serole": null,
  4120. "setype": null,
  4121. "seuser": null,
  4122. "src": null,
  4123. "state": null,
  4124. "unsafe_writes": null,
  4125. "validate": null
  4126. }
  4127. },
  4128. "mode": "0664",
  4129. "owner": "cizar",
  4130. "path": "/tmp/consul/service.lb.yaml",
  4131. "size": 164,
  4132. "state": "file",
  4133. "uid": 1001
  4134. }
  4135.  
  4136. TASK [consul : creating if consul-lb svc exists] *******************************************************************************************************************************************************************
  4137. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.lb.yml:8
  4138. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  4139. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4140. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4141. changed: [localhost] => {
  4142. "changed": true,
  4143. "cmd": "kubectl --namespace=vault get svc | awk '/consul-lb/{print $1}'",
  4144. "delta": "0:00:00.645152",
  4145. "end": "2017-11-02 14:43:13.315706",
  4146. "invocation": {
  4147. "module_args": {
  4148. "_raw_params": "kubectl --namespace=vault get svc | awk '/consul-lb/{print $1}'",
  4149. "_uses_shell": true,
  4150. "chdir": null,
  4151. "creates": null,
  4152. "executable": null,
  4153. "removes": null,
  4154. "warn": true
  4155. }
  4156. },
  4157. "rc": 0,
  4158. "start": "2017-11-02 14:43:12.670554",
  4159. "stderr": "",
  4160. "stderr_lines": [],
  4161. "stdout": "",
  4162. "stdout_lines": []
  4163. }
  4164.  
  4165. TASK [consul : deleting consul-lb svc] *****************************************************************************************************************************************************************************
  4166. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.lb.yml:13
  4167. skipping: [localhost] => {
  4168. "changed": false,
  4169. "skip_reason": "Conditional result was False",
  4170. "skipped": true
  4171. }
  4172.  
  4173. TASK [consul : creating consul-lb svc] *****************************************************************************************************************************************************************************
  4174. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.lb.yml:18
  4175. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  4176. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4177. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4178. changed: [localhost] => {
  4179. "changed": true,
  4180. "cmd": "kubectl --namespace=vault create -f /tmp/consul/service.lb.yaml",
  4181. "delta": "0:00:00.838215",
  4182. "end": "2017-11-02 14:43:14.256273",
  4183. "invocation": {
  4184. "module_args": {
  4185. "_raw_params": "kubectl --namespace=vault create -f /tmp/consul/service.lb.yaml",
  4186. "_uses_shell": true,
  4187. "chdir": null,
  4188. "creates": null,
  4189. "executable": null,
  4190. "removes": null,
  4191. "warn": true
  4192. }
  4193. },
  4194. "rc": 0,
  4195. "start": "2017-11-02 14:43:13.418058",
  4196. "stderr": "",
  4197. "stderr_lines": [],
  4198. "stdout": "service \"consul-lb\" created",
  4199. "stdout_lines": [
  4200. "service \"consul-lb\" created"
  4201. ]
  4202. }
  4203.  
  4204. TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
  4205. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/svc.lb.yml:22
  4206. ok: [localhost] => {
  4207. "ansible_facts": {
  4208. "svc_node_num": "-lb"
  4209. },
  4210. "changed": false
  4211. }
  4212.  
  4213. TASK [consul : check if consul-lb svc exists] **********************************************************************************************************************************************************************
  4214. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:3
  4215. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  4216. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4217. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4218. changed: [localhost] => {
  4219. "changed": true,
  4220. "cmd": "kubectl --namespace=vault get svc -o jsonpath={.items[0].spec.clusterIP}",
  4221. "delta": "0:00:00.675933",
  4222. "end": "2017-11-02 14:43:15.034692",
  4223. "invocation": {
  4224. "module_args": {
  4225. "_raw_params": "kubectl --namespace=vault get svc -o jsonpath={.items[0].spec.clusterIP}",
  4226. "_uses_shell": true,
  4227. "chdir": null,
  4228. "creates": null,
  4229. "executable": null,
  4230. "removes": null,
  4231. "warn": true
  4232. }
  4233. },
  4234. "rc": 0,
  4235. "start": "2017-11-02 14:43:14.358759",
  4236. "stderr": "",
  4237. "stderr_lines": [],
  4238. "stdout": "10.3.245.46",
  4239. "stdout_lines": [
  4240. "10.3.245.46"
  4241. ]
  4242. }
  4243.  
  4244. TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
  4245. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:9
  4246. skipping: [localhost] => {
  4247. "changed": false,
  4248. "skip_reason": "Conditional result was False",
  4249. "skipped": true
  4250. }
  4251.  
  4252. TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
  4253. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:13
  4254. ok: [localhost] => {
  4255. "ansible_facts": {
  4256. "RECORD": "lb.svc.consul.loc-cizar1"
  4257. },
  4258. "changed": false
  4259. }
  4260.  
  4261. TASK [consul : close failed transaction if exists] *****************************************************************************************************************************************************************
  4262. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:17
  4263. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  4264. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4265. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4266. fatal: [localhost]: FAILED! => {
  4267. "changed": true,
  4268. "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction abort -z oro-cloud-development",
  4269. "delta": "0:00:00.217817",
  4270. "end": "2017-11-02 14:43:15.371402",
  4271. "failed": true,
  4272. "invocation": {
  4273. "module_args": {
  4274. "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction abort -z oro-cloud-development",
  4275. "_uses_shell": true,
  4276. "chdir": null,
  4277. "creates": null,
  4278. "executable": null,
  4279. "removes": null,
  4280. "warn": true
  4281. }
  4282. },
  4283. "rc": 1,
  4284. "start": "2017-11-02 14:43:15.153585",
  4285. "stderr": "ERROR: (gcloud.dns.record-sets.transaction.abort) transaction not found at [transaction.yaml]",
  4286. "stderr_lines": [
  4287. "ERROR: (gcloud.dns.record-sets.transaction.abort) transaction not found at [transaction.yaml]"
  4288. ],
  4289. "stdout": "",
  4290. "stdout_lines": []
  4291. }
  4292. ...ignoring
  4293.  
  4294. TASK [consul : get record if exists] *******************************************************************************************************************************************************************************
  4295. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:22
  4296. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  4297. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4298. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4299. changed: [localhost] => {
  4300. "changed": true,
  4301. "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets list -z oro-cloud-development | awk /^lb.svc.consul.loc-cizar1/'{print $4}'",
  4302. "delta": "0:00:01.011732",
  4303. "end": "2017-11-02 14:43:16.469872",
  4304. "invocation": {
  4305. "module_args": {
  4306. "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets list -z oro-cloud-development | awk /^lb.svc.consul.loc-cizar1/'{print $4}'",
  4307. "_uses_shell": true,
  4308. "chdir": null,
  4309. "creates": null,
  4310. "executable": null,
  4311. "removes": null,
  4312. "warn": true
  4313. }
  4314. },
  4315. "rc": 0,
  4316. "start": "2017-11-02 14:43:15.458140",
  4317. "stderr": "",
  4318. "stderr_lines": [],
  4319. "stdout": "10.3.241.172",
  4320. "stdout_lines": [
  4321. "10.3.241.172"
  4322. ]
  4323. }
  4324.  
  4325. TASK [consul : start transaction] **********************************************************************************************************************************************************************************
  4326. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:27
  4327. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  4328. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4329. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4330. changed: [localhost] => {
  4331. "changed": true,
  4332. "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction start -z oro-cloud-development",
  4333. "delta": "0:00:00.966509",
  4334. "end": "2017-11-02 14:43:17.532817",
  4335. "invocation": {
  4336. "module_args": {
  4337. "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction start -z oro-cloud-development",
  4338. "_uses_shell": true,
  4339. "chdir": null,
  4340. "creates": null,
  4341. "executable": null,
  4342. "removes": null,
  4343. "warn": true
  4344. }
  4345. },
  4346. "rc": 0,
  4347. "start": "2017-11-02 14:43:16.566308",
  4348. "stderr": "Transaction started [transaction.yaml].",
  4349. "stderr_lines": [
  4350. "Transaction started [transaction.yaml]."
  4351. ],
  4352. "stdout": "",
  4353. "stdout_lines": []
  4354. }
  4355.  
  4356. TASK [consul : delete record if exists] ****************************************************************************************************************************************************************************
  4357. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:31
  4358. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  4359. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4360. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4361. changed: [localhost] => {
  4362. "changed": true,
  4363. "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'",
  4364. "delta": "0:00:00.684628",
  4365. "end": "2017-11-02 14:43:18.308588",
  4366. "invocation": {
  4367. "module_args": {
  4368. "_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'",
  4369. "_uses_shell": true,
  4370. "chdir": null,
  4371. "creates": null,
  4372. "executable": null,
  4373. "removes": null,
  4374. "warn": true
  4375. }
  4376. },
  4377. "rc": 0,
  4378. "start": "2017-11-02 14:43:17.623960",
  4379. "stderr": "Record removal appended to transaction at [transaction.yaml].",
  4380. "stderr_lines": [
  4381. "Record removal appended to transaction at [transaction.yaml]."
  4382. ],
  4383. "stdout": "",
  4384. "stdout_lines": []
  4385. }
  4386.  
  4387. TASK [consul : create/update record] *******************************************************************************************************************************************************************************
  4388. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:37
  4389. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  4390. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4391. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4392. changed: [localhost] => {
  4393. "changed": true,
  4394. "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'",
  4395. "delta": "0:00:00.231149",
  4396. "end": "2017-11-02 14:43:18.630110",
  4397. "invocation": {
  4398. "module_args": {
  4399. "_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'",
  4400. "_uses_shell": true,
  4401. "chdir": null,
  4402. "creates": null,
  4403. "executable": null,
  4404. "removes": null,
  4405. "warn": true
  4406. }
  4407. },
  4408. "rc": 0,
  4409. "start": "2017-11-02 14:43:18.398961",
  4410. "stderr": "Record addition appended to transaction at [transaction.yaml].",
  4411. "stderr_lines": [
  4412. "Record addition appended to transaction at [transaction.yaml]."
  4413. ],
  4414. "stdout": "",
  4415. "stdout_lines": []
  4416. }
  4417.  
  4418. TASK [consul : execute transaction] ********************************************************************************************************************************************************************************
  4419. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:41
  4420. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  4421. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4422. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4423. changed: [localhost] => {
  4424. "changed": true,
  4425. "cmd": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction execute -z oro-cloud-development",
  4426. "delta": "0:00:00.900543",
  4427. "end": "2017-11-02 14:43:19.620215",
  4428. "invocation": {
  4429. "module_args": {
  4430. "_raw_params": "~/google-cloud-sdk/bin/gcloud dns record-sets transaction execute -z oro-cloud-development",
  4431. "_uses_shell": true,
  4432. "chdir": null,
  4433. "creates": null,
  4434. "executable": null,
  4435. "removes": null,
  4436. "warn": true
  4437. }
  4438. },
  4439. "rc": 0,
  4440. "start": "2017-11-02 14:43:18.719672",
  4441. "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].",
  4442. "stderr_lines": [
  4443. "Executed transaction [transaction.yaml] for managed-zone [oro-cloud-development].",
  4444. "Created [https://www.googleapis.com/dns/v1/projects/oro-cloud-development/managedZones/oro-cloud-development/changes/1573]."
  4445. ],
  4446. "stdout": "ID START_TIME STATUS\n1573 2017-11-02T12:43:19.261Z pending",
  4447. "stdout_lines": [
  4448. "ID START_TIME STATUS",
  4449. "1573 2017-11-02T12:43:19.261Z pending"
  4450. ]
  4451. }
  4452.  
  4453. TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
  4454. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/dnsRecord.yml:45
  4455. skipping: [localhost] => {
  4456. "changed": false,
  4457. "skip_reason": "Conditional result was False",
  4458. "skipped": true
  4459. }
  4460.  
  4461. TASK [consul : writing empty string to consul peers.json if recovery not required] *********************************************************************************************************************************
  4462. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:103
  4463. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  4464. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4465. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4466. changed: [localhost] => {
  4467. "changed": true,
  4468. "cmd": "echo \"\" | base64",
  4469. "delta": "0:00:00.001640",
  4470. "end": "2017-11-02 14:43:19.720895",
  4471. "invocation": {
  4472. "module_args": {
  4473. "_raw_params": "echo \"\" | base64",
  4474. "_uses_shell": true,
  4475. "chdir": null,
  4476. "creates": null,
  4477. "executable": null,
  4478. "removes": null,
  4479. "warn": true
  4480. }
  4481. },
  4482. "rc": 0,
  4483. "start": "2017-11-02 14:43:19.719255",
  4484. "stderr": "",
  4485. "stderr_lines": [],
  4486. "stdout": "Cg==",
  4487. "stdout_lines": [
  4488. "Cg=="
  4489. ]
  4490. }
  4491.  
  4492. TASK [consul : writing service ips to consul peers.json if recovery required] **************************************************************************************************************************************
  4493. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:109
  4494. skipping: [localhost] => {
  4495. "changed": false,
  4496. "skip_reason": "Conditional result was False",
  4497. "skipped": true
  4498. }
  4499.  
  4500. TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
  4501. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:115
  4502. skipping: [localhost] => {
  4503. "changed": false,
  4504. "skip_reason": "Conditional result was False",
  4505. "skipped": true
  4506. }
  4507.  
  4508. TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
  4509. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:119
  4510. ok: [localhost] => {
  4511. "ansible_facts": {
  4512. "consul_peers": "Cg=="
  4513. },
  4514. "changed": false
  4515. }
  4516.  
  4517. TASK [consul : checking if consul-peers secret exists] *************************************************************************************************************************************************************
  4518. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:123
  4519. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  4520. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4521. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4522. changed: [localhost] => {
  4523. "changed": true,
  4524. "cmd": "kubectl --namespace=vault get secret | awk '/consul-peers/{print $1}'",
  4525. "delta": "0:00:00.651894",
  4526. "end": "2017-11-02 14:43:20.509958",
  4527. "invocation": {
  4528. "module_args": {
  4529. "_raw_params": "kubectl --namespace=vault get secret | awk '/consul-peers/{print $1}'",
  4530. "_uses_shell": true,
  4531. "chdir": null,
  4532. "creates": null,
  4533. "executable": null,
  4534. "removes": null,
  4535. "warn": true
  4536. }
  4537. },
  4538. "rc": 0,
  4539. "start": "2017-11-02 14:43:19.858064",
  4540. "stderr": "",
  4541. "stderr_lines": [],
  4542. "stdout": "",
  4543. "stdout_lines": []
  4544. }
  4545.  
  4546. TASK [consul : deleting consul-peers if exists] ********************************************************************************************************************************************************************
  4547. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:128
  4548. skipping: [localhost] => {
  4549. "changed": false,
  4550. "skip_reason": "Conditional result was False",
  4551. "skipped": true
  4552. }
  4553.  
  4554. TASK [consul : creating secret.peers.yml] **************************************************************************************************************************************************************************
  4555. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:133
  4556. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  4557. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4558. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4559. <127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
  4560. <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'
  4561. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  4562. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4563. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/file.py
  4564. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4565. <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'
  4566. ok: [localhost] => {
  4567. "changed": false,
  4568. "diff": {
  4569. "after": {
  4570. "path": "/tmp/consul/secret.peers.yml"
  4571. },
  4572. "before": {
  4573. "path": "/tmp/consul/secret.peers.yml"
  4574. }
  4575. },
  4576. "gid": 1001,
  4577. "group": "cizar",
  4578. "invocation": {
  4579. "module_args": {
  4580. "attributes": null,
  4581. "backup": null,
  4582. "content": null,
  4583. "delimiter": null,
  4584. "dest": "/tmp/consul/secret.peers.yml",
  4585. "diff_peek": null,
  4586. "directory_mode": null,
  4587. "follow": true,
  4588. "force": false,
  4589. "group": null,
  4590. "mode": null,
  4591. "original_basename": "secret.peers.j2",
  4592. "owner": null,
  4593. "path": "/tmp/consul/secret.peers.yml",
  4594. "recurse": false,
  4595. "regexp": null,
  4596. "remote_src": null,
  4597. "selevel": null,
  4598. "serole": null,
  4599. "setype": null,
  4600. "seuser": null,
  4601. "src": null,
  4602. "state": null,
  4603. "unsafe_writes": null,
  4604. "validate": null
  4605. }
  4606. },
  4607. "mode": "0664",
  4608. "owner": "cizar",
  4609. "path": "/tmp/consul/secret.peers.yml",
  4610. "size": 101,
  4611. "state": "file",
  4612. "uid": 1001
  4613. }
  4614.  
  4615. TASK [consul : creating consul-peers secret in kubernetes] *********************************************************************************************************************************************************
  4616. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:138
  4617. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  4618. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4619. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4620. changed: [localhost] => {
  4621. "changed": true,
  4622. "cmd": "kubectl --namespace=vault create -f /tmp/consul/secret.peers.yml",
  4623. "delta": "0:00:00.808433",
  4624. "end": "2017-11-02 14:43:21.674878",
  4625. "invocation": {
  4626. "module_args": {
  4627. "_raw_params": "kubectl --namespace=vault create -f /tmp/consul/secret.peers.yml",
  4628. "_uses_shell": true,
  4629. "chdir": null,
  4630. "creates": null,
  4631. "executable": null,
  4632. "removes": null,
  4633. "warn": true
  4634. }
  4635. },
  4636. "rc": 0,
  4637. "start": "2017-11-02 14:43:20.866445",
  4638. "stderr": "",
  4639. "stderr_lines": [],
  4640. "stdout": "secret \"consul-peers\" created",
  4641. "stdout_lines": [
  4642. "secret \"consul-peers\" created"
  4643. ]
  4644. }
  4645.  
  4646. TASK [consul : setting up 3 consul replication controllers] ********************************************************************************************************************************************************
  4647. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:142
  4648. included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml for localhost
  4649. included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml for localhost
  4650. included: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml for localhost
  4651.  
  4652. TASK [consul : check required variable rc_node_num] ****************************************************************************************************************************************************************
  4653. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:3
  4654. skipping: [localhost] => {
  4655. "changed": false,
  4656. "skip_reason": "Conditional result was False",
  4657. "skipped": true
  4658. }
  4659.  
  4660. TASK [consul : check required variable acl_datacenter] *************************************************************************************************************************************************************
  4661. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:8
  4662. skipping: [localhost] => {
  4663. "changed": false,
  4664. "skip_reason": "Conditional result was False",
  4665. "skipped": true
  4666. }
  4667.  
  4668. TASK [consul : check required variable datacenter] *****************************************************************************************************************************************************************
  4669. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:13
  4670. skipping: [localhost] => {
  4671. "changed": false,
  4672. "skip_reason": "Conditional result was False",
  4673. "skipped": true
  4674. }
  4675.  
  4676. TASK [consul : check required variable acl_default_policy] *********************************************************************************************************************************************************
  4677. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:18
  4678. skipping: [localhost] => {
  4679. "changed": false,
  4680. "skip_reason": "Conditional result was False",
  4681. "skipped": true
  4682. }
  4683.  
  4684. TASK [consul : check required variable acl_down_policy] ************************************************************************************************************************************************************
  4685. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:23
  4686. skipping: [localhost] => {
  4687. "changed": false,
  4688. "skip_reason": "Conditional result was False",
  4689. "skipped": true
  4690. }
  4691.  
  4692. TASK [consul : check required variable acl_master_token] ***********************************************************************************************************************************************************
  4693. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:28
  4694. skipping: [localhost] => {
  4695. "changed": false,
  4696. "skip_reason": "Conditional result was False",
  4697. "skipped": true
  4698. }
  4699.  
  4700. TASK [consul : check required variable consul_encrypt_key] *********************************************************************************************************************************************************
  4701. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:33
  4702. skipping: [localhost] => {
  4703. "changed": false,
  4704. "skip_reason": "Conditional result was False",
  4705. "skipped": true
  4706. }
  4707.  
  4708. TASK [consul : check required variable node_memory_limits] *********************************************************************************************************************************************************
  4709. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:38
  4710. skipping: [localhost] => {
  4711. "changed": false,
  4712. "skip_reason": "Conditional result was False",
  4713. "skipped": true
  4714. }
  4715.  
  4716. TASK [consul : check required variable node_memory_requests] *******************************************************************************************************************************************************
  4717. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:43
  4718. skipping: [localhost] => {
  4719. "changed": false,
  4720. "skip_reason": "Conditional result was False",
  4721. "skipped": true
  4722. }
  4723.  
  4724. TASK [consul : check required variable node_cpu_limits] ************************************************************************************************************************************************************
  4725. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:48
  4726. skipping: [localhost] => {
  4727. "changed": false,
  4728. "skip_reason": "Conditional result was False",
  4729. "skipped": true
  4730. }
  4731.  
  4732. TASK [consul : check required variable node_cpu_requests] **********************************************************************************************************************************************************
  4733. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:53
  4734. skipping: [localhost] => {
  4735. "changed": false,
  4736. "skip_reason": "Conditional result was False",
  4737. "skipped": true
  4738. }
  4739.  
  4740. TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
  4741. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:58
  4742. ok: [localhost] => {
  4743. "ansible_facts": {
  4744. "consul_per_disk": "loc-cizar1-consul1-disk1"
  4745. },
  4746. "changed": false
  4747. }
  4748.  
  4749. TASK [consul : Create rc files from templates] *********************************************************************************************************************************************************************
  4750. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:61
  4751. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  4752. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4753. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4754. <127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
  4755. <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'
  4756. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  4757. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4758. <127.0.0.1> PUT /tmp/tmpkJTuvE TO /home/cizar/.ansible/tmp/ansible-tmp-1509626602.16-104821500655579/source
  4759. <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'
  4760. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/copy.py
  4761. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4762. <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'
  4763. changed: [localhost] => {
  4764. "changed": true,
  4765. "checksum": "cd73479649b61bf9325a1c047006bea96790727f",
  4766. "dest": "/tmp/consul/rc.yaml",
  4767. "gid": 1001,
  4768. "group": "cizar",
  4769. "invocation": {
  4770. "module_args": {
  4771. "attributes": null,
  4772. "backup": false,
  4773. "content": null,
  4774. "delimiter": null,
  4775. "dest": "/tmp/consul/rc.yaml",
  4776. "directory_mode": null,
  4777. "follow": true,
  4778. "force": true,
  4779. "group": null,
  4780. "mode": null,
  4781. "original_basename": "rc.j2",
  4782. "owner": null,
  4783. "regexp": null,
  4784. "remote_src": null,
  4785. "selevel": null,
  4786. "serole": null,
  4787. "setype": null,
  4788. "seuser": null,
  4789. "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626602.16-104821500655579/source",
  4790. "unsafe_writes": null,
  4791. "validate": null
  4792. }
  4793. },
  4794. "md5sum": "6515aac3632939552d60f972ae338061",
  4795. "mode": "0664",
  4796. "owner": "cizar",
  4797. "size": 2373,
  4798. "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626602.16-104821500655579/source",
  4799. "state": "file",
  4800. "uid": 1001
  4801. }
  4802.  
  4803. TASK [consul : check if consul1 rc exists] *************************************************************************************************************************************************************************
  4804. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:66
  4805. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  4806. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4807. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4808. changed: [localhost] => {
  4809. "changed": true,
  4810. "cmd": "kubectl --namespace=vault get rc | grep consul1 | awk '{print $1}'",
  4811. "delta": "0:00:00.642356",
  4812. "end": "2017-11-02 14:43:23.053525",
  4813. "invocation": {
  4814. "module_args": {
  4815. "_raw_params": "kubectl --namespace=vault get rc | grep consul1 | awk '{print $1}'",
  4816. "_uses_shell": true,
  4817. "chdir": null,
  4818. "creates": null,
  4819. "executable": null,
  4820. "removes": null,
  4821. "warn": true
  4822. }
  4823. },
  4824. "rc": 0,
  4825. "start": "2017-11-02 14:43:22.411169",
  4826. "stderr": "No resources found.",
  4827. "stderr_lines": [
  4828. "No resources found."
  4829. ],
  4830. "stdout": "",
  4831. "stdout_lines": []
  4832. }
  4833.  
  4834. TASK [consul : check if "loc-cizar1-consul1-disk1" persistent disk has been already created] ***********************************************************************************************************************
  4835. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:71
  4836. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  4837. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4838. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4839. changed: [localhost] => {
  4840. "changed": true,
  4841. "cmd": "~/google-cloud-sdk/bin/gcloud compute disks list | awk '/loc-cizar1-consul1-disk1/{print $1}'",
  4842. "delta": "0:00:01.475438",
  4843. "end": "2017-11-02 14:43:24.617314",
  4844. "invocation": {
  4845. "module_args": {
  4846. "_raw_params": "~/google-cloud-sdk/bin/gcloud compute disks list | awk '/loc-cizar1-consul1-disk1/{print $1}'",
  4847. "_uses_shell": true,
  4848. "chdir": null,
  4849. "creates": null,
  4850. "executable": null,
  4851. "removes": null,
  4852. "warn": true
  4853. }
  4854. },
  4855. "rc": 0,
  4856. "start": "2017-11-02 14:43:23.141876",
  4857. "stderr": "",
  4858. "stderr_lines": [],
  4859. "stdout": "loc-cizar1-consul1-disk1",
  4860. "stdout_lines": [
  4861. "loc-cizar1-consul1-disk1"
  4862. ]
  4863. }
  4864.  
  4865. TASK [consul : creating "loc-cizar1-consul1-disk1" persistent disk] ************************************************************************************************************************************************
  4866. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:76
  4867. skipping: [localhost] => {
  4868. "changed": false,
  4869. "skip_reason": "Conditional result was False",
  4870. "skipped": true
  4871. }
  4872.  
  4873. TASK [consul : create consul1 rc] **********************************************************************************************************************************************************************************
  4874. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:82
  4875. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  4876. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4877. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  4878. changed: [localhost] => {
  4879. "changed": true,
  4880. "cmd": "kubectl --namespace=vault create -f /tmp/consul/rc.yaml",
  4881. "delta": "0:00:00.864700",
  4882. "end": "2017-11-02 14:43:25.586099",
  4883. "invocation": {
  4884. "module_args": {
  4885. "_raw_params": "kubectl --namespace=vault create -f /tmp/consul/rc.yaml",
  4886. "_uses_shell": true,
  4887. "chdir": null,
  4888. "creates": null,
  4889. "executable": null,
  4890. "removes": null,
  4891. "warn": true
  4892. }
  4893. },
  4894. "rc": 0,
  4895. "start": "2017-11-02 14:43:24.721399",
  4896. "stderr": "",
  4897. "stderr_lines": [],
  4898. "stdout": "replicationcontroller \"consul1\" created",
  4899. "stdout_lines": [
  4900. "replicationcontroller \"consul1\" created"
  4901. ]
  4902. }
  4903.  
  4904. TASK [consul : check required variable rc_node_num] ****************************************************************************************************************************************************************
  4905. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:3
  4906. skipping: [localhost] => {
  4907. "changed": false,
  4908. "skip_reason": "Conditional result was False",
  4909. "skipped": true
  4910. }
  4911.  
  4912. TASK [consul : check required variable acl_datacenter] *************************************************************************************************************************************************************
  4913. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:8
  4914. skipping: [localhost] => {
  4915. "changed": false,
  4916. "skip_reason": "Conditional result was False",
  4917. "skipped": true
  4918. }
  4919.  
  4920. TASK [consul : check required variable datacenter] *****************************************************************************************************************************************************************
  4921. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:13
  4922. skipping: [localhost] => {
  4923. "changed": false,
  4924. "skip_reason": "Conditional result was False",
  4925. "skipped": true
  4926. }
  4927.  
  4928. TASK [consul : check required variable acl_default_policy] *********************************************************************************************************************************************************
  4929. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:18
  4930. skipping: [localhost] => {
  4931. "changed": false,
  4932. "skip_reason": "Conditional result was False",
  4933. "skipped": true
  4934. }
  4935.  
  4936. TASK [consul : check required variable acl_down_policy] ************************************************************************************************************************************************************
  4937. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:23
  4938. skipping: [localhost] => {
  4939. "changed": false,
  4940. "skip_reason": "Conditional result was False",
  4941. "skipped": true
  4942. }
  4943.  
  4944. TASK [consul : check required variable acl_master_token] ***********************************************************************************************************************************************************
  4945. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:28
  4946. skipping: [localhost] => {
  4947. "changed": false,
  4948. "skip_reason": "Conditional result was False",
  4949. "skipped": true
  4950. }
  4951.  
  4952. TASK [consul : check required variable consul_encrypt_key] *********************************************************************************************************************************************************
  4953. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:33
  4954. skipping: [localhost] => {
  4955. "changed": false,
  4956. "skip_reason": "Conditional result was False",
  4957. "skipped": true
  4958. }
  4959.  
  4960. TASK [consul : check required variable node_memory_limits] *********************************************************************************************************************************************************
  4961. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:38
  4962. skipping: [localhost] => {
  4963. "changed": false,
  4964. "skip_reason": "Conditional result was False",
  4965. "skipped": true
  4966. }
  4967.  
  4968. TASK [consul : check required variable node_memory_requests] *******************************************************************************************************************************************************
  4969. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:43
  4970. skipping: [localhost] => {
  4971. "changed": false,
  4972. "skip_reason": "Conditional result was False",
  4973. "skipped": true
  4974. }
  4975.  
  4976. TASK [consul : check required variable node_cpu_limits] ************************************************************************************************************************************************************
  4977. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:48
  4978. skipping: [localhost] => {
  4979. "changed": false,
  4980. "skip_reason": "Conditional result was False",
  4981. "skipped": true
  4982. }
  4983.  
  4984. TASK [consul : check required variable node_cpu_requests] **********************************************************************************************************************************************************
  4985. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:53
  4986. skipping: [localhost] => {
  4987. "changed": false,
  4988. "skip_reason": "Conditional result was False",
  4989. "skipped": true
  4990. }
  4991.  
  4992. TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
  4993. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:58
  4994. ok: [localhost] => {
  4995. "ansible_facts": {
  4996. "consul_per_disk": "loc-cizar1-consul2-disk1"
  4997. },
  4998. "changed": false
  4999. }
  5000.  
  5001. TASK [consul : Create rc files from templates] *********************************************************************************************************************************************************************
  5002. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:61
  5003. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  5004. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  5005. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5006. <127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
  5007. <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'
  5008. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  5009. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5010. <127.0.0.1> PUT /tmp/tmp3Ugx2t TO /home/cizar/.ansible/tmp/ansible-tmp-1509626605.86-180564106292643/source
  5011. <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'
  5012. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/copy.py
  5013. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5014. <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'
  5015. changed: [localhost] => {
  5016. "changed": true,
  5017. "checksum": "2c42c771fab92c12f62ecd0f3a076417c2ae2d9d",
  5018. "dest": "/tmp/consul/rc.yaml",
  5019. "gid": 1001,
  5020. "group": "cizar",
  5021. "invocation": {
  5022. "module_args": {
  5023. "attributes": null,
  5024. "backup": false,
  5025. "content": null,
  5026. "delimiter": null,
  5027. "dest": "/tmp/consul/rc.yaml",
  5028. "directory_mode": null,
  5029. "follow": true,
  5030. "force": true,
  5031. "group": null,
  5032. "mode": null,
  5033. "original_basename": "rc.j2",
  5034. "owner": null,
  5035. "regexp": null,
  5036. "remote_src": null,
  5037. "selevel": null,
  5038. "serole": null,
  5039. "setype": null,
  5040. "seuser": null,
  5041. "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626605.86-180564106292643/source",
  5042. "unsafe_writes": null,
  5043. "validate": null
  5044. }
  5045. },
  5046. "md5sum": "b5eb64a0c0440bc4df7c53b7d22de5dc",
  5047. "mode": "0664",
  5048. "owner": "cizar",
  5049. "size": 2373,
  5050. "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626605.86-180564106292643/source",
  5051. "state": "file",
  5052. "uid": 1001
  5053. }
  5054.  
  5055. TASK [consul : check if consul2 rc exists] *************************************************************************************************************************************************************************
  5056. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:66
  5057. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5058. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  5059. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5060. changed: [localhost] => {
  5061. "changed": true,
  5062. "cmd": "kubectl --namespace=vault get rc | grep consul2 | awk '{print $1}'",
  5063. "delta": "0:00:00.670357",
  5064. "end": "2017-11-02 14:43:26.777073",
  5065. "invocation": {
  5066. "module_args": {
  5067. "_raw_params": "kubectl --namespace=vault get rc | grep consul2 | awk '{print $1}'",
  5068. "_uses_shell": true,
  5069. "chdir": null,
  5070. "creates": null,
  5071. "executable": null,
  5072. "removes": null,
  5073. "warn": true
  5074. }
  5075. },
  5076. "rc": 0,
  5077. "start": "2017-11-02 14:43:26.106716",
  5078. "stderr": "",
  5079. "stderr_lines": [],
  5080. "stdout": "",
  5081. "stdout_lines": []
  5082. }
  5083.  
  5084. TASK [consul : check if "loc-cizar1-consul2-disk1" persistent disk has been already created] ***********************************************************************************************************************
  5085. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:71
  5086. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5087. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  5088. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5089. changed: [localhost] => {
  5090. "changed": true,
  5091. "cmd": "~/google-cloud-sdk/bin/gcloud compute disks list | awk '/loc-cizar1-consul2-disk1/{print $1}'",
  5092. "delta": "0:00:01.315316",
  5093. "end": "2017-11-02 14:43:28.180030",
  5094. "invocation": {
  5095. "module_args": {
  5096. "_raw_params": "~/google-cloud-sdk/bin/gcloud compute disks list | awk '/loc-cizar1-consul2-disk1/{print $1}'",
  5097. "_uses_shell": true,
  5098. "chdir": null,
  5099. "creates": null,
  5100. "executable": null,
  5101. "removes": null,
  5102. "warn": true
  5103. }
  5104. },
  5105. "rc": 0,
  5106. "start": "2017-11-02 14:43:26.864714",
  5107. "stderr": "",
  5108. "stderr_lines": [],
  5109. "stdout": "loc-cizar1-consul2-disk1",
  5110. "stdout_lines": [
  5111. "loc-cizar1-consul2-disk1"
  5112. ]
  5113. }
  5114.  
  5115. TASK [consul : creating "loc-cizar1-consul2-disk1" persistent disk] ************************************************************************************************************************************************
  5116. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:76
  5117. skipping: [localhost] => {
  5118. "changed": false,
  5119. "skip_reason": "Conditional result was False",
  5120. "skipped": true
  5121. }
  5122.  
  5123. TASK [consul : create consul2 rc] **********************************************************************************************************************************************************************************
  5124. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:82
  5125. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5126. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  5127. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5128. changed: [localhost] => {
  5129. "changed": true,
  5130. "cmd": "kubectl --namespace=vault create -f /tmp/consul/rc.yaml",
  5131. "delta": "0:00:00.820378",
  5132. "end": "2017-11-02 14:43:29.104025",
  5133. "invocation": {
  5134. "module_args": {
  5135. "_raw_params": "kubectl --namespace=vault create -f /tmp/consul/rc.yaml",
  5136. "_uses_shell": true,
  5137. "chdir": null,
  5138. "creates": null,
  5139. "executable": null,
  5140. "removes": null,
  5141. "warn": true
  5142. }
  5143. },
  5144. "rc": 0,
  5145. "start": "2017-11-02 14:43:28.283647",
  5146. "stderr": "",
  5147. "stderr_lines": [],
  5148. "stdout": "replicationcontroller \"consul2\" created",
  5149. "stdout_lines": [
  5150. "replicationcontroller \"consul2\" created"
  5151. ]
  5152. }
  5153.  
  5154. TASK [consul : check required variable rc_node_num] ****************************************************************************************************************************************************************
  5155. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:3
  5156. skipping: [localhost] => {
  5157. "changed": false,
  5158. "skip_reason": "Conditional result was False",
  5159. "skipped": true
  5160. }
  5161.  
  5162. TASK [consul : check required variable acl_datacenter] *************************************************************************************************************************************************************
  5163. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:8
  5164. skipping: [localhost] => {
  5165. "changed": false,
  5166. "skip_reason": "Conditional result was False",
  5167. "skipped": true
  5168. }
  5169.  
  5170. TASK [consul : check required variable datacenter] *****************************************************************************************************************************************************************
  5171. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:13
  5172. skipping: [localhost] => {
  5173. "changed": false,
  5174. "skip_reason": "Conditional result was False",
  5175. "skipped": true
  5176. }
  5177.  
  5178. TASK [consul : check required variable acl_default_policy] *********************************************************************************************************************************************************
  5179. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:18
  5180. skipping: [localhost] => {
  5181. "changed": false,
  5182. "skip_reason": "Conditional result was False",
  5183. "skipped": true
  5184. }
  5185.  
  5186. TASK [consul : check required variable acl_down_policy] ************************************************************************************************************************************************************
  5187. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:23
  5188. skipping: [localhost] => {
  5189. "changed": false,
  5190. "skip_reason": "Conditional result was False",
  5191. "skipped": true
  5192. }
  5193.  
  5194. TASK [consul : check required variable acl_master_token] ***********************************************************************************************************************************************************
  5195. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:28
  5196. skipping: [localhost] => {
  5197. "changed": false,
  5198. "skip_reason": "Conditional result was False",
  5199. "skipped": true
  5200. }
  5201.  
  5202. TASK [consul : check required variable consul_encrypt_key] *********************************************************************************************************************************************************
  5203. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:33
  5204. skipping: [localhost] => {
  5205. "changed": false,
  5206. "skip_reason": "Conditional result was False",
  5207. "skipped": true
  5208. }
  5209.  
  5210. TASK [consul : check required variable node_memory_limits] *********************************************************************************************************************************************************
  5211. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:38
  5212. skipping: [localhost] => {
  5213. "changed": false,
  5214. "skip_reason": "Conditional result was False",
  5215. "skipped": true
  5216. }
  5217.  
  5218. TASK [consul : check required variable node_memory_requests] *******************************************************************************************************************************************************
  5219. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:43
  5220. skipping: [localhost] => {
  5221. "changed": false,
  5222. "skip_reason": "Conditional result was False",
  5223. "skipped": true
  5224. }
  5225.  
  5226. TASK [consul : check required variable node_cpu_limits] ************************************************************************************************************************************************************
  5227. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:48
  5228. skipping: [localhost] => {
  5229. "changed": false,
  5230. "skip_reason": "Conditional result was False",
  5231. "skipped": true
  5232. }
  5233.  
  5234. TASK [consul : check required variable node_cpu_requests] **********************************************************************************************************************************************************
  5235. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:53
  5236. skipping: [localhost] => {
  5237. "changed": false,
  5238. "skip_reason": "Conditional result was False",
  5239. "skipped": true
  5240. }
  5241.  
  5242. TASK [consul : set_fact] *******************************************************************************************************************************************************************************************
  5243. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:58
  5244. ok: [localhost] => {
  5245. "ansible_facts": {
  5246. "consul_per_disk": "loc-cizar1-consul3-disk1"
  5247. },
  5248. "changed": false
  5249. }
  5250.  
  5251. TASK [consul : Create rc files from templates] *********************************************************************************************************************************************************************
  5252. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:61
  5253. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  5254. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  5255. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5256. <127.0.0.1> EXEC /bin/sh -c 'echo ~ && sleep 0'
  5257. <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'
  5258. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/stat.py
  5259. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5260. <127.0.0.1> PUT /tmp/tmp9Vt9t4 TO /home/cizar/.ansible/tmp/ansible-tmp-1509626609.4-163825154305356/source
  5261. <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'
  5262. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/files/copy.py
  5263. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5264. <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'
  5265. changed: [localhost] => {
  5266. "changed": true,
  5267. "checksum": "6cf45017643bd17877c2c8c0d3284d819929120f",
  5268. "dest": "/tmp/consul/rc.yaml",
  5269. "gid": 1001,
  5270. "group": "cizar",
  5271. "invocation": {
  5272. "module_args": {
  5273. "attributes": null,
  5274. "backup": false,
  5275. "content": null,
  5276. "delimiter": null,
  5277. "dest": "/tmp/consul/rc.yaml",
  5278. "directory_mode": null,
  5279. "follow": true,
  5280. "force": true,
  5281. "group": null,
  5282. "mode": null,
  5283. "original_basename": "rc.j2",
  5284. "owner": null,
  5285. "regexp": null,
  5286. "remote_src": null,
  5287. "selevel": null,
  5288. "serole": null,
  5289. "setype": null,
  5290. "seuser": null,
  5291. "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626609.4-163825154305356/source",
  5292. "unsafe_writes": null,
  5293. "validate": null
  5294. }
  5295. },
  5296. "md5sum": "9ad5c93a01e01fdec462f056faac7d36",
  5297. "mode": "0664",
  5298. "owner": "cizar",
  5299. "size": 2373,
  5300. "src": "/home/cizar/.ansible/tmp/ansible-tmp-1509626609.4-163825154305356/source",
  5301. "state": "file",
  5302. "uid": 1001
  5303. }
  5304.  
  5305. TASK [consul : check if consul3 rc exists] *************************************************************************************************************************************************************************
  5306. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:66
  5307. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5308. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  5309. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5310. changed: [localhost] => {
  5311. "changed": true,
  5312. "cmd": "kubectl --namespace=vault get rc | grep consul3 | awk '{print $1}'",
  5313. "delta": "0:00:00.687463",
  5314. "end": "2017-11-02 14:43:30.323377",
  5315. "invocation": {
  5316. "module_args": {
  5317. "_raw_params": "kubectl --namespace=vault get rc | grep consul3 | awk '{print $1}'",
  5318. "_uses_shell": true,
  5319. "chdir": null,
  5320. "creates": null,
  5321. "executable": null,
  5322. "removes": null,
  5323. "warn": true
  5324. }
  5325. },
  5326. "rc": 0,
  5327. "start": "2017-11-02 14:43:29.635914",
  5328. "stderr": "",
  5329. "stderr_lines": [],
  5330. "stdout": "",
  5331. "stdout_lines": []
  5332. }
  5333.  
  5334. TASK [consul : check if "loc-cizar1-consul3-disk1" persistent disk has been already created] ***********************************************************************************************************************
  5335. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:71
  5336. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5337. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  5338. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5339. changed: [localhost] => {
  5340. "changed": true,
  5341. "cmd": "~/google-cloud-sdk/bin/gcloud compute disks list | awk '/loc-cizar1-consul3-disk1/{print $1}'",
  5342. "delta": "0:00:01.131914",
  5343. "end": "2017-11-02 14:43:31.542907",
  5344. "invocation": {
  5345. "module_args": {
  5346. "_raw_params": "~/google-cloud-sdk/bin/gcloud compute disks list | awk '/loc-cizar1-consul3-disk1/{print $1}'",
  5347. "_uses_shell": true,
  5348. "chdir": null,
  5349. "creates": null,
  5350. "executable": null,
  5351. "removes": null,
  5352. "warn": true
  5353. }
  5354. },
  5355. "rc": 0,
  5356. "start": "2017-11-02 14:43:30.410993",
  5357. "stderr": "",
  5358. "stderr_lines": [],
  5359. "stdout": "loc-cizar1-consul3-disk1",
  5360. "stdout_lines": [
  5361. "loc-cizar1-consul3-disk1"
  5362. ]
  5363. }
  5364.  
  5365. TASK [consul : creating "loc-cizar1-consul3-disk1" persistent disk] ************************************************************************************************************************************************
  5366. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:76
  5367. skipping: [localhost] => {
  5368. "changed": false,
  5369. "skip_reason": "Conditional result was False",
  5370. "skipped": true
  5371. }
  5372.  
  5373. TASK [consul : create consul3 rc] **********************************************************************************************************************************************************************************
  5374. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/rc.yml:82
  5375. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5376. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  5377. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5378. changed: [localhost] => {
  5379. "changed": true,
  5380. "cmd": "kubectl --namespace=vault create -f /tmp/consul/rc.yaml",
  5381. "delta": "0:00:00.810418",
  5382. "end": "2017-11-02 14:43:32.461579",
  5383. "invocation": {
  5384. "module_args": {
  5385. "_raw_params": "kubectl --namespace=vault create -f /tmp/consul/rc.yaml",
  5386. "_uses_shell": true,
  5387. "chdir": null,
  5388. "creates": null,
  5389. "executable": null,
  5390. "removes": null,
  5391. "warn": true
  5392. }
  5393. },
  5394. "rc": 0,
  5395. "start": "2017-11-02 14:43:31.651161",
  5396. "stderr": "",
  5397. "stderr_lines": [],
  5398. "stdout": "replicationcontroller \"consul3\" created",
  5399. "stdout_lines": [
  5400. "replicationcontroller \"consul3\" created"
  5401. ]
  5402. }
  5403.  
  5404. TASK [consul : waiting until consul pod is creating] ***************************************************************************************************************************************************************
  5405. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/main.yml:148
  5406. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5407. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  5408. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5409. FAILED - RETRYING: waiting until consul pod is creating (30 retries left).Result was: {
  5410. "attempts": 1,
  5411. "changed": true,
  5412. "cmd": "kubectl get pod --namespace=vault | awk '/consul1/{print $3}'",
  5413. "delta": "0:00:00.848231",
  5414. "end": "2017-11-02 14:43:33.390600",
  5415. "invocation": {
  5416. "module_args": {
  5417. "_raw_params": "kubectl get pod --namespace=vault | awk '/consul1/{print $3}'",
  5418. "_uses_shell": true,
  5419. "chdir": null,
  5420. "creates": null,
  5421. "executable": null,
  5422. "removes": null,
  5423. "warn": true
  5424. }
  5425. },
  5426. "rc": 0,
  5427. "retries": 31,
  5428. "start": "2017-11-02 14:43:32.542369",
  5429. "stderr": "",
  5430. "stderr_lines": [],
  5431. "stdout": "ContainerCreating",
  5432. "stdout_lines": [
  5433. "ContainerCreating"
  5434. ]
  5435. }
  5436. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5437. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5438. changed: [localhost] => {
  5439. "attempts": 2,
  5440. "changed": true,
  5441. "cmd": "kubectl get pod --namespace=vault | awk '/consul1/{print $3}'",
  5442. "delta": "0:00:00.815985",
  5443. "end": "2017-11-02 14:43:44.280205",
  5444. "invocation": {
  5445. "module_args": {
  5446. "_raw_params": "kubectl get pod --namespace=vault | awk '/consul1/{print $3}'",
  5447. "_uses_shell": true,
  5448. "chdir": null,
  5449. "creates": null,
  5450. "executable": null,
  5451. "removes": null,
  5452. "warn": true
  5453. }
  5454. },
  5455. "rc": 0,
  5456. "start": "2017-11-02 14:43:43.464220",
  5457. "stderr": "",
  5458. "stderr_lines": [],
  5459. "stdout": "Running",
  5460. "stdout_lines": [
  5461. "Running"
  5462. ]
  5463. }
  5464.  
  5465. TASK [consul : checking if previous init pod exists] ***************************************************************************************************************************************************************
  5466. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/acl-vault.yml:3
  5467. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5468. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  5469. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5470. changed: [localhost] => {
  5471. "changed": true,
  5472. "cmd": "kubectl get pod --namespace=vault | awk '/consul-init/{print $1}'",
  5473. "delta": "0:00:00.885563",
  5474. "end": "2017-11-02 14:43:45.283476",
  5475. "invocation": {
  5476. "module_args": {
  5477. "_raw_params": "kubectl get pod --namespace=vault | awk '/consul-init/{print $1}'",
  5478. "_uses_shell": true,
  5479. "chdir": null,
  5480. "creates": null,
  5481. "executable": null,
  5482. "removes": null,
  5483. "warn": true
  5484. }
  5485. },
  5486. "rc": 0,
  5487. "start": "2017-11-02 14:43:44.397913",
  5488. "stderr": "",
  5489. "stderr_lines": [],
  5490. "stdout": "",
  5491. "stdout_lines": []
  5492. }
  5493.  
  5494. TASK [consul : delete previous init pod if exists] *****************************************************************************************************************************************************************
  5495. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/acl-vault.yml:8
  5496. skipping: [localhost] => {
  5497. "changed": false,
  5498. "skip_reason": "Conditional result was False",
  5499. "skipped": true
  5500. }
  5501.  
  5502. TASK [consul : getting consul-lb ip-address] ***********************************************************************************************************************************************************************
  5503. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/acl-vault.yml:13
  5504. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5505. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  5506. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5507. changed: [localhost] => {
  5508. "changed": true,
  5509. "cmd": "kubectl --namespace=vault get svc -o jsonpath={.items[0].spec.clusterIP}",
  5510. "delta": "0:00:00.649124",
  5511. "end": "2017-11-02 14:43:46.034914",
  5512. "invocation": {
  5513. "module_args": {
  5514. "_raw_params": "kubectl --namespace=vault get svc -o jsonpath={.items[0].spec.clusterIP}",
  5515. "_uses_shell": true,
  5516. "chdir": null,
  5517. "creates": null,
  5518. "executable": null,
  5519. "removes": null,
  5520. "warn": true
  5521. }
  5522. },
  5523. "rc": 0,
  5524. "start": "2017-11-02 14:43:45.385790",
  5525. "stderr": "",
  5526. "stderr_lines": [],
  5527. "stdout": "10.3.245.46",
  5528. "stdout_lines": [
  5529. "10.3.245.46"
  5530. ]
  5531. }
  5532.  
  5533. TASK [consul : setting consul_lb_ip fact] **************************************************************************************************************************************************************************
  5534. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/acl-vault.yml:18
  5535. ok: [localhost] => {
  5536. "ansible_facts": {
  5537. "consul_lb_ip": "10.3.245.46"
  5538. },
  5539. "changed": false
  5540. }
  5541.  
  5542. TASK [consul : waiting until new leader will be elected] ***********************************************************************************************************************************************************
  5543. task path: /home/cizar/oro-cloud-ansible/roles/consul/tasks/acl-vault.yml:22
  5544. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5545. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  5546. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5547. FAILED - RETRYING: waiting until new leader will be elected (30 retries left).Result was: {
  5548. "attempts": 1,
  5549. "changed": true,
  5550. "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}')",
  5551. "delta": "0:00:03.033170",
  5552. "end": "2017-11-02 14:43:49.169910",
  5553. "invocation": {
  5554. "module_args": {
  5555. "_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}')",
  5556. "_uses_shell": true,
  5557. "chdir": null,
  5558. "creates": null,
  5559. "executable": null,
  5560. "removes": null,
  5561. "warn": true
  5562. }
  5563. },
  5564. "rc": 0,
  5565. "retries": 31,
  5566. "start": "2017-11-02 14:43:46.136740",
  5567. "stderr": "",
  5568. "stderr_lines": [],
  5569. "stdout": "",
  5570. "stdout_lines": []
  5571. }
  5572. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5573. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5574. FAILED - RETRYING: waiting until new leader will be elected (29 retries left).Result was: {
  5575. "attempts": 2,
  5576. "changed": true,
  5577. "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}')",
  5578. "delta": "0:00:02.921364",
  5579. "end": "2017-11-02 14:44:02.167466",
  5580. "invocation": {
  5581. "module_args": {
  5582. "_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}')",
  5583. "_uses_shell": true,
  5584. "chdir": null,
  5585. "creates": null,
  5586. "executable": null,
  5587. "removes": null,
  5588. "warn": true
  5589. }
  5590. },
  5591. "rc": 0,
  5592. "retries": 31,
  5593. "start": "2017-11-02 14:43:59.246102",
  5594. "stderr": "",
  5595. "stderr_lines": [],
  5596. "stdout": "",
  5597. "stdout_lines": []
  5598. }
  5599. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5600. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5601. FAILED - RETRYING: waiting until new leader will be elected (28 retries left).Result was: {
  5602. "attempts": 3,
  5603. "changed": true,
  5604. "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}')",
  5605. "delta": "0:00:02.704054",
  5606. "end": "2017-11-02 14:44:14.949768",
  5607. "invocation": {
  5608. "module_args": {
  5609. "_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}')",
  5610. "_uses_shell": true,
  5611. "chdir": null,
  5612. "creates": null,
  5613. "executable": null,
  5614. "removes": null,
  5615. "warn": true
  5616. }
  5617. },
  5618. "rc": 0,
  5619. "retries": 31,
  5620. "start": "2017-11-02 14:44:12.245714",
  5621. "stderr": "",
  5622. "stderr_lines": [],
  5623. "stdout": "",
  5624. "stdout_lines": []
  5625. }
  5626. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5627. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5628. FAILED - RETRYING: waiting until new leader will be elected (27 retries left).Result was: {
  5629. "attempts": 4,
  5630. "changed": true,
  5631. "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}')",
  5632. "delta": "0:00:02.945345",
  5633. "end": "2017-11-02 14:44:27.972057",
  5634. "invocation": {
  5635. "module_args": {
  5636. "_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}')",
  5637. "_uses_shell": true,
  5638. "chdir": null,
  5639. "creates": null,
  5640. "executable": null,
  5641. "removes": null,
  5642. "warn": true
  5643. }
  5644. },
  5645. "rc": 0,
  5646. "retries": 31,
  5647. "start": "2017-11-02 14:44:25.026712",
  5648. "stderr": "",
  5649. "stderr_lines": [],
  5650. "stdout": "",
  5651. "stdout_lines": []
  5652. }
  5653. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5654. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5655. FAILED - RETRYING: waiting until new leader will be elected (26 retries left).Result was: {
  5656. "attempts": 5,
  5657. "changed": true,
  5658. "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}')",
  5659. "delta": "0:00:02.927823",
  5660. "end": "2017-11-02 14:44:40.977949",
  5661. "invocation": {
  5662. "module_args": {
  5663. "_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}')",
  5664. "_uses_shell": true,
  5665. "chdir": null,
  5666. "creates": null,
  5667. "executable": null,
  5668. "removes": null,
  5669. "warn": true
  5670. }
  5671. },
  5672. "rc": 0,
  5673. "retries": 31,
  5674. "start": "2017-11-02 14:44:38.050126",
  5675. "stderr": "",
  5676. "stderr_lines": [],
  5677. "stdout": "",
  5678. "stdout_lines": []
  5679. }
  5680. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5681. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5682. FAILED - RETRYING: waiting until new leader will be elected (25 retries left).Result was: {
  5683. "attempts": 6,
  5684. "changed": true,
  5685. "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}')",
  5686. "delta": "0:00:03.132253",
  5687. "end": "2017-11-02 14:44:54.183794",
  5688. "invocation": {
  5689. "module_args": {
  5690. "_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}')",
  5691. "_uses_shell": true,
  5692. "chdir": null,
  5693. "creates": null,
  5694. "executable": null,
  5695. "removes": null,
  5696. "warn": true
  5697. }
  5698. },
  5699. "rc": 0,
  5700. "retries": 31,
  5701. "start": "2017-11-02 14:44:51.051541",
  5702. "stderr": "",
  5703. "stderr_lines": [],
  5704. "stdout": "",
  5705. "stdout_lines": []
  5706. }
  5707. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5708. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5709. FAILED - RETRYING: waiting until new leader will be elected (24 retries left).Result was: {
  5710. "attempts": 7,
  5711. "changed": true,
  5712. "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}')",
  5713. "delta": "0:00:03.416827",
  5714. "end": "2017-11-02 14:45:07.670265",
  5715. "invocation": {
  5716. "module_args": {
  5717. "_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}')",
  5718. "_uses_shell": true,
  5719. "chdir": null,
  5720. "creates": null,
  5721. "executable": null,
  5722. "removes": null,
  5723. "warn": true
  5724. }
  5725. },
  5726. "rc": 0,
  5727. "retries": 31,
  5728. "start": "2017-11-02 14:45:04.253438",
  5729. "stderr": "",
  5730. "stderr_lines": [],
  5731. "stdout": "",
  5732. "stdout_lines": []
  5733. }
  5734. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5735. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5736. FAILED - RETRYING: waiting until new leader will be elected (23 retries left).Result was: {
  5737. "attempts": 8,
  5738. "changed": true,
  5739. "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}')",
  5740. "delta": "0:00:02.825456",
  5741. "end": "2017-11-02 14:45:20.573584",
  5742. "invocation": {
  5743. "module_args": {
  5744. "_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}')",
  5745. "_uses_shell": true,
  5746. "chdir": null,
  5747. "creates": null,
  5748. "executable": null,
  5749. "removes": null,
  5750. "warn": true
  5751. }
  5752. },
  5753. "rc": 0,
  5754. "retries": 31,
  5755. "start": "2017-11-02 14:45:17.748128",
  5756. "stderr": "",
  5757. "stderr_lines": [],
  5758. "stdout": "",
  5759. "stdout_lines": []
  5760. }
  5761. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5762. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5763. FAILED - RETRYING: waiting until new leader will be elected (22 retries left).Result was: {
  5764. "attempts": 9,
  5765. "changed": true,
  5766. "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}')",
  5767. "delta": "0:00:02.925315",
  5768. "end": "2017-11-02 14:45:33.570869",
  5769. "invocation": {
  5770. "module_args": {
  5771. "_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}')",
  5772. "_uses_shell": true,
  5773. "chdir": null,
  5774. "creates": null,
  5775. "executable": null,
  5776. "removes": null,
  5777. "warn": true
  5778. }
  5779. },
  5780. "rc": 0,
  5781. "retries": 31,
  5782. "start": "2017-11-02 14:45:30.645554",
  5783. "stderr": "",
  5784. "stderr_lines": [],
  5785. "stdout": "",
  5786. "stdout_lines": []
  5787. }
  5788. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5789. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5790. FAILED - RETRYING: waiting until new leader will be elected (21 retries left).Result was: {
  5791. "attempts": 10,
  5792. "changed": true,
  5793. "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}')",
  5794. "delta": "0:00:02.922832",
  5795. "end": "2017-11-02 14:45:46.572813",
  5796. "invocation": {
  5797. "module_args": {
  5798. "_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}')",
  5799. "_uses_shell": true,
  5800. "chdir": null,
  5801. "creates": null,
  5802. "executable": null,
  5803. "removes": null,
  5804. "warn": true
  5805. }
  5806. },
  5807. "rc": 0,
  5808. "retries": 31,
  5809. "start": "2017-11-02 14:45:43.649981",
  5810. "stderr": "",
  5811. "stderr_lines": [],
  5812. "stdout": "",
  5813. "stdout_lines": []
  5814. }
  5815. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5816. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5817. FAILED - RETRYING: waiting until new leader will be elected (20 retries left).Result was: {
  5818. "attempts": 11,
  5819. "changed": true,
  5820. "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}')",
  5821. "delta": "0:00:02.935587",
  5822. "end": "2017-11-02 14:45:59.585235",
  5823. "invocation": {
  5824. "module_args": {
  5825. "_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}')",
  5826. "_uses_shell": true,
  5827. "chdir": null,
  5828. "creates": null,
  5829. "executable": null,
  5830. "removes": null,
  5831. "warn": true
  5832. }
  5833. },
  5834. "rc": 0,
  5835. "retries": 31,
  5836. "start": "2017-11-02 14:45:56.649648",
  5837. "stderr": "",
  5838. "stderr_lines": [],
  5839. "stdout": "",
  5840. "stdout_lines": []
  5841. }
  5842. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5843. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5844. FAILED - RETRYING: waiting until new leader will be elected (19 retries left).Result was: {
  5845. "attempts": 12,
  5846. "changed": true,
  5847. "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}')",
  5848. "delta": "0:00:03.009344",
  5849. "end": "2017-11-02 14:46:12.671769",
  5850. "invocation": {
  5851. "module_args": {
  5852. "_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}')",
  5853. "_uses_shell": true,
  5854. "chdir": null,
  5855. "creates": null,
  5856. "executable": null,
  5857. "removes": null,
  5858. "warn": true
  5859. }
  5860. },
  5861. "rc": 0,
  5862. "retries": 31,
  5863. "start": "2017-11-02 14:46:09.662425",
  5864. "stderr": "",
  5865. "stderr_lines": [],
  5866. "stdout": "",
  5867. "stdout_lines": []
  5868. }
  5869. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5870. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5871. FAILED - RETRYING: waiting until new leader will be elected (18 retries left).Result was: {
  5872. "attempts": 13,
  5873. "changed": true,
  5874. "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}')",
  5875. "delta": "0:00:02.933448",
  5876. "end": "2017-11-02 14:46:25.673055",
  5877. "invocation": {
  5878. "module_args": {
  5879. "_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}')",
  5880. "_uses_shell": true,
  5881. "chdir": null,
  5882. "creates": null,
  5883. "executable": null,
  5884. "removes": null,
  5885. "warn": true
  5886. }
  5887. },
  5888. "rc": 0,
  5889. "retries": 31,
  5890. "start": "2017-11-02 14:46:22.739607",
  5891. "stderr": "",
  5892. "stderr_lines": [],
  5893. "stdout": "",
  5894. "stdout_lines": []
  5895. }
  5896. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5897. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5898. FAILED - RETRYING: waiting until new leader will be elected (17 retries left).Result was: {
  5899. "attempts": 14,
  5900. "changed": true,
  5901. "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}')",
  5902. "delta": "0:00:03.114985",
  5903. "end": "2017-11-02 14:46:38.875658",
  5904. "invocation": {
  5905. "module_args": {
  5906. "_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}')",
  5907. "_uses_shell": true,
  5908. "chdir": null,
  5909. "creates": null,
  5910. "executable": null,
  5911. "removes": null,
  5912. "warn": true
  5913. }
  5914. },
  5915. "rc": 0,
  5916. "retries": 31,
  5917. "start": "2017-11-02 14:46:35.760673",
  5918. "stderr": "",
  5919. "stderr_lines": [],
  5920. "stdout": "",
  5921. "stdout_lines": []
  5922. }
  5923. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5924. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5925. FAILED - RETRYING: waiting until new leader will be elected (16 retries left).Result was: {
  5926. "attempts": 15,
  5927. "changed": true,
  5928. "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}')",
  5929. "delta": "0:00:02.825462",
  5930. "end": "2017-11-02 14:46:51.778791",
  5931. "invocation": {
  5932. "module_args": {
  5933. "_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}')",
  5934. "_uses_shell": true,
  5935. "chdir": null,
  5936. "creates": null,
  5937. "executable": null,
  5938. "removes": null,
  5939. "warn": true
  5940. }
  5941. },
  5942. "rc": 0,
  5943. "retries": 31,
  5944. "start": "2017-11-02 14:46:48.953329",
  5945. "stderr": "",
  5946. "stderr_lines": [],
  5947. "stdout": "",
  5948. "stdout_lines": []
  5949. }
  5950. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5951. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5952. FAILED - RETRYING: waiting until new leader will be elected (15 retries left).Result was: {
  5953. "attempts": 16,
  5954. "changed": true,
  5955. "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}')",
  5956. "delta": "0:00:03.210620",
  5957. "end": "2017-11-02 14:47:05.069764",
  5958. "invocation": {
  5959. "module_args": {
  5960. "_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}')",
  5961. "_uses_shell": true,
  5962. "chdir": null,
  5963. "creates": null,
  5964. "executable": null,
  5965. "removes": null,
  5966. "warn": true
  5967. }
  5968. },
  5969. "rc": 0,
  5970. "retries": 31,
  5971. "start": "2017-11-02 14:47:01.859144",
  5972. "stderr": "",
  5973. "stderr_lines": [],
  5974. "stdout": "",
  5975. "stdout_lines": []
  5976. }
  5977. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  5978. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  5979. FAILED - RETRYING: waiting until new leader will be elected (14 retries left).Result was: {
  5980. "attempts": 17,
  5981. "changed": true,
  5982. "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}')",
  5983. "delta": "0:00:05.325715",
  5984. "end": "2017-11-02 14:47:20.476618",
  5985. "invocation": {
  5986. "module_args": {
  5987. "_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}')",
  5988. "_uses_shell": true,
  5989. "chdir": null,
  5990. "creates": null,
  5991. "executable": null,
  5992. "removes": null,
  5993. "warn": true
  5994. }
  5995. },
  5996. "rc": 0,
  5997. "retries": 31,
  5998. "start": "2017-11-02 14:47:15.150903",
  5999. "stderr": "",
  6000. "stderr_lines": [],
  6001. "stdout": "",
  6002. "stdout_lines": []
  6003. }
  6004. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  6005. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  6006. FAILED - RETRYING: waiting until new leader will be elected (13 retries left).Result was: {
  6007. "attempts": 18,
  6008. "changed": true,
  6009. "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}')",
  6010. "delta": "0:00:02.818301",
  6011. "end": "2017-11-02 14:47:33.373927",
  6012. "invocation": {
  6013. "module_args": {
  6014. "_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}')",
  6015. "_uses_shell": true,
  6016. "chdir": null,
  6017. "creates": null,
  6018. "executable": null,
  6019. "removes": null,
  6020. "warn": true
  6021. }
  6022. },
  6023. "rc": 0,
  6024. "retries": 31,
  6025. "start": "2017-11-02 14:47:30.555626",
  6026. "stderr": "",
  6027. "stderr_lines": [],
  6028. "stdout": "",
  6029. "stdout_lines": []
  6030. }
  6031. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  6032. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  6033. FAILED - RETRYING: waiting until new leader will be elected (12 retries left).Result was: {
  6034. "attempts": 19,
  6035. "changed": true,
  6036. "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}')",
  6037. "delta": "0:00:02.921927",
  6038. "end": "2017-11-02 14:47:46.363894",
  6039. "invocation": {
  6040. "module_args": {
  6041. "_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}')",
  6042. "_uses_shell": true,
  6043. "chdir": null,
  6044. "creates": null,
  6045. "executable": null,
  6046. "removes": null,
  6047. "warn": true
  6048. }
  6049. },
  6050. "rc": 0,
  6051. "retries": 31,
  6052. "start": "2017-11-02 14:47:43.441967",
  6053. "stderr": "",
  6054. "stderr_lines": [],
  6055. "stdout": "",
  6056. "stdout_lines": []
  6057. }
  6058. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/commands/command.py
  6059. <127.0.0.1> EXEC /bin/sh -c 'GOOGLE_APPLICATION_CREDENTIALS=/etc/gke.json /usr/bin/python && sleep 0'
  6060. FAILED - RETRYING: waiting until new leader will be elected (11 retries left).Result was: {
  6061. "attempts": 20,
  6062. "changed": true,
  6063. "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}')",
  6064. "delta": "0:00:02.816872",
  6065. "end": "2017-11-02 14:47:59.257751",
  6066. "invocation": {
  6067. "module_args": {
  6068. "_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}')",
  6069. "_uses_shell": true,
  6070. "chdir": null,
  6071. "creates": null,
  6072. "executable": null,
  6073. "removes": null,
  6074. "warn": true
  6075. }
  6076. },
  6077. "rc": 0,
  6078. "retries": 31,
  6079. "start": "2017-11-02 14:47:56.440879",
  6080. "stderr": "",
  6081. "stderr_lines": [],
  6082. "stdout": "",
  6083. "stdout_lines": []
  6084. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement