summaryrefslogtreecommitdiffstats
path: root/openstack/common/scheduler
Commit message (Collapse)AuthorAgeFilesLines
* Enable hacking H402 testSergey Lukjanov2013-06-031-1/+1
| | | | | | H402 one line docstring needs punctuation Change-Id: Ie848453cace318d8310cdf0234c512f4c1121119
* Enable hacking H403 testSergey Lukjanov2013-05-301-2/+3
| | | | | | H403 multi line docstring end on new line Change-Id: I33249651026b54ef346214965e909835288bb14e
* Enable hacking H401 testSergey Lukjanov2013-05-302-3/+2
| | | | | | H401 docstring should not start with a space Change-Id: I761665ea9aff1f55de9f629ff8d108ba141eaf79
* Break out common functionality for filters and weightsMatthew Sherborne2013-05-153-41/+50
| | | | | | | | | | | | In the context of openstack.common.scheduler: base_filter.BaseFilterManager and base_weight.BaseWeightManager had duplicated code. This patch breaks that code out into a shared base class: base_handler.BaseHandler Change-Id: Ie5232c6dd9876a75170beda71adde90fc6bb4153
* Renames filter to base_filter and weight to base_weightMatthew Sherborne2013-05-104-7/+7
| | | | | | | | | | | | | | | | filter is a python builtin function so importing it pollutes ones name space. It is now renamed to base_filter. We also rename weight to base_weight, just to be consistent in the naming conventions. We add a test for base_filter. Fixes bug 1175829 Change-Id: I46e0fa696d2f39081b5568c701b0a70c54f271ab
* update OpenStack, LLC to OpenStack FoundationMark McClain2013-03-138-8/+8
| | | | | | | | | | fixes bug 1154745 The previous update (https://review.openstack.org/#/c/24103/) missed header files that contained "OpenStack, LLC". This change corrects the missed files to reflect the OpenStack Foundation. Change-Id: I9c6de265267485ef2c82ea7e6d8643e82134d102
* Add 'is' operator to extra specs ops.Avishay Traeger2013-03-071-1/+5
| | | | | | | | | | | | Boolean values for capabilities don't work because extra_specs are all converted to unicode. The scheduler will then check, for example, if the boolean 'True' is equal to the unicode string 'True', and will always return False. This patch allows admins to specify '<is> True' in extra_specs, which will compare successfully to boolean True. Fixes bug: 1146306 Change-Id: Id0e6dcfb71eb0943a16bba551ec23c4d57206550
* Update HACKING.rst per recent changesZhongyue Luo2013-02-041-1/+1
| | | | | | | | | | | | | Added "is not" usage with examples Fixed "not in" usage description https://review.openstack.org/#/c/20576/ and https://review.openstack.org/#/c/20879/ Fixes a previous "not X in Y" grep corner case Change-Id: I92ae642887de734a8562a528003d8092f5ff27d4
* Add common base weigher/weigher handler for filter schedulerZhiteng Huang2013-01-042-0/+136
| | | | | | | | | | | Filter scheduler is being used for more than one core projects (Nova and Cinder as of writing), the implementation shared a lot of common code. This patch is to move base weigher (weighing function), weigher handler for filter scheduler into oslo to reduce possible porting. implement bp: common-weights Change-Id: I2d1b37438663b53e035cc262875a283e5e2ee970
* Add common filter/filter handler for filter schedulerZhiteng Huang2013-01-047-0/+423
Filter scheduler is being used for more than one core projects (Nova and Cinder as of writing), the implementation shared a lot of common code. This patch moves base filter/filter handler class as well as common filter implementation for filter scheduler into oslo to reduce possible porting. implement bp: common-filters Change-Id: If0b1dee79c410c98e152230b55c1ec5dbcdef27c