ssh configuration uses wrong user

Bug #1631120 reported by Lars Kellogg-Stedman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Invalid
High
Unassigned

Bug Description

The ssh configuration generated by oooq uses in many places:

   {{ ansible_user }}@{{ hostvars[groups['virthost'][0]].ansible_host }}

This works with the default configuration because ansible_user on the virthost is the same as ansible_user on the undercloud. However, when ansible_user on the virthost is not "stack", this will break.

This problem crops up both in roles/tripleo-inventory/tasks/main.yml as well as in the ssh_config.j2 template(s).

Tags: quickstart
Revision history for this message
Lars Kellogg-Stedman (larsks) wrote :

In these situations, the configuration should probably be using hostvars[groups['virhost'][0]].ansible_user.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-quickstart (master)

Fix proposed to branch: master
Review: https://review.openstack.org/441561

Changed in tripleo-quickstart:
assignee: nobody → Lars Kellogg-Stedman (larsks)
status: New → In Progress
Revision history for this message
John Trowbridge (trown) wrote :

moved to tripleo launchpad with quickstart tag

Changed in tripleo:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Lars Kellogg-Stedman (larsks)
milestone: none → pike-1
no longer affects: tripleo-quickstart
tags: added: quickstart
Changed in tripleo:
milestone: pike-1 → pike-2
Changed in tripleo:
milestone: pike-2 → pike-3
Changed in tripleo:
milestone: pike-3 → pike-rc1
Changed in tripleo:
milestone: pike-rc1 → pike-rc2
Changed in tripleo:
milestone: pike-rc2 → queens-1
Changed in tripleo:
milestone: queens-1 → queens-2
Changed in tripleo:
milestone: queens-2 → queens-3
Changed in tripleo:
milestone: queens-3 → queens-rc1
Changed in tripleo:
milestone: queens-rc1 → rocky-1
Changed in tripleo:
milestone: rocky-1 → rocky-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on tripleo-quickstart (master)

Change abandoned by Sagi Shnaidman (<email address hidden>) on branch: master
Review: https://review.openstack.org/441561
Reason: According to TripleO policy of patch abandonment https://github.com/openstack/tripleo-specs/blob/master/specs/policy/patch-abandomment.rst, this patch is abandoned. If you would like to continue to work on it, please ask for restoration either on #tripleo in Freenode IRC, or openstack dev mailing list - <email address hidden> with [TripleO] in subject. Thanks.

Changed in tripleo:
milestone: rocky-2 → rocky-3
Revision history for this message
Lars Kellogg-Stedman (larsks) wrote :

This is an old bug and who knows if it's still valid. I don't seem to be able to close it, but I am abandoning ownership of it.

Changed in tripleo:
assignee: Lars Kellogg-Stedman (larsks) → nobody
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.