Bug 1486519
Summary: | Adding custom over-rides for Nova Filter Scheduler persist even after removing them from the YAML. | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Darin Sorrentino <dsorrent> |
Component: | openstack-tripleo | Assignee: | Rajesh Tailor <ratailor> |
Status: | CLOSED NOTABUG | QA Contact: | Arik Chernetsky <achernet> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 11.0 (Ocata) | CC: | aschultz, kmorey, mburns, owalsh, ratailor, rhel-osp-director-maint, shardy |
Target Milestone: | --- | Keywords: | Triaged, ZStream |
Target Release: | 11.0 (Ocata) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-09-08 14:43:23 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Darin Sorrentino
2017-08-30 02:15:04 UTC
After the update successfully ran with the over-ride YAML: parameter_defaults: nova::scheduler::filter::scheduler_available_filters: ['nova.scheduler.filters.all_filters'] I removed that and re-ran the update and it appeared to revert back to the broken state, adding the available_filters and enabled_filters lines. We were able to "force clear" the setting by running the update with the following: parameter_defaults: NovaSchedulerAvailableFilters: '' NovaSchedulerDefaultFilters: '' nova::scheduler::filter::scheduler_available_filters: ['nova.scheduler.filters.all_filters'] ControllerExtraConfig: nova::scheduler::filter::scheduler_available_filters: ['nova.scheduler.filters.all_filters'] The deployment/update ran to completion and we were then able to remove those lines and further updates ran cleanly after that. So it looks like NovaSchedulerAvailableFilters and NovaSchedulerDefaultFilters only get updated when explicitly setting them otherwise they keep whatever the previous setting was. This is working as designed - we do PATCH updates to the overcloud stack, because (a long time ago) folks encountered issues where any environment file accidentally ommitted on update could cause very bad misconfiguration. So instead we update the stack where the provided environment overrides any previously applied configuration, which causes the behavior here but means there is less chance of, say, omitting ComputeCount and deletinfg all your compute nodes ;) I suggest this be converted to a docs bug, if we can confirm the current docs don't clarify this point sufficiently, otherwise it should probably be closed as not a bug - the workaround in comment #3 is the correct and recommended approach to reset previously provided parameter_defaults. (In reply to Steven Hardy from comment #4) > This is working as designed - we do PATCH updates to the overcloud stack, > because (a long time ago) folks encountered issues where any environment > file accidentally ommitted on update could cause very bad misconfiguration. > > So instead we update the stack where the provided environment overrides any > previously applied configuration, which causes the behavior here but means > there is less chance of, say, omitting ComputeCount and deletinfg all your > compute nodes ;) > > I suggest this be converted to a docs bug, if we can confirm the current > docs don't clarify this point sufficiently, otherwise it should probably be > closed as not a bug - the workaround in comment #3 is the correct and > recommended approach to reset previously provided parameter_defaults. Steve, does setting those values to '' reset them to the defaults or do we need to actually set it to the defaults commented in the nova.conf as such: NovaSchedulerDefaultFilters: ['RetryFilter', 'AvailabilityZoneFilter', 'RamFilter', 'DiskFilter', 'ComputeFilter', 'ComputeCapabilitiesFilter', 'ImagePropertiesFilter', 'ServerGroupAntiAffinityFilter', 'ServerGroupAffinityFilter'] Resetting to the default value (which is actually []) should set it to the nova defaults https://github.com/openstack/puppet-nova/blob/ab51c308e24ff5a94a46a1376f59c51a9d576c6a/manifests/scheduler/filter.pp#L129 |