You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the user doing vagrant up has a different uid than 1000, the /vagrant directory
is not writeable by ansible. This only happens when using the lxc vagrant provider.
Reproduction Steps:
Use a drifter role which writes to the /vagrant directory, e.g. django + postgresql
Login with a user with another user id than 1000 (create a second user)
vagrant up --provider lxc
Expected behavior:
/vagrant directory is writeable
Observed behavior:
/vagrant directory is not writeable because it has a different owner than the vagrant user inside
the vm:
TASK: [django | fill in DATABASE_URL setting] *********************************
failed: [default] => {"checksum": "2048f78383d79925c8c50b146cc80c3e555c986e", "failed": true}
msg: Destination /vagrant//envdir not writable
Drifter version:688778c Vagrant version: 1.8.4 OS and version: Ubuntu 16.04.1 LTS
Additional information:
Problem started happening recently, didn't happen in an older version of Drifter: No
Problem can be reliably reproduced, doesn't happen randomly: Yes
Problem happens to my colleagues aswell or only me: Yes
The text was updated successfully, but these errors were encountered:
Unfortunately this doesn't seem related to Drifter but to LXC / vagrant-lxc. Have you tried setting lxc.id_map in your LXC configuration? From the lxc.container.conf manpage:
lxc.id_map
Four values must be provided. First a character, either 'u', or 'g', to specify whether user or group ids are being mapped. Next is the first userid as seen in the user namespace of the container. Next is the userid as seen on the host. Finally, a range indicating the number of consecutive ids to map.
When the user doing vagrant up has a different uid than 1000, the /vagrant directory
is not writeable by ansible. This only happens when using the lxc vagrant provider.
Reproduction Steps:
Expected behavior:
/vagrant directory is writeable
Observed behavior:
/vagrant directory is not writeable because it has a different owner than the vagrant user inside
the vm:
Drifter version: 688778c
Vagrant version: 1.8.4
OS and version: Ubuntu 16.04.1 LTS
Additional information:
The text was updated successfully, but these errors were encountered: