Running against localhost does not work

Bug #1584084 reported by John Trowbridge on 2016-05-20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

Currently, running against localhost does not work.

I have tried both as the root user:

bash --no-clone localhost
TASK [setup/undercloud : Start undercloud vm] **********************************
task path: /root/tripleo-quickstart/playbooks/roles/libvirt/setup/undercloud/tasks/main.yml:133
Friday 20 May 2016 14:35:36 +0000 (0:00:00.121) 0:01:56.050 ************
fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "Cannot access storage file '/root/.quickstart/pool/undercloud.qcow2' (as uid:107, gid:107): Permission denied"}

And as the stack user:

bash --no-clone localhost
TASK [setup/undercloud : Create undercloud volume] *****************************
task path: /home/stack/tripleo-quickstart/playbooks/roles/libvirt/setup/undercloud/tasks/main.yml:104
Friday 20 May 2016 14:30:53 +0000 (0:00:59.959) 0:01:36.090 ************
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["virsh", "vol-create-as", "oooq_pool", "undercloud.qcow2", "50G", "--format", "qcow2"], "delta": "0:00:00.009376", "end": "2016-05-20 14:30:53.270284", "failed": true, "rc": 1, "start": "2016-05-20 14:30:53.260908", "stderr": "error: failed to connect to the hypervisor\nerror: no valid connection\nerror: Cannot create user runtime directory '/run/user/1002/libvirt': Permission denied", "stdout": "", "stdout_lines": [], "warnings": []}

There is a patch up ( that fixes this by ssh'ing to localhost ( instead of using the anisble local connection, but I think it is worth looking at whether we could fix this in a way that we maintain the ability to use ansible local connection when running against localhost.

After fixing this, we want to add a CI job so as not to regress again:

John Trowbridge (trown) on 2016-05-20
Changed in tripleo-quickstart:
status: New → Triaged
importance: Undecided → Critical
wes hayutin (weshayutin) wrote :
Changed in tripleo-quickstart:
assignee: nobody → wes hayutin (weshayutin)
assignee: wes hayutin (weshayutin) → nobody
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers