18562: Fix UsePreemptibleInstances behavior.
authorTom Clegg <tom@curii.com>
Wed, 22 Dec 2021 22:49:23 +0000 (17:49 -0500)
committerTom Clegg <tom@curii.com>
Wed, 22 Dec 2021 22:49:23 +0000 (17:49 -0500)
commit63b40a5af92aef28d8416c945ffc7c9805ae8d7d
tree13d51a534470ccb5807c7b4aabb952a5b267f036
parente67d7d52092ba61e272a597e2fa9d98aee65c004
18562: Fix UsePreemptibleInstances behavior.

* Do not automatically set preemptible=true if there are no
  preemptible instance types available.

* Do not automatically set preemptible=true on a container request
  that has already been committed with preemptible=false.

* Do not reject updates to existing container requests with
  preemptible=true just because config has since changed and no longer
  enables it automatically.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
lib/config/config.default.yml
lib/config/generated_config.go
services/api/app/models/container_request.rb
services/api/test/fixtures/api_client_authorizations.yml
services/api/test/fixtures/containers.yml
services/api/test/unit/container_request_test.rb