Skip to content

hidepid task fails first time #38

Description

@jbicha

Test case with lxd

For more about lxd, see Stephane's tutorials from last year.

  1. sudo apt install lxd
  2. lxc init ubuntu:16.04 EXAMPLE
  3. lxc config set EXAMPLE user.user-data - < cloud-init-config.yml
  4. (where cloud-init-config.yml contains a basic bootstrap)basic
  5. lxc start EXAMPLE
  6. debops init TESTING
  7. cd TESTING
  8. lxc ls will show you the IP address after the virtual machine boots
  9. Edit inventory/hosts to add the IP address
    EXAMPLE ansible_ssh_host=128.66.0.100
  10. 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"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions