redhat-openstack / infrared

Plugin based framework that aims to provide an easy-to-use CLI for Ansible based projects
https://infrared.readthedocs.io/en/latest/index.html
Apache License 2.0
100 stars 96 forks source link

TripleO undercloud ver 10 failure: undefined variable 'install.build' #313

Closed FedericoRessi closed 6 years ago

FedericoRessi commented 6 years ago

When deploying undercloud version 10 on "clean" RHEL 7.4 virsh based hypervisor fails because install.build attribute is not defined.

How to reproduce

1) Checkout infrared source code:

git clone https://github.com/redhat-openstack/infrared.git
cd infrared
git checkout 2.0.0-1993-g33391dd

2) create a python 2.7 virtual env for infrared, activate it and update packages

virtualenv .venv
source .venv/bin/activate
pip install -U pip setuptools

3) Install infrared in the virtualenv

pip install -U .

4) Prepare a clean hypervisor machine with RHEL 7.4 5) Copy your SSH key to remote machine

ssh-copy-id -i ~/.ssh/id_rsa root@<your-hypervisor-host-address>

5) Install infrared plugins

infrared plugin add plugins/virsh
infrared plugin add plugins/tripleo-undercloud

6) Prepare hypervisor using infrared

infrared virsh --host-address <your-hypervisor-host-address> --host-key ~/.ssh/id_rsa --topology-nodes "undercloud:1,controller:1,compute:1" --host-user root

7) Deploy overcloud version 10

infrared tripleo-undercloud --version 10

Last step will fail here because install.build is undefined.

FedericoRessi commented 6 years ago

I had success deploying undercloud after applying this patch: infrared-313-patch.txt

FedericoRessi commented 6 years ago

A fix for this bug is being written and thested: https://review.gerrithub.io/#/c/403470/

FedericoRessi commented 6 years ago

While testing patch for this issue I hit Issue #314 which described workaround can be applied to test the fix for this issue.