Tuesday, March 31, 2015

Openstack Devstack Heat problem

The proper solution is probably to start fresh from a clean install.

A few months back, I started running the Devstack's stack.sh installer on a CentOS 7 box. It failed and then I was distracted by other work. Today, I tried to resume.

Updating devstack doesn't update everything. All the git directories under /opt/stack should be updated as well.
for d in /opt/stack; do (cd $d; git pull); done
Then there was an issue with heat not installing. It seems that devstack uses /opt/stack/requirements/update.py to clobber the /opt/stack/heat/requirements.txt file. oslo.versionedobjects is no longer specified, and heat-manage db_sync fails. I don't know how oslo.versionedobjects got dropped, because it is included in the /opt/stack/requirements/global-requirements.txt.

Anyway, I modified the /opt/stack/heat/requirements.txt copy from git (git checkout) to add a second newline at the beginning. That means git diff shows a difference, and stack.sh skips calling /opt/stack/requirements/update.py.

heat installation proceeds, but now tempest failed with "ERROR: venv: commands failed"

Sigh.

No comments: