10 Commits

Author SHA1 Message Date
Jenkins
e7829bc661 Merge "Move common functions out into utils.py" 2015-10-14 10:27:46 +00:00
Ryan S. Brown
4b648b913c Move common functions out into utils.py
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
2015-10-12 18:24:19 +00:00
Jenkins
827659b6ac Merge "Replace generate password for alternative in passlib" 2015-10-07 07:33:44 +00:00
Juan Antonio Osorio Robles
24d57b6743 Fix file checksum function in for python 3.4
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
2015-09-29 12:00:53 +03:00
Juan Antonio Osorio Robles
71baeb22b0 Replace generate password for alternative in passlib
The passlib library which is in global-requirements already contains a
password generation utility function[1], so I added that one instead of
having our own implementation.

[1] http://pythonhosted.org/passlib/lib/passlib.utils.html#passlib.utils.generate_password

Change-Id: I2422f77cd77db03e1a8c3f95b1d5431bd95e5088
2015-09-28 14:30:14 +03:00
James Slagle
7410757547 Use parameter_defaults everywhere
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
2015-09-23 20:14:05 -04:00
Jenkins
db54dc766b Merge "Fix checking of available nodes" 2015-09-23 11:52:55 +00:00
John Trowbridge
7fee678947 Refactor for discoverd rename to inspector
The ironic-discoverd project was renamed to
ironic-inspector in liberty.

Change-Id: Id4855d9f4275912440f197f900a59fe5e3bea693
Closes-Bug: 1496937
2015-09-18 13:15:07 -04:00
Jan Provaznik
70ac69a02d Fix checking of available nodes
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
2015-09-18 12:01:19 +00:00
Brad P. Crochet
12edde8a53 Rename rdomanager_oscplugin to tripleoclient
Change-Id: I4593a5248160204645d567d7f2fa3a396629082b
2015-09-08 10:22:22 -04:00