geerlingguy / drupalci-sonar-jenkins

DEPRECATED - Drupal CI environment with SonarQube and Jenkins for Drupal Core code analysis.
41 stars 16 forks source link

Provisioning fails with Munin-Node roles? #6

Closed tenken closed 9 years ago

tenken commented 9 years ago

Hi --

So at 1 point early today provisioning was failing regarding an unfound Munin-Node role. Seeing your install directions step (4) I infered like ansible-galaxy install geerlingguy.munin and also did ansible-galaxy install geerlingguy.munin-node to try and get the unkown role ...

After much headache i did vagant halt and using the Virtualbox UI removed the Guest including all Files from the Host system.

I then tried to create the whole blank VM again from scratch:

==> drupalci: Attempting graceful shutdown of VM...
✔ aw-dgurba ~/apps/drupalCI/drupalci-sonar-jenkins-master > vagrant up
Bringing machine 'drupalci' up with 'virtualbox' provider...
==> drupalci: Box 'geerlingguy/centos6' could not be found. Attempting to find and install...
    drupalci: Box Provider: virtualbox
    drupalci: Box Version: >= 0
==> drupalci: Loading metadata for box 'geerlingguy/centos6'
    drupalci: URL: https://atlas.hashicorp.com/geerlingguy/centos6
==> drupalci: Adding box 'geerlingguy/centos6' (v1.0.2) for provider: virtualbox
    drupalci: Downloading: https://atlas.hashicorp.com/geerlingguy/boxes/centos6/versions/1.0.2/providers/virtualbox.box
==> drupalci: Successfully added box 'geerlingguy/centos6' (v1.0.2) for 'virtualbox'!
==> drupalci: Importing base box 'geerlingguy/centos6'...
==> drupalci: Matching MAC address for NAT networking...
==> drupalci: Checking if box 'geerlingguy/centos6' is up to date...
==> drupalci: Setting the name of the VM: drupalci-sonar-jenkins-master_drupalci_1423003580233_31421
==> drupalci: Clearing any previously set network interfaces...
==> drupalci: Preparing network interfaces based on configuration...
    drupalci: Adapter 1: nat
    drupalci: Adapter 2: hostonly
==> drupalci: Forwarding ports...
    drupalci: 22 => 2222 (adapter 1)
==> drupalci: Running 'pre-boot' VM customizations...
==> drupalci: Booting VM...
==> drupalci: Waiting for machine to boot. This may take a few minutes...
    drupalci: SSH address: 127.0.0.1:2222
    drupalci: SSH username: vagrant
    drupalci: SSH auth method: private key
    drupalci: Warning: Connection timeout. Retrying...
==> drupalci: Machine booted and ready!
==> drupalci: Checking for guest additions in VM...
    drupalci: The guest additions on this VM do not match the installed version of
    drupalci: VirtualBox! In most cases this is fine, but in rare cases it can
    drupalci: prevent things such as shared folders from working properly. If you see
    drupalci: shared folder errors, please make sure the guest additions within the
    drupalci: virtual machine match the version of VirtualBox you have installed on
    drupalci: your host and reload your VM.
    drupalci: 
    drupalci: Guest Additions Version: 4.3.20
    drupalci: VirtualBox Version: 4.1
==> drupalci: Setting hostname...
==> drupalci: Configuring and enabling network interfaces...
==> drupalci: Mounting shared folders...
    drupalci: /vagrant => /home/dgurba/apps/drupalCI/drupalci-sonar-jenkins-master
==> drupalci: 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/dgurba/.vagrant.d/insecure_private_key --user=vagrant --connection=ssh --limit='drupalci' --inventory-file=provisioning/inventory-local --sudo provisioning/playbook.yml
ERROR: cannot find role in /home/dgurba/apps/drupalCI/drupalci-sonar-jenkins-master/provisioning/roles/geerlingguy.composer or /home/dgurba/apps/drupalCI/drupalci-sonar-jenkins-master/provisioning/geerlingguy.composer or /etc/ansible/roles/geerlingguy.composer
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

I'm not sure why any role is failing, this is ansible-galaxy list output:

✘ aw-dgurba ~/apps/drupalCI/drupalci-sonar-jenkins-master > ansible-galaxy list
- geerlingguy.ntp, 1.0.2
- geerlingguy.firewall, 1.0.4
- geerlingguy.repo-remi, 1.0.0
- geerlingguy.repo-epel, 1.0.2
- geerlingguy.sonar, 1.0.0
- geerlingguy.php-pear, 1.0.0
- geerlingguy.sonar-runner, 1.0.1
- geerlingguy.java, 1.0.4
- geerlingguy.munin-node, 1.1.4
- geerlingguy.munin, 1.0.1
- geerlingguy.jenkins, 1.1.2
- geerlingguy.php, 1.3.4
- geerlingguy.mysql, 1.4.2
- geerlingguy.git, 1.0.4

The host computer is Ubuntu 14.04 LTS.

geerlingguy commented 9 years ago

It looks like you're running an outdated version of VirtualBox now - 4.1. This box is configured to work with at least 4.3.20. Can you upgrade your VirtualBox version to the latest release and try again?