Test changes to TripleO's undercloud
by Juan Antonio Osorio Robles
In a previous post I covered how to make changes in puppet-tripleo and test them in the undercloud. However, I now realized that making changes to the undercloud itself is not as straight forward.
Thankfully, the script that I’ve been mentioning so much in my previous post is a great help for this. Note that this assumes that you have cloned the tripleo-ci repository in the home directory.
First off, if we need to set the delorean environment in order to build packages:
This will leave us with a directory called tripleo in the home directory.
Then, we need to run the following:
So, if we want to make a change to the instack-undercloud code-base. We need to do the following:
We will now have a directory called instack-undercloud inside the tripleo directory. Here we can make the changes that we need, or pull the changes that we have already uploaded to gerrit.
Once we have the changes we need in that directory, it’s a matter of running –delorean-build again to build the package we need.
I usually just search for the package:
And finally just overwrite the previous package I had installed:
Now, to run the undercloud installation again with the latest puppet manifests, we do the following:
Note:
Depending on the type of change you’re doing, you might need to change the undercloud’s deployment configuration. You can do this by changing the undercloud.conf file in the home directory (at least as deployed by tripleo-quickstart). So make sure that you make those changes to that file before running the –undercloud command from tripleo.sh.
tags: tripleo - openstack