Fixes bulk_update not returning errors from validation
Reapply requirements fix lost in the separated files

Previous commit msg:

New minimum greenlet version required, install in venv

Fixes: #8128
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Merge pull request #115 from inktankstorage/wip-8179

Fixes bulk_update not returning errors from validation
Merge pull request #114 from inktankstorage/wip-rhel-build

Changes to enable building on RHEL.
salt: Fix diamond config on RPM distros

Noticed this on Fedora, but it would have
been affecting RHEL and CentOS too: the
state was referring to a state defined
inside an 'if ubuntu'.

Signed-off-by: John Spray <john.spray@inktank.com>
cthulhu: Fix long running job handling

This was broken in a couple of ways:
 * The saltutil.running message was never getting sent
 * The branch for handling the responses was never
   getting called because it came after the check
   for FSID.

Fixes: #8308
tests: move sim log setup out of global

... so that we don't get spam to stdout when
running unit tests.

Signed-off-by: John Spray <john.spray@inktank.com>
calamari_rest: work around ceph's dodgy defaults

Ceph's default pool crush ruleset setting was giving us
grief:
 * It was quietly changed around in firefly such that
   the dumpling setting is set to -1 by default.
 * The value can be invalid, there's no checking in ceph
   that the ruleset ID actually exists, e.g. it's 0 by default
   but you can delete the 0 rule.

This change adds a conditional to pick out the firefly
value or the dumpling value, whichever actually corresponds
to a valid ruleset id.  If neither do, we pick the lowest
numbered ruleset.

Fixes: #8362

Signed-off-by: John Spray <john.spray@inktank.com>
rest-api: Validate crush_ruleset on pools

Signed-off-by: John Spray <john.spray@inktank.com>
update license to LGPL2.1+, copyright Red Hat

Signed-off-by: Sage Weil <sage@inktank.com>
Merge pull request #117 from inktankstorage/wip-8362

Wip 8362
Merge pull request #116 from inktankstorage/wip-8308

cthulhu: Fix long running job handling
salt: update comment on admin_socket

Signed-off-by: John Spray <john.spray@inktank.com>
Merge pull request #118 from inktankstorage/wip-license

update license to LGPL2.1+, copyright Red Hat
restrict timeout scaling during testing to a smaller set and reduce scaling factor

Signed-off-by: Gregory Meno <gregory.meno@inktank.com>
dateutils 2.x requires six

This had been masked by vagrant salt bootstrap pulling in six as
a secondlevel dependency of python-requests (to python-urllib3 to
python-six).  Broke install on centos, and presumably rhel.

Add a new "forced requirements" file with one entry so far; install
with -I/--ignore-installed, since the vagrant-salt-provisioned machines
will definitely have python-six in system packages, so must be forced
to install six.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Merge pull request #120 from inktankstorage/wip-python-dateutil

dateutils 2.x requires six
Merge pull request #119 from inktankstorage/wip-8249

restrict timeout scaling during testing to a smaller set and reduce scal...
tests: pyflakes violation

Signed-off-by: John Spray <john.spray@inktank.com>
cthulhu: Fix corner case where hostname==FQDN

Previously, if a server's hostname was equal to
its FQDN, and we had detected it passively via
the OSD map (i.e. managed=false), we would
subsequently fail to update its status to
managed=true when we saw a salt message
from the server.

Signed-off-by: John Spray <john.spray@inktank.com>