undercloud configured to use wrong ssh configuration

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

Bug Description

When deploying an environment using a pre-existing inventory, such as:

  myvirthost ansible_user=notstack

There is no ansible_private_key_file variable set (because the key may be provided by the local ssh agent, etc). Unfortunately, the presence or absence of this variable is used to determine whether or not to use ssh.config.ansible vs. ssh.config.local.ansible.

In the above situation, the playbooks will select the wrong configuration, and connects to the undercloud will fail.

Tags: quickstart
Revision history for this message
wes hayutin (weshayutin) wrote :

an alternative could be to set a virthost variable in the quickstart.sh ansible invocation that is set to the shell variable VIRTHOST. We could then make decisions based on that -e virthost var.

Revision history for this message
wes hayutin (weshayutin) wrote :

The when statement in [1] could be replace w/ when: virthost == 'localhost'

[1] https://github.com/redhat-openstack/ansible-role-tripleo-inventory/blob/master/tasks/main.yml#L64

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/441562

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
tags: added: quickstart
no longer affects: tripleo-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/441562
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.