redhat-openstack / tripleo-quickstart

Ansible roles for setting up TripleO virtual environments and building images
16 stars 15 forks source link

Ironic pxe_ssh driver configuration happens too late #65

Closed trown closed 8 years ago

trown commented 8 years ago

We are using qemu://session to manage the overcloud VMs, which requires a change to the Ironic pxe_ssh driver configuration[1]. However, by doing this in the undercloud-install.sh script, we break someone following the instructions to "Run openstack undercloud install, then follow upstream instructions."[2]

Instead, we should do this ironic configuration at the end of the libvirt role, so that the alternative instructions work again.

[1] https://github.com/redhat-openstack/tripleo-quickstart/blob/master/playbooks/roles/tripleo/undercloud/templates/undercloud-install.sh.j2#L10-L17 [2] https://www.redhat.com/archives/rdo-list/2016-March/msg00171.html

trown commented 8 years ago

The fact that we are defaulting the libvirt_uri var in the libvirt role[1], but using it in the tripleo/undercloud role is further evidence we are doing it in the wrong place.

[1] https://github.com/redhat-openstack/tripleo-quickstart/blob/master/playbooks/roles/libvirt/defaults/main.yml

larsks commented 8 years ago

We need this value in both the libvirt role and in the undercloud configuration. If we're planning on moving the tripleo/* roles out of tripleo-quickstart, this suggests that the libvirt/* roles are the right place for it...and we also need the same setting in tripleo/undercloud.

Does that make sense?

trown commented 8 years ago

Actually, after moving the ironic config step in https://review.gerrithub.io/#/c/270892 we no longer use libvirt_uri outside of the libvirt roles.