NuCivic / ansible-dev-vm

8 stars 5 forks source link

provision and resize fail #55

Open janette opened 9 years ago

janette commented 9 years ago

_error on vagrant provision_

TASK: [nucivic | Setup | Install required packages.] ************************** 
failed: [nucvicdev] => (item=figlet,ctags,unzip,vim,git,curl) => {"failed": true, "item": "figlet,ctags,unzip,vim,git,curl"}
stderr: E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

stdout: Reading package lists...
Building dependency tree...
Reading state information...
exuberant-ctags is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 linux-image-extra-3.16.0-50-generic : Depends: linux-image-3.16.0-50-generic but it is not going to be installed
 linux-image-generic-lts-utopic : Depends: linux-image-3.16.0-50-generic but it is not going to be installed

msg: '/usr/bin/apt-get -y -o "Dpkg::Options::=--force-confdef" -o "Dpkg::Options::=--force-confold"   install 'ctags'' failed: E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

FATAL: all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/Users/janette/playbook.retry

nucvicdev                  : ok=132  changed=4    unreachable=0    failed=1   

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

_unable to resize vm_ • currently 19G, only 3G available which causes mysql to crash often • running apt-get -f install from above errors due to size problem (No space left on device)

Unpacking linux-image-3.16.0-50-generic (3.16.0-50.67~14.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-3.16.0-50-generic_3.16.0-50.67~14.04.1_amd64.deb (--unpack):
 cannot copy extracted data for './boot/System.map-3.16.0-50-generic' to '/boot/System.map-3.16.0-50-generic.dpkg-new': failed to write (No space left on device)
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.16.0-50-generic /boot/vmlinuz-3.16.0-50-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.16.0-50-generic /boot/vmlinuz-3.16.0-50-generic
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-3.16.0-51-generic_3.16.0-51.69~14.04.1_amd64.deb
 /var/cache/apt/archives/linux-image-3.16.0-50-generic_3.16.0-50.67~14.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
janette commented 9 years ago
screenshot_11_2_15__9_30_pm screenshot_11_3_15__12_13_am
janette commented 9 years ago

Upgraded: macOS: 10.10.5 XQuartz: 2.7.8 vmware: 6.0.6 xcode: 7.1

_Attempt to create a new vm_ git clone the repo into 'ansible-vm' copy config.yml.sample to config.yml vagrant provision ==> nucvicdev: VM not created. Moving on...

janette commented 9 years ago
sudo rm /etc/exports
sudo touch /etc/exports
exit
vagrant halt
vagrant up --provision

result:

NFS is reporting that your exports file is invalid. Vagrant does
this check before making any changes to the file. Please correct
the issues below and execute "vagrant reload":

exports:2: path contains non-directory or non-existent components: /Users/janette/nuams-vm/www
exports:2: no usable directories in export entry
exports:2: using fallback (marked offline): /
exports:5: path contains non-directory or non-existent components: /Users/janette/nucivic/www
exports:5: no usable directories in export entry
exports:5: using fallback (marked offline): /
exports:8: path contains non-directory or non-existent components: /Users/janette/nuams-vm2/www
exports:8: no usable directories in export entry
exports:8: using fallback (marked offline): /

these are old vm directories that I've deleted

janette commented 9 years ago

2nd attempt at creating a new vm

jday:ansible-vm janette$ vagrant up --provision
Bringing machine 'nucvicdev' up with 'vmware_fusion' provider...
==> nucvicdev: Box 'dkinzer/ansible-dev-vm' could not be found. Attempting to find and install...
    nucvicdev: Box Provider: vmware_desktop, vmware_fusion, vmware_workstation
    nucvicdev: Box Version: >= 0
==> nucvicdev: Loading metadata for box 'dkinzer/ansible-dev-vm'
    nucvicdev: URL: https://vagrantcloud.com/dkinzer/ansible-dev-vm
==> nucvicdev: Adding box 'dkinzer/ansible-dev-vm' (v0.0.4) for provider: vmware_desktop
    nucvicdev: Downloading: https://vagrantcloud.com/dkinzer/boxes/ansible-dev-vm/versions/0.0.4/providers/vmware_desktop.box
==> nucvicdev: Successfully added box 'dkinzer/ansible-dev-vm' (v0.0.4) for 'vmware_desktop'!
==> nucvicdev: Cloning VMware VM: 'dkinzer/ansible-dev-vm'. This can take some time...
==> nucvicdev: Checking if box 'dkinzer/ansible-dev-vm' is up to date...
==> nucvicdev: Verifying vmnet devices are healthy...
==> nucvicdev: Preparing network adapters...
==> nucvicdev: Fixed port collision for 22 => 2222. Now on port 2200.
==> nucvicdev: Starting the VMware VM...
==> nucvicdev: Waiting for machine to boot. This may take a few minutes...
    nucvicdev: SSH address: 192.168.2.139:22
    nucvicdev: SSH username: vagrant
    nucvicdev: SSH auth method: private key
==> nucvicdev: Machine booted and ready!
==> nucvicdev: Forwarding ports...
    nucvicdev: -- 22 => 2200
==> nucvicdev: Setting hostname...
==> nucvicdev: Configuring network adapters within the VM...
==> nucvicdev: Installing NFS client...
==> nucvicdev: Exporting NFS shared folders...
NFS is reporting that your exports file is invalid. Vagrant does
this check before making any changes to the file. Please correct
the issues below and execute "vagrant reload":

exports:2: path contains non-directory or non-existent components: /Users/janette/nuams-vm/www
exports:2: no usable directories in export entry
exports:2: using fallback (marked offline): /
exports:5: path contains non-directory or non-existent components: /Users/janette/nucivic/www
exports:5: no usable directories in export entry
exports:5: using fallback (marked offline): /
exports:8: path contains non-directory or non-existent components: /Users/janette/nuams-vm2/www
exports:8: no usable directories in export entry
exports:8: using fallback (marked offline): /
dkinzer commented 9 years ago

So provisioning worked but we would still like this image to be bigger. I'll address that with a change to the packer instructions.

acouch commented 9 years ago

@janette are you making this in a new directory or the same one?

acouch commented 9 years ago

Lets do this in Pluto https://github.com/NuCivic/pluto/issues/106