This adds the os-services API change which will
call the compute service when the service's disabled
value changes to sync the COMPUTE_STATUS_DISABLED trait
on the compute node resource providers managed by the
updated compute service.
If the compute service is down or not yet upgraded to
the service version from change
Ia95de2f23f12b002b2189c9294ec190569a628ab then the
API will not call the service. In this case the change
from I3005b46221ac3c0e559e1072131a7e4846c9867c will
sync the trait when the compute service is restarted.
Since the compute service could be running the ironic
driver and managing hundreds or over 1000 compute nodes,
the set_host_enabled RPC call now uses the long_rpc_timeout
configuration option.
A functional test is added which covers the 2.53+
PUT /os-services/{service_id} API and pre-2.53 os-services
APIs for enabling/disabling and forcing down a service.
The functional test also covers the sync-on-restart behavior
from change I3005b46221ac3c0e559e1072131a7e4846c9867c.
The scheduler pre-filter added in change
I317cabbe49a337848325f96df79d478fd65811d9 is also tested
as part of the functional test.
Reviewed: https:/ /review. opendev. org/654596 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=3f0605c2898 7f46cf4a05af014 0e2e5de7d5ad0a
Committed: https:/
Submitter: Zuul
Branch: master
commit 3f0605c28987f46 cf4a05af0140e2e 5de7d5ad0a
Author: Matt Riedemann <email address hidden>
Date: Tue Jul 2 18:57:38 2019 -0400
Sync COMPUTE_ STATUS_ DISABLED from API
This adds the os-services API change which will STATUS_ DISABLED trait
call the compute service when the service's disabled
value changes to sync the COMPUTE_
on the compute node resource providers managed by the
updated compute service.
If the compute service is down or not yet upgraded to 12b002b2189c929 4ec190569a628ab then the 0e559e1072131a7 e4846c9867c will
the service version from change
Ia95de2f23f
API will not call the service. In this case the change
from I3005b46221ac3c
sync the trait when the compute service is restarted.
Since the compute service could be running the ironic
driver and managing hundreds or over 1000 compute nodes,
the set_host_enabled RPC call now uses the long_rpc_timeout
configuration option.
A functional test is added which covers the 2.53+ {service_ id} API and pre-2.53 os-services 0e559e1072131a7 e4846c9867c. a337848325f96df 79d478fd65811d9 is also tested
PUT /os-services/
APIs for enabling/disabling and forcing down a service.
The functional test also covers the sync-on-restart behavior
from change I3005b46221ac3c
The scheduler pre-filter added in change
I317cabbe49
as part of the functional test.
Closes-Bug: #1805984
Implements blueprint pre-filter- disabled- computes
Change-Id: If32bca07018593 7ef83f689b7163d 965a89ec10a