Advertisement
Guest User

Untitled

a guest
Apr 5th, 2017
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 165.99 KB | None | 0 0
  1. cizar@castle:~/oro-cloud-ansible$ ansible-playbook -e "env=staging-vault1" router-node.yml -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.  
  8. PLAYBOOK: router-node.yml ******************************************************
  9. 2 plays in router-node.yml
  10.  
  11. PLAY [rebuild inventory] *******************************************************
  12.  
  13. TASK [setup] *******************************************************************
  14. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/system/setup.py
  15. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  16. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  17. ok: [localhost]
  18.  
  19. TASK [common/dyn_inventory : check group_vars presence] ************************
  20. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:3
  21. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/files/stat.py
  22. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  23. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  24. ok: [localhost] => {
  25. "changed": false,
  26. "invocation": {
  27. "module_args": {
  28. "checksum_algorithm": "sha1",
  29. "follow": false,
  30. "get_checksum": true,
  31. "get_md5": true,
  32. "mime": false,
  33. "path": "group_vars"
  34. },
  35. "module_name": "stat"
  36. },
  37. "stat": {
  38. "atime": 1491383013.948659,
  39. "ctime": 1491382261.3109255,
  40. "dev": 2066,
  41. "executable": true,
  42. "exists": true,
  43. "gid": 1001,
  44. "gr_name": "cizar",
  45. "inode": 3414086,
  46. "isblk": false,
  47. "ischr": false,
  48. "isdir": true,
  49. "isfifo": false,
  50. "isgid": false,
  51. "islnk": false,
  52. "isreg": false,
  53. "issock": false,
  54. "isuid": false,
  55. "mode": "0775",
  56. "mtime": 1491382261.3109255,
  57. "nlink": 2,
  58. "path": "group_vars",
  59. "pw_name": "cizar",
  60. "readable": true,
  61. "rgrp": true,
  62. "roth": true,
  63. "rusr": true,
  64. "size": 4096,
  65. "uid": 1001,
  66. "wgrp": true,
  67. "woth": false,
  68. "writeable": true,
  69. "wusr": true,
  70. "xgrp": true,
  71. "xoth": true,
  72. "xusr": true
  73. }
  74. }
  75.  
  76. TASK [common/dyn_inventory : fail] *********************************************
  77. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:8
  78. skipping: [localhost] => {
  79. "changed": false,
  80. "skip_reason": "Conditional check failed",
  81. "skipped": true
  82. }
  83.  
  84. TASK [common/dyn_inventory : include group_vars] *******************************
  85. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:11
  86. ok: [localhost] => {
  87. "ansible_facts": {
  88. "EmailPass": "OroInc12",
  89. "EmailUser": "service@oroinc.com",
  90. "allow_destination": [
  91. {
  92. "port": "all",
  93. "proto": "TCP"
  94. },
  95. {
  96. "port": "all",
  97. "proto": "UDP"
  98. }
  99. ],
  100. "allow_incoming": [
  101. {
  102. "port": "all",
  103. "proto": "TCP"
  104. },
  105. {
  106. "port": "all",
  107. "proto": "UDP"
  108. }
  109. ],
  110. "cloud_install": false,
  111. "credentials_file": "{{ project_name }}.json",
  112. "datadog_api_key": "d629a6affce622c81101c06eaebe56b9",
  113. "env": "local",
  114. "forwarding_rules": [
  115. {
  116. "port": 500,
  117. "proto": "UDP"
  118. },
  119. {
  120. "port": 4500,
  121. "proto": "UDP"
  122. }
  123. ],
  124. "gcloud_account": "~/account.json",
  125. "gcloud_command": "{{ gcloud_path }}/bin/gcloud",
  126. "gcloud_compute_region": "us-central1",
  127. "gcloud_compute_zone": "us-central1-f",
  128. "gcloud_log": "/tmp/gcloud.log",
  129. "gcloud_path": "~/google-cloud-sdk",
  130. "gcloud_project_name": "oro-cloud-development",
  131. "gke_machine_type": "n1-highcpu-8",
  132. "gluster_server_ip": "10.40.0.4",
  133. "images_list": [
  134. {
  135. "img": "ubuntu",
  136. "rebuild": true,
  137. "tag": "14.04-{{ root_version }}"
  138. },
  139. {
  140. "img": "service-root",
  141. "rebuild": true,
  142. "tag": "1.0"
  143. },
  144. {
  145. "img": "builder-bap-standard",
  146. "rebuild": true,
  147. "tag": "1.6.2"
  148. },
  149. {
  150. "img": "deployer-bap-standard",
  151. "rebuild": true,
  152. "tag": "1.6.2"
  153. },
  154. {
  155. "img": "builder-bap-monolithic",
  156. "rebuild": true,
  157. "tag": "1.6.2"
  158. },
  159. {
  160. "img": "deployer-bap-monolithic",
  161. "rebuild": true,
  162. "tag": "1.6.2"
  163. },
  164. {
  165. "img": "destroyer",
  166. "rebuild": true,
  167. "tag": "1.0.0"
  168. },
  169. {
  170. "img": "elasticsearch",
  171. "rebuild": true,
  172. "tag": "1.0.0"
  173. },
  174. {
  175. "img": "redis",
  176. "rebuild": true,
  177. "tag": "1.0.0"
  178. },
  179. {
  180. "img": "archiver",
  181. "rebuild": true,
  182. "tag": "1.0.0"
  183. },
  184. {
  185. "img": "fluentd-gcp",
  186. "rebuild": false,
  187. "tag": "1.18"
  188. },
  189. {
  190. "img": "clone",
  191. "rebuild": true,
  192. "tag": "1.0.0"
  193. },
  194. {
  195. "img": "vault",
  196. "rebuild": true,
  197. "tag": "0.6.2"
  198. },
  199. {
  200. "img": "es-cluster",
  201. "rebuild": true,
  202. "tag": "1.0.0"
  203. },
  204. {
  205. "img": "rabbitmq",
  206. "rebuild": true,
  207. "tag": "3.6.6-management"
  208. },
  209. {
  210. "img": "consul",
  211. "rebuild": true,
  212. "tag": "0.7.4"
  213. },
  214. {
  215. "img": "jenkins",
  216. "rebuild": true,
  217. "tag": "2.32.2"
  218. }
  219. ],
  220. "isolation": true,
  221. "kubectl_command": "{{ gcloud_path }}/bin/kubectl",
  222. "kubernetes_salt_bucket": "saltarch",
  223. "kubernetes_salt_download_host": "storage.googleapis.com",
  224. "local_install": false,
  225. "maximum_subnet": "10.124.0.0/15",
  226. "mgmt_instance_ip": "",
  227. "mgmt_instance_name": "",
  228. "minimum_subnet": "10.12.0.0/15",
  229. "num_nodes": 1,
  230. "project_name": "oro-cloud-development",
  231. "proxy_webserver": "apache2",
  232. "root_version": 1.6,
  233. "salt_tar_hash": "220a69ff32fc51030fd7bd2f37fb55c413ad9688",
  234. "salt_tar_url": "https:\\/\\/{{kubernetes_salt_download_host}}\\/{{ kubernetes_salt_bucket }}\\/kubernetes-salt-1.5.tar.gz",
  235. "service_account_path": "/vagrant/bin/kubernetes/serviceaccount.yaml",
  236. "service_clusters": [
  237. "vault",
  238. "elastic",
  239. "gluster",
  240. "rabbit",
  241. "app",
  242. "mgmt"
  243. ],
  244. "service_container_pool": "{{ cluster_name.stdout }}",
  245. "service_email": "account-61@oro-cloud-development.iam.gserviceaccount.com",
  246. "service_key_path": "/tmp/account.p12",
  247. "service_mail": "service_mail",
  248. "sql_instance_ip": "",
  249. "sql_instance_name": "",
  250. "srv_container_pool": "{{ env }}",
  251. "vpn_pass_type": "random"
  252. },
  253. "changed": false,
  254. "invocation": {
  255. "module_args": {
  256. "_raw_params": "group_vars/all.yml"
  257. },
  258. "module_name": "include_vars"
  259. }
  260. }
  261.  
  262. TASK [common/dyn_inventory : Interrupt operations when using production project without confirmation] ***
  263. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:15
  264. skipping: [localhost] => {
  265. "changed": false,
  266. "skip_reason": "Conditional check failed",
  267. "skipped": true
  268. }
  269.  
  270. TASK [common/dyn_inventory : check inventory presence] *************************
  271. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:20
  272. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/files/stat.py
  273. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  274. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  275. ok: [localhost] => {
  276. "changed": false,
  277. "invocation": {
  278. "module_args": {
  279. "checksum_algorithm": "sha1",
  280. "follow": false,
  281. "get_checksum": true,
  282. "get_md5": true,
  283. "mime": false,
  284. "path": "inventory"
  285. },
  286. "module_name": "stat"
  287. },
  288. "stat": {
  289. "atime": 1491384386.1168716,
  290. "ctime": 1491383005.5005498,
  291. "dev": 2066,
  292. "executable": true,
  293. "exists": true,
  294. "gid": 1001,
  295. "gr_name": "cizar",
  296. "inode": 3414416,
  297. "isblk": false,
  298. "ischr": false,
  299. "isdir": true,
  300. "isfifo": false,
  301. "isgid": false,
  302. "islnk": false,
  303. "isreg": false,
  304. "issock": false,
  305. "isuid": false,
  306. "mode": "0775",
  307. "mtime": 1491383005.5005498,
  308. "nlink": 2,
  309. "path": "inventory",
  310. "pw_name": "cizar",
  311. "readable": true,
  312. "rgrp": true,
  313. "roth": true,
  314. "rusr": true,
  315. "size": 4096,
  316. "uid": 1001,
  317. "wgrp": true,
  318. "woth": false,
  319. "writeable": true,
  320. "wusr": true,
  321. "xgrp": true,
  322. "xoth": true,
  323. "xusr": true
  324. }
  325. }
  326.  
  327. TASK [common/dyn_inventory : fail] *********************************************
  328. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:25
  329. skipping: [localhost] => {
  330. "changed": false,
  331. "skip_reason": "Conditional check failed",
  332. "skipped": true
  333. }
  334.  
  335. TASK [common/dyn_inventory : change project] ***********************************
  336. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:28
  337. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  338. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  339. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  340. changed: [localhost] => {
  341. "changed": true,
  342. "cmd": "gcloud config set project oro-cloud-development",
  343. "delta": "0:00:00.213850",
  344. "end": "2017-04-05 12:26:35.648167",
  345. "invocation": {
  346. "module_args": {
  347. "_raw_params": "gcloud config set project oro-cloud-development",
  348. "_uses_shell": true,
  349. "chdir": null,
  350. "creates": null,
  351. "executable": null,
  352. "removes": null,
  353. "warn": true
  354. },
  355. "module_name": "command"
  356. },
  357. "rc": 0,
  358. "start": "2017-04-05 12:26:35.434317",
  359. "stderr": "Updated property [core/project].",
  360. "stdout": "",
  361. "stdout_lines": [],
  362. "warnings": []
  363. }
  364.  
  365. TASK [common/dyn_inventory : define cluster env name for new env] **************
  366. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:31
  367. ok: [localhost] => {
  368. "ansible_facts": {
  369. "cluster_envname": "staging-vault1"
  370. },
  371. "changed": false,
  372. "invocation": {
  373. "module_args": {
  374. "cluster_envname": "staging-vault1"
  375. },
  376. "module_name": "set_fact"
  377. }
  378. }
  379.  
  380. TASK [common/dyn_inventory : define environment name for service clusters] *****
  381. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:36
  382. ok: [localhost] => {
  383. "ansible_facts": {
  384. "env_name": "staging"
  385. },
  386. "changed": false,
  387. "invocation": {
  388. "module_args": {
  389. "env_name": "staging"
  390. },
  391. "module_name": "set_fact"
  392. }
  393. }
  394.  
  395. TASK [common/dyn_inventory : find available service clusters] ******************
  396. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:40
  397. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  398. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  399. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  400. changed: [localhost] => (item=vault) => {
  401. "changed": true,
  402. "cmd": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-vault[0-9][0-9]*$' | sort -n | tail -n1",
  403. "delta": "0:00:01.053535",
  404. "end": "2017-04-05 12:26:36.830608",
  405. "invocation": {
  406. "module_args": {
  407. "_raw_params": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-vault[0-9][0-9]*$' | sort -n | tail -n1",
  408. "_uses_shell": true,
  409. "chdir": null,
  410. "creates": null,
  411. "executable": null,
  412. "removes": null,
  413. "warn": true
  414. },
  415. "module_name": "command"
  416. },
  417. "item": "vault",
  418. "rc": 0,
  419. "start": "2017-04-05 12:26:35.777073",
  420. "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",
  421. "stdout": "staging-vault1",
  422. "stdout_lines": [
  423. "staging-vault1"
  424. ],
  425. "warnings": []
  426. }
  427. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  428. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  429. changed: [localhost] => (item=elastic) => {
  430. "changed": true,
  431. "cmd": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-elastic[0-9][0-9]*$' | sort -n | tail -n1",
  432. "delta": "0:00:01.051232",
  433. "end": "2017-04-05 12:26:37.955776",
  434. "invocation": {
  435. "module_args": {
  436. "_raw_params": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-elastic[0-9][0-9]*$' | sort -n | tail -n1",
  437. "_uses_shell": true,
  438. "chdir": null,
  439. "creates": null,
  440. "executable": null,
  441. "removes": null,
  442. "warn": true
  443. },
  444. "module_name": "command"
  445. },
  446. "item": "elastic",
  447. "rc": 0,
  448. "start": "2017-04-05 12:26:36.904544",
  449. "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",
  450. "stdout": "staging-elastic1",
  451. "stdout_lines": [
  452. "staging-elastic1"
  453. ],
  454. "warnings": []
  455. }
  456. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  457. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  458. changed: [localhost] => (item=gluster) => {
  459. "changed": true,
  460. "cmd": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-gluster[0-9][0-9]*$' | sort -n | tail -n1",
  461. "delta": "0:00:01.026766",
  462. "end": "2017-04-05 12:26:39.052870",
  463. "invocation": {
  464. "module_args": {
  465. "_raw_params": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-gluster[0-9][0-9]*$' | sort -n | tail -n1",
  466. "_uses_shell": true,
  467. "chdir": null,
  468. "creates": null,
  469. "executable": null,
  470. "removes": null,
  471. "warn": true
  472. },
  473. "module_name": "command"
  474. },
  475. "item": "gluster",
  476. "rc": 0,
  477. "start": "2017-04-05 12:26:38.026104",
  478. "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",
  479. "stdout": "staging-gluster1",
  480. "stdout_lines": [
  481. "staging-gluster1"
  482. ],
  483. "warnings": []
  484. }
  485. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  486. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  487. changed: [localhost] => (item=rabbit) => {
  488. "changed": true,
  489. "cmd": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-rabbit[0-9][0-9]*$' | sort -n | tail -n1",
  490. "delta": "0:00:01.049182",
  491. "end": "2017-04-05 12:26:40.173721",
  492. "invocation": {
  493. "module_args": {
  494. "_raw_params": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-rabbit[0-9][0-9]*$' | sort -n | tail -n1",
  495. "_uses_shell": true,
  496. "chdir": null,
  497. "creates": null,
  498. "executable": null,
  499. "removes": null,
  500. "warn": true
  501. },
  502. "module_name": "command"
  503. },
  504. "item": "rabbit",
  505. "rc": 0,
  506. "start": "2017-04-05 12:26:39.124539",
  507. "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",
  508. "stdout": "",
  509. "stdout_lines": [],
  510. "warnings": []
  511. }
  512. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  513. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  514. changed: [localhost] => (item=app) => {
  515. "changed": true,
  516. "cmd": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-app[0-9][0-9]*$' | sort -n | tail -n1",
  517. "delta": "0:00:01.030574",
  518. "end": "2017-04-05 12:26:41.276583",
  519. "invocation": {
  520. "module_args": {
  521. "_raw_params": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-app[0-9][0-9]*$' | sort -n | tail -n1",
  522. "_uses_shell": true,
  523. "chdir": null,
  524. "creates": null,
  525. "executable": null,
  526. "removes": null,
  527. "warn": true
  528. },
  529. "module_name": "command"
  530. },
  531. "item": "app",
  532. "rc": 0,
  533. "start": "2017-04-05 12:26:40.246009",
  534. "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",
  535. "stdout": "staging-app1",
  536. "stdout_lines": [
  537. "staging-app1"
  538. ],
  539. "warnings": []
  540. }
  541. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  542. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  543. changed: [localhost] => (item=mgmt) => {
  544. "changed": true,
  545. "cmd": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-mgmt[0-9][0-9]*$' | sort -n | tail -n1",
  546. "delta": "0:00:01.057979",
  547. "end": "2017-04-05 12:26:42.411458",
  548. "invocation": {
  549. "module_args": {
  550. "_raw_params": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-mgmt[0-9][0-9]*$' | sort -n | tail -n1",
  551. "_uses_shell": true,
  552. "chdir": null,
  553. "creates": null,
  554. "executable": null,
  555. "removes": null,
  556. "warn": true
  557. },
  558. "module_name": "command"
  559. },
  560. "item": "mgmt",
  561. "rc": 0,
  562. "start": "2017-04-05 12:26:41.353479",
  563. "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",
  564. "stdout": "staging-mgmt1",
  565. "stdout_lines": [
  566. "staging-mgmt1"
  567. ],
  568. "warnings": []
  569. }
  570.  
  571. TASK [common/dyn_inventory : register available service clusters] **************
  572. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:48
  573. ok: [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"}
  574. ok: [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"}
  575. ok: [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"}
  576. 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"}
  577. ok: [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"}
  578. ok: [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"}
  579.  
  580. TASK [common/dyn_inventory : get latest used gke cluster name for local_env env] ***
  581. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:54
  582. skipping: [localhost] => {
  583. "changed": false,
  584. "skip_reason": "Conditional check failed",
  585. "skipped": true
  586. }
  587.  
  588. TASK [common/dyn_inventory : define a gke cluster name to validate for local env] ***
  589. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:59
  590. skipping: [localhost] => {
  591. "changed": false,
  592. "skip_reason": "Conditional check failed",
  593. "skipped": true
  594. }
  595.  
  596. TASK [common/dyn_inventory : define a gke cluster name to validate for cloud env] ***
  597. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:63
  598. ok: [localhost] => {
  599. "ansible_facts": {
  600. "cluster_for_validation": "staging-vault1"
  601. },
  602. "changed": false,
  603. "invocation": {
  604. "module_args": {
  605. "cluster_for_validation": "staging-vault1"
  606. },
  607. "module_name": "set_fact"
  608. }
  609. }
  610.  
  611. TASK [common/dyn_inventory : validate preconfigured cluster] *******************
  612. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:67
  613. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  614. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  615. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  616. changed: [localhost] => {
  617. "changed": true,
  618. "cmd": "~/google-cloud-sdk/bin/gcloud container clusters describe staging-vault1 | grep currentNodeCount | awk '{print $2}'",
  619. "delta": "0:00:00.699523",
  620. "end": "2017-04-05 12:26:43.322165",
  621. "invocation": {
  622. "module_args": {
  623. "_raw_params": "~/google-cloud-sdk/bin/gcloud container clusters describe staging-vault1 | grep currentNodeCount | awk '{print $2}'",
  624. "_uses_shell": true,
  625. "chdir": null,
  626. "creates": null,
  627. "executable": null,
  628. "removes": null,
  629. "warn": true
  630. },
  631. "module_name": "command"
  632. },
  633. "rc": 0,
  634. "start": "2017-04-05 12:26:42.622642",
  635. "stderr": "",
  636. "stdout": "2",
  637. "stdout_lines": [
  638. "2"
  639. ],
  640. "warnings": []
  641. }
  642.  
  643. TASK [common/dyn_inventory : mark existing cluster as valid] *******************
  644. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:72
  645. ok: [localhost] => {
  646. "ansible_facts": {
  647. "reuse_cluster": true
  648. },
  649. "changed": false,
  650. "invocation": {
  651. "module_args": {
  652. "reuse_cluster": "true"
  653. },
  654. "module_name": "set_fact"
  655. }
  656. }
  657.  
  658. TASK [common/dyn_inventory : register a build version supplied via command line if it contained numbers] ***
  659. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:81
  660. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  661. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  662. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  663. changed: [localhost] => {
  664. "changed": true,
  665. "cmd": "echo staging-vault1 | sed 's/.*[^0-9]//g'",
  666. "delta": "0:00:00.002017",
  667. "end": "2017-04-05 12:26:43.432074",
  668. "invocation": {
  669. "module_args": {
  670. "_raw_params": "echo staging-vault1 | sed 's/.*[^0-9]//g'",
  671. "_uses_shell": true,
  672. "chdir": null,
  673. "creates": null,
  674. "executable": null,
  675. "removes": null,
  676. "warn": true
  677. },
  678. "module_name": "command"
  679. },
  680. "rc": 0,
  681. "start": "2017-04-05 12:26:43.430057",
  682. "stderr": "",
  683. "stdout": "1",
  684. "stdout_lines": [
  685. "1"
  686. ],
  687. "warnings": []
  688. }
  689.  
  690. TASK [common/dyn_inventory : save a version supplied via command line as build_version if it contained numbers] ***
  691. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:86
  692. ok: [localhost] => {
  693. "ansible_facts": {
  694. "predefined_build_version": "1"
  695. },
  696. "changed": false,
  697. "invocation": {
  698. "module_args": {
  699. "predefined_build_version": "1"
  700. },
  701. "module_name": "set_fact"
  702. }
  703. }
  704.  
  705. TASK [common/dyn_inventory : get build_version] ********************************
  706. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:91
  707. skipping: [localhost] => {
  708. "changed": false,
  709. "skip_reason": "Conditional check failed",
  710. "skipped": true
  711. }
  712.  
  713. TASK [common/dyn_inventory : increment build version] **************************
  714. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:97
  715. skipping: [localhost] => {
  716. "changed": false,
  717. "skip_reason": "Conditional check failed",
  718. "skipped": true
  719. }
  720.  
  721. TASK [common/dyn_inventory : force user-supplied build_version] ***************
  722. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:102
  723. ok: [localhost] => {
  724. "ansible_facts": {
  725. "build_version": "1"
  726. },
  727. "changed": false,
  728. "invocation": {
  729. "module_args": {
  730. "build_version": "1"
  731. },
  732. "module_name": "set_fact"
  733. }
  734. }
  735.  
  736. TASK [common/dyn_inventory : strip existing build version from cluster name] ***
  737. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:107
  738. skipping: [localhost] => {
  739. "changed": false,
  740. "skip_reason": "Conditional check failed",
  741. "skipped": true
  742. }
  743.  
  744. TASK [common/dyn_inventory : set new cluster name] *****************************
  745. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:111
  746. skipping: [localhost] => {
  747. "changed": false,
  748. "skip_reason": "Conditional check failed",
  749. "skipped": true
  750. }
  751.  
  752. TASK [common/dyn_inventory : reuse existing cluster name] **********************
  753. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:115
  754. ok: [localhost] => {
  755. "ansible_facts": {
  756. "full_cluster_name": "staging-vault1"
  757. },
  758. "changed": false,
  759. "invocation": {
  760. "module_args": {
  761. "full_cluster_name": "staging-vault1"
  762. },
  763. "module_name": "set_fact"
  764. }
  765. }
  766.  
  767. TASK [common/dyn_inventory : get instance_group] *******************************
  768. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:119
  769. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  770. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  771. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  772. changed: [localhost] => {
  773. "changed": true,
  774. "cmd": "gcloud --quiet compute instance-groups list | awk '/^gke-staging-vault1/{print $1}'",
  775. "delta": "0:00:01.518995",
  776. "end": "2017-04-05 12:26:45.174580",
  777. "invocation": {
  778. "module_args": {
  779. "_raw_params": "gcloud --quiet compute instance-groups list | awk '/^gke-staging-vault1/{print $1}'",
  780. "_uses_shell": true,
  781. "chdir": null,
  782. "creates": null,
  783. "executable": null,
  784. "removes": null,
  785. "warn": true
  786. },
  787. "module_name": "command"
  788. },
  789. "rc": 0,
  790. "start": "2017-04-05 12:26:43.655585",
  791. "stderr": "",
  792. "stdout": "gke-staging-vault1-default-pool-48f8b6a6-grp",
  793. "stdout_lines": [
  794. "gke-staging-vault1-default-pool-48f8b6a6-grp"
  795. ],
  796. "warnings": []
  797. }
  798.  
  799. TASK [common/dyn_inventory : define instance group] ****************************
  800. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:124
  801. ok: [localhost] => {
  802. "ansible_facts": {
  803. "instance_group": "gke-staging-vault1-default-pool-48f8b6a6-grp"
  804. },
  805. "changed": false,
  806. "invocation": {
  807. "module_args": {
  808. "instance_group": "gke-staging-vault1-default-pool-48f8b6a6-grp"
  809. },
  810. "module_name": "set_fact"
  811. }
  812. }
  813.  
  814. TASK [common/dyn_inventory : get instance_zone] ********************************
  815. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:128
  816. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  817. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  818. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  819. changed: [localhost] => {
  820. "changed": true,
  821. "cmd": "gcloud --quiet compute instance-groups list | awk '/^gke-staging-vault1/{print $2}'",
  822. "delta": "0:00:01.441088",
  823. "end": "2017-04-05 12:26:46.730644",
  824. "invocation": {
  825. "module_args": {
  826. "_raw_params": "gcloud --quiet compute instance-groups list | awk '/^gke-staging-vault1/{print $2}'",
  827. "_uses_shell": true,
  828. "chdir": null,
  829. "creates": null,
  830. "executable": null,
  831. "removes": null,
  832. "warn": true
  833. },
  834. "module_name": "command"
  835. },
  836. "rc": 0,
  837. "start": "2017-04-05 12:26:45.289556",
  838. "stderr": "",
  839. "stdout": "us-central1-f",
  840. "stdout_lines": [
  841. "us-central1-f"
  842. ],
  843. "warnings": []
  844. }
  845.  
  846. TASK [common/dyn_inventory : define instance zone] *****************************
  847. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:133
  848. ok: [localhost] => {
  849. "ansible_facts": {
  850. "instance_zone": "us-central1-f"
  851. },
  852. "changed": false,
  853. "invocation": {
  854. "module_args": {
  855. "instance_zone": "us-central1-f"
  856. },
  857. "module_name": "set_fact"
  858. }
  859. }
  860.  
  861. TASK [common/dyn_inventory : get instance in group] ****************************
  862. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:137
  863. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  864. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  865. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  866. changed: [localhost] => {
  867. "changed": true,
  868. "cmd": "gcloud --quiet compute instance-groups list-instances gke-staging-vault1-default-pool-48f8b6a6-grp --zone=us-central1-f | awk '/staging-vault1/{print $1}'",
  869. "delta": "0:00:00.609049",
  870. "end": "2017-04-05 12:26:47.447535",
  871. "invocation": {
  872. "module_args": {
  873. "_raw_params": "gcloud --quiet compute instance-groups list-instances gke-staging-vault1-default-pool-48f8b6a6-grp --zone=us-central1-f | awk '/staging-vault1/{print $1}'",
  874. "_uses_shell": true,
  875. "chdir": null,
  876. "creates": null,
  877. "executable": null,
  878. "removes": null,
  879. "warn": true
  880. },
  881. "module_name": "command"
  882. },
  883. "rc": 0,
  884. "start": "2017-04-05 12:26:46.838486",
  885. "stderr": "",
  886. "stdout": "gke-staging-vault1-default-pool-48f8b6a6-4vww",
  887. "stdout_lines": [
  888. "gke-staging-vault1-default-pool-48f8b6a6-4vww"
  889. ],
  890. "warnings": []
  891. }
  892.  
  893. TASK [common/dyn_inventory : define a name of first available gcloud instance] *
  894. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:148
  895. ok: [localhost] => {
  896. "ansible_facts": {
  897. "gcloud_node": "gke-staging-vault1-default-pool-48f8b6a6-4vww"
  898. },
  899. "changed": false,
  900. "invocation": {
  901. "module_args": {
  902. "gcloud_node": "gke-staging-vault1-default-pool-48f8b6a6-4vww"
  903. },
  904. "module_name": "set_fact"
  905. }
  906. }
  907.  
  908. TASK [common/dyn_inventory : locate vagrant variables dir] *********************
  909. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:3
  910. skipping: [localhost] => {
  911. "changed": false,
  912. "skip_reason": "Conditional check failed",
  913. "skipped": true
  914. }
  915.  
  916. TASK [common/dyn_inventory : set vagrant inventory path] ***********************
  917. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:7
  918. skipping: [localhost] => {
  919. "changed": false,
  920. "skip_reason": "Conditional check failed",
  921. "skipped": true
  922. }
  923.  
  924. TASK [common/dyn_inventory : Get Vagrant hosts] ********************************
  925. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:10
  926. skipping: [localhost] => {
  927. "changed": false,
  928. "skip_reason": "Conditional check failed",
  929. "skipped": true
  930. }
  931.  
  932. TASK [common/dyn_inventory : save vagrant ip] **********************************
  933. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:30
  934. skipping: [localhost] => {
  935. "changed": false,
  936. "skip_reason": "Conditional check failed",
  937. "skipped": true
  938. }
  939.  
  940. TASK [common/dyn_inventory : add vagrant VM as mgmt-node to inventory] *********
  941. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:34
  942. skipping: [localhost] => {
  943. "changed": false,
  944. "skip_reason": "Conditional check failed",
  945. "skipped": true
  946. }
  947.  
  948. TASK [common/dyn_inventory : add mgmt-node as proxy] ***************************
  949. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:41
  950. skipping: [localhost] => {
  951. "changed": false,
  952. "skip_reason": "Conditional check failed",
  953. "skipped": true
  954. }
  955.  
  956. TASK [common/dyn_inventory : get mgmt IP for new env] **************************
  957. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:3
  958. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  959. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  960. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  961. changed: [localhost] => {
  962. "changed": true,
  963. "cmd": "gcloud --quiet compute instances list | awk '/^staging-mgmt1-mgmt/{print $5}' | tail -n1",
  964. "delta": "0:00:01.209149",
  965. "end": "2017-04-05 12:26:48.883563",
  966. "invocation": {
  967. "module_args": {
  968. "_raw_params": "gcloud --quiet compute instances list | awk '/^staging-mgmt1-mgmt/{print $5}' | tail -n1",
  969. "_uses_shell": true,
  970. "chdir": null,
  971. "creates": null,
  972. "executable": null,
  973. "removes": null,
  974. "warn": true
  975. },
  976. "module_name": "command"
  977. },
  978. "rc": 0,
  979. "start": "2017-04-05 12:26:47.674414",
  980. "stderr": "",
  981. "stdout": "vCPU,",
  982. "stdout_lines": [
  983. "vCPU,"
  984. ],
  985. "warnings": []
  986. }
  987.  
  988. TASK [common/dyn_inventory : get mgmt IP for older non-isolated env] ***********
  989. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:8
  990. skipping: [localhost] => {
  991. "changed": false,
  992. "skip_reason": "Conditional check failed",
  993. "skipped": true
  994. }
  995.  
  996. TASK [common/dyn_inventory : get proxy IP for new env] *************************
  997. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:13
  998. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  999. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  1000. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  1001. changed: [localhost] => {
  1002. "changed": true,
  1003. "cmd": "gcloud --quiet compute instances list | awk '/^staging-app1-proxy/{print $5}' | tail -n1",
  1004. "delta": "0:00:01.683033",
  1005. "end": "2017-04-05 12:26:50.679641",
  1006. "invocation": {
  1007. "module_args": {
  1008. "_raw_params": "gcloud --quiet compute instances list | awk '/^staging-app1-proxy/{print $5}' | tail -n1",
  1009. "_uses_shell": true,
  1010. "chdir": null,
  1011. "creates": null,
  1012. "executable": null,
  1013. "removes": null,
  1014. "warn": true
  1015. },
  1016. "module_name": "command"
  1017. },
  1018. "rc": 0,
  1019. "start": "2017-04-05 12:26:48.996608",
  1020. "stderr": "",
  1021. "stdout": "35.184.209.77",
  1022. "stdout_lines": [
  1023. "35.184.209.77"
  1024. ],
  1025. "warnings": []
  1026. }
  1027.  
  1028. TASK [common/dyn_inventory : get proxy IP for older non-isolated env] *********
  1029. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:18
  1030. skipping: [localhost] => {
  1031. "changed": false,
  1032. "skip_reason": "Conditional check failed",
  1033. "skipped": true
  1034. }
  1035.  
  1036. TASK [common/dyn_inventory : add mgmt to inventory] ****************************
  1037. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:23
  1038. skipping: [localhost] => {
  1039. "changed": false,
  1040. "skip_reason": "Conditional check failed",
  1041. "skipped": true
  1042. }
  1043.  
  1044. TASK [common/dyn_inventory : add proxy to inventory] ***************************
  1045. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:30
  1046. skipping: [localhost] => {
  1047. "changed": false,
  1048. "skip_reason": "Conditional check failed",
  1049. "skipped": true
  1050. }
  1051.  
  1052. TASK [common/dyn_inventory : add proxy nodes to proxy group] *******************
  1053. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:37
  1054. skipping: [localhost] => (item=gke-staging-elastic1-default-pool-22deddc1-6x82) => {
  1055. "changed": false,
  1056. "item": "gke-staging-elastic1-default-pool-22deddc1-6x82",
  1057. "skip_reason": "Conditional check failed",
  1058. "skipped": true
  1059. }
  1060. skipping: [localhost] => (item=gke-staging-elastic1-default-pool-22deddc1-8r48) => {
  1061. "changed": false,
  1062. "item": "gke-staging-elastic1-default-pool-22deddc1-8r48",
  1063. "skip_reason": "Conditional check failed",
  1064. "skipped": true
  1065. }
  1066. skipping: [localhost] => (item=staging-elastic1-router1) => {
  1067. "changed": false,
  1068. "item": "staging-elastic1-router1",
  1069. "skip_reason": "Conditional check failed",
  1070. "skipped": true
  1071. }
  1072. skipping: [localhost] => (item=gke-staging-infra1-default-pool-8d4c0198-lfgt) => {
  1073. "changed": false,
  1074. "item": "gke-staging-infra1-default-pool-8d4c0198-lfgt",
  1075. "skip_reason": "Conditional check failed",
  1076. "skipped": true
  1077. }
  1078. skipping: [localhost] => (item=staging-gluster1-node1) => {
  1079. "changed": false,
  1080. "item": "staging-gluster1-node1",
  1081. "skip_reason": "Conditional check failed",
  1082. "skipped": true
  1083. }
  1084. skipping: [localhost] => (item=staging-gluster1-node2) => {
  1085. "changed": false,
  1086. "item": "staging-gluster1-node2",
  1087. "skip_reason": "Conditional check failed",
  1088. "skipped": true
  1089. }
  1090. skipping: [localhost] => (item=gke-loc-dvv1-default-pool-f19e2cad-p5l7) => {
  1091. "changed": false,
  1092. "item": "gke-loc-dvv1-default-pool-f19e2cad-p5l7",
  1093. "skip_reason": "Conditional check failed",
  1094. "skipped": true
  1095. }
  1096. skipping: [localhost] => (item=staging-mgmt1-mgmt1) => {
  1097. "changed": false,
  1098. "item": "staging-mgmt1-mgmt1",
  1099. "skip_reason": "Conditional check failed",
  1100. "skipped": true
  1101. }
  1102. skipping: [localhost] => (item=staging-app1-nat) => {
  1103. "changed": false,
  1104. "item": "staging-app1-nat",
  1105. "skip_reason": "Conditional check failed",
  1106. "skipped": true
  1107. }
  1108. skipping: [localhost] => (item=gke-loc-cizar1-default-pool-a9bc997f-3lfv) => {
  1109. "changed": false,
  1110. "item": "gke-loc-cizar1-default-pool-a9bc997f-3lfv",
  1111. "skip_reason": "Conditional check failed",
  1112. "skipped": true
  1113. }
  1114. skipping: [localhost] => (item=gke-loc-dima1-default-pool-29316482-2vcs) => {
  1115. "changed": false,
  1116. "item": "gke-loc-dima1-default-pool-29316482-2vcs",
  1117. "skip_reason": "Conditional check failed",
  1118. "skipped": true
  1119. }
  1120. skipping: [localhost] => (item=gke-loc-scherepanov1-default-pool-1ad9dd6d-tktc) => {
  1121. "changed": false,
  1122. "item": "gke-loc-scherepanov1-default-pool-1ad9dd6d-tktc",
  1123. "skip_reason": "Conditional check failed",
  1124. "skipped": true
  1125. }
  1126. skipping: [localhost] => (item=gke-staging-app1-default-pool-1fd2f298-4rrj) => {
  1127. "changed": false,
  1128. "item": "gke-staging-app1-default-pool-1fd2f298-4rrj",
  1129. "skip_reason": "Conditional check failed",
  1130. "skipped": true
  1131. }
  1132. skipping: [localhost] => (item=gke-staging-app1-default-pool-1fd2f298-jcsc) => {
  1133. "changed": false,
  1134. "item": "gke-staging-app1-default-pool-1fd2f298-jcsc",
  1135. "skip_reason": "Conditional check failed",
  1136. "skipped": true
  1137. }
  1138. skipping: [localhost] => (item=gke-staging-jenkins1-default-pool-5ee033d8-n27n) => {
  1139. "changed": false,
  1140. "item": "gke-staging-jenkins1-default-pool-5ee033d8-n27n",
  1141. "skip_reason": "Conditional check failed",
  1142. "skipped": true
  1143. }
  1144. skipping: [localhost] => (item=gke-staging-vault1-default-pool-48f8b6a6-4vww) => {
  1145. "changed": false,
  1146. "item": "gke-staging-vault1-default-pool-48f8b6a6-4vww",
  1147. "skip_reason": "Conditional check failed",
  1148. "skipped": true
  1149. }
  1150. creating host via 'add_host': hostname=staging-app1-proxy1
  1151. changed: [localhost] => (item=staging-app1-proxy1) => {
  1152. "add_host": {
  1153. "groups": [
  1154. "proxies"
  1155. ],
  1156. "host_name": "staging-app1-proxy1",
  1157. "host_vars": {}
  1158. },
  1159. "changed": true,
  1160. "invocation": {
  1161. "module_args": {
  1162. "groups": "proxies",
  1163. "hostname": "staging-app1-proxy1"
  1164. },
  1165. "module_name": "add_host"
  1166. },
  1167. "item": "staging-app1-proxy1"
  1168. }
  1169. creating host via 'add_host': hostname=staging-app1-proxy2
  1170. changed: [localhost] => (item=staging-app1-proxy2) => {
  1171. "add_host": {
  1172. "groups": [
  1173. "proxies"
  1174. ],
  1175. "host_name": "staging-app1-proxy2",
  1176. "host_vars": {}
  1177. },
  1178. "changed": true,
  1179. "invocation": {
  1180. "module_args": {
  1181. "groups": "proxies",
  1182. "hostname": "staging-app1-proxy2"
  1183. },
  1184. "module_name": "add_host"
  1185. },
  1186. "item": "staging-app1-proxy2"
  1187. }
  1188. skipping: [localhost] => (item=staging-vault1-router1) => {
  1189. "changed": false,
  1190. "item": "staging-vault1-router1",
  1191. "skip_reason": "Conditional check failed",
  1192. "skipped": true
  1193. }
  1194. skipping: [localhost] => (item=gke-loc-alexandr1-default-pool-00c11fc3-g0xs) => {
  1195. "changed": false,
  1196. "item": "gke-loc-alexandr1-default-pool-00c11fc3-g0xs",
  1197. "skip_reason": "Conditional check failed",
  1198. "skipped": true
  1199. }
  1200.  
  1201. TASK [common/dyn_inventory : add proxy nodes to proxy group for non-isolated env] ***
  1202. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:45
  1203. skipping: [localhost] => (item=gke-staging-elastic1-default-pool-22deddc1-6x82) => {
  1204. "changed": false,
  1205. "item": "gke-staging-elastic1-default-pool-22deddc1-6x82",
  1206. "skip_reason": "Conditional check failed",
  1207. "skipped": true
  1208. }
  1209. skipping: [localhost] => (item=gke-staging-elastic1-default-pool-22deddc1-8r48) => {
  1210. "changed": false,
  1211. "item": "gke-staging-elastic1-default-pool-22deddc1-8r48",
  1212. "skip_reason": "Conditional check failed",
  1213. "skipped": true
  1214. }
  1215. skipping: [localhost] => (item=staging-elastic1-router1) => {
  1216. "changed": false,
  1217. "item": "staging-elastic1-router1",
  1218. "skip_reason": "Conditional check failed",
  1219. "skipped": true
  1220. }
  1221. skipping: [localhost] => (item=gke-staging-infra1-default-pool-8d4c0198-lfgt) => {
  1222. "changed": false,
  1223. "item": "gke-staging-infra1-default-pool-8d4c0198-lfgt",
  1224. "skip_reason": "Conditional check failed",
  1225. "skipped": true
  1226. }
  1227. skipping: [localhost] => (item=staging-gluster1-node1) => {
  1228. "changed": false,
  1229. "item": "staging-gluster1-node1",
  1230. "skip_reason": "Conditional check failed",
  1231. "skipped": true
  1232. }
  1233. skipping: [localhost] => (item=staging-gluster1-node2) => {
  1234. "changed": false,
  1235. "item": "staging-gluster1-node2",
  1236. "skip_reason": "Conditional check failed",
  1237. "skipped": true
  1238. }
  1239. skipping: [localhost] => (item=gke-loc-dvv1-default-pool-f19e2cad-p5l7) => {
  1240. "changed": false,
  1241. "item": "gke-loc-dvv1-default-pool-f19e2cad-p5l7",
  1242. "skip_reason": "Conditional check failed",
  1243. "skipped": true
  1244. }
  1245. skipping: [localhost] => (item=staging-mgmt1-mgmt1) => {
  1246. "changed": false,
  1247. "item": "staging-mgmt1-mgmt1",
  1248. "skip_reason": "Conditional check failed",
  1249. "skipped": true
  1250. }
  1251. skipping: [localhost] => (item=staging-app1-nat) => {
  1252. "changed": false,
  1253. "item": "staging-app1-nat",
  1254. "skip_reason": "Conditional check failed",
  1255. "skipped": true
  1256. }
  1257. skipping: [localhost] => (item=gke-loc-cizar1-default-pool-a9bc997f-3lfv) => {
  1258. "changed": false,
  1259. "item": "gke-loc-cizar1-default-pool-a9bc997f-3lfv",
  1260. "skip_reason": "Conditional check failed",
  1261. "skipped": true
  1262. }
  1263. skipping: [localhost] => (item=gke-loc-dima1-default-pool-29316482-2vcs) => {
  1264. "changed": false,
  1265. "item": "gke-loc-dima1-default-pool-29316482-2vcs",
  1266. "skip_reason": "Conditional check failed",
  1267. "skipped": true
  1268. }
  1269. skipping: [localhost] => (item=gke-loc-scherepanov1-default-pool-1ad9dd6d-tktc) => {
  1270. "changed": false,
  1271. "item": "gke-loc-scherepanov1-default-pool-1ad9dd6d-tktc",
  1272. "skip_reason": "Conditional check failed",
  1273. "skipped": true
  1274. }
  1275. skipping: [localhost] => (item=gke-staging-app1-default-pool-1fd2f298-4rrj) => {
  1276. "changed": false,
  1277. "item": "gke-staging-app1-default-pool-1fd2f298-4rrj",
  1278. "skip_reason": "Conditional check failed",
  1279. "skipped": true
  1280. }
  1281. skipping: [localhost] => (item=gke-staging-app1-default-pool-1fd2f298-jcsc) => {
  1282. "changed": false,
  1283. "item": "gke-staging-app1-default-pool-1fd2f298-jcsc",
  1284. "skip_reason": "Conditional check failed",
  1285. "skipped": true
  1286. }
  1287. skipping: [localhost] => (item=gke-staging-jenkins1-default-pool-5ee033d8-n27n) => {
  1288. "changed": false,
  1289. "item": "gke-staging-jenkins1-default-pool-5ee033d8-n27n",
  1290. "skip_reason": "Conditional check failed",
  1291. "skipped": true
  1292. }
  1293. skipping: [localhost] => (item=gke-staging-vault1-default-pool-48f8b6a6-4vww) => {
  1294. "changed": false,
  1295. "item": "gke-staging-vault1-default-pool-48f8b6a6-4vww",
  1296. "skip_reason": "Conditional check failed",
  1297. "skipped": true
  1298. }
  1299. skipping: [localhost] => (item=staging-app1-proxy1) => {
  1300. "changed": false,
  1301. "item": "staging-app1-proxy1",
  1302. "skip_reason": "Conditional check failed",
  1303. "skipped": true
  1304. }
  1305. skipping: [localhost] => (item=staging-app1-proxy2) => {
  1306. "changed": false,
  1307. "item": "staging-app1-proxy2",
  1308. "skip_reason": "Conditional check failed",
  1309. "skipped": true
  1310. }
  1311. skipping: [localhost] => (item=staging-vault1-router1) => {
  1312. "changed": false,
  1313. "item": "staging-vault1-router1",
  1314. "skip_reason": "Conditional check failed",
  1315. "skipped": true
  1316. }
  1317. skipping: [localhost] => (item=gke-loc-alexandr1-default-pool-00c11fc3-g0xs) => {
  1318. "changed": false,
  1319. "item": "gke-loc-alexandr1-default-pool-00c11fc3-g0xs",
  1320. "skip_reason": "Conditional check failed",
  1321. "skipped": true
  1322. }
  1323.  
  1324. TASK [common/dyn_inventory : get domain name] **********************************
  1325. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:161
  1326. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  1327. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  1328. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  1329. changed: [localhost] => {
  1330. "changed": true,
  1331. "cmd": "gcloud dns managed-zones describe oro-cloud-development | awk /^dnsName:/'{print substr($2,1,length($2)-1)}'",
  1332. "delta": "0:00:01.003303",
  1333. "end": "2017-04-05 12:26:52.213804",
  1334. "invocation": {
  1335. "module_args": {
  1336. "_raw_params": "gcloud dns managed-zones describe oro-cloud-development | awk /^dnsName:/'{print substr($2,1,length($2)-1)}'",
  1337. "_uses_shell": true,
  1338. "chdir": null,
  1339. "creates": null,
  1340. "executable": null,
  1341. "removes": null,
  1342. "warn": true
  1343. },
  1344. "module_name": "command"
  1345. },
  1346. "rc": 0,
  1347. "start": "2017-04-05 12:26:51.210501",
  1348. "stderr": "",
  1349. "stdout": "cloud-development.oroinc.com",
  1350. "stdout_lines": [
  1351. "cloud-development.oroinc.com"
  1352. ],
  1353. "warnings": []
  1354. }
  1355.  
  1356. TASK [common/dyn_inventory : set_fact] *****************************************
  1357. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:167
  1358. ok: [localhost] => {
  1359. "ansible_facts": {
  1360. "domain": "cloud-development.oroinc.com"
  1361. },
  1362. "changed": false,
  1363. "invocation": {
  1364. "module_args": {
  1365. "domain": "cloud-development.oroinc.com"
  1366. },
  1367. "module_name": "set_fact"
  1368. }
  1369. }
  1370.  
  1371. TASK [common/dyn_inventory : set network name for isolated cluster] ************
  1372. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:171
  1373. ok: [localhost] => {
  1374. "ansible_facts": {
  1375. "cluster_network_name": "staging-vault1"
  1376. },
  1377. "changed": false,
  1378. "invocation": {
  1379. "module_args": {
  1380. "cluster_network_name": "staging-vault1"
  1381. },
  1382. "module_name": "set_fact"
  1383. }
  1384. }
  1385.  
  1386. TASK [common/dyn_inventory : set network name for public cluster] **************
  1387. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:176
  1388. skipping: [localhost] => {
  1389. "changed": false,
  1390. "skip_reason": "Conditional check failed",
  1391. "skipped": true
  1392. }
  1393.  
  1394. TASK [common/dyn_inventory : find pre-existing networks for cluster] ***********
  1395. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:181
  1396. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  1397. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  1398. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  1399. changed: [localhost] => {
  1400. "changed": true,
  1401. "cmd": "~/google-cloud-sdk/bin/gcloud compute networks subnets list --filter NAME=staging-vault1-subnet-main 2>/dev/null | awk '{ print $4 }' | tail -n1",
  1402. "delta": "0:00:00.753858",
  1403. "end": "2017-04-05 12:26:53.121844",
  1404. "invocation": {
  1405. "module_args": {
  1406. "_raw_params": "~/google-cloud-sdk/bin/gcloud compute networks subnets list --filter NAME=staging-vault1-subnet-main 2>/dev/null | awk '{ print $4 }' | tail -n1",
  1407. "_uses_shell": true,
  1408. "chdir": null,
  1409. "creates": null,
  1410. "executable": null,
  1411. "removes": null,
  1412. "warn": true
  1413. },
  1414. "module_name": "command"
  1415. },
  1416. "rc": 0,
  1417. "start": "2017-04-05 12:26:52.367986",
  1418. "stderr": "",
  1419. "stdout": "10.20.0.0/15",
  1420. "stdout_lines": [
  1421. "10.20.0.0/15"
  1422. ],
  1423. "warnings": []
  1424. }
  1425.  
  1426. TASK [common/dyn_inventory : register subnet for nodes] ************************
  1427. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:188
  1428. ok: [localhost] => {
  1429. "ansible_facts": {
  1430. "node_subnet": "node_network_ouput.stdout"
  1431. },
  1432. "changed": false,
  1433. "invocation": {
  1434. "module_args": {
  1435. "node_subnet": "node_network_ouput.stdout"
  1436. },
  1437. "module_name": "set_fact"
  1438. }
  1439. }
  1440.  
  1441. TASK [common/dyn_inventory : extract second octet from node subnet] ************
  1442. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:192
  1443. ok: [localhost] => {
  1444. "ansible_facts": {
  1445. "cluster_network_id": "stdout"
  1446. },
  1447. "changed": false,
  1448. "invocation": {
  1449. "module_args": {
  1450. "cluster_network_id": "stdout"
  1451. },
  1452. "module_name": "set_fact"
  1453. }
  1454. }
  1455.  
  1456. TASK [common/dyn_inventory : define a subnet for kubernetes] *******************
  1457. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:197
  1458. ok: [localhost] => {
  1459. "ansible_facts": {
  1460. "kube_subnet": "10.2.0.0/15"
  1461. },
  1462. "changed": false,
  1463. "invocation": {
  1464. "module_args": {
  1465. "kube_subnet": "10.2.0.0/15"
  1466. },
  1467. "module_name": "set_fact"
  1468. }
  1469. }
  1470.  
  1471. TASK [common/dyn_inventory : define an aggregate subnet for cluster] ***********
  1472. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:201
  1473. ok: [localhost] => {
  1474. "ansible_facts": {
  1475. "cluster_network": "node_network_ouput.stdout"
  1476. },
  1477. "changed": false,
  1478. "invocation": {
  1479. "module_args": {
  1480. "cluster_network": "node_network_ouput.stdout"
  1481. },
  1482. "module_name": "set_fact"
  1483. }
  1484. }
  1485.  
  1486. TASK [common/dyn_inventory : get vpn ip for cluster] ***************************
  1487. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:205
  1488. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  1489. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  1490. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  1491. changed: [localhost] => {
  1492. "changed": true,
  1493. "cmd": "~/google-cloud-sdk/bin/gcloud compute addresses list | grep -E '^staging-vault1-vpngw' | awk '{ print $3 }'",
  1494. "delta": "0:00:01.106009",
  1495. "end": "2017-04-05 12:26:54.407229",
  1496. "invocation": {
  1497. "module_args": {
  1498. "_raw_params": "~/google-cloud-sdk/bin/gcloud compute addresses list | grep -E '^staging-vault1-vpngw' | awk '{ print $3 }'",
  1499. "_uses_shell": true,
  1500. "chdir": null,
  1501. "creates": null,
  1502. "executable": null,
  1503. "removes": null,
  1504. "warn": true
  1505. },
  1506. "module_name": "command"
  1507. },
  1508. "rc": 0,
  1509. "start": "2017-04-05 12:26:53.301220",
  1510. "stderr": "",
  1511. "stdout": "35.184.116.76",
  1512. "stdout_lines": [
  1513. "35.184.116.76"
  1514. ],
  1515. "warnings": []
  1516. }
  1517.  
  1518. TASK [common/dyn_inventory : register vpn gw] **********************************
  1519. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:210
  1520. ok: [localhost] => {
  1521. "ansible_facts": {
  1522. "vpn_gw_ip": "35.184.116.76"
  1523. },
  1524. "changed": false,
  1525. "invocation": {
  1526. "module_args": {
  1527. "vpn_gw_ip": "35.184.116.76"
  1528. },
  1529. "module_name": "set_fact"
  1530. }
  1531. }
  1532.  
  1533. TASK [fail] ********************************************************************
  1534. task path: /home/cizar/oro-cloud-ansible/router-node.yml:7
  1535. skipping: [localhost] => {
  1536. "changed": false,
  1537. "skip_reason": "Conditional check failed",
  1538. "skipped": true
  1539. }
  1540.  
  1541. PLAY [create proxy node in gcloud] *********************************************
  1542.  
  1543. TASK [setup] *******************************************************************
  1544. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/system/setup.py
  1545. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  1546. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  1547. ok: [localhost]
  1548.  
  1549. TASK [common/gcloud_sdk : Update local gcloud installation] ********************
  1550. task path: /home/cizar/oro-cloud-ansible/roles/common/gcloud_sdk/tasks/main.yml:2
  1551. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  1552. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  1553. <127.0.0.1> EXEC /bin/sh -c 'CLOUDSDK_CORE_DISABLE_PROMPTS=1 /usr/bin/python && sleep 0'
  1554. changed: [localhost] => {
  1555. "changed": true,
  1556. "cmd": [
  1557. "~/google-cloud-sdk/bin/gcloud",
  1558. "components",
  1559. "update"
  1560. ],
  1561. "delta": "0:00:00.633484",
  1562. "end": "2017-04-05 12:26:55.390759",
  1563. "invocation": {
  1564. "module_args": {
  1565. "_raw_params": "~/google-cloud-sdk/bin/gcloud components update",
  1566. "_uses_shell": false,
  1567. "chdir": null,
  1568. "creates": null,
  1569. "executable": null,
  1570. "removes": null,
  1571. "warn": true
  1572. },
  1573. "module_name": "command"
  1574. },
  1575. "rc": 0,
  1576. "start": "2017-04-05 12:26:54.757275",
  1577. "stderr": "\nAll components are up to date.",
  1578. "stdout": "",
  1579. "stdout_lines": [],
  1580. "warnings": []
  1581. }
  1582.  
  1583. TASK [common/gcloud_sdk : Check your account] **********************************
  1584. task path: /home/cizar/oro-cloud-ansible/roles/common/gcloud_sdk/tasks/main.yml:9
  1585. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  1586. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  1587. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  1588. changed: [localhost] => {
  1589. "changed": true,
  1590. "cmd": [
  1591. "~/google-cloud-sdk/bin/gcloud",
  1592. "config",
  1593. "list"
  1594. ],
  1595. "delta": "0:00:00.198972",
  1596. "end": "2017-04-05 12:26:55.679626",
  1597. "invocation": {
  1598. "module_args": {
  1599. "_raw_params": "~/google-cloud-sdk/bin/gcloud config list",
  1600. "_uses_shell": false,
  1601. "chdir": null,
  1602. "creates": null,
  1603. "executable": null,
  1604. "removes": null,
  1605. "warn": true
  1606. },
  1607. "module_name": "command"
  1608. },
  1609. "rc": 0,
  1610. "start": "2017-04-05 12:26:55.480654",
  1611. "stderr": "\nYour active configuration is: [default]",
  1612. "stdout": "[compute]\nregion = us-central1\nzone = us-central1-f\n[core]\naccount = dtarasenko@oroinc.com\ndisable_usage_reporting = True\nproject = oro-cloud-development",
  1613. "stdout_lines": [
  1614. "[compute]",
  1615. "region = us-central1",
  1616. "zone = us-central1-f",
  1617. "[core]",
  1618. "account = dtarasenko@oroinc.com",
  1619. "disable_usage_reporting = True",
  1620. "project = oro-cloud-development"
  1621. ],
  1622. "warnings": []
  1623. }
  1624.  
  1625. TASK [common/gcloud_sdk : Fail if account is not connected] ********************
  1626. task path: /home/cizar/oro-cloud-ansible/roles/common/gcloud_sdk/tasks/main.yml:15
  1627. skipping: [localhost] => {
  1628. "changed": false,
  1629. "skip_reason": "Conditional check failed",
  1630. "skipped": true
  1631. }
  1632.  
  1633. TASK [common/gcloud_sdk : configuring] *****************************************
  1634. task path: /home/cizar/oro-cloud-ansible/roles/common/gcloud_sdk/tasks/main.yml:19
  1635. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  1636. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  1637. <127.0.0.1> EXEC /bin/sh -c 'CLOUDSDK_CORE_DISABLE_PROMPTS=1 /usr/bin/python && sleep 0'
  1638. changed: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config set project oro-cloud-development) => {
  1639. "changed": true,
  1640. "cmd": "~/google-cloud-sdk/bin/gcloud config set project oro-cloud-development",
  1641. "delta": "0:00:00.213710",
  1642. "end": "2017-04-05 12:26:56.000912",
  1643. "invocation": {
  1644. "module_args": {
  1645. "_raw_params": "~/google-cloud-sdk/bin/gcloud config set project oro-cloud-development",
  1646. "_uses_shell": true,
  1647. "chdir": null,
  1648. "creates": null,
  1649. "executable": null,
  1650. "removes": null,
  1651. "warn": true
  1652. },
  1653. "module_name": "command"
  1654. },
  1655. "item": "~/google-cloud-sdk/bin/gcloud config set project oro-cloud-development",
  1656. "rc": 0,
  1657. "start": "2017-04-05 12:26:55.787202",
  1658. "stderr": "Updated property [core/project].",
  1659. "stdout": "",
  1660. "stdout_lines": [],
  1661. "warnings": []
  1662. }
  1663. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  1664. <127.0.0.1> EXEC /bin/sh -c 'CLOUDSDK_CORE_DISABLE_PROMPTS=1 /usr/bin/python && sleep 0'
  1665. changed: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config set compute/region us-central1) => {
  1666. "changed": true,
  1667. "cmd": "~/google-cloud-sdk/bin/gcloud config set compute/region us-central1",
  1668. "delta": "0:00:00.218481",
  1669. "end": "2017-04-05 12:26:56.289015",
  1670. "invocation": {
  1671. "module_args": {
  1672. "_raw_params": "~/google-cloud-sdk/bin/gcloud config set compute/region us-central1",
  1673. "_uses_shell": true,
  1674. "chdir": null,
  1675. "creates": null,
  1676. "executable": null,
  1677. "removes": null,
  1678. "warn": true
  1679. },
  1680. "module_name": "command"
  1681. },
  1682. "item": "~/google-cloud-sdk/bin/gcloud config set compute/region us-central1",
  1683. "rc": 0,
  1684. "start": "2017-04-05 12:26:56.070534",
  1685. "stderr": "Updated property [compute/region].",
  1686. "stdout": "",
  1687. "stdout_lines": [],
  1688. "warnings": []
  1689. }
  1690. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  1691. <127.0.0.1> EXEC /bin/sh -c 'CLOUDSDK_CORE_DISABLE_PROMPTS=1 /usr/bin/python && sleep 0'
  1692. changed: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config set compute/zone us-central1-f) => {
  1693. "changed": true,
  1694. "cmd": "~/google-cloud-sdk/bin/gcloud config set compute/zone us-central1-f",
  1695. "delta": "0:00:00.217589",
  1696. "end": "2017-04-05 12:26:56.575675",
  1697. "invocation": {
  1698. "module_args": {
  1699. "_raw_params": "~/google-cloud-sdk/bin/gcloud config set compute/zone us-central1-f",
  1700. "_uses_shell": true,
  1701. "chdir": null,
  1702. "creates": null,
  1703. "executable": null,
  1704. "removes": null,
  1705. "warn": true
  1706. },
  1707. "module_name": "command"
  1708. },
  1709. "item": "~/google-cloud-sdk/bin/gcloud config set compute/zone us-central1-f",
  1710. "rc": 0,
  1711. "start": "2017-04-05 12:26:56.358086",
  1712. "stderr": "Updated property [compute/zone].",
  1713. "stdout": "",
  1714. "stdout_lines": [],
  1715. "warnings": []
  1716. }
  1717. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  1718. <127.0.0.1> EXEC /bin/sh -c 'CLOUDSDK_CORE_DISABLE_PROMPTS=1 /usr/bin/python && sleep 0'
  1719. changed: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config list) => {
  1720. "changed": true,
  1721. "cmd": "~/google-cloud-sdk/bin/gcloud config list",
  1722. "delta": "0:00:00.197050",
  1723. "end": "2017-04-05 12:26:56.843727",
  1724. "invocation": {
  1725. "module_args": {
  1726. "_raw_params": "~/google-cloud-sdk/bin/gcloud config list",
  1727. "_uses_shell": true,
  1728. "chdir": null,
  1729. "creates": null,
  1730. "executable": null,
  1731. "removes": null,
  1732. "warn": true
  1733. },
  1734. "module_name": "command"
  1735. },
  1736. "item": "~/google-cloud-sdk/bin/gcloud config list",
  1737. "rc": 0,
  1738. "start": "2017-04-05 12:26:56.646677",
  1739. "stderr": "\nYour active configuration is: [default]",
  1740. "stdout": "[compute]\nregion = us-central1\nzone = us-central1-f\n[core]\naccount = dtarasenko@oroinc.com\ndisable_prompts = 1\ndisable_usage_reporting = True\nproject = oro-cloud-development",
  1741. "stdout_lines": [
  1742. "[compute]",
  1743. "region = us-central1",
  1744. "zone = us-central1-f",
  1745. "[core]",
  1746. "account = dtarasenko@oroinc.com",
  1747. "disable_prompts = 1",
  1748. "disable_usage_reporting = True",
  1749. "project = oro-cloud-development"
  1750. ],
  1751. "warnings": []
  1752. }
  1753.  
  1754. TASK [common/router_node : validate router node] *******************************
  1755. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:4
  1756. skipping: [localhost] => {
  1757. "changed": false,
  1758. "skip_reason": "Conditional check failed",
  1759. "skipped": true
  1760. }
  1761.  
  1762. TASK [common/router_node : mark router node as valid] **************************
  1763. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:11
  1764. skipping: [localhost] => {
  1765. "changed": false,
  1766. "skip_reason": "Conditional check failed",
  1767. "skipped": true
  1768. }
  1769.  
  1770. TASK [common/router_node : get build_version] **********************************
  1771. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:15
  1772. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  1773. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  1774. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  1775. changed: [localhost] => {
  1776. "changed": true,
  1777. "cmd": "~/google-cloud-sdk/bin/gcloud compute instances list | grep staging-vault1-router | awk {'print $1'} | sed 's/.*router//g' | sort -n | tail -n1",
  1778. "delta": "0:00:03.872932",
  1779. "end": "2017-04-05 12:27:00.850165",
  1780. "invocation": {
  1781. "module_args": {
  1782. "_raw_params": "~/google-cloud-sdk/bin/gcloud compute instances list | grep staging-vault1-router | awk {'print $1'} | sed 's/.*router//g' | sort -n | tail -n1",
  1783. "_uses_shell": true,
  1784. "chdir": null,
  1785. "creates": null,
  1786. "executable": null,
  1787. "removes": null,
  1788. "warn": true
  1789. },
  1790. "module_name": "command"
  1791. },
  1792. "rc": 0,
  1793. "start": "2017-04-05 12:26:56.977233",
  1794. "stderr": "",
  1795. "stdout": "1",
  1796. "stdout_lines": [
  1797. "1"
  1798. ],
  1799. "warnings": []
  1800. }
  1801.  
  1802. TASK [common/router_node : increment build version] ****************************
  1803. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:20
  1804. ok: [localhost] => {
  1805. "ansible_facts": {
  1806. "build_version": "2"
  1807. },
  1808. "changed": false,
  1809. "invocation": {
  1810. "module_args": {
  1811. "build_version": "2"
  1812. },
  1813. "module_name": "set_fact"
  1814. }
  1815. }
  1816.  
  1817. TASK [common/router_node : set new router name] ********************************
  1818. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:24
  1819. ok: [localhost] => {
  1820. "ansible_facts": {
  1821. "router_node_name": "staging-vault1-router2"
  1822. },
  1823. "changed": false,
  1824. "invocation": {
  1825. "module_args": {
  1826. "router_node_name": "staging-vault1-router2"
  1827. },
  1828. "module_name": "set_fact"
  1829. }
  1830. }
  1831.  
  1832. TASK [common/router_node : prepare oro env vars] *******************************
  1833. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:29
  1834. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  1835. <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1491384420.94-137294133255646 `" && echo ansible-tmp-1491384420.94-137294133255646="` echo ~/.ansible/tmp/ansible-tmp-1491384420.94-137294133255646 `" ) && sleep 0'
  1836. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/files/stat.py
  1837. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  1838. <127.0.0.1> PUT /tmp/tmpFy9shm TO /home/cizar/.ansible/tmp/ansible-tmp-1491384420.94-137294133255646/source
  1839. <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/cizar/.ansible/tmp/ansible-tmp-1491384420.94-137294133255646/ /home/cizar/.ansible/tmp/ansible-tmp-1491384420.94-137294133255646/source && sleep 0'
  1840. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/files/copy.py
  1841. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  1842. <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/cizar/.ansible/tmp/ansible-tmp-1491384420.94-137294133255646/ > /dev/null 2>&1 && sleep 0'
  1843. changed: [localhost] => {
  1844. "changed": true,
  1845. "checksum": "96c36476efd2211c609d1c64437b9b5e62c821c2",
  1846. "dest": "/tmp/kube-env",
  1847. "gid": 1001,
  1848. "group": "cizar",
  1849. "invocation": {
  1850. "module_args": {
  1851. "backup": false,
  1852. "content": null,
  1853. "delimiter": null,
  1854. "dest": "/tmp/kube-env",
  1855. "directory_mode": null,
  1856. "follow": true,
  1857. "force": true,
  1858. "group": null,
  1859. "mode": null,
  1860. "original_basename": "env.j2",
  1861. "owner": null,
  1862. "regexp": null,
  1863. "remote_src": null,
  1864. "selevel": null,
  1865. "serole": null,
  1866. "setype": null,
  1867. "seuser": null,
  1868. "src": "/home/cizar/.ansible/tmp/ansible-tmp-1491384420.94-137294133255646/source",
  1869. "unsafe_writes": null,
  1870. "validate": null
  1871. }
  1872. },
  1873. "md5sum": "0c45cdbcaef2e43a7f7f2561332f9168",
  1874. "mode": "0664",
  1875. "owner": "cizar",
  1876. "size": 252,
  1877. "src": "/home/cizar/.ansible/tmp/ansible-tmp-1491384420.94-137294133255646/source",
  1878. "state": "file",
  1879. "uid": 1001
  1880. }
  1881.  
  1882. TASK [common/router_node : get default template name] **************************
  1883. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:35
  1884. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  1885. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  1886. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  1887. changed: [localhost] => {
  1888. "changed": true,
  1889. "cmd": "~/google-cloud-sdk/bin/gcloud compute instance-templates list | grep staging-vault1 | grep -v dummy | awk {'print $1'} | tail -n1",
  1890. "delta": "0:00:01.918721",
  1891. "end": "2017-04-05 12:27:03.156674",
  1892. "invocation": {
  1893. "module_args": {
  1894. "_raw_params": "~/google-cloud-sdk/bin/gcloud compute instance-templates list | grep staging-vault1 | grep -v dummy | awk {'print $1'} | tail -n1",
  1895. "_uses_shell": true,
  1896. "chdir": null,
  1897. "creates": null,
  1898. "executable": null,
  1899. "removes": null,
  1900. "warn": true
  1901. },
  1902. "module_name": "command"
  1903. },
  1904. "rc": 0,
  1905. "start": "2017-04-05 12:27:01.237953",
  1906. "stderr": "",
  1907. "stdout": "gke-staging-vault1-default-pool-48f8b6a6",
  1908. "stdout_lines": [
  1909. "gke-staging-vault1-default-pool-48f8b6a6"
  1910. ],
  1911. "warnings": []
  1912. }
  1913.  
  1914. TASK [common/router_node : add default vars from instance template] ************
  1915. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:41
  1916. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  1917. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  1918. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  1919. changed: [localhost] => {
  1920. "changed": true,
  1921. "cmd": "~/google-cloud-sdk/bin/gcloud compute instance-templates describe gke-staging-vault1-default-pool-48f8b6a6 | sed '1,/key: kube-env/d;/key: startup-script/,$d' | sed 1d | sed '/kind: compute/,$d' |sed 's/^ //g' | sed 's/SALT_TAR_URL.*/SALT_TAR_URL: https:\\/\\/storage.googleapis.com\\/saltarch\\/kubernetes-salt-1.5.tar.gz/g' | sed 's/SALT_TAR_HASH.*/SALT_TAR_HASH: 220a69ff32fc51030fd7bd2f37fb55c413ad9688/g' >> /tmp/kube-env",
  1922. "delta": "0:00:00.812306",
  1923. "end": "2017-04-05 12:27:04.057662",
  1924. "invocation": {
  1925. "module_args": {
  1926. "_raw_params": "~/google-cloud-sdk/bin/gcloud compute instance-templates describe gke-staging-vault1-default-pool-48f8b6a6 | sed '1,/key: kube-env/d;/key: startup-script/,$d' | sed 1d | sed '/kind: compute/,$d' |sed 's/^ //g' | sed 's/SALT_TAR_URL.*/SALT_TAR_URL: https:\\/\\/storage.googleapis.com\\/saltarch\\/kubernetes-salt-1.5.tar.gz/g' | sed 's/SALT_TAR_HASH.*/SALT_TAR_HASH: 220a69ff32fc51030fd7bd2f37fb55c413ad9688/g' >> /tmp/kube-env",
  1927. "_uses_shell": true,
  1928. "chdir": null,
  1929. "creates": null,
  1930. "executable": null,
  1931. "removes": null,
  1932. "warn": true
  1933. },
  1934. "module_name": "command"
  1935. },
  1936. "rc": 0,
  1937. "start": "2017-04-05 12:27:03.245356",
  1938. "stderr": "",
  1939. "stdout": "",
  1940. "stdout_lines": [],
  1941. "warnings": []
  1942. }
  1943.  
  1944. TASK [common/router_node : copy startup-script] ********************************
  1945. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:45
  1946. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/files/stat.py
  1947. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  1948. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  1949. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/files/file.py
  1950. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  1951. ok: [localhost] => {
  1952. "changed": false,
  1953. "checksum": "17d93612e27e6b11707be2d56857c39ae5e66007",
  1954. "dest": "/tmp/startup-script",
  1955. "diff": {
  1956. "after": {
  1957. "path": "/tmp/startup-script"
  1958. },
  1959. "before": {
  1960. "path": "/tmp/startup-script"
  1961. }
  1962. },
  1963. "gid": 0,
  1964. "group": "root",
  1965. "invocation": {
  1966. "module_args": {
  1967. "backup": null,
  1968. "content": null,
  1969. "delimiter": null,
  1970. "dest": "/tmp/startup-script",
  1971. "diff_peek": null,
  1972. "directory_mode": null,
  1973. "follow": false,
  1974. "force": false,
  1975. "group": null,
  1976. "mode": null,
  1977. "original_basename": "startup-script",
  1978. "owner": null,
  1979. "path": "/tmp/startup-script",
  1980. "recurse": false,
  1981. "regexp": null,
  1982. "remote_src": null,
  1983. "selevel": null,
  1984. "serole": null,
  1985. "setype": null,
  1986. "seuser": null,
  1987. "src": "startup-script",
  1988. "state": null,
  1989. "unsafe_writes": null,
  1990. "validate": null
  1991. }
  1992. },
  1993. "mode": "0777",
  1994. "owner": "root",
  1995. "path": "/tmp/startup-script",
  1996. "size": 31059,
  1997. "state": "file",
  1998. "uid": 0
  1999. }
  2000.  
  2001. TASK [common/router_node : set router name] ************************************
  2002. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:52
  2003. ok: [localhost] => {
  2004. "ansible_facts": {
  2005. "_raw_params": "router_node_name = 'staging-vault1-router'"
  2006. },
  2007. "changed": false,
  2008. "invocation": {
  2009. "module_args": {
  2010. "_raw_params": "router_node_name = 'staging-vault1-router'"
  2011. },
  2012. "module_name": "set_fact"
  2013. }
  2014. }
  2015.  
  2016. TASK [common/router_node : create router node in isolation cluster] ************
  2017. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:55
  2018. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  2019. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2020. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  2021. changed: [localhost] => {
  2022. "changed": true,
  2023. "cmd": "~/google-cloud-sdk/bin/gcloud --quiet beta compute instances create staging-vault1-router2 --machine-type n1-highcpu-8 --boot-disk-size 100GB --image container-vm --metadata-from-file startup-script=\"/tmp/startup-script,kube-env=/tmp/kube-env\" --tags router --zone us-central1-f --can-ip-forward --subnet=staging-vault1-subnet-main",
  2024. "delta": "0:00:24.377019",
  2025. "end": "2017-04-05 12:27:28.781881",
  2026. "invocation": {
  2027. "module_args": {
  2028. "_raw_params": "~/google-cloud-sdk/bin/gcloud --quiet beta compute instances create staging-vault1-router2 --machine-type n1-highcpu-8 --boot-disk-size 100GB --image container-vm --metadata-from-file startup-script=\"/tmp/startup-script,kube-env=/tmp/kube-env\" --tags router --zone us-central1-f --can-ip-forward --subnet=staging-vault1-subnet-main",
  2029. "_uses_shell": true,
  2030. "chdir": null,
  2031. "creates": null,
  2032. "executable": null,
  2033. "removes": null,
  2034. "warn": true
  2035. },
  2036. "module_name": "command"
  2037. },
  2038. "rc": 0,
  2039. "start": "2017-04-05 12:27:04.404862",
  2040. "stderr": "WARNING: You have selected a disk size of under [200GB]. This may result in poor I/O performance. For more information, see: https://developers.google.com/compute/docs/disks#pdperformance.\nWARNING: Image aliases are deprecated and will be removed in a future version. Please use --image-family=container-vm and --image-project=google-containers instead.\nCreated [https://www.googleapis.com/compute/beta/projects/oro-cloud-development/zones/us-central1-f/instances/staging-vault1-router2].",
  2041. "stdout": "NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS\nstaging-vault1-router2 us-central1-f n1-highcpu-8 10.20.0.4 130.211.127.120 RUNNING",
  2042. "stdout_lines": [
  2043. "NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS",
  2044. "staging-vault1-router2 us-central1-f n1-highcpu-8 10.20.0.4 130.211.127.120 RUNNING"
  2045. ],
  2046. "warnings": []
  2047. }
  2048.  
  2049. TASK [common/router_node : get router node ip] *********************************
  2050. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:60
  2051. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  2052. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2053. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  2054. changed: [localhost] => {
  2055. "changed": true,
  2056. "cmd": "~/google-cloud-sdk/bin/gcloud compute instances list | grep staging-vault1-router2 | awk {'print $5'}",
  2057. "delta": "0:00:01.804231",
  2058. "end": "2017-04-05 12:27:30.676074",
  2059. "invocation": {
  2060. "module_args": {
  2061. "_raw_params": "~/google-cloud-sdk/bin/gcloud compute instances list | grep staging-vault1-router2 | awk {'print $5'}",
  2062. "_uses_shell": true,
  2063. "chdir": null,
  2064. "creates": null,
  2065. "executable": null,
  2066. "removes": null,
  2067. "warn": true
  2068. },
  2069. "module_name": "command"
  2070. },
  2071. "rc": 0,
  2072. "start": "2017-04-05 12:27:28.871843",
  2073. "stderr": "",
  2074. "stdout": "130.211.127.120",
  2075. "stdout_lines": [
  2076. "130.211.127.120"
  2077. ],
  2078. "warnings": []
  2079. }
  2080.  
  2081. TASK [common/router_node : get router node internal ip] ************************
  2082. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:66
  2083. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  2084. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2085. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  2086. changed: [localhost] => {
  2087. "changed": true,
  2088. "cmd": "~/google-cloud-sdk/bin/gcloud compute instances list | grep staging-vault1-router2 | awk {'print $4'}",
  2089. "delta": "0:00:01.789643",
  2090. "end": "2017-04-05 12:27:32.554576",
  2091. "invocation": {
  2092. "module_args": {
  2093. "_raw_params": "~/google-cloud-sdk/bin/gcloud compute instances list | grep staging-vault1-router2 | awk {'print $4'}",
  2094. "_uses_shell": true,
  2095. "chdir": null,
  2096. "creates": null,
  2097. "executable": null,
  2098. "removes": null,
  2099. "warn": true
  2100. },
  2101. "module_name": "command"
  2102. },
  2103. "rc": 0,
  2104. "start": "2017-04-05 12:27:30.764933",
  2105. "stderr": "",
  2106. "stdout": "10.20.0.4",
  2107. "stdout_lines": [
  2108. "10.20.0.4"
  2109. ],
  2110. "warnings": []
  2111. }
  2112.  
  2113. TASK [common/router_node : wait for router node to boot] ***********************
  2114. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:72
  2115. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/utilities/logic/wait_for.py
  2116. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2117. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  2118. ok: [localhost] => {
  2119. "changed": false,
  2120. "elapsed": 9,
  2121. "invocation": {
  2122. "module_args": {
  2123. "connect_timeout": 5,
  2124. "delay": 0,
  2125. "exclude_hosts": null,
  2126. "host": "130.211.127.120",
  2127. "path": null,
  2128. "port": 22,
  2129. "search_regex": null,
  2130. "state": "started",
  2131. "timeout": 300
  2132. },
  2133. "module_name": "wait_for"
  2134. },
  2135. "path": null,
  2136. "port": 22,
  2137. "search_regex": null,
  2138. "state": "started"
  2139. }
  2140.  
  2141. TASK [common/router_node : add router to inventory] ****************************
  2142. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:78
  2143. creating host via 'add_host': hostname=staging-vault1-router2
  2144. changed: [localhost] => {
  2145. "add_host": {
  2146. "groups": [
  2147. "proxies"
  2148. ],
  2149. "host_name": "staging-vault1-router2",
  2150. "host_vars": {
  2151. "ansible_host": "130.211.127.120",
  2152. "ansible_ssh_private_key_file": "/home/cizar/.ssh/google_compute_engine"
  2153. }
  2154. },
  2155. "changed": true,
  2156. "invocation": {
  2157. "module_args": {
  2158. "ansible_host": "130.211.127.120",
  2159. "ansible_ssh_private_key_file": "/home/cizar/.ssh/google_compute_engine",
  2160. "groups": "proxies",
  2161. "hostname": "staging-vault1-router2"
  2162. },
  2163. "module_name": "add_host"
  2164. }
  2165. }
  2166.  
  2167. TASK [common/router_node : route external traffic to kubernetes services through router node] ***
  2168. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:86
  2169. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  2170. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2171. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  2172. fatal: [localhost]: FAILED! => {
  2173. "changed": true,
  2174. "cmd": "~/google-cloud-sdk/bin/gcloud compute routes create 'staging-vault1-kube' --network staging-vault1 --next-hop-instance staging-vault1-router2 --destination-range 10.2.0.0/15 --priority 2000",
  2175. "delta": "0:00:00.622250",
  2176. "end": "2017-04-05 12:27:42.605276",
  2177. "failed": true,
  2178. "invocation": {
  2179. "module_args": {
  2180. "_raw_params": "~/google-cloud-sdk/bin/gcloud compute routes create 'staging-vault1-kube' --network staging-vault1 --next-hop-instance staging-vault1-router2 --destination-range 10.2.0.0/15 --priority 2000",
  2181. "_uses_shell": true,
  2182. "chdir": null,
  2183. "creates": null,
  2184. "executable": null,
  2185. "removes": null,
  2186. "warn": true
  2187. },
  2188. "module_name": "command"
  2189. },
  2190. "rc": 1,
  2191. "start": "2017-04-05 12:27:41.983026",
  2192. "stderr": "ERROR: (gcloud.compute.routes.create) Some requests did not succeed:\n - The resource 'projects/oro-cloud-development/global/routes/staging-vault1-kube' already exists",
  2193. "stdout": "",
  2194. "stdout_lines": [],
  2195. "warnings": []
  2196. }
  2197. to retry, use: --limit @/home/cizar/oro-cloud-ansible/router-node.retry
  2198.  
  2199. PLAY RECAP *********************************************************************
  2200. localhost : ok=52 changed=24 unreachable=0 failed=1
  2201.  
  2202. cizar@castle:~/oro-cloud-ansible$
  2203. cizar@castle:~/oro-cloud-ansible$
  2204. cizar@castle:~/oro-cloud-ansible$
  2205. cizar@castle:~/oro-cloud-ansible$
  2206. cizar@castle:~/oro-cloud-ansible$
  2207. cizar@castle:~/oro-cloud-ansible$
  2208. cizar@castle:~/oro-cloud-ansible$ ansible-playbook -e "env=staging-vault1" router-node.yml -vvv
  2209. [WARNING]: log file at ansible.log is not writeable and we cannot create it, aborting
  2210.  
  2211. Using /home/cizar/oro-cloud-ansible/ansible.cfg as config file
  2212. statically included: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml
  2213. statically included: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml
  2214.  
  2215. PLAYBOOK: router-node.yml ******************************************************
  2216. 2 plays in router-node.yml
  2217.  
  2218. PLAY [rebuild inventory] *******************************************************
  2219.  
  2220. TASK [setup] *******************************************************************
  2221. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/system/setup.py
  2222. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2223. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  2224. ok: [localhost]
  2225.  
  2226. TASK [common/dyn_inventory : check group_vars presence] ************************
  2227. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:3
  2228. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/files/stat.py
  2229. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2230. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  2231. ok: [localhost] => {
  2232. "changed": false,
  2233. "invocation": {
  2234. "module_args": {
  2235. "checksum_algorithm": "sha1",
  2236. "follow": false,
  2237. "get_checksum": true,
  2238. "get_md5": true,
  2239. "mime": false,
  2240. "path": "group_vars"
  2241. },
  2242. "module_name": "stat"
  2243. },
  2244. "stat": {
  2245. "atime": 1491383013.948659,
  2246. "ctime": 1491382261.3109255,
  2247. "dev": 2066,
  2248. "executable": true,
  2249. "exists": true,
  2250. "gid": 1001,
  2251. "gr_name": "cizar",
  2252. "inode": 3414086,
  2253. "isblk": false,
  2254. "ischr": false,
  2255. "isdir": true,
  2256. "isfifo": false,
  2257. "isgid": false,
  2258. "islnk": false,
  2259. "isreg": false,
  2260. "issock": false,
  2261. "isuid": false,
  2262. "mode": "0775",
  2263. "mtime": 1491382261.3109255,
  2264. "nlink": 2,
  2265. "path": "group_vars",
  2266. "pw_name": "cizar",
  2267. "readable": true,
  2268. "rgrp": true,
  2269. "roth": true,
  2270. "rusr": true,
  2271. "size": 4096,
  2272. "uid": 1001,
  2273. "wgrp": true,
  2274. "woth": false,
  2275. "writeable": true,
  2276. "wusr": true,
  2277. "xgrp": true,
  2278. "xoth": true,
  2279. "xusr": true
  2280. }
  2281. }
  2282.  
  2283. TASK [common/dyn_inventory : fail] *********************************************
  2284. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:8
  2285. skipping: [localhost] => {
  2286. "changed": false,
  2287. "skip_reason": "Conditional check failed",
  2288. "skipped": true
  2289. }
  2290.  
  2291. TASK [common/dyn_inventory : include group_vars] *******************************
  2292. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:11
  2293. ok: [localhost] => {
  2294. "ansible_facts": {
  2295. "EmailPass": "OroInc12",
  2296. "EmailUser": "service@oroinc.com",
  2297. "allow_destination": [
  2298. {
  2299. "port": "all",
  2300. "proto": "TCP"
  2301. },
  2302. {
  2303. "port": "all",
  2304. "proto": "UDP"
  2305. }
  2306. ],
  2307. "allow_incoming": [
  2308. {
  2309. "port": "all",
  2310. "proto": "TCP"
  2311. },
  2312. {
  2313. "port": "all",
  2314. "proto": "UDP"
  2315. }
  2316. ],
  2317. "cloud_install": false,
  2318. "credentials_file": "{{ project_name }}.json",
  2319. "datadog_api_key": "d629a6affce622c81101c06eaebe56b9",
  2320. "env": "local",
  2321. "forwarding_rules": [
  2322. {
  2323. "port": 500,
  2324. "proto": "UDP"
  2325. },
  2326. {
  2327. "port": 4500,
  2328. "proto": "UDP"
  2329. }
  2330. ],
  2331. "gcloud_account": "~/account.json",
  2332. "gcloud_command": "{{ gcloud_path }}/bin/gcloud",
  2333. "gcloud_compute_region": "us-central1",
  2334. "gcloud_compute_zone": "us-central1-f",
  2335. "gcloud_log": "/tmp/gcloud.log",
  2336. "gcloud_path": "~/google-cloud-sdk",
  2337. "gcloud_project_name": "oro-cloud-development",
  2338. "gke_machine_type": "n1-highcpu-8",
  2339. "gluster_server_ip": "10.40.0.4",
  2340. "images_list": [
  2341. {
  2342. "img": "ubuntu",
  2343. "rebuild": true,
  2344. "tag": "14.04-{{ root_version }}"
  2345. },
  2346. {
  2347. "img": "service-root",
  2348. "rebuild": true,
  2349. "tag": "1.0"
  2350. },
  2351. {
  2352. "img": "builder-bap-standard",
  2353. "rebuild": true,
  2354. "tag": "1.6.2"
  2355. },
  2356. {
  2357. "img": "deployer-bap-standard",
  2358. "rebuild": true,
  2359. "tag": "1.6.2"
  2360. },
  2361. {
  2362. "img": "builder-bap-monolithic",
  2363. "rebuild": true,
  2364. "tag": "1.6.2"
  2365. },
  2366. {
  2367. "img": "deployer-bap-monolithic",
  2368. "rebuild": true,
  2369. "tag": "1.6.2"
  2370. },
  2371. {
  2372. "img": "destroyer",
  2373. "rebuild": true,
  2374. "tag": "1.0.0"
  2375. },
  2376. {
  2377. "img": "elasticsearch",
  2378. "rebuild": true,
  2379. "tag": "1.0.0"
  2380. },
  2381. {
  2382. "img": "redis",
  2383. "rebuild": true,
  2384. "tag": "1.0.0"
  2385. },
  2386. {
  2387. "img": "archiver",
  2388. "rebuild": true,
  2389. "tag": "1.0.0"
  2390. },
  2391. {
  2392. "img": "fluentd-gcp",
  2393. "rebuild": false,
  2394. "tag": "1.18"
  2395. },
  2396. {
  2397. "img": "clone",
  2398. "rebuild": true,
  2399. "tag": "1.0.0"
  2400. },
  2401. {
  2402. "img": "vault",
  2403. "rebuild": true,
  2404. "tag": "0.6.2"
  2405. },
  2406. {
  2407. "img": "es-cluster",
  2408. "rebuild": true,
  2409. "tag": "1.0.0"
  2410. },
  2411. {
  2412. "img": "rabbitmq",
  2413. "rebuild": true,
  2414. "tag": "3.6.6-management"
  2415. },
  2416. {
  2417. "img": "consul",
  2418. "rebuild": true,
  2419. "tag": "0.7.4"
  2420. },
  2421. {
  2422. "img": "jenkins",
  2423. "rebuild": true,
  2424. "tag": "2.32.2"
  2425. }
  2426. ],
  2427. "isolation": true,
  2428. "kubectl_command": "{{ gcloud_path }}/bin/kubectl",
  2429. "kubernetes_salt_bucket": "saltarch",
  2430. "kubernetes_salt_download_host": "storage.googleapis.com",
  2431. "local_install": false,
  2432. "maximum_subnet": "10.124.0.0/15",
  2433. "mgmt_instance_ip": "",
  2434. "mgmt_instance_name": "",
  2435. "minimum_subnet": "10.12.0.0/15",
  2436. "num_nodes": 1,
  2437. "project_name": "oro-cloud-development",
  2438. "proxy_webserver": "apache2",
  2439. "root_version": 1.6,
  2440. "salt_tar_hash": "220a69ff32fc51030fd7bd2f37fb55c413ad9688",
  2441. "salt_tar_url": "https:\\/\\/{{kubernetes_salt_download_host}}\\/{{ kubernetes_salt_bucket }}\\/kubernetes-salt-1.5.tar.gz",
  2442. "service_account_path": "/vagrant/bin/kubernetes/serviceaccount.yaml",
  2443. "service_clusters": [
  2444. "vault",
  2445. "elastic",
  2446. "gluster",
  2447. "rabbit",
  2448. "app",
  2449. "mgmt"
  2450. ],
  2451. "service_container_pool": "{{ cluster_name.stdout }}",
  2452. "service_email": "account-61@oro-cloud-development.iam.gserviceaccount.com",
  2453. "service_key_path": "/tmp/account.p12",
  2454. "service_mail": "service_mail",
  2455. "sql_instance_ip": "",
  2456. "sql_instance_name": "",
  2457. "srv_container_pool": "{{ env }}",
  2458. "vpn_pass_type": "random"
  2459. },
  2460. "changed": false,
  2461. "invocation": {
  2462. "module_args": {
  2463. "_raw_params": "group_vars/all.yml"
  2464. },
  2465. "module_name": "include_vars"
  2466. }
  2467. }
  2468.  
  2469. TASK [common/dyn_inventory : Interrupt operations when using production project without confirmation] ***
  2470. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:15
  2471. skipping: [localhost] => {
  2472. "changed": false,
  2473. "skip_reason": "Conditional check failed",
  2474. "skipped": true
  2475. }
  2476.  
  2477. TASK [common/dyn_inventory : check inventory presence] *************************
  2478. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:20
  2479. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/files/stat.py
  2480. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2481. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  2482. ok: [localhost] => {
  2483. "changed": false,
  2484. "invocation": {
  2485. "module_args": {
  2486. "checksum_algorithm": "sha1",
  2487. "follow": false,
  2488. "get_checksum": true,
  2489. "get_md5": true,
  2490. "mime": false,
  2491. "path": "inventory"
  2492. },
  2493. "module_name": "stat"
  2494. },
  2495. "stat": {
  2496. "atime": 1491384386.1168716,
  2497. "ctime": 1491383005.5005498,
  2498. "dev": 2066,
  2499. "executable": true,
  2500. "exists": true,
  2501. "gid": 1001,
  2502. "gr_name": "cizar",
  2503. "inode": 3414416,
  2504. "isblk": false,
  2505. "ischr": false,
  2506. "isdir": true,
  2507. "isfifo": false,
  2508. "isgid": false,
  2509. "islnk": false,
  2510. "isreg": false,
  2511. "issock": false,
  2512. "isuid": false,
  2513. "mode": "0775",
  2514. "mtime": 1491383005.5005498,
  2515. "nlink": 2,
  2516. "path": "inventory",
  2517. "pw_name": "cizar",
  2518. "readable": true,
  2519. "rgrp": true,
  2520. "roth": true,
  2521. "rusr": true,
  2522. "size": 4096,
  2523. "uid": 1001,
  2524. "wgrp": true,
  2525. "woth": false,
  2526. "writeable": true,
  2527. "wusr": true,
  2528. "xgrp": true,
  2529. "xoth": true,
  2530. "xusr": true
  2531. }
  2532. }
  2533.  
  2534. TASK [common/dyn_inventory : fail] *********************************************
  2535. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:25
  2536. skipping: [localhost] => {
  2537. "changed": false,
  2538. "skip_reason": "Conditional check failed",
  2539. "skipped": true
  2540. }
  2541.  
  2542. TASK [common/dyn_inventory : change project] ***********************************
  2543. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:28
  2544. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  2545. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2546. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  2547. changed: [localhost] => {
  2548. "changed": true,
  2549. "cmd": "gcloud config set project oro-cloud-development",
  2550. "delta": "0:00:00.207378",
  2551. "end": "2017-04-05 12:41:03.237144",
  2552. "invocation": {
  2553. "module_args": {
  2554. "_raw_params": "gcloud config set project oro-cloud-development",
  2555. "_uses_shell": true,
  2556. "chdir": null,
  2557. "creates": null,
  2558. "executable": null,
  2559. "removes": null,
  2560. "warn": true
  2561. },
  2562. "module_name": "command"
  2563. },
  2564. "rc": 0,
  2565. "start": "2017-04-05 12:41:03.029766",
  2566. "stderr": "Updated property [core/project].",
  2567. "stdout": "",
  2568. "stdout_lines": [],
  2569. "warnings": []
  2570. }
  2571.  
  2572. TASK [common/dyn_inventory : define cluster env name for new env] **************
  2573. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:31
  2574. ok: [localhost] => {
  2575. "ansible_facts": {
  2576. "cluster_envname": "staging-vault1"
  2577. },
  2578. "changed": false,
  2579. "invocation": {
  2580. "module_args": {
  2581. "cluster_envname": "staging-vault1"
  2582. },
  2583. "module_name": "set_fact"
  2584. }
  2585. }
  2586.  
  2587. TASK [common/dyn_inventory : define environment name for service clusters] *****
  2588. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:36
  2589. ok: [localhost] => {
  2590. "ansible_facts": {
  2591. "env_name": "staging"
  2592. },
  2593. "changed": false,
  2594. "invocation": {
  2595. "module_args": {
  2596. "env_name": "staging"
  2597. },
  2598. "module_name": "set_fact"
  2599. }
  2600. }
  2601.  
  2602. TASK [common/dyn_inventory : find available service clusters] ******************
  2603. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:40
  2604. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  2605. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2606. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  2607. changed: [localhost] => (item=vault) => {
  2608. "changed": true,
  2609. "cmd": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-vault[0-9][0-9]*$' | sort -n | tail -n1",
  2610. "delta": "0:00:01.038451",
  2611. "end": "2017-04-05 12:41:04.402857",
  2612. "invocation": {
  2613. "module_args": {
  2614. "_raw_params": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-vault[0-9][0-9]*$' | sort -n | tail -n1",
  2615. "_uses_shell": true,
  2616. "chdir": null,
  2617. "creates": null,
  2618. "executable": null,
  2619. "removes": null,
  2620. "warn": true
  2621. },
  2622. "module_name": "command"
  2623. },
  2624. "item": "vault",
  2625. "rc": 0,
  2626. "start": "2017-04-05 12:41:03.364406",
  2627. "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",
  2628. "stdout": "staging-vault1",
  2629. "stdout_lines": [
  2630. "staging-vault1"
  2631. ],
  2632. "warnings": []
  2633. }
  2634. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  2635. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  2636. changed: [localhost] => (item=elastic) => {
  2637. "changed": true,
  2638. "cmd": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-elastic[0-9][0-9]*$' | sort -n | tail -n1",
  2639. "delta": "0:00:01.207565",
  2640. "end": "2017-04-05 12:41:05.677055",
  2641. "invocation": {
  2642. "module_args": {
  2643. "_raw_params": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-elastic[0-9][0-9]*$' | sort -n | tail -n1",
  2644. "_uses_shell": true,
  2645. "chdir": null,
  2646. "creates": null,
  2647. "executable": null,
  2648. "removes": null,
  2649. "warn": true
  2650. },
  2651. "module_name": "command"
  2652. },
  2653. "item": "elastic",
  2654. "rc": 0,
  2655. "start": "2017-04-05 12:41:04.469490",
  2656. "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",
  2657. "stdout": "staging-elastic1",
  2658. "stdout_lines": [
  2659. "staging-elastic1"
  2660. ],
  2661. "warnings": []
  2662. }
  2663. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  2664. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  2665. changed: [localhost] => (item=gluster) => {
  2666. "changed": true,
  2667. "cmd": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-gluster[0-9][0-9]*$' | sort -n | tail -n1",
  2668. "delta": "0:00:01.003286",
  2669. "end": "2017-04-05 12:41:06.747048",
  2670. "invocation": {
  2671. "module_args": {
  2672. "_raw_params": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-gluster[0-9][0-9]*$' | sort -n | tail -n1",
  2673. "_uses_shell": true,
  2674. "chdir": null,
  2675. "creates": null,
  2676. "executable": null,
  2677. "removes": null,
  2678. "warn": true
  2679. },
  2680. "module_name": "command"
  2681. },
  2682. "item": "gluster",
  2683. "rc": 0,
  2684. "start": "2017-04-05 12:41:05.743762",
  2685. "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",
  2686. "stdout": "staging-gluster1",
  2687. "stdout_lines": [
  2688. "staging-gluster1"
  2689. ],
  2690. "warnings": []
  2691. }
  2692. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  2693. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  2694. changed: [localhost] => (item=rabbit) => {
  2695. "changed": true,
  2696. "cmd": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-rabbit[0-9][0-9]*$' | sort -n | tail -n1",
  2697. "delta": "0:00:01.021701",
  2698. "end": "2017-04-05 12:41:07.835102",
  2699. "invocation": {
  2700. "module_args": {
  2701. "_raw_params": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-rabbit[0-9][0-9]*$' | sort -n | tail -n1",
  2702. "_uses_shell": true,
  2703. "chdir": null,
  2704. "creates": null,
  2705. "executable": null,
  2706. "removes": null,
  2707. "warn": true
  2708. },
  2709. "module_name": "command"
  2710. },
  2711. "item": "rabbit",
  2712. "rc": 0,
  2713. "start": "2017-04-05 12:41:06.813401",
  2714. "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",
  2715. "stdout": "",
  2716. "stdout_lines": [],
  2717. "warnings": []
  2718. }
  2719. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  2720. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  2721. changed: [localhost] => (item=app) => {
  2722. "changed": true,
  2723. "cmd": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-app[0-9][0-9]*$' | sort -n | tail -n1",
  2724. "delta": "0:00:01.388005",
  2725. "end": "2017-04-05 12:41:09.291967",
  2726. "invocation": {
  2727. "module_args": {
  2728. "_raw_params": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-app[0-9][0-9]*$' | sort -n | tail -n1",
  2729. "_uses_shell": true,
  2730. "chdir": null,
  2731. "creates": null,
  2732. "executable": null,
  2733. "removes": null,
  2734. "warn": true
  2735. },
  2736. "module_name": "command"
  2737. },
  2738. "item": "app",
  2739. "rc": 0,
  2740. "start": "2017-04-05 12:41:07.903962",
  2741. "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",
  2742. "stdout": "staging-app1",
  2743. "stdout_lines": [
  2744. "staging-app1"
  2745. ],
  2746. "warnings": []
  2747. }
  2748. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  2749. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  2750. changed: [localhost] => (item=mgmt) => {
  2751. "changed": true,
  2752. "cmd": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-mgmt[0-9][0-9]*$' | sort -n | tail -n1",
  2753. "delta": "0:00:01.044633",
  2754. "end": "2017-04-05 12:41:10.400987",
  2755. "invocation": {
  2756. "module_args": {
  2757. "_raw_params": "~/google-cloud-sdk/bin/gcloud container clusters list | awk {'print $1'} | grep -E '^staging-mgmt[0-9][0-9]*$' | sort -n | tail -n1",
  2758. "_uses_shell": true,
  2759. "chdir": null,
  2760. "creates": null,
  2761. "executable": null,
  2762. "removes": null,
  2763. "warn": true
  2764. },
  2765. "module_name": "command"
  2766. },
  2767. "item": "mgmt",
  2768. "rc": 0,
  2769. "start": "2017-04-05 12:41:09.356354",
  2770. "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",
  2771. "stdout": "staging-mgmt1",
  2772. "stdout_lines": [
  2773. "staging-mgmt1"
  2774. ],
  2775. "warnings": []
  2776. }
  2777.  
  2778. TASK [common/dyn_inventory : register available service clusters] **************
  2779. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:48
  2780. ok: [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"}
  2781. ok: [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"}
  2782. ok: [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"}
  2783. 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"}
  2784. ok: [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"}
  2785. ok: [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"}
  2786.  
  2787. TASK [common/dyn_inventory : get latest used gke cluster name for local_env env] ***
  2788. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:54
  2789. skipping: [localhost] => {
  2790. "changed": false,
  2791. "skip_reason": "Conditional check failed",
  2792. "skipped": true
  2793. }
  2794.  
  2795. TASK [common/dyn_inventory : define a gke cluster name to validate for local env] ***
  2796. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:59
  2797. skipping: [localhost] => {
  2798. "changed": false,
  2799. "skip_reason": "Conditional check failed",
  2800. "skipped": true
  2801. }
  2802.  
  2803. TASK [common/dyn_inventory : define a gke cluster name to validate for cloud env] ***
  2804. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:63
  2805. ok: [localhost] => {
  2806. "ansible_facts": {
  2807. "cluster_for_validation": "staging-vault1"
  2808. },
  2809. "changed": false,
  2810. "invocation": {
  2811. "module_args": {
  2812. "cluster_for_validation": "staging-vault1"
  2813. },
  2814. "module_name": "set_fact"
  2815. }
  2816. }
  2817.  
  2818. TASK [common/dyn_inventory : validate preconfigured cluster] *******************
  2819. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:67
  2820. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  2821. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2822. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  2823. changed: [localhost] => {
  2824. "changed": true,
  2825. "cmd": "~/google-cloud-sdk/bin/gcloud container clusters describe staging-vault1 | grep currentNodeCount | awk '{print $2}'",
  2826. "delta": "0:00:00.696939",
  2827. "end": "2017-04-05 12:41:11.299638",
  2828. "invocation": {
  2829. "module_args": {
  2830. "_raw_params": "~/google-cloud-sdk/bin/gcloud container clusters describe staging-vault1 | grep currentNodeCount | awk '{print $2}'",
  2831. "_uses_shell": true,
  2832. "chdir": null,
  2833. "creates": null,
  2834. "executable": null,
  2835. "removes": null,
  2836. "warn": true
  2837. },
  2838. "module_name": "command"
  2839. },
  2840. "rc": 0,
  2841. "start": "2017-04-05 12:41:10.602699",
  2842. "stderr": "",
  2843. "stdout": "2",
  2844. "stdout_lines": [
  2845. "2"
  2846. ],
  2847. "warnings": []
  2848. }
  2849.  
  2850. TASK [common/dyn_inventory : mark existing cluster as valid] *******************
  2851. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:72
  2852. ok: [localhost] => {
  2853. "ansible_facts": {
  2854. "reuse_cluster": true
  2855. },
  2856. "changed": false,
  2857. "invocation": {
  2858. "module_args": {
  2859. "reuse_cluster": "true"
  2860. },
  2861. "module_name": "set_fact"
  2862. }
  2863. }
  2864.  
  2865. TASK [common/dyn_inventory : register a build version supplied via command line if it contained numbers] ***
  2866. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:81
  2867. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  2868. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2869. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  2870. changed: [localhost] => {
  2871. "changed": true,
  2872. "cmd": "echo staging-vault1 | sed 's/.*[^0-9]//g'",
  2873. "delta": "0:00:00.001977",
  2874. "end": "2017-04-05 12:41:11.405582",
  2875. "invocation": {
  2876. "module_args": {
  2877. "_raw_params": "echo staging-vault1 | sed 's/.*[^0-9]//g'",
  2878. "_uses_shell": true,
  2879. "chdir": null,
  2880. "creates": null,
  2881. "executable": null,
  2882. "removes": null,
  2883. "warn": true
  2884. },
  2885. "module_name": "command"
  2886. },
  2887. "rc": 0,
  2888. "start": "2017-04-05 12:41:11.403605",
  2889. "stderr": "",
  2890. "stdout": "1",
  2891. "stdout_lines": [
  2892. "1"
  2893. ],
  2894. "warnings": []
  2895. }
  2896.  
  2897. TASK [common/dyn_inventory : save a version supplied via command line as build_version if it contained numbers] ***
  2898. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:86
  2899. ok: [localhost] => {
  2900. "ansible_facts": {
  2901. "predefined_build_version": "1"
  2902. },
  2903. "changed": false,
  2904. "invocation": {
  2905. "module_args": {
  2906. "predefined_build_version": "1"
  2907. },
  2908. "module_name": "set_fact"
  2909. }
  2910. }
  2911.  
  2912. TASK [common/dyn_inventory : get build_version] ********************************
  2913. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:91
  2914. skipping: [localhost] => {
  2915. "changed": false,
  2916. "skip_reason": "Conditional check failed",
  2917. "skipped": true
  2918. }
  2919.  
  2920. TASK [common/dyn_inventory : increment build version] **************************
  2921. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:97
  2922. skipping: [localhost] => {
  2923. "changed": false,
  2924. "skip_reason": "Conditional check failed",
  2925. "skipped": true
  2926. }
  2927.  
  2928. TASK [common/dyn_inventory : force user-supplied build_version] ***************
  2929. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:102
  2930. ok: [localhost] => {
  2931. "ansible_facts": {
  2932. "build_version": "1"
  2933. },
  2934. "changed": false,
  2935. "invocation": {
  2936. "module_args": {
  2937. "build_version": "1"
  2938. },
  2939. "module_name": "set_fact"
  2940. }
  2941. }
  2942.  
  2943. TASK [common/dyn_inventory : strip existing build version from cluster name] ***
  2944. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:107
  2945. skipping: [localhost] => {
  2946. "changed": false,
  2947. "skip_reason": "Conditional check failed",
  2948. "skipped": true
  2949. }
  2950.  
  2951. TASK [common/dyn_inventory : set new cluster name] *****************************
  2952. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:111
  2953. skipping: [localhost] => {
  2954. "changed": false,
  2955. "skip_reason": "Conditional check failed",
  2956. "skipped": true
  2957. }
  2958.  
  2959. TASK [common/dyn_inventory : reuse existing cluster name] **********************
  2960. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:115
  2961. ok: [localhost] => {
  2962. "ansible_facts": {
  2963. "full_cluster_name": "staging-vault1"
  2964. },
  2965. "changed": false,
  2966. "invocation": {
  2967. "module_args": {
  2968. "full_cluster_name": "staging-vault1"
  2969. },
  2970. "module_name": "set_fact"
  2971. }
  2972. }
  2973.  
  2974. TASK [common/dyn_inventory : get instance_group] *******************************
  2975. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:119
  2976. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  2977. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  2978. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  2979. changed: [localhost] => {
  2980. "changed": true,
  2981. "cmd": "gcloud --quiet compute instance-groups list | awk '/^gke-staging-vault1/{print $1}'",
  2982. "delta": "0:00:01.473184",
  2983. "end": "2017-04-05 12:41:13.094293",
  2984. "invocation": {
  2985. "module_args": {
  2986. "_raw_params": "gcloud --quiet compute instance-groups list | awk '/^gke-staging-vault1/{print $1}'",
  2987. "_uses_shell": true,
  2988. "chdir": null,
  2989. "creates": null,
  2990. "executable": null,
  2991. "removes": null,
  2992. "warn": true
  2993. },
  2994. "module_name": "command"
  2995. },
  2996. "rc": 0,
  2997. "start": "2017-04-05 12:41:11.621109",
  2998. "stderr": "",
  2999. "stdout": "gke-staging-vault1-default-pool-48f8b6a6-grp",
  3000. "stdout_lines": [
  3001. "gke-staging-vault1-default-pool-48f8b6a6-grp"
  3002. ],
  3003. "warnings": []
  3004. }
  3005.  
  3006. TASK [common/dyn_inventory : define instance group] ****************************
  3007. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:124
  3008. ok: [localhost] => {
  3009. "ansible_facts": {
  3010. "instance_group": "gke-staging-vault1-default-pool-48f8b6a6-grp"
  3011. },
  3012. "changed": false,
  3013. "invocation": {
  3014. "module_args": {
  3015. "instance_group": "gke-staging-vault1-default-pool-48f8b6a6-grp"
  3016. },
  3017. "module_name": "set_fact"
  3018. }
  3019. }
  3020.  
  3021. TASK [common/dyn_inventory : get instance_zone] ********************************
  3022. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:128
  3023. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  3024. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3025. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  3026. changed: [localhost] => {
  3027. "changed": true,
  3028. "cmd": "gcloud --quiet compute instance-groups list | awk '/^gke-staging-vault1/{print $2}'",
  3029. "delta": "0:00:01.444262",
  3030. "end": "2017-04-05 12:41:14.643531",
  3031. "invocation": {
  3032. "module_args": {
  3033. "_raw_params": "gcloud --quiet compute instance-groups list | awk '/^gke-staging-vault1/{print $2}'",
  3034. "_uses_shell": true,
  3035. "chdir": null,
  3036. "creates": null,
  3037. "executable": null,
  3038. "removes": null,
  3039. "warn": true
  3040. },
  3041. "module_name": "command"
  3042. },
  3043. "rc": 0,
  3044. "start": "2017-04-05 12:41:13.199269",
  3045. "stderr": "",
  3046. "stdout": "us-central1-f",
  3047. "stdout_lines": [
  3048. "us-central1-f"
  3049. ],
  3050. "warnings": []
  3051. }
  3052.  
  3053. TASK [common/dyn_inventory : define instance zone] *****************************
  3054. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:133
  3055. ok: [localhost] => {
  3056. "ansible_facts": {
  3057. "instance_zone": "us-central1-f"
  3058. },
  3059. "changed": false,
  3060. "invocation": {
  3061. "module_args": {
  3062. "instance_zone": "us-central1-f"
  3063. },
  3064. "module_name": "set_fact"
  3065. }
  3066. }
  3067.  
  3068. TASK [common/dyn_inventory : get instance in group] ****************************
  3069. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:137
  3070. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  3071. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3072. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  3073. changed: [localhost] => {
  3074. "changed": true,
  3075. "cmd": "gcloud --quiet compute instance-groups list-instances gke-staging-vault1-default-pool-48f8b6a6-grp --zone=us-central1-f | awk '/staging-vault1/{print $1}'",
  3076. "delta": "0:00:00.630370",
  3077. "end": "2017-04-05 12:41:15.379111",
  3078. "invocation": {
  3079. "module_args": {
  3080. "_raw_params": "gcloud --quiet compute instance-groups list-instances gke-staging-vault1-default-pool-48f8b6a6-grp --zone=us-central1-f | awk '/staging-vault1/{print $1}'",
  3081. "_uses_shell": true,
  3082. "chdir": null,
  3083. "creates": null,
  3084. "executable": null,
  3085. "removes": null,
  3086. "warn": true
  3087. },
  3088. "module_name": "command"
  3089. },
  3090. "rc": 0,
  3091. "start": "2017-04-05 12:41:14.748741",
  3092. "stderr": "",
  3093. "stdout": "gke-staging-vault1-default-pool-48f8b6a6-4vww",
  3094. "stdout_lines": [
  3095. "gke-staging-vault1-default-pool-48f8b6a6-4vww"
  3096. ],
  3097. "warnings": []
  3098. }
  3099.  
  3100. TASK [common/dyn_inventory : define a name of first available gcloud instance] *
  3101. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:148
  3102. ok: [localhost] => {
  3103. "ansible_facts": {
  3104. "gcloud_node": "gke-staging-vault1-default-pool-48f8b6a6-4vww"
  3105. },
  3106. "changed": false,
  3107. "invocation": {
  3108. "module_args": {
  3109. "gcloud_node": "gke-staging-vault1-default-pool-48f8b6a6-4vww"
  3110. },
  3111. "module_name": "set_fact"
  3112. }
  3113. }
  3114.  
  3115. TASK [common/dyn_inventory : locate vagrant variables dir] *********************
  3116. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:3
  3117. skipping: [localhost] => {
  3118. "changed": false,
  3119. "skip_reason": "Conditional check failed",
  3120. "skipped": true
  3121. }
  3122.  
  3123. TASK [common/dyn_inventory : set vagrant inventory path] ***********************
  3124. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:7
  3125. skipping: [localhost] => {
  3126. "changed": false,
  3127. "skip_reason": "Conditional check failed",
  3128. "skipped": true
  3129. }
  3130.  
  3131. TASK [common/dyn_inventory : Get Vagrant hosts] ********************************
  3132. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:10
  3133. skipping: [localhost] => {
  3134. "changed": false,
  3135. "skip_reason": "Conditional check failed",
  3136. "skipped": true
  3137. }
  3138.  
  3139. TASK [common/dyn_inventory : save vagrant ip] **********************************
  3140. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:30
  3141. skipping: [localhost] => {
  3142. "changed": false,
  3143. "skip_reason": "Conditional check failed",
  3144. "skipped": true
  3145. }
  3146.  
  3147. TASK [common/dyn_inventory : add vagrant VM as mgmt-node to inventory] *********
  3148. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:34
  3149. skipping: [localhost] => {
  3150. "changed": false,
  3151. "skip_reason": "Conditional check failed",
  3152. "skipped": true
  3153. }
  3154.  
  3155. TASK [common/dyn_inventory : add mgmt-node as proxy] ***************************
  3156. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/local-inventory.yml:41
  3157. skipping: [localhost] => {
  3158. "changed": false,
  3159. "skip_reason": "Conditional check failed",
  3160. "skipped": true
  3161. }
  3162.  
  3163. TASK [common/dyn_inventory : get mgmt IP for new env] **************************
  3164. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:3
  3165. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  3166. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3167. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  3168. changed: [localhost] => {
  3169. "changed": true,
  3170. "cmd": "gcloud --quiet compute instances list | awk '/^staging-mgmt1-mgmt/{print $5}' | tail -n1",
  3171. "delta": "0:00:01.247408",
  3172. "end": "2017-04-05 12:41:16.849587",
  3173. "invocation": {
  3174. "module_args": {
  3175. "_raw_params": "gcloud --quiet compute instances list | awk '/^staging-mgmt1-mgmt/{print $5}' | tail -n1",
  3176. "_uses_shell": true,
  3177. "chdir": null,
  3178. "creates": null,
  3179. "executable": null,
  3180. "removes": null,
  3181. "warn": true
  3182. },
  3183. "module_name": "command"
  3184. },
  3185. "rc": 0,
  3186. "start": "2017-04-05 12:41:15.602179",
  3187. "stderr": "",
  3188. "stdout": "vCPU,",
  3189. "stdout_lines": [
  3190. "vCPU,"
  3191. ],
  3192. "warnings": []
  3193. }
  3194.  
  3195. TASK [common/dyn_inventory : get mgmt IP for older non-isolated env] ***********
  3196. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:8
  3197. skipping: [localhost] => {
  3198. "changed": false,
  3199. "skip_reason": "Conditional check failed",
  3200. "skipped": true
  3201. }
  3202.  
  3203. TASK [common/dyn_inventory : get proxy IP for new env] *************************
  3204. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:13
  3205. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  3206. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3207. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  3208. changed: [localhost] => {
  3209. "changed": true,
  3210. "cmd": "gcloud --quiet compute instances list | awk '/^staging-app1-proxy/{print $5}' | tail -n1",
  3211. "delta": "0:00:01.159349",
  3212. "end": "2017-04-05 12:41:18.118493",
  3213. "invocation": {
  3214. "module_args": {
  3215. "_raw_params": "gcloud --quiet compute instances list | awk '/^staging-app1-proxy/{print $5}' | tail -n1",
  3216. "_uses_shell": true,
  3217. "chdir": null,
  3218. "creates": null,
  3219. "executable": null,
  3220. "removes": null,
  3221. "warn": true
  3222. },
  3223. "module_name": "command"
  3224. },
  3225. "rc": 0,
  3226. "start": "2017-04-05 12:41:16.959144",
  3227. "stderr": "",
  3228. "stdout": "35.184.209.77",
  3229. "stdout_lines": [
  3230. "35.184.209.77"
  3231. ],
  3232. "warnings": []
  3233. }
  3234.  
  3235. TASK [common/dyn_inventory : get proxy IP for older non-isolated env] *********
  3236. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:18
  3237. skipping: [localhost] => {
  3238. "changed": false,
  3239. "skip_reason": "Conditional check failed",
  3240. "skipped": true
  3241. }
  3242.  
  3243. TASK [common/dyn_inventory : add mgmt to inventory] ****************************
  3244. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:23
  3245. skipping: [localhost] => {
  3246. "changed": false,
  3247. "skip_reason": "Conditional check failed",
  3248. "skipped": true
  3249. }
  3250.  
  3251. TASK [common/dyn_inventory : add proxy to inventory] ***************************
  3252. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:30
  3253. skipping: [localhost] => {
  3254. "changed": false,
  3255. "skip_reason": "Conditional check failed",
  3256. "skipped": true
  3257. }
  3258.  
  3259. TASK [common/dyn_inventory : add proxy nodes to proxy group] *******************
  3260. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:37
  3261. skipping: [localhost] => (item=gke-staging-elastic1-default-pool-22deddc1-6x82) => {
  3262. "changed": false,
  3263. "item": "gke-staging-elastic1-default-pool-22deddc1-6x82",
  3264. "skip_reason": "Conditional check failed",
  3265. "skipped": true
  3266. }
  3267. skipping: [localhost] => (item=gke-staging-elastic1-default-pool-22deddc1-8r48) => {
  3268. "changed": false,
  3269. "item": "gke-staging-elastic1-default-pool-22deddc1-8r48",
  3270. "skip_reason": "Conditional check failed",
  3271. "skipped": true
  3272. }
  3273. skipping: [localhost] => (item=staging-elastic1-router1) => {
  3274. "changed": false,
  3275. "item": "staging-elastic1-router1",
  3276. "skip_reason": "Conditional check failed",
  3277. "skipped": true
  3278. }
  3279. skipping: [localhost] => (item=gke-staging-infra1-default-pool-8d4c0198-lfgt) => {
  3280. "changed": false,
  3281. "item": "gke-staging-infra1-default-pool-8d4c0198-lfgt",
  3282. "skip_reason": "Conditional check failed",
  3283. "skipped": true
  3284. }
  3285. skipping: [localhost] => (item=staging-gluster1-node1) => {
  3286. "changed": false,
  3287. "item": "staging-gluster1-node1",
  3288. "skip_reason": "Conditional check failed",
  3289. "skipped": true
  3290. }
  3291. skipping: [localhost] => (item=staging-gluster1-node2) => {
  3292. "changed": false,
  3293. "item": "staging-gluster1-node2",
  3294. "skip_reason": "Conditional check failed",
  3295. "skipped": true
  3296. }
  3297. skipping: [localhost] => (item=gke-loc-dvv1-default-pool-f19e2cad-p5l7) => {
  3298. "changed": false,
  3299. "item": "gke-loc-dvv1-default-pool-f19e2cad-p5l7",
  3300. "skip_reason": "Conditional check failed",
  3301. "skipped": true
  3302. }
  3303. skipping: [localhost] => (item=staging-mgmt1-mgmt1) => {
  3304. "changed": false,
  3305. "item": "staging-mgmt1-mgmt1",
  3306. "skip_reason": "Conditional check failed",
  3307. "skipped": true
  3308. }
  3309. skipping: [localhost] => (item=staging-app1-nat) => {
  3310. "changed": false,
  3311. "item": "staging-app1-nat",
  3312. "skip_reason": "Conditional check failed",
  3313. "skipped": true
  3314. }
  3315. skipping: [localhost] => (item=gke-loc-cizar1-default-pool-a9bc997f-3lfv) => {
  3316. "changed": false,
  3317. "item": "gke-loc-cizar1-default-pool-a9bc997f-3lfv",
  3318. "skip_reason": "Conditional check failed",
  3319. "skipped": true
  3320. }
  3321. skipping: [localhost] => (item=gke-loc-dima1-default-pool-29316482-2vcs) => {
  3322. "changed": false,
  3323. "item": "gke-loc-dima1-default-pool-29316482-2vcs",
  3324. "skip_reason": "Conditional check failed",
  3325. "skipped": true
  3326. }
  3327. skipping: [localhost] => (item=gke-loc-scherepanov1-default-pool-1ad9dd6d-tktc) => {
  3328. "changed": false,
  3329. "item": "gke-loc-scherepanov1-default-pool-1ad9dd6d-tktc",
  3330. "skip_reason": "Conditional check failed",
  3331. "skipped": true
  3332. }
  3333. skipping: [localhost] => (item=gke-staging-app1-default-pool-1fd2f298-4rrj) => {
  3334. "changed": false,
  3335. "item": "gke-staging-app1-default-pool-1fd2f298-4rrj",
  3336. "skip_reason": "Conditional check failed",
  3337. "skipped": true
  3338. }
  3339. skipping: [localhost] => (item=gke-staging-app1-default-pool-1fd2f298-jcsc) => {
  3340. "changed": false,
  3341. "item": "gke-staging-app1-default-pool-1fd2f298-jcsc",
  3342. "skip_reason": "Conditional check failed",
  3343. "skipped": true
  3344. }
  3345. skipping: [localhost] => (item=gke-staging-jenkins1-default-pool-5ee033d8-n27n) => {
  3346. "changed": false,
  3347. "item": "gke-staging-jenkins1-default-pool-5ee033d8-n27n",
  3348. "skip_reason": "Conditional check failed",
  3349. "skipped": true
  3350. }
  3351. skipping: [localhost] => (item=gke-staging-vault1-default-pool-48f8b6a6-4vww) => {
  3352. "changed": false,
  3353. "item": "gke-staging-vault1-default-pool-48f8b6a6-4vww",
  3354. "skip_reason": "Conditional check failed",
  3355. "skipped": true
  3356. }
  3357. creating host via 'add_host': hostname=staging-app1-proxy1
  3358. changed: [localhost] => (item=staging-app1-proxy1) => {
  3359. "add_host": {
  3360. "groups": [
  3361. "proxies"
  3362. ],
  3363. "host_name": "staging-app1-proxy1",
  3364. "host_vars": {}
  3365. },
  3366. "changed": true,
  3367. "invocation": {
  3368. "module_args": {
  3369. "groups": "proxies",
  3370. "hostname": "staging-app1-proxy1"
  3371. },
  3372. "module_name": "add_host"
  3373. },
  3374. "item": "staging-app1-proxy1"
  3375. }
  3376. creating host via 'add_host': hostname=staging-app1-proxy2
  3377. changed: [localhost] => (item=staging-app1-proxy2) => {
  3378. "add_host": {
  3379. "groups": [
  3380. "proxies"
  3381. ],
  3382. "host_name": "staging-app1-proxy2",
  3383. "host_vars": {}
  3384. },
  3385. "changed": true,
  3386. "invocation": {
  3387. "module_args": {
  3388. "groups": "proxies",
  3389. "hostname": "staging-app1-proxy2"
  3390. },
  3391. "module_name": "add_host"
  3392. },
  3393. "item": "staging-app1-proxy2"
  3394. }
  3395. skipping: [localhost] => (item=staging-vault1-router2) => {
  3396. "changed": false,
  3397. "item": "staging-vault1-router2",
  3398. "skip_reason": "Conditional check failed",
  3399. "skipped": true
  3400. }
  3401. skipping: [localhost] => (item=gke-loc-alexandr1-default-pool-00c11fc3-g0xs) => {
  3402. "changed": false,
  3403. "item": "gke-loc-alexandr1-default-pool-00c11fc3-g0xs",
  3404. "skip_reason": "Conditional check failed",
  3405. "skipped": true
  3406. }
  3407.  
  3408. TASK [common/dyn_inventory : add proxy nodes to proxy group for non-isolated env] ***
  3409. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/cloud-inventory.yml:45
  3410. skipping: [localhost] => (item=gke-staging-elastic1-default-pool-22deddc1-6x82) => {
  3411. "changed": false,
  3412. "item": "gke-staging-elastic1-default-pool-22deddc1-6x82",
  3413. "skip_reason": "Conditional check failed",
  3414. "skipped": true
  3415. }
  3416. skipping: [localhost] => (item=gke-staging-elastic1-default-pool-22deddc1-8r48) => {
  3417. "changed": false,
  3418. "item": "gke-staging-elastic1-default-pool-22deddc1-8r48",
  3419. "skip_reason": "Conditional check failed",
  3420. "skipped": true
  3421. }
  3422. skipping: [localhost] => (item=staging-elastic1-router1) => {
  3423. "changed": false,
  3424. "item": "staging-elastic1-router1",
  3425. "skip_reason": "Conditional check failed",
  3426. "skipped": true
  3427. }
  3428. skipping: [localhost] => (item=gke-staging-infra1-default-pool-8d4c0198-lfgt) => {
  3429. "changed": false,
  3430. "item": "gke-staging-infra1-default-pool-8d4c0198-lfgt",
  3431. "skip_reason": "Conditional check failed",
  3432. "skipped": true
  3433. }
  3434. skipping: [localhost] => (item=staging-gluster1-node1) => {
  3435. "changed": false,
  3436. "item": "staging-gluster1-node1",
  3437. "skip_reason": "Conditional check failed",
  3438. "skipped": true
  3439. }
  3440. skipping: [localhost] => (item=staging-gluster1-node2) => {
  3441. "changed": false,
  3442. "item": "staging-gluster1-node2",
  3443. "skip_reason": "Conditional check failed",
  3444. "skipped": true
  3445. }
  3446. skipping: [localhost] => (item=gke-loc-dvv1-default-pool-f19e2cad-p5l7) => {
  3447. "changed": false,
  3448. "item": "gke-loc-dvv1-default-pool-f19e2cad-p5l7",
  3449. "skip_reason": "Conditional check failed",
  3450. "skipped": true
  3451. }
  3452. skipping: [localhost] => (item=staging-mgmt1-mgmt1) => {
  3453. "changed": false,
  3454. "item": "staging-mgmt1-mgmt1",
  3455. "skip_reason": "Conditional check failed",
  3456. "skipped": true
  3457. }
  3458. skipping: [localhost] => (item=staging-app1-nat) => {
  3459. "changed": false,
  3460. "item": "staging-app1-nat",
  3461. "skip_reason": "Conditional check failed",
  3462. "skipped": true
  3463. }
  3464. skipping: [localhost] => (item=gke-loc-cizar1-default-pool-a9bc997f-3lfv) => {
  3465. "changed": false,
  3466. "item": "gke-loc-cizar1-default-pool-a9bc997f-3lfv",
  3467. "skip_reason": "Conditional check failed",
  3468. "skipped": true
  3469. }
  3470. skipping: [localhost] => (item=gke-loc-dima1-default-pool-29316482-2vcs) => {
  3471. "changed": false,
  3472. "item": "gke-loc-dima1-default-pool-29316482-2vcs",
  3473. "skip_reason": "Conditional check failed",
  3474. "skipped": true
  3475. }
  3476. skipping: [localhost] => (item=gke-loc-scherepanov1-default-pool-1ad9dd6d-tktc) => {
  3477. "changed": false,
  3478. "item": "gke-loc-scherepanov1-default-pool-1ad9dd6d-tktc",
  3479. "skip_reason": "Conditional check failed",
  3480. "skipped": true
  3481. }
  3482. skipping: [localhost] => (item=gke-staging-app1-default-pool-1fd2f298-4rrj) => {
  3483. "changed": false,
  3484. "item": "gke-staging-app1-default-pool-1fd2f298-4rrj",
  3485. "skip_reason": "Conditional check failed",
  3486. "skipped": true
  3487. }
  3488. skipping: [localhost] => (item=gke-staging-app1-default-pool-1fd2f298-jcsc) => {
  3489. "changed": false,
  3490. "item": "gke-staging-app1-default-pool-1fd2f298-jcsc",
  3491. "skip_reason": "Conditional check failed",
  3492. "skipped": true
  3493. }
  3494. skipping: [localhost] => (item=gke-staging-jenkins1-default-pool-5ee033d8-n27n) => {
  3495. "changed": false,
  3496. "item": "gke-staging-jenkins1-default-pool-5ee033d8-n27n",
  3497. "skip_reason": "Conditional check failed",
  3498. "skipped": true
  3499. }
  3500. skipping: [localhost] => (item=gke-staging-vault1-default-pool-48f8b6a6-4vww) => {
  3501. "changed": false,
  3502. "item": "gke-staging-vault1-default-pool-48f8b6a6-4vww",
  3503. "skip_reason": "Conditional check failed",
  3504. "skipped": true
  3505. }
  3506. skipping: [localhost] => (item=staging-app1-proxy1) => {
  3507. "changed": false,
  3508. "item": "staging-app1-proxy1",
  3509. "skip_reason": "Conditional check failed",
  3510. "skipped": true
  3511. }
  3512. skipping: [localhost] => (item=staging-app1-proxy2) => {
  3513. "changed": false,
  3514. "item": "staging-app1-proxy2",
  3515. "skip_reason": "Conditional check failed",
  3516. "skipped": true
  3517. }
  3518. skipping: [localhost] => (item=staging-vault1-router2) => {
  3519. "changed": false,
  3520. "item": "staging-vault1-router2",
  3521. "skip_reason": "Conditional check failed",
  3522. "skipped": true
  3523. }
  3524. skipping: [localhost] => (item=gke-loc-alexandr1-default-pool-00c11fc3-g0xs) => {
  3525. "changed": false,
  3526. "item": "gke-loc-alexandr1-default-pool-00c11fc3-g0xs",
  3527. "skip_reason": "Conditional check failed",
  3528. "skipped": true
  3529. }
  3530.  
  3531. TASK [common/dyn_inventory : get domain name] **********************************
  3532. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:161
  3533. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  3534. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3535. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  3536. changed: [localhost] => {
  3537. "changed": true,
  3538. "cmd": "gcloud dns managed-zones describe oro-cloud-development | awk /^dnsName:/'{print substr($2,1,length($2)-1)}'",
  3539. "delta": "0:00:01.005426",
  3540. "end": "2017-04-05 12:41:19.619651",
  3541. "invocation": {
  3542. "module_args": {
  3543. "_raw_params": "gcloud dns managed-zones describe oro-cloud-development | awk /^dnsName:/'{print substr($2,1,length($2)-1)}'",
  3544. "_uses_shell": true,
  3545. "chdir": null,
  3546. "creates": null,
  3547. "executable": null,
  3548. "removes": null,
  3549. "warn": true
  3550. },
  3551. "module_name": "command"
  3552. },
  3553. "rc": 0,
  3554. "start": "2017-04-05 12:41:18.614225",
  3555. "stderr": "",
  3556. "stdout": "cloud-development.oroinc.com",
  3557. "stdout_lines": [
  3558. "cloud-development.oroinc.com"
  3559. ],
  3560. "warnings": []
  3561. }
  3562.  
  3563. TASK [common/dyn_inventory : set_fact] *****************************************
  3564. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:167
  3565. ok: [localhost] => {
  3566. "ansible_facts": {
  3567. "domain": "cloud-development.oroinc.com"
  3568. },
  3569. "changed": false,
  3570. "invocation": {
  3571. "module_args": {
  3572. "domain": "cloud-development.oroinc.com"
  3573. },
  3574. "module_name": "set_fact"
  3575. }
  3576. }
  3577.  
  3578. TASK [common/dyn_inventory : set network name for isolated cluster] ************
  3579. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:171
  3580. ok: [localhost] => {
  3581. "ansible_facts": {
  3582. "cluster_network_name": "staging-vault1"
  3583. },
  3584. "changed": false,
  3585. "invocation": {
  3586. "module_args": {
  3587. "cluster_network_name": "staging-vault1"
  3588. },
  3589. "module_name": "set_fact"
  3590. }
  3591. }
  3592.  
  3593. TASK [common/dyn_inventory : set network name for public cluster] **************
  3594. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:176
  3595. skipping: [localhost] => {
  3596. "changed": false,
  3597. "skip_reason": "Conditional check failed",
  3598. "skipped": true
  3599. }
  3600.  
  3601. TASK [common/dyn_inventory : find pre-existing networks for cluster] ***********
  3602. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:181
  3603. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  3604. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3605. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  3606. changed: [localhost] => {
  3607. "changed": true,
  3608. "cmd": "~/google-cloud-sdk/bin/gcloud compute networks subnets list --filter NAME=staging-vault1-subnet-main 2>/dev/null | awk '{ print $4 }' | tail -n1",
  3609. "delta": "0:00:00.827690",
  3610. "end": "2017-04-05 12:41:20.588736",
  3611. "invocation": {
  3612. "module_args": {
  3613. "_raw_params": "~/google-cloud-sdk/bin/gcloud compute networks subnets list --filter NAME=staging-vault1-subnet-main 2>/dev/null | awk '{ print $4 }' | tail -n1",
  3614. "_uses_shell": true,
  3615. "chdir": null,
  3616. "creates": null,
  3617. "executable": null,
  3618. "removes": null,
  3619. "warn": true
  3620. },
  3621. "module_name": "command"
  3622. },
  3623. "rc": 0,
  3624. "start": "2017-04-05 12:41:19.761046",
  3625. "stderr": "",
  3626. "stdout": "10.20.0.0/15",
  3627. "stdout_lines": [
  3628. "10.20.0.0/15"
  3629. ],
  3630. "warnings": []
  3631. }
  3632.  
  3633. TASK [common/dyn_inventory : register subnet for nodes] ************************
  3634. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:188
  3635. ok: [localhost] => {
  3636. "ansible_facts": {
  3637. "node_subnet": "node_network_ouput.stdout"
  3638. },
  3639. "changed": false,
  3640. "invocation": {
  3641. "module_args": {
  3642. "node_subnet": "node_network_ouput.stdout"
  3643. },
  3644. "module_name": "set_fact"
  3645. }
  3646. }
  3647.  
  3648. TASK [common/dyn_inventory : extract second octet from node subnet] ************
  3649. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:192
  3650. ok: [localhost] => {
  3651. "ansible_facts": {
  3652. "cluster_network_id": "stdout"
  3653. },
  3654. "changed": false,
  3655. "invocation": {
  3656. "module_args": {
  3657. "cluster_network_id": "stdout"
  3658. },
  3659. "module_name": "set_fact"
  3660. }
  3661. }
  3662.  
  3663. TASK [common/dyn_inventory : define a subnet for kubernetes] *******************
  3664. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:197
  3665. ok: [localhost] => {
  3666. "ansible_facts": {
  3667. "kube_subnet": "10.2.0.0/15"
  3668. },
  3669. "changed": false,
  3670. "invocation": {
  3671. "module_args": {
  3672. "kube_subnet": "10.2.0.0/15"
  3673. },
  3674. "module_name": "set_fact"
  3675. }
  3676. }
  3677.  
  3678. TASK [common/dyn_inventory : define an aggregate subnet for cluster] ***********
  3679. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:201
  3680. ok: [localhost] => {
  3681. "ansible_facts": {
  3682. "cluster_network": "node_network_ouput.stdout"
  3683. },
  3684. "changed": false,
  3685. "invocation": {
  3686. "module_args": {
  3687. "cluster_network": "node_network_ouput.stdout"
  3688. },
  3689. "module_name": "set_fact"
  3690. }
  3691. }
  3692.  
  3693. TASK [common/dyn_inventory : get vpn ip for cluster] ***************************
  3694. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:205
  3695. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  3696. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3697. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  3698. changed: [localhost] => {
  3699. "changed": true,
  3700. "cmd": "~/google-cloud-sdk/bin/gcloud compute addresses list | grep -E '^staging-vault1-vpngw' | awk '{ print $3 }'",
  3701. "delta": "0:00:01.230062",
  3702. "end": "2017-04-05 12:41:21.991536",
  3703. "invocation": {
  3704. "module_args": {
  3705. "_raw_params": "~/google-cloud-sdk/bin/gcloud compute addresses list | grep -E '^staging-vault1-vpngw' | awk '{ print $3 }'",
  3706. "_uses_shell": true,
  3707. "chdir": null,
  3708. "creates": null,
  3709. "executable": null,
  3710. "removes": null,
  3711. "warn": true
  3712. },
  3713. "module_name": "command"
  3714. },
  3715. "rc": 0,
  3716. "start": "2017-04-05 12:41:20.761474",
  3717. "stderr": "",
  3718. "stdout": "35.184.116.76",
  3719. "stdout_lines": [
  3720. "35.184.116.76"
  3721. ],
  3722. "warnings": []
  3723. }
  3724.  
  3725. TASK [common/dyn_inventory : register vpn gw] **********************************
  3726. task path: /home/cizar/oro-cloud-ansible/roles/common/dyn_inventory/tasks/main.yml:210
  3727. ok: [localhost] => {
  3728. "ansible_facts": {
  3729. "vpn_gw_ip": "35.184.116.76"
  3730. },
  3731. "changed": false,
  3732. "invocation": {
  3733. "module_args": {
  3734. "vpn_gw_ip": "35.184.116.76"
  3735. },
  3736. "module_name": "set_fact"
  3737. }
  3738. }
  3739.  
  3740. TASK [fail] ********************************************************************
  3741. task path: /home/cizar/oro-cloud-ansible/router-node.yml:7
  3742. skipping: [localhost] => {
  3743. "changed": false,
  3744. "skip_reason": "Conditional check failed",
  3745. "skipped": true
  3746. }
  3747.  
  3748. PLAY [create proxy node in gcloud] *********************************************
  3749.  
  3750. TASK [setup] *******************************************************************
  3751. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/system/setup.py
  3752. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3753. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  3754. ok: [localhost]
  3755.  
  3756. TASK [common/gcloud_sdk : Update local gcloud installation] ********************
  3757. task path: /home/cizar/oro-cloud-ansible/roles/common/gcloud_sdk/tasks/main.yml:2
  3758. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  3759. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3760. <127.0.0.1> EXEC /bin/sh -c 'CLOUDSDK_CORE_DISABLE_PROMPTS=1 /usr/bin/python && sleep 0'
  3761. changed: [localhost] => {
  3762. "changed": true,
  3763. "cmd": [
  3764. "~/google-cloud-sdk/bin/gcloud",
  3765. "components",
  3766. "update"
  3767. ],
  3768. "delta": "0:00:00.496467",
  3769. "end": "2017-04-05 12:41:22.821662",
  3770. "invocation": {
  3771. "module_args": {
  3772. "_raw_params": "~/google-cloud-sdk/bin/gcloud components update",
  3773. "_uses_shell": false,
  3774. "chdir": null,
  3775. "creates": null,
  3776. "executable": null,
  3777. "removes": null,
  3778. "warn": true
  3779. },
  3780. "module_name": "command"
  3781. },
  3782. "rc": 0,
  3783. "start": "2017-04-05 12:41:22.325195",
  3784. "stderr": "\nAll components are up to date.",
  3785. "stdout": "",
  3786. "stdout_lines": [],
  3787. "warnings": []
  3788. }
  3789.  
  3790. TASK [common/gcloud_sdk : Check your account] **********************************
  3791. task path: /home/cizar/oro-cloud-ansible/roles/common/gcloud_sdk/tasks/main.yml:9
  3792. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  3793. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3794. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  3795. changed: [localhost] => {
  3796. "changed": true,
  3797. "cmd": [
  3798. "~/google-cloud-sdk/bin/gcloud",
  3799. "config",
  3800. "list"
  3801. ],
  3802. "delta": "0:00:00.193077",
  3803. "end": "2017-04-05 12:41:23.103220",
  3804. "invocation": {
  3805. "module_args": {
  3806. "_raw_params": "~/google-cloud-sdk/bin/gcloud config list",
  3807. "_uses_shell": false,
  3808. "chdir": null,
  3809. "creates": null,
  3810. "executable": null,
  3811. "removes": null,
  3812. "warn": true
  3813. },
  3814. "module_name": "command"
  3815. },
  3816. "rc": 0,
  3817. "start": "2017-04-05 12:41:22.910143",
  3818. "stderr": "\nYour active configuration is: [default]",
  3819. "stdout": "[compute]\nregion = us-central1\nzone = us-central1-f\n[core]\naccount = dtarasenko@oroinc.com\ndisable_usage_reporting = True\nproject = oro-cloud-development",
  3820. "stdout_lines": [
  3821. "[compute]",
  3822. "region = us-central1",
  3823. "zone = us-central1-f",
  3824. "[core]",
  3825. "account = dtarasenko@oroinc.com",
  3826. "disable_usage_reporting = True",
  3827. "project = oro-cloud-development"
  3828. ],
  3829. "warnings": []
  3830. }
  3831.  
  3832. TASK [common/gcloud_sdk : Fail if account is not connected] ********************
  3833. task path: /home/cizar/oro-cloud-ansible/roles/common/gcloud_sdk/tasks/main.yml:15
  3834. skipping: [localhost] => {
  3835. "changed": false,
  3836. "skip_reason": "Conditional check failed",
  3837. "skipped": true
  3838. }
  3839.  
  3840. TASK [common/gcloud_sdk : configuring] *****************************************
  3841. task path: /home/cizar/oro-cloud-ansible/roles/common/gcloud_sdk/tasks/main.yml:19
  3842. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  3843. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3844. <127.0.0.1> EXEC /bin/sh -c 'CLOUDSDK_CORE_DISABLE_PROMPTS=1 /usr/bin/python && sleep 0'
  3845. changed: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config set project oro-cloud-development) => {
  3846. "changed": true,
  3847. "cmd": "~/google-cloud-sdk/bin/gcloud config set project oro-cloud-development",
  3848. "delta": "0:00:00.206687",
  3849. "end": "2017-04-05 12:41:23.415992",
  3850. "invocation": {
  3851. "module_args": {
  3852. "_raw_params": "~/google-cloud-sdk/bin/gcloud config set project oro-cloud-development",
  3853. "_uses_shell": true,
  3854. "chdir": null,
  3855. "creates": null,
  3856. "executable": null,
  3857. "removes": null,
  3858. "warn": true
  3859. },
  3860. "module_name": "command"
  3861. },
  3862. "item": "~/google-cloud-sdk/bin/gcloud config set project oro-cloud-development",
  3863. "rc": 0,
  3864. "start": "2017-04-05 12:41:23.209305",
  3865. "stderr": "Updated property [core/project].",
  3866. "stdout": "",
  3867. "stdout_lines": [],
  3868. "warnings": []
  3869. }
  3870. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  3871. <127.0.0.1> EXEC /bin/sh -c 'CLOUDSDK_CORE_DISABLE_PROMPTS=1 /usr/bin/python && sleep 0'
  3872. changed: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config set compute/region us-central1) => {
  3873. "changed": true,
  3874. "cmd": "~/google-cloud-sdk/bin/gcloud config set compute/region us-central1",
  3875. "delta": "0:00:00.206808",
  3876. "end": "2017-04-05 12:41:23.689352",
  3877. "invocation": {
  3878. "module_args": {
  3879. "_raw_params": "~/google-cloud-sdk/bin/gcloud config set compute/region us-central1",
  3880. "_uses_shell": true,
  3881. "chdir": null,
  3882. "creates": null,
  3883. "executable": null,
  3884. "removes": null,
  3885. "warn": true
  3886. },
  3887. "module_name": "command"
  3888. },
  3889. "item": "~/google-cloud-sdk/bin/gcloud config set compute/region us-central1",
  3890. "rc": 0,
  3891. "start": "2017-04-05 12:41:23.482544",
  3892. "stderr": "Updated property [compute/region].",
  3893. "stdout": "",
  3894. "stdout_lines": [],
  3895. "warnings": []
  3896. }
  3897. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  3898. <127.0.0.1> EXEC /bin/sh -c 'CLOUDSDK_CORE_DISABLE_PROMPTS=1 /usr/bin/python && sleep 0'
  3899. changed: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config set compute/zone us-central1-f) => {
  3900. "changed": true,
  3901. "cmd": "~/google-cloud-sdk/bin/gcloud config set compute/zone us-central1-f",
  3902. "delta": "0:00:00.207926",
  3903. "end": "2017-04-05 12:41:23.963304",
  3904. "invocation": {
  3905. "module_args": {
  3906. "_raw_params": "~/google-cloud-sdk/bin/gcloud config set compute/zone us-central1-f",
  3907. "_uses_shell": true,
  3908. "chdir": null,
  3909. "creates": null,
  3910. "executable": null,
  3911. "removes": null,
  3912. "warn": true
  3913. },
  3914. "module_name": "command"
  3915. },
  3916. "item": "~/google-cloud-sdk/bin/gcloud config set compute/zone us-central1-f",
  3917. "rc": 0,
  3918. "start": "2017-04-05 12:41:23.755378",
  3919. "stderr": "Updated property [compute/zone].",
  3920. "stdout": "",
  3921. "stdout_lines": [],
  3922. "warnings": []
  3923. }
  3924. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  3925. <127.0.0.1> EXEC /bin/sh -c 'CLOUDSDK_CORE_DISABLE_PROMPTS=1 /usr/bin/python && sleep 0'
  3926. changed: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config list) => {
  3927. "changed": true,
  3928. "cmd": "~/google-cloud-sdk/bin/gcloud config list",
  3929. "delta": "0:00:00.191725",
  3930. "end": "2017-04-05 12:41:24.220845",
  3931. "invocation": {
  3932. "module_args": {
  3933. "_raw_params": "~/google-cloud-sdk/bin/gcloud config list",
  3934. "_uses_shell": true,
  3935. "chdir": null,
  3936. "creates": null,
  3937. "executable": null,
  3938. "removes": null,
  3939. "warn": true
  3940. },
  3941. "module_name": "command"
  3942. },
  3943. "item": "~/google-cloud-sdk/bin/gcloud config list",
  3944. "rc": 0,
  3945. "start": "2017-04-05 12:41:24.029120",
  3946. "stderr": "\nYour active configuration is: [default]",
  3947. "stdout": "[compute]\nregion = us-central1\nzone = us-central1-f\n[core]\naccount = dtarasenko@oroinc.com\ndisable_prompts = 1\ndisable_usage_reporting = True\nproject = oro-cloud-development",
  3948. "stdout_lines": [
  3949. "[compute]",
  3950. "region = us-central1",
  3951. "zone = us-central1-f",
  3952. "[core]",
  3953. "account = dtarasenko@oroinc.com",
  3954. "disable_prompts = 1",
  3955. "disable_usage_reporting = True",
  3956. "project = oro-cloud-development"
  3957. ],
  3958. "warnings": []
  3959. }
  3960.  
  3961. TASK [common/router_node : validate router node] *******************************
  3962. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:4
  3963. skipping: [localhost] => {
  3964. "changed": false,
  3965. "skip_reason": "Conditional check failed",
  3966. "skipped": true
  3967. }
  3968.  
  3969. TASK [common/router_node : mark router node as valid] **************************
  3970. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:11
  3971. skipping: [localhost] => {
  3972. "changed": false,
  3973. "skip_reason": "Conditional check failed",
  3974. "skipped": true
  3975. }
  3976.  
  3977. TASK [common/router_node : get build_version] **********************************
  3978. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:15
  3979. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  3980. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  3981. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  3982. changed: [localhost] => {
  3983. "changed": true,
  3984. "cmd": "~/google-cloud-sdk/bin/gcloud compute instances list | grep staging-vault1-router | awk {'print $1'} | sed 's/.*router//g' | sort -n | tail -n1",
  3985. "delta": "0:00:01.165760",
  3986. "end": "2017-04-05 12:41:25.514360",
  3987. "invocation": {
  3988. "module_args": {
  3989. "_raw_params": "~/google-cloud-sdk/bin/gcloud compute instances list | grep staging-vault1-router | awk {'print $1'} | sed 's/.*router//g' | sort -n | tail -n1",
  3990. "_uses_shell": true,
  3991. "chdir": null,
  3992. "creates": null,
  3993. "executable": null,
  3994. "removes": null,
  3995. "warn": true
  3996. },
  3997. "module_name": "command"
  3998. },
  3999. "rc": 0,
  4000. "start": "2017-04-05 12:41:24.348600",
  4001. "stderr": "",
  4002. "stdout": "2",
  4003. "stdout_lines": [
  4004. "2"
  4005. ],
  4006. "warnings": []
  4007. }
  4008.  
  4009. TASK [common/router_node : increment build version] ****************************
  4010. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:20
  4011. ok: [localhost] => {
  4012. "ansible_facts": {
  4013. "build_version": "3"
  4014. },
  4015. "changed": false,
  4016. "invocation": {
  4017. "module_args": {
  4018. "build_version": "3"
  4019. },
  4020. "module_name": "set_fact"
  4021. }
  4022. }
  4023.  
  4024. TASK [common/router_node : set new router name] ********************************
  4025. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:24
  4026. ok: [localhost] => {
  4027. "ansible_facts": {
  4028. "router_node_name": "staging-vault1-router3"
  4029. },
  4030. "changed": false,
  4031. "invocation": {
  4032. "module_args": {
  4033. "router_node_name": "staging-vault1-router3"
  4034. },
  4035. "module_name": "set_fact"
  4036. }
  4037. }
  4038.  
  4039. TASK [common/router_node : prepare oro env vars] *******************************
  4040. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:29
  4041. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4042. <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1491385285.59-71816309454828 `" && echo ansible-tmp-1491385285.59-71816309454828="` echo ~/.ansible/tmp/ansible-tmp-1491385285.59-71816309454828 `" ) && sleep 0'
  4043. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/files/stat.py
  4044. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  4045. <127.0.0.1> PUT /tmp/tmpCBRVOC TO /home/cizar/.ansible/tmp/ansible-tmp-1491385285.59-71816309454828/source
  4046. <127.0.0.1> EXEC /bin/sh -c 'chmod u+x /home/cizar/.ansible/tmp/ansible-tmp-1491385285.59-71816309454828/ /home/cizar/.ansible/tmp/ansible-tmp-1491385285.59-71816309454828/source && sleep 0'
  4047. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/files/copy.py
  4048. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  4049. <127.0.0.1> EXEC /bin/sh -c 'rm -f -r /home/cizar/.ansible/tmp/ansible-tmp-1491385285.59-71816309454828/ > /dev/null 2>&1 && sleep 0'
  4050. changed: [localhost] => {
  4051. "changed": true,
  4052. "checksum": "96c36476efd2211c609d1c64437b9b5e62c821c2",
  4053. "dest": "/tmp/kube-env",
  4054. "gid": 1001,
  4055. "group": "cizar",
  4056. "invocation": {
  4057. "module_args": {
  4058. "backup": false,
  4059. "content": null,
  4060. "delimiter": null,
  4061. "dest": "/tmp/kube-env",
  4062. "directory_mode": null,
  4063. "follow": true,
  4064. "force": true,
  4065. "group": null,
  4066. "mode": null,
  4067. "original_basename": "env.j2",
  4068. "owner": null,
  4069. "regexp": null,
  4070. "remote_src": null,
  4071. "selevel": null,
  4072. "serole": null,
  4073. "setype": null,
  4074. "seuser": null,
  4075. "src": "/home/cizar/.ansible/tmp/ansible-tmp-1491385285.59-71816309454828/source",
  4076. "unsafe_writes": null,
  4077. "validate": null
  4078. }
  4079. },
  4080. "md5sum": "0c45cdbcaef2e43a7f7f2561332f9168",
  4081. "mode": "0664",
  4082. "owner": "cizar",
  4083. "size": 252,
  4084. "src": "/home/cizar/.ansible/tmp/ansible-tmp-1491385285.59-71816309454828/source",
  4085. "state": "file",
  4086. "uid": 1001
  4087. }
  4088.  
  4089. TASK [common/router_node : get default template name] **************************
  4090. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:35
  4091. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  4092. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4093. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  4094. changed: [localhost] => {
  4095. "changed": true,
  4096. "cmd": "~/google-cloud-sdk/bin/gcloud compute instance-templates list | grep staging-vault1 | grep -v dummy | awk {'print $1'} | tail -n1",
  4097. "delta": "0:00:02.055849",
  4098. "end": "2017-04-05 12:41:27.948044",
  4099. "invocation": {
  4100. "module_args": {
  4101. "_raw_params": "~/google-cloud-sdk/bin/gcloud compute instance-templates list | grep staging-vault1 | grep -v dummy | awk {'print $1'} | tail -n1",
  4102. "_uses_shell": true,
  4103. "chdir": null,
  4104. "creates": null,
  4105. "executable": null,
  4106. "removes": null,
  4107. "warn": true
  4108. },
  4109. "module_name": "command"
  4110. },
  4111. "rc": 0,
  4112. "start": "2017-04-05 12:41:25.892195",
  4113. "stderr": "",
  4114. "stdout": "gke-staging-vault1-default-pool-48f8b6a6",
  4115. "stdout_lines": [
  4116. "gke-staging-vault1-default-pool-48f8b6a6"
  4117. ],
  4118. "warnings": []
  4119. }
  4120.  
  4121. TASK [common/router_node : add default vars from instance template] ************
  4122. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:41
  4123. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  4124. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4125. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  4126. changed: [localhost] => {
  4127. "changed": true,
  4128. "cmd": "~/google-cloud-sdk/bin/gcloud compute instance-templates describe gke-staging-vault1-default-pool-48f8b6a6 | sed '1,/key: kube-env/d;/key: startup-script/,$d' | sed 1d | sed '/kind: compute/,$d' |sed 's/^ //g' | sed 's/SALT_TAR_URL.*/SALT_TAR_URL: https:\\/\\/storage.googleapis.com\\/saltarch\\/kubernetes-salt-1.5.tar.gz/g' | sed 's/SALT_TAR_HASH.*/SALT_TAR_HASH: 220a69ff32fc51030fd7bd2f37fb55c413ad9688/g' >> /tmp/kube-env",
  4129. "delta": "0:00:00.835957",
  4130. "end": "2017-04-05 12:41:28.870775",
  4131. "invocation": {
  4132. "module_args": {
  4133. "_raw_params": "~/google-cloud-sdk/bin/gcloud compute instance-templates describe gke-staging-vault1-default-pool-48f8b6a6 | sed '1,/key: kube-env/d;/key: startup-script/,$d' | sed 1d | sed '/kind: compute/,$d' |sed 's/^ //g' | sed 's/SALT_TAR_URL.*/SALT_TAR_URL: https:\\/\\/storage.googleapis.com\\/saltarch\\/kubernetes-salt-1.5.tar.gz/g' | sed 's/SALT_TAR_HASH.*/SALT_TAR_HASH: 220a69ff32fc51030fd7bd2f37fb55c413ad9688/g' >> /tmp/kube-env",
  4134. "_uses_shell": true,
  4135. "chdir": null,
  4136. "creates": null,
  4137. "executable": null,
  4138. "removes": null,
  4139. "warn": true
  4140. },
  4141. "module_name": "command"
  4142. },
  4143. "rc": 0,
  4144. "start": "2017-04-05 12:41:28.034818",
  4145. "stderr": "",
  4146. "stdout": "",
  4147. "stdout_lines": [],
  4148. "warnings": []
  4149. }
  4150.  
  4151. TASK [common/router_node : copy startup-script] ********************************
  4152. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:45
  4153. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/files/stat.py
  4154. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4155. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  4156. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/files/file.py
  4157. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  4158. ok: [localhost] => {
  4159. "changed": false,
  4160. "checksum": "17d93612e27e6b11707be2d56857c39ae5e66007",
  4161. "dest": "/tmp/startup-script",
  4162. "diff": {
  4163. "after": {
  4164. "path": "/tmp/startup-script"
  4165. },
  4166. "before": {
  4167. "path": "/tmp/startup-script"
  4168. }
  4169. },
  4170. "gid": 0,
  4171. "group": "root",
  4172. "invocation": {
  4173. "module_args": {
  4174. "backup": null,
  4175. "content": null,
  4176. "delimiter": null,
  4177. "dest": "/tmp/startup-script",
  4178. "diff_peek": null,
  4179. "directory_mode": null,
  4180. "follow": false,
  4181. "force": false,
  4182. "group": null,
  4183. "mode": null,
  4184. "original_basename": "startup-script",
  4185. "owner": null,
  4186. "path": "/tmp/startup-script",
  4187. "recurse": false,
  4188. "regexp": null,
  4189. "remote_src": null,
  4190. "selevel": null,
  4191. "serole": null,
  4192. "setype": null,
  4193. "seuser": null,
  4194. "src": "startup-script",
  4195. "state": null,
  4196. "unsafe_writes": null,
  4197. "validate": null
  4198. }
  4199. },
  4200. "mode": "0777",
  4201. "owner": "root",
  4202. "path": "/tmp/startup-script",
  4203. "size": 31059,
  4204. "state": "file",
  4205. "uid": 0
  4206. }
  4207.  
  4208. TASK [common/router_node : set router name] ************************************
  4209. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:52
  4210. ok: [localhost] => {
  4211. "ansible_facts": {
  4212. "_raw_params": "router_node_name = 'staging-vault1-router'"
  4213. },
  4214. "changed": false,
  4215. "invocation": {
  4216. "module_args": {
  4217. "_raw_params": "router_node_name = 'staging-vault1-router'"
  4218. },
  4219. "module_name": "set_fact"
  4220. }
  4221. }
  4222.  
  4223. TASK [common/router_node : create router node in isolation cluster] ************
  4224. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:55
  4225. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  4226. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4227. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  4228. changed: [localhost] => {
  4229. "changed": true,
  4230. "cmd": "~/google-cloud-sdk/bin/gcloud --quiet beta compute instances create staging-vault1-router3 --machine-type n1-highcpu-8 --boot-disk-size 100GB --image container-vm --metadata-from-file startup-script=\"/tmp/startup-script,kube-env=/tmp/kube-env\" --tags router --zone us-central1-f --can-ip-forward --subnet=staging-vault1-subnet-main",
  4231. "delta": "0:00:29.615467",
  4232. "end": "2017-04-05 12:41:58.818623",
  4233. "invocation": {
  4234. "module_args": {
  4235. "_raw_params": "~/google-cloud-sdk/bin/gcloud --quiet beta compute instances create staging-vault1-router3 --machine-type n1-highcpu-8 --boot-disk-size 100GB --image container-vm --metadata-from-file startup-script=\"/tmp/startup-script,kube-env=/tmp/kube-env\" --tags router --zone us-central1-f --can-ip-forward --subnet=staging-vault1-subnet-main",
  4236. "_uses_shell": true,
  4237. "chdir": null,
  4238. "creates": null,
  4239. "executable": null,
  4240. "removes": null,
  4241. "warn": true
  4242. },
  4243. "module_name": "command"
  4244. },
  4245. "rc": 0,
  4246. "start": "2017-04-05 12:41:29.203156",
  4247. "stderr": "WARNING: You have selected a disk size of under [200GB]. This may result in poor I/O performance. For more information, see: https://developers.google.com/compute/docs/disks#pdperformance.\nWARNING: Image aliases are deprecated and will be removed in a future version. Please use --image-family=container-vm and --image-project=google-containers instead.\nCreated [https://www.googleapis.com/compute/beta/projects/oro-cloud-development/zones/us-central1-f/instances/staging-vault1-router3].",
  4248. "stdout": "NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS\nstaging-vault1-router3 us-central1-f n1-highcpu-8 10.20.0.3 104.154.251.40 RUNNING",
  4249. "stdout_lines": [
  4250. "NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS",
  4251. "staging-vault1-router3 us-central1-f n1-highcpu-8 10.20.0.3 104.154.251.40 RUNNING"
  4252. ],
  4253. "warnings": []
  4254. }
  4255.  
  4256. TASK [common/router_node : get router node ip] *********************************
  4257. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:60
  4258. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  4259. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4260. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  4261. changed: [localhost] => {
  4262. "changed": true,
  4263. "cmd": "~/google-cloud-sdk/bin/gcloud compute instances list | grep staging-vault1-router3 | awk {'print $5'}",
  4264. "delta": "0:00:01.189789",
  4265. "end": "2017-04-05 12:42:00.101209",
  4266. "invocation": {
  4267. "module_args": {
  4268. "_raw_params": "~/google-cloud-sdk/bin/gcloud compute instances list | grep staging-vault1-router3 | awk {'print $5'}",
  4269. "_uses_shell": true,
  4270. "chdir": null,
  4271. "creates": null,
  4272. "executable": null,
  4273. "removes": null,
  4274. "warn": true
  4275. },
  4276. "module_name": "command"
  4277. },
  4278. "rc": 0,
  4279. "start": "2017-04-05 12:41:58.911420",
  4280. "stderr": "",
  4281. "stdout": "104.154.251.40",
  4282. "stdout_lines": [
  4283. "104.154.251.40"
  4284. ],
  4285. "warnings": []
  4286. }
  4287.  
  4288. TASK [common/router_node : get router node internal ip] ************************
  4289. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:66
  4290. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  4291. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4292. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  4293. changed: [localhost] => {
  4294. "changed": true,
  4295. "cmd": "~/google-cloud-sdk/bin/gcloud compute instances list | grep staging-vault1-router3 | awk {'print $4'}",
  4296. "delta": "0:00:01.590224",
  4297. "end": "2017-04-05 12:42:01.776989",
  4298. "invocation": {
  4299. "module_args": {
  4300. "_raw_params": "~/google-cloud-sdk/bin/gcloud compute instances list | grep staging-vault1-router3 | awk {'print $4'}",
  4301. "_uses_shell": true,
  4302. "chdir": null,
  4303. "creates": null,
  4304. "executable": null,
  4305. "removes": null,
  4306. "warn": true
  4307. },
  4308. "module_name": "command"
  4309. },
  4310. "rc": 0,
  4311. "start": "2017-04-05 12:42:00.186765",
  4312. "stderr": "",
  4313. "stdout": "10.20.0.3",
  4314. "stdout_lines": [
  4315. "10.20.0.3"
  4316. ],
  4317. "warnings": []
  4318. }
  4319.  
  4320. TASK [common/router_node : wait for router node to boot] ***********************
  4321. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:72
  4322. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/utilities/logic/wait_for.py
  4323. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4324. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  4325. ok: [localhost] => {
  4326. "changed": false,
  4327. "elapsed": 3,
  4328. "invocation": {
  4329. "module_args": {
  4330. "connect_timeout": 5,
  4331. "delay": 0,
  4332. "exclude_hosts": null,
  4333. "host": "104.154.251.40",
  4334. "path": null,
  4335. "port": 22,
  4336. "search_regex": null,
  4337. "state": "started",
  4338. "timeout": 300
  4339. },
  4340. "module_name": "wait_for"
  4341. },
  4342. "path": null,
  4343. "port": 22,
  4344. "search_regex": null,
  4345. "state": "started"
  4346. }
  4347.  
  4348. TASK [common/router_node : add router to inventory] ****************************
  4349. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:78
  4350. creating host via 'add_host': hostname=staging-vault1-router3
  4351. changed: [localhost] => {
  4352. "add_host": {
  4353. "groups": [
  4354. "proxies"
  4355. ],
  4356. "host_name": "staging-vault1-router3",
  4357. "host_vars": {
  4358. "ansible_host": "104.154.251.40",
  4359. "ansible_ssh_private_key_file": "/home/cizar/.ssh/google_compute_engine"
  4360. }
  4361. },
  4362. "changed": true,
  4363. "invocation": {
  4364. "module_args": {
  4365. "ansible_host": "104.154.251.40",
  4366. "ansible_ssh_private_key_file": "/home/cizar/.ssh/google_compute_engine",
  4367. "groups": "proxies",
  4368. "hostname": "staging-vault1-router3"
  4369. },
  4370. "module_name": "add_host"
  4371. }
  4372. }
  4373.  
  4374. TASK [common/router_node : route external traffic to kubernetes services through router node] ***
  4375. task path: /home/cizar/oro-cloud-ansible/roles/common/router_node/tasks/main.yml:86
  4376. Using module file /usr/lib/python2.7/dist-packages/ansible/modules/core/commands/command.py
  4377. <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: cizar
  4378. <127.0.0.1> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
  4379. changed: [localhost] => {
  4380. "changed": true,
  4381. "cmd": "~/google-cloud-sdk/bin/gcloud compute routes create 'staging-vault1-kube' --network staging-vault1 --next-hop-instance staging-vault1-router3 --destination-range 10.2.0.0/15 --priority 2000",
  4382. "delta": "0:00:22.611566",
  4383. "end": "2017-04-05 12:42:27.857374",
  4384. "invocation": {
  4385. "module_args": {
  4386. "_raw_params": "~/google-cloud-sdk/bin/gcloud compute routes create 'staging-vault1-kube' --network staging-vault1 --next-hop-instance staging-vault1-router3 --destination-range 10.2.0.0/15 --priority 2000",
  4387. "_uses_shell": true,
  4388. "chdir": null,
  4389. "creates": null,
  4390. "executable": null,
  4391. "removes": null,
  4392. "warn": true
  4393. },
  4394. "module_name": "command"
  4395. },
  4396. "rc": 0,
  4397. "start": "2017-04-05 12:42:05.245808",
  4398. "stderr": "Created [https://www.googleapis.com/compute/v1/projects/oro-cloud-development/global/routes/staging-vault1-kube].",
  4399. "stdout": "NAME NETWORK DEST_RANGE NEXT_HOP PRIORITY\nstaging-vault1-kube staging-vault1 10.2.0.0/15 us-central1-f/instances/staging-vault1-router3 2000",
  4400. "stdout_lines": [
  4401. "NAME NETWORK DEST_RANGE NEXT_HOP PRIORITY",
  4402. "staging-vault1-kube staging-vault1 10.2.0.0/15 us-central1-f/instances/staging-vault1-router3 2000"
  4403. ],
  4404. "warnings": []
  4405. }
  4406.  
  4407. PLAY RECAP *********************************************************************
  4408. localhost : ok=53 changed=25 unreachable=0 failed=0
  4409.  
  4410. cizar@castle:~/oro-cloud-ansible$ ~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement