Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BASH: [Init Vagrant (Virtualbox)] *************************************
- SUDO password:
- [WARNING]: provided hosts list is empty, only localhost is available
- PLAY [localhost] **************************************************************
- GATHERING FACTS ***************************************************************
- ok: [localhost]
- TASK: [Set Destination ( local )] *********************************************
- ok: [localhost]
- TASK: [Set Destination ( google )] ********************************************
- skipping: [localhost]
- TASK: [system/ubuntu/deb | Check if Virtualbox version is installed] **********
- skipping: [localhost]
- TASK: [system/ubuntu/deb | Installing {{ virtualbox.deb }}] *******************
- skipping: [localhost]
- TASK: [system/ubuntu/deb | Check if vagrant version is installed] *************
- skipping: [localhost]
- TASK: [system/ubuntu/deb | Installing vagrant_1.7.4_x86_64.deb] ***************
- skipping: [localhost]
- TASK: [support/fedora_pkgs | install original yum for fedora 23+] *************
- skipping: [localhost]
- TASK: [support/fedora_pkgs | Installing reqired packages] *********************
- ok: [localhost] => (item=VirtualBox,kmod-VirtualBox,vagrant,python-devel)
- TASK: [support/fedora_pkgs | load virtualbox modules] *************************
- changed: [localhost] => (item=vboxdrv)
- changed: [localhost] => (item=vboxnetflt)
- changed: [localhost] => (item=vboxnetadp)
- TASK: [support/gcloud | copy key json] ****************************************
- skipping: [localhost]
- TASK: [support/gcloud | file path="~/google-cloud-sdk" state=absent force=yes] ***
- skipping: [localhost]
- TASK: [support/gcloud | getting & installing] *********************************
- skipping: [localhost]
- TASK: [support/gcloud | configuring] ******************************************
- skipping: [localhost] => (item=~/google-cloud-sdk/bin/gcloud components update kubectl >> /tmp/gcloud.log)
- skipping: [localhost] => (item=~/google-cloud-sdk/bin/gcloud auth activate-service-account --key-file ~/account.json >> /tmp/gcloud.log)
- skipping: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config set project oro-cloud-development)
- skipping: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config set compute/region us-central)
- skipping: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config set compute/zone us-central1-f)
- skipping: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config list >> /tmp/gcloud.log)
- TASK: [cluster/cloud | get build_timestamp] ***********************************
- skipping: [localhost]
- TASK: [cluster/cloud | set build_timestamp] ***********************************
- skipping: [localhost]
- TASK: [cluster/cloud | get build_version] *************************************
- skipping: [localhost]
- TASK: [cluster/cloud | set build_timestamp] ***********************************
- skipping: [localhost]
- TASK: [cluster/cloud | cluster create] ****************************************
- skipping: [localhost]
- TASK: [cluster/cloud | get cluster ip] ****************************************
- skipping: [localhost]
- TASK: [cluster/cloud | register cluster] **************************************
- skipping: [localhost]
- TASK: [cluster/cloud | log credentials for registered cluster] ****************
- skipping: [localhost]
- TASK: [cluster/cloud | create mgmt instanse] **********************************
- skipping: [localhost]
- TASK: [cluster/cloud | get mgmt ip] *******************************************
- skipping: [localhost]
- TASK: [cluster/cloud | create sql instance] ***********************************
- skipping: [localhost]
- TASK: [cluster/cloud | get sql ip] ********************************************
- skipping: [localhost]
- TASK: [cluster/cloud | set hostname mgmt] *************************************
- skipping: [localhost]
- TASK: [cluster/cloud | set cluster params] ************************************
- skipping: [localhost]
- PLAY RECAP ********************************************************************
- localhost : ok=5 changed=1 unreachable=0 failed=0
- BASH: [Cluster Initialization] ************************************************
- Bringing machine 'kube-master' up with 'virtualbox' provider...
- ==> kube-master: Importing base box 'ubuntu/trusty64'...
- ==> kube-master: Matching MAC address for NAT networking...
- ==> kube-master: Checking if box 'ubuntu/trusty64' is up to date...
- ==> kube-master: A newer version of the box 'ubuntu/trusty64' is available! You currently
- ==> kube-master: have version '20160318.0.0'. The latest is version '20160320.0.0'. Run
- ==> kube-master: `vagrant box update` to update.
- ==> kube-master: Setting the name of the VM: vagrant_kube-master_1458742880230_52897
- ==> kube-master: Clearing any previously set forwarded ports...
- ==> kube-master: Clearing any previously set network interfaces...
- ==> kube-master: Preparing network interfaces based on configuration...
- kube-master: Adapter 1: nat
- kube-master: Adapter 2: hostonly
- ==> kube-master: Forwarding ports...
- kube-master: 22 => 2222 (adapter 1)
- ==> kube-master: Running 'pre-boot' VM customizations...
- ==> kube-master: Booting VM...
- ==> kube-master: Waiting for machine to boot. This may take a few minutes...
- kube-master: SSH address: 127.0.0.1:2222
- kube-master: SSH username: vagrant
- kube-master: SSH auth method: private key
- kube-master: Warning: Connection timeout. Retrying...
- kube-master: Warning: Remote connection disconnect. Retrying...
- ==> kube-master: Machine booted and ready!
- ==> kube-master: Checking for guest additions in VM...
- ==> kube-master: Setting hostname...
- ==> kube-master: Configuring and enabling network interfaces...
- ==> kube-master: Running provisioner: ansible...
- 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
- PLAY [master] *****************************************************************
- TASK: [create master key] *****************************************************
- changed: [kube-master]
- TASK: [set public key] ********************************************************
- changed: [kube-master]
- TASK: [set_fact vagrant_pub_key={{ vagrant_pub_key.stdout_lines }}] ***********
- ok: [kube-master]
- PLAY [kube] *******************************************************************
- GATHERING FACTS ***************************************************************
- ok: [kube-master]
- TASK: [debug var=hostvars['kube-master'].vagrant_pub_key] *********************
- ok: [kube-master] => {
- "var": {
- "hostvars['kube-master'].vagrant_pub_key": [
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDiDqDcWPRe4pqGXdZWbSIsqwkd0nY6YPv8uP2qTMYpajigIljtqSTRuOw/neNCk8JiS4Z71P9xB4Ka0SJTW43sYhf2jMuAECy8oFEtyw7QZVBQTHAaY/igwuDLyBbOh77RODADruVw3tiZBP8u9IhrGye6umpVeLuylEuA0nBjc3o59axJK5V5iLpVnYBoAajQE3F/BVrgGEDtU29ATpuA15rLEBKG5Wg6ScvxO2a4CToAg0a7bZGet1N9YDEMcl5cPXy2LE5LVrSjzQNay+lQnQ3mTt687PLQlidhvilhE8OTuop5UUSG2AXvOa5r4kwaYX9fqvgzehj5PA2bWhGP ansible-generated on kube-master"
- ]
- }
- }
- TASK: [build hosts file] ******************************************************
- changed: [kube-master] => (item=kube-master)
- TASK: [provide pub keys] ******************************************************
- changed: [kube-master] => (item=ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDiDqDcWPRe4pqGXdZWbSIsqwkd0nY6YPv8uP2qTMYpajigIljtqSTRuOw/neNCk8JiS4Z71P9xB4Ka0SJTW43sYhf2jMuAECy8oFEtyw7QZVBQTHAaY/igwuDLyBbOh77RODADruVw3tiZBP8u9IhrGye6umpVeLuylEuA0nBjc3o59axJK5V5iLpVnYBoAajQE3F/BVrgGEDtU29ATpuA15rLEBKG5Wg6ScvxO2a4CToAg0a7bZGet1N9YDEMcl5cPXy2LE5LVrSjzQNay+lQnQ3mTt687PLQlidhvilhE8OTuop5UUSG2AXvOa5r4kwaYX9fqvgzehj5PA2bWhGP ansible-generated on kube-master)
- changed: [kube-master] => (item=ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZgND0KAd2b62fv4WJ69+BOfwqa+SEeoSKXgQ8qeYZROHB8/7Dk9PSdivbPWm1zQdjnDNwoKYn9YJUXmk+PY5A+m7yiUORXKPgqFwC5gb4MeAOM+dR/ZcUCqy7aXu7s623qn0/EPbsRQDC3vRCTncnnfaxx5QzMaWABrBpqmJFhijf5lwvxgQZBBQXOjlU0Q2ioFtyYthS+1jsC8GkxORpJ6MHt7DAajMhaMQlbcTMJ4RlbREPv1YQ/mJlJW+pqtHx1P8ad8bCFo3BjgBJhRo1h+OEPpJgY/vBziZvvUrJV3c+kQK43lhhPNdrkpEa3oYPAN3jinjKDX25FgT6A2fr dmitriy@localhost.localdomain)
- PLAY RECAP ********************************************************************
- kube-master : ok=7 changed=4 unreachable=0 failed=0
- BASH: [Cluster Lookup] ********************************************************
- SUDO password:
- [WARNING]: provided hosts list is empty, only localhost is available
- PLAY [localhost] **************************************************************
- GATHERING FACTS ***************************************************************
- ok: [localhost]
- TASK: [Get Vagrant hosts] *****************************************************
- changed: [localhost]
- TASK: [debug var=vagrant_hosts] ***********************************************
- ok: [localhost] => {
- "var": {
- "vagrant_hosts": {
- "changed": true,
- "cmd": "echo ` $ANSIBLE_RUN -i $ANSIBLE_INV -a $ANSIBLE_FLT -u $ANSIBLE_USR | $ANSIBLE_EGR | awk '{print $2}' | tr -d , | xargs`",
- "delta": "0:00:02.418382",
- "end": "2016-03-23 16:21:58.852620",
- "invocation": {
- "module_args": "echo ` $ANSIBLE_RUN -i $ANSIBLE_INV -a $ANSIBLE_FLT -u $ANSIBLE_USR | $ANSIBLE_EGR | awk '{print $2}' | tr -d , | xargs`",
- "module_name": "shell"
- },
- "rc": 0,
- "start": "2016-03-23 16:21:56.434238",
- "stderr": "",
- "stdout": "kube-master 172.28.128.3",
- "stdout_lines": [
- "kube-master 172.28.128.3"
- ],
- "warnings": []
- }
- }
- }
- TASK: [Compile hosts and kube yamls] ******************************************
- changed: [localhost]
- TASK: [Include hosts] *********************************************************
- ok: [localhost]
- TASK: [Build local hosts file] ************************************************
- changed: [localhost] => (item={'key': 'kube-master', 'value': {'ipv4': '172.28.128.3'}})
- TASK: [lineinfile dest=/etc/hosts regexp=".*mgmt.local$" line="{{ hostvars.localhost.hosts['kube-master'].ipv4 }} mgmt.local" state=present] ***
- changed: [localhost]
- PLAY RECAP ********************************************************************
- localhost : ok=7 changed=4 unreachable=0 failed=0
- BASH: [Cluster Configuration] *************************************************
- [WARNING]: provided hosts list is empty, only localhost is available
- PLAY [localhost] **************************************************************
- GATHERING FACTS ***************************************************************
- ok: [localhost]
- TASK: [Include hosts] *********************************************************
- ok: [localhost]
- TASK: [Populate Ansible invetory master] **************************************
- ok: [localhost] => (item={'key': 'kube-master', 'value': {'ipv4': '172.28.128.3'}})
- TASK: [Populate Ansible invetory nodes] ***************************************
- skipping: [localhost] => (item={'key': 'kube-master', 'value': {'ipv4': '172.28.128.3'}})
- TASK: [get key for MGMNT] *****************************************************
- changed: [localhost]
- TASK: [set_fact github_key="{{ github_key.stdout }}"] *************************
- ok: [localhost]
- PLAY [localhost] **************************************************************
- GATHERING FACTS ***************************************************************
- ok: [localhost]
- TASK: [support/gcloud_local | Update local gcloud installation] ***************
- changed: [localhost]
- TASK: [support/gcloud_local | Check your account] *****************************
- changed: [localhost]
- TASK: [support/gcloud_local | Fail if account is not connected] ***************
- skipping: [localhost]
- TASK: [support/gcloud_local | configuring] ************************************
- changed: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config set project oro-cloud-development)
- changed: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config set compute/region us-central)
- changed: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config set compute/zone us-central1-f)
- changed: [localhost] => (item=~/google-cloud-sdk/bin/gcloud config list >> /tmp/gcloud.log)
- TASK: [cluster/local_cloud | get build_timestamp] *****************************
- changed: [localhost]
- TASK: [cluster/local_cloud | set build_timestamp] *****************************
- ok: [localhost]
- TASK: [cluster/local_cloud | get build_version] *******************************
- changed: [localhost]
- TASK: [cluster/local_cloud | set build_timestamp] *****************************
- ok: [localhost]
- TASK: [cluster/local_cloud | cluster create] **********************************
- 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": []}
- stderr: ERROR: (gcloud.container.clusters.create) ResponseError: code=403, message=Required "container.clusters.create" permission for "projects/oro-cloud-development".
- ...ignoring
- TASK: [cluster/local_cloud | get cluster ip] **********************************
- changed: [localhost]
- TASK: [cluster/local_cloud | register cluster] ********************************
- changed: [localhost]
- TASK: [cluster/local_cloud | log credentials for registered cluster] **********
- 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": []}
- stderr: Fetching cluster endpoint and auth data.
- 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".
- FATAL: all hosts have already failed -- aborting
- PLAY RECAP ********************************************************************
- to retry, use: --limit @/home/dima/oro-cloud.retry
- localhost : ok=17 changed=9 unreachable=0 failed=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement