49d9433c62
The extensible resource tracker plugins were deprecated in Ie4b6670a828d99aebfd348bd700f9f58b3e39fdb - it is now time to remove the feature. Providers will no longer be able to extend the resource types they want to track. The compute node stats field is now updated every time stats change (as it originally was before ERT). Some tests have had stats added to the expected field in assertions to account for this information. Change-Id: Ia34ca9160ca34bcfa3ed56395e1b68ca802c0c51
24 lines
835 B
Python
24 lines
835 B
Python
# Copyright (c) 2012 OpenStack Foundation
|
|
# All Rights Reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
from nova.compute import resource_tracker
|
|
|
|
|
|
class FakeResourceTracker(resource_tracker.ResourceTracker):
|
|
"""Version without a DB requirement."""
|
|
|
|
def _update(self, context):
|
|
pass
|