At one point this was being done to enable running postconfig separate
from a deployment, but that plan was abandoned in favor of having
puppet do the postconfig. It's still reasonable to factor out
generally useful code to a common place though.
Additionally, moving things into standalone functions makes them easier
to test independently. Yay easier testing!
Change-Id: I98e19cc29d69cbd6636cd4ce77a07c7a0e3dc048
The file_checksum function in tripleoclient/utils.py resulted in an
infinite loop in py34 due to the fact that that function was expecting
an empty character to finish the iteration. This is no longer the case
in py34. So instead, we now iterate the file until it can no longer read
anything. Even though it's more verbose; this works for both python 2.7
and 3.4.
Change-Id: I4849182992cac1209431a2147a83c9167d6a8af2
Closes-Bug: #1500592
This usage of parameters in utils.create_environment_file got missed as
part of the switch to parameter_defaults:
I2722e118abde1cea6210148b16ac1ed3d9f235d8
This was causing all the scale parameters to be set to 1, even if you
specified a higher number on the command line.
Change-Id: If7367c365c59ca0200dc7b643d8bbdfc7efa48fe
When deploying/scaling nodes, deployment nodes count was checked
against available nodes in ironic instead of all nodes (including
already used nodes).
Change-Id: Iddbffe7f4aad885abeeb97b1bd35e8828a581c64
Closes-Bug: rhbz#1260991