Test case with lxd
For more about lxd, see Stephane's tutorials from last year.
sudo apt install lxd
lxc init ubuntu:16.04 EXAMPLE
lxc config set EXAMPLE user.user-data - < cloud-init-config.yml
- (where cloud-init-config.yml contains a basic bootstrap)basic
lxc start EXAMPLE
debops init TESTING
cd TESTING
lxc ls will show you the IP address after the virtual machine boots
- Edit inventory/hosts to add the IP address
EXAMPLE ansible_ssh_host=128.66.0.100
debops -l EXAMPLE
What happens
The first time I run the debops script, it fails at the hidepid task. The second time I run it, it works.
This fails the first time every time I run a new virtual machine.
TASK [debops.console : Make sure that system group with access to /proc exists]
task path: /home/jeremy/.local/share/debops/debops-playbooks/roles/debops.console/tasks/proc_hidepid.yml:3
ok: [EXAMPLE] => {"changed": false, "gid": 995, "name": "procadmins", "state": "present", "system": true}
TASK [debops.console : Configure /proc with hidepid= in /etc/fstab] ************
task path: /home/jeremy/.local/share/debops/debops-playbooks/roles/debops.console/tasks/proc_hidepid.yml:10
fatal: [EXAMPLE]: FAILED! => {"changed": false, "failed": true, "msg": "Error mounting /proc: mount: cannot remount proc read-write, is write-protected\n"}
Test case with lxd
For more about lxd, see Stephane's tutorials from last year.
sudo apt install lxdlxc init ubuntu:16.04 EXAMPLElxc config set EXAMPLE user.user-data - < cloud-init-config.ymllxc start EXAMPLEdebops init TESTINGcd TESTINGlxc lswill show you the IP address after the virtual machine bootsEXAMPLE ansible_ssh_host=128.66.0.100debops -l EXAMPLEWhat happens
The first time I run the debops script, it fails at the hidepid task. The second time I run it, it works.
This fails the first time every time I run a new virtual machine.
TASK [debops.console : Make sure that system group with access to /proc exists]
task path: /home/jeremy/.local/share/debops/debops-playbooks/roles/debops.console/tasks/proc_hidepid.yml:3
ok: [EXAMPLE] => {"changed": false, "gid": 995, "name": "procadmins", "state": "present", "system": true}
TASK [debops.console : Configure /proc with hidepid= in /etc/fstab] ************
task path: /home/jeremy/.local/share/debops/debops-playbooks/roles/debops.console/tasks/proc_hidepid.yml:10
fatal: [EXAMPLE]: FAILED! => {"changed": false, "failed": true, "msg": "Error mounting /proc: mount: cannot remount proc read-write, is write-protected\n"}