Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2016
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.94 KB | None | 0 0
  1. BASH: [Init Vagrant (Virtualbox)] *************************************
  2. SUDO password:
  3. [WARNING]: provided hosts list is empty, only localhost is available
  4.  
  5.  
  6. PLAY [localhost] **************************************************************
  7.  
  8. GATHERING FACTS ***************************************************************
  9. ok: [localhost]
  10.  
  11. TASK: [Set Destination ( local )] *********************************************
  12. ok: [localhost]
  13.  
  14. TASK: [Set Destination ( google )] ********************************************
  15. skipping: [localhost]
  16.  
  17. TASK: [system/ubuntu/deb | Check if Virtualbox version is installed] **********
  18. skipping: [localhost]
  19.  
  20. TASK: [system/ubuntu/deb | Installing {{ virtualbox.deb }}] *******************
  21. skipping: [localhost]
  22.  
  23. TASK: [system/ubuntu/deb | Check if vagrant version is installed] *************
  24. skipping: [localhost]
  25.  
  26. TASK: [system/ubuntu/deb | Installing vagrant_1.7.4_x86_64.deb] ***************
  27. skipping: [localhost]
  28.  
  29. TASK: [support/fedora_pkgs | install original yum for fedora 23+] *************
  30. skipping: [localhost]
  31.  
  32. TASK: [support/fedora_pkgs | Installing reqired packages] *********************
  33. ok: [localhost] => (item=VirtualBox,kmod-VirtualBox,vagrant,python-devel)
  34.  
  35. TASK: [support/fedora_pkgs | load virtualbox modules] *************************
  36. changed: [localhost] => (item=vboxdrv)
  37. changed: [localhost] => (item=vboxnetflt)
  38. changed: [localhost] => (item=vboxnetadp)
  39.  
  40. TASK: [support/gcloud | copy key json] ****************************************
  41. skipping: [localhost]
  42.  
  43. TASK: [support/gcloud | file path="~/google-cloud-sdk" state=absent force=yes] ***
  44. skipping: [localhost]
  45.  
  46. TASK: [support/gcloud | getting & installing] *********************************
  47. skipping: [localhost]
  48.  
  49. TASK: [support/gcloud | configuring] ******************************************
  50. skipping: [localhost] => (item=~/google-cloud-sdk/bin/gcloud components update kubectl >> /tmp/gcloud.log)
  51. skipping: [localhost] => (item=~/google-cloud-sdk/bin/gcloud auth activate-service-account --key-file ~/account.json >> /tmp/gcloud.log)
  52. skipping: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config set project oro-cloud-development)
  53. skipping: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config set compute/region us-central)
  54. skipping: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config set compute/zone us-central1-f)
  55. skipping: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config list >> /tmp/gcloud.log)
  56.  
  57. TASK: [cluster/cloud | get build_timestamp] ***********************************
  58. skipping: [localhost]
  59.  
  60. TASK: [cluster/cloud | set build_timestamp] ***********************************
  61. skipping: [localhost]
  62.  
  63. TASK: [cluster/cloud | get build_version] *************************************
  64. skipping: [localhost]
  65.  
  66. TASK: [cluster/cloud | set build_timestamp] ***********************************
  67. skipping: [localhost]
  68.  
  69. TASK: [cluster/cloud | cluster create] ****************************************
  70. skipping: [localhost]
  71.  
  72. TASK: [cluster/cloud | get cluster ip] ****************************************
  73. skipping: [localhost]
  74.  
  75. TASK: [cluster/cloud | register cluster] **************************************
  76. skipping: [localhost]
  77.  
  78. TASK: [cluster/cloud | log credentials for registered cluster] ****************
  79. skipping: [localhost]
  80.  
  81. TASK: [cluster/cloud | create mgmt instanse] **********************************
  82. skipping: [localhost]
  83.  
  84. TASK: [cluster/cloud | get mgmt ip] *******************************************
  85. skipping: [localhost]
  86.  
  87. TASK: [cluster/cloud | create sql instance] ***********************************
  88. skipping: [localhost]
  89.  
  90. TASK: [cluster/cloud | get sql ip] ********************************************
  91. skipping: [localhost]
  92.  
  93. TASK: [cluster/cloud | set hostname mgmt] *************************************
  94. skipping: [localhost]
  95.  
  96. TASK: [cluster/cloud | set cluster params] ************************************
  97. skipping: [localhost]
  98.  
  99. PLAY RECAP ********************************************************************
  100. localhost : ok=5 changed=1 unreachable=0 failed=0
  101.  
  102. BASH: [Cluster Initialization] ************************************************
  103. Bringing machine 'kube-master' up with 'virtualbox' provider...
  104. ==> kube-master: Importing base box 'ubuntu/trusty64'...
  105. ==> kube-master: Matching MAC address for NAT networking...
  106. ==> kube-master: Checking if box 'ubuntu/trusty64' is up to date...
  107. ==> kube-master: A newer version of the box 'ubuntu/trusty64' is available! You currently
  108. ==> kube-master: have version '20160318.0.0'. The latest is version '20160320.0.0'. Run
  109. ==> kube-master: `vagrant box update` to update.
  110. ==> kube-master: Setting the name of the VM: vagrant_kube-master_1458742880230_52897
  111. ==> kube-master: Clearing any previously set forwarded ports...
  112. ==> kube-master: Clearing any previously set network interfaces...
  113. ==> kube-master: Preparing network interfaces based on configuration...
  114. kube-master: Adapter 1: nat
  115. kube-master: Adapter 2: hostonly
  116. ==> kube-master: Forwarding ports...
  117. kube-master: 22 => 2222 (adapter 1)
  118. ==> kube-master: Running 'pre-boot' VM customizations...
  119. ==> kube-master: Booting VM...
  120. ==> kube-master: Waiting for machine to boot. This may take a few minutes...
  121. kube-master: SSH address: 127.0.0.1:2222
  122. kube-master: SSH username: vagrant
  123. kube-master: SSH auth method: private key
  124. kube-master: Warning: Connection timeout. Retrying...
  125. kube-master: Warning: Remote connection disconnect. Retrying...
  126. ==> kube-master: Machine booted and ready!
  127. ==> kube-master: Checking for guest additions in VM...
  128. ==> kube-master: Setting hostname...
  129. ==> kube-master: Configuring and enabling network interfaces...
  130. ==> kube-master: Running provisioner: ansible...
  131. PYTHONUNBUFFERED=1 ANSIBLE_FORCE_COLOR=true ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o ControlMaster=auto -o ControlPersist=60s' ansible-playbook --private-key=/home/dima/.vagrant.d/insecure_private_key --user=vagrant --connection=ssh --limit='all' --inventory-file=/home/dima/Documents/projects/cloud/oro-cloud-ansible/vagrant/.vagrant/provisioners/ansible/inventory ./vagrant-ansible.yml
  132.  
  133. PLAY [master] *****************************************************************
  134.  
  135. TASK: [create master key] *****************************************************
  136. changed: [kube-master]
  137.  
  138. TASK: [set public key] ********************************************************
  139. changed: [kube-master]
  140.  
  141. TASK: [set_fact vagrant_pub_key={{ vagrant_pub_key.stdout_lines }}] ***********
  142. ok: [kube-master]
  143.  
  144. PLAY [kube] *******************************************************************
  145.  
  146. GATHERING FACTS ***************************************************************
  147. ok: [kube-master]
  148.  
  149. TASK: [debug var=hostvars['kube-master'].vagrant_pub_key] *********************
  150. ok: [kube-master] => {
  151. "var": {
  152. "hostvars['kube-master'].vagrant_pub_key": [
  153. "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDiDqDcWPRe4pqGXdZWbSIsqwkd0nY6YPv8uP2qTMYpajigIljtqSTRuOw/neNCk8JiS4Z71P9xB4Ka0SJTW43sYhf2jMuAECy8oFEtyw7QZVBQTHAaY/igwuDLyBbOh77RODADruVw3tiZBP8u9IhrGye6umpVeLuylEuA0nBjc3o59axJK5V5iLpVnYBoAajQE3F/BVrgGEDtU29ATpuA15rLEBKG5Wg6ScvxO2a4CToAg0a7bZGet1N9YDEMcl5cPXy2LE5LVrSjzQNay+lQnQ3mTt687PLQlidhvilhE8OTuop5UUSG2AXvOa5r4kwaYX9fqvgzehj5PA2bWhGP ansible-generated on kube-master"
  154. ]
  155. }
  156. }
  157.  
  158. TASK: [build hosts file] ******************************************************
  159. changed: [kube-master] => (item=kube-master)
  160.  
  161. TASK: [provide pub keys] ******************************************************
  162. changed: [kube-master] => (item=ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDiDqDcWPRe4pqGXdZWbSIsqwkd0nY6YPv8uP2qTMYpajigIljtqSTRuOw/neNCk8JiS4Z71P9xB4Ka0SJTW43sYhf2jMuAECy8oFEtyw7QZVBQTHAaY/igwuDLyBbOh77RODADruVw3tiZBP8u9IhrGye6umpVeLuylEuA0nBjc3o59axJK5V5iLpVnYBoAajQE3F/BVrgGEDtU29ATpuA15rLEBKG5Wg6ScvxO2a4CToAg0a7bZGet1N9YDEMcl5cPXy2LE5LVrSjzQNay+lQnQ3mTt687PLQlidhvilhE8OTuop5UUSG2AXvOa5r4kwaYX9fqvgzehj5PA2bWhGP ansible-generated on kube-master)
  163. changed: [kube-master] => (item=ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZgND0KAd2b62fv4WJ69+BOfwqa+SEeoSKXgQ8qeYZROHB8/7Dk9PSdivbPWm1zQdjnDNwoKYn9YJUXmk+PY5A+m7yiUORXKPgqFwC5gb4MeAOM+dR/ZcUCqy7aXu7s623qn0/EPbsRQDC3vRCTncnnfaxx5QzMaWABrBpqmJFhijf5lwvxgQZBBQXOjlU0Q2ioFtyYthS+1jsC8GkxORpJ6MHt7DAajMhaMQlbcTMJ4RlbREPv1YQ/mJlJW+pqtHx1P8ad8bCFo3BjgBJhRo1h+OEPpJgY/vBziZvvUrJV3c+kQK43lhhPNdrkpEa3oYPAN3jinjKDX25FgT6A2fr dmitriy@localhost.localdomain)
  164.  
  165. PLAY RECAP ********************************************************************
  166. kube-master : ok=7 changed=4 unreachable=0 failed=0
  167.  
  168. BASH: [Cluster Lookup] ********************************************************
  169. SUDO password:
  170. [WARNING]: provided hosts list is empty, only localhost is available
  171.  
  172.  
  173. PLAY [localhost] **************************************************************
  174.  
  175. GATHERING FACTS ***************************************************************
  176. ok: [localhost]
  177.  
  178. TASK: [Get Vagrant hosts] *****************************************************
  179. changed: [localhost]
  180.  
  181. TASK: [debug var=vagrant_hosts] ***********************************************
  182. ok: [localhost] => {
  183. "var": {
  184. "vagrant_hosts": {
  185. "changed": true,
  186. "cmd": "echo ` $ANSIBLE_RUN -i $ANSIBLE_INV -a $ANSIBLE_FLT -u $ANSIBLE_USR | $ANSIBLE_EGR | awk '{print $2}' | tr -d , | xargs`",
  187. "delta": "0:00:02.418382",
  188. "end": "2016-03-23 16:21:58.852620",
  189. "invocation": {
  190. "module_args": "echo ` $ANSIBLE_RUN -i $ANSIBLE_INV -a $ANSIBLE_FLT -u $ANSIBLE_USR | $ANSIBLE_EGR | awk '{print $2}' | tr -d , | xargs`",
  191. "module_name": "shell"
  192. },
  193. "rc": 0,
  194. "start": "2016-03-23 16:21:56.434238",
  195. "stderr": "",
  196. "stdout": "kube-master 172.28.128.3",
  197. "stdout_lines": [
  198. "kube-master 172.28.128.3"
  199. ],
  200. "warnings": []
  201. }
  202. }
  203. }
  204.  
  205. TASK: [Compile hosts and kube yamls] ******************************************
  206. changed: [localhost]
  207.  
  208. TASK: [Include hosts] *********************************************************
  209. ok: [localhost]
  210.  
  211. TASK: [Build local hosts file] ************************************************
  212. changed: [localhost] => (item={'key': 'kube-master', 'value': {'ipv4': '172.28.128.3'}})
  213.  
  214. TASK: [lineinfile dest=/etc/hosts regexp=".*mgmt.local$" line="{{ hostvars.localhost.hosts['kube-master'].ipv4 }} mgmt.local" state=present] ***
  215. changed: [localhost]
  216.  
  217. PLAY RECAP ********************************************************************
  218. localhost : ok=7 changed=4 unreachable=0 failed=0
  219.  
  220. BASH: [Cluster Configuration] *************************************************
  221. [WARNING]: provided hosts list is empty, only localhost is available
  222.  
  223.  
  224. PLAY [localhost] **************************************************************
  225.  
  226. GATHERING FACTS ***************************************************************
  227. ok: [localhost]
  228.  
  229. TASK: [Include hosts] *********************************************************
  230. ok: [localhost]
  231.  
  232. TASK: [Populate Ansible invetory master] **************************************
  233. ok: [localhost] => (item={'key': 'kube-master', 'value': {'ipv4': '172.28.128.3'}})
  234.  
  235. TASK: [Populate Ansible invetory nodes] ***************************************
  236. skipping: [localhost] => (item={'key': 'kube-master', 'value': {'ipv4': '172.28.128.3'}})
  237.  
  238. TASK: [get key for MGMNT] *****************************************************
  239. changed: [localhost]
  240.  
  241. TASK: [set_fact github_key="{{ github_key.stdout }}"] *************************
  242. ok: [localhost]
  243.  
  244. PLAY [localhost] **************************************************************
  245.  
  246. GATHERING FACTS ***************************************************************
  247. ok: [localhost]
  248.  
  249. TASK: [support/gcloud_local | Update local gcloud installation] ***************
  250. changed: [localhost]
  251.  
  252. TASK: [support/gcloud_local | Check your account] *****************************
  253. changed: [localhost]
  254.  
  255. TASK: [support/gcloud_local | Fail if account is not connected] ***************
  256. skipping: [localhost]
  257.  
  258. TASK: [support/gcloud_local | configuring] ************************************
  259. changed: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config set project oro-cloud-development)
  260. changed: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config set compute/region us-central)
  261. changed: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config set compute/zone us-central1-f)
  262. changed: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config list >> /tmp/gcloud.log)
  263.  
  264. TASK: [cluster/local_cloud | get build_timestamp] *****************************
  265. changed: [localhost]
  266.  
  267. TASK: [cluster/local_cloud | set build_timestamp] *****************************
  268. ok: [localhost]
  269.  
  270. TASK: [cluster/local_cloud | get build_version] *******************************
  271. changed: [localhost]
  272.  
  273. TASK: [cluster/local_cloud | set build_timestamp] *****************************
  274. ok: [localhost]
  275.  
  276. TASK: [cluster/local_cloud | cluster create] **********************************
  277. failed: [localhost] => {"changed": true, "cmd": "~/google-cloud-sdk/bin/gcloud container clusters create oro-local-cloud-v1-1458742928 --machine-type n1-highcpu-4 --scope \"https://www.googleapis.com/auth/compute\",\"https://www.googleapis.com/auth/devstorage.read_only\",\"https://www.googleapis.com/auth/sqlservice.admin\",\"https://www.googleapis.com/auth/logging.write\",\"https://www.googleapis.com/auth/monitoring\" --num-nodes 1", "delta": "0:00:02.236087", "end": "2016-03-23 16:22:16.364334", "rc": 1, "start": "2016-03-23 16:22:14.128247", "warnings": []}
  278. stderr: ERROR: (gcloud.container.clusters.create) ResponseError: code=403, message=Required "container.clusters.create" permission for "projects/oro-cloud-development".
  279. ...ignoring
  280.  
  281. TASK: [cluster/local_cloud | get cluster ip] **********************************
  282. changed: [localhost]
  283.  
  284. TASK: [cluster/local_cloud | register cluster] ********************************
  285. changed: [localhost]
  286.  
  287. TASK: [cluster/local_cloud | log credentials for registered cluster] **********
  288. failed: [localhost] => {"changed": true, "cmd": "~/google-cloud-sdk/bin/gcloud container clusters get-credentials oro-local-cloud-v1-1458742928 >> /tmp/gcloud.log", "delta": "0:00:02.108586", "end": "2016-03-23 16:22:23.262100", "rc": 1, "start": "2016-03-23 16:22:21.153514", "warnings": []}
  289. stderr: Fetching cluster endpoint and auth data.
  290. ERROR: (gcloud.container.clusters.get-credentials) ResponseError: code=403, message=Required "container.clusters.get" permission for "projects/oro-cloud-development/zones/us-central1-f/clusters/oro-local-cloud-v1-1458742928".
  291.  
  292. FATAL: all hosts have already failed -- aborting
  293.  
  294. PLAY RECAP ********************************************************************
  295. to retry, use: --limit @/home/dima/oro-cloud.retry
  296.  
  297. localhost : ok=17 changed=9 unreachable=0 failed=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement