Opened on 07/29/2015 at 04:51:28 PM

Closed on 11/22/2016 at 04:33:54 PM

Last modified on 11/28/2016 at 08:25:57 AM

#2835 closed defect (fixed)

Find alternative setup for sharing data with VirtualBox

Reported by: matze Assignee: poz2k4444
Priority: P2 Milestone:
Module: Infrastructure Keywords:
Cc: fred, fhd Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

https://codereview.adblockplus.org/29363649/

Description

The shared file-system built into VirtualBox sometimes does not recognize updates on the host side properly:

vagrant@filtermaster1:~$ ls -la /etc/puppet/infrastructure/modules/private/hiera/roles/
ls: cannot access /etc/puppet/infrastructure/modules/private/hiera/roles/filtermasterserver.yaml: No such file or directory
total 8
drwxr-xr-x 1 vagrant vagrant  92 Jul 29 15:19 .
drwxr-xr-x 1 vagrant vagrant  51 Jul 29 14:55 ..
-rw-r--r-- 1 vagrant vagrant 351 Jun 15 12:57 codereviewserver.yaml
?????????? ? ?       ?         ?            ? filtermasterserver.yaml
-rw-r--r-- 1 vagrant vagrant 434 Jun  3 07:40 monitoringserver.yaml

While this is actually a known issue with VirtualBox (Vagrant recommends using NFS instead, but who wants to operate an NFS server on the own laptop or workstation?) that happens just a few times per week (when working with that stuff every day), it's always a very time consuming issue - because it's usually not obvious and one wastes hours debugging senseless results.

However, we may be able to reduce the probability of such issues by slightly adjusting our setup, e.g. trying some alternatives for this part of the Vagrantfile:

# The repository location in the production system's puppet master          
config.vm.synced_folder ".", "/etc/puppet/infrastructure" 

Last but not least; the above example has occurred during #2814 and caused us not realizing a regression (or rather us not realizing the regression during testing), which actually got pushed..

Attachments (0)

Change History (3)

comment:1 Changed on 11/21/2016 at 02:35:25 PM by paco

  • Owner set to poz2k4444
  • Review URL(s) modified (diff)

comment:2 Changed on 11/22/2016 at 04:33:54 PM by paco

  • Resolution set to fixed
  • Status changed from new to closed

comment:3 Changed on 11/28/2016 at 08:25:57 AM by abpbot

A commit referencing this issue has landed:
Issue 2835 - Use rsync for folder synchronization in Vagrant

Add Comment

Modify Ticket

Change Properties
Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from poz2k4444.
 
Note: See TracTickets for help on using tickets.