Commit Graph

25 Commits

Author SHA1 Message Date
Pierre Riteau 3d01888c14 Allow preemptible instances to run on unused hosts
Preemptible instances run on a configurable host aggregate, using the
freepool by default.

Compared to the proposed spec, the use of a separate aggregate allows to
better control scheduling of preemptibles. For example, we can prevent
preemptible instances from being launched on hosts that are about to be
used by reservations. To be used, this feature will need additional
support in the main Blazar service.

Blueprint: blazar-preemptible-instances
Change-Id: I294c22b22a1d9e3df01c56a518476a33782d1196
2022-02-03 17:35:25 +01:00
Pierre Riteau 2bff1bc341 Remove six
Implements: blueprint six-removal

Change-Id: I045998ff8c11befd79a7382e07cb61cc79c6ee77
2021-03-11 13:53:14 +01:00
Zuul 2538f22c9c Merge "Remove outdated import_exceptions for hacking" 2018-10-19 07:36:36 +00:00
Pierre Riteau bc923d34e4 Rename function to better describe test case
Change-Id: Id18b11492008e6f28d7ba1b5f8e00b9592c080bf
2018-09-28 11:07:45 +01:00
Pierre Riteau 91adad90b3 Remove outdated import_exceptions for hacking
Change-Id: Ia3e04db81af6b16aad499d0175b3e86066fb6138
2018-09-28 11:01:07 +01:00
Masahito Muroi 14ba5b4f28 Remove climate namespace
Change-Id: Ifba0f79c391f7f9d06897ac294d3bf90b48419ff
Partial-Bug: #1755325
Depends-On: https://review.openstack.org/#/c/552253
2018-04-03 13:11:12 +00:00
sunjia 8eb61e50b7 Update documentation links
Update links following the OpenStack documentation migration.

Change-Id: Ieac0f1b691dcd1a4444c9bf3a857bcf3f99dd376
2017-09-18 11:06:58 +00:00
Masahito Muroi 756a3b86f3 Add instance reservation filtering in BlazarFilter
BlazarFilter needs to pass a host if the scheduling request is
related to the new instance reservation feature.

This patch adds filtering rules for the new instance reservation
feature.

Partially implements: blueprint new-instance-reservation
Change-Id: Ifb61a3f858f13a84b7a841068d13da7c56fda3af
2017-08-18 11:03:23 +01:00
Masahito Muroi 7cd1a0b104 Separate host reservation filtering
The new instance reservation filter needs to modify the Blazar scheduler
filter to pass hosts which are in instance reservation aggregates if the
reservation's extra_specs is specified in spec_obj.

This patch refactors BlazarFilter to separate host reservation filtering
and instance reservation filtering.

Partially implements: blueprint new-instance-reservation
Change-Id: I738ba3a4162435d267666f332208d8d2adf80e46
2017-08-17 19:36:26 +01:00
Hiroaki Kobayashi 9d5265ea82 Change the default value for the config blazar_az_prefix
Current default value for the config 'blazar_az_prefix' is 'blazar:'.
However, ':' should not be included in the name of availability zones.

According to the parse_availability_zone() [1] of the API class of Nova,
there is a legacy hack to allow admins to specify hosts via an
availability zone using az:host:node. That means ':' cannot be included
in the name of an availability zone itself. But Nova accepts the
invalid name with ':'. That is reported as a bug [2].

This patch changes the default value for the config blazar_az_prefix
from 'blazar:' to 'blazar_' which does not use ':'.

[1] https://review.openstack.org/gitweb?p=openstack/nova.git;a=blob;f=nova/compute/api.py;h=46ed8e91fcc16f3755fd6a5e2e4a6d54f990cb8b;hb=HEAD#l561
[2] https://bugs.launchpad.net/nova/+bug/1695861

Change-Id: I3ad6f84c783d371d2eca2fc660bd564064df4586
Partial-Bug: #1695862
Depends-On: Iaff0b8e576dbcb56b89384ea236c3f121d4ffad1
2017-07-10 01:35:29 +00:00
Hiroaki Kobayashi 71bd5355a2 Remove the Climate filter
Remove the Climate filter that has been deprecated in Ocata.

Change-Id: I2c1d0e5c15338868ba77f25893b38238009cb5c6
2017-06-29 02:19:10 +00:00
Hiroaki Kobayashi fa5192b20f Remove old instance reservation code
Change-Id: Ie95c814268cb46f81ee120acb749748c0b309a1f
2017-06-29 02:16:05 +00:00
Hiroaki Kobayashi ca73d4502c Define ClimateFilter class
A SchedulerHostFilterNotFound error occurs when ClimateFilter is listed
in scheduler_default_filters in nova.conf. This patch defines a
ClimateFilter class for backward compatibility.

Change-Id: I3e2184fd1183c59bae6c25eb9839a47168972530
Closes-Bug: #1668418
2017-02-28 09:22:36 +00:00
Jenkins cf3b83180d Merge "Change filter name" 2017-02-24 20:59:57 +00:00
Jenkins 5f8e5f628c Merge "Remove unused logging import" 2017-02-24 19:56:45 +00:00
Hiroaki Kobayashi 5af5f1dbb8 Replace climateclient with blazarclient
The climateclient namespace has been migrated to blazarclient in the
python-blazarclient repo [1]. This patch follows the changes.

[1] https://review.openstack.org/#/c/432953/

Change-Id: I256445789e771b374957fae6d5c07dfcbd46510f
Depends-On: Ibf900f9a8a7a7bfb0b6b213545b9cbf121ce0df7
Partial-Bug: #1663460
2017-02-22 17:17:35 +00:00
Hiroaki Kobayashi 483075691c Change filter name
This patch changes the filter name from ClimateFilter to BlazarFilter.

Change-Id: Idd50f1f139924bee88a770318f372daf26b975cc
Partial-Bug: #1663460
2017-02-22 21:02:19 +09:00
Anh Tran b67b3d228e Remove unused logging import
Change-Id: I34410e3f9412058e3ac99dd881757e6511da81af
2017-02-16 10:24:30 +07:00
Hiroaki Kobayashi 71f02b0382 Delete openstack.common.test module
This patch deletes openstack.common.test module and related modules
which are not used anymore.

Change-Id: Icd900d3a6f795ce2df88edc1b73d924a83379eec
2017-01-23 18:56:46 +09:00
Tony Xu a8e51aa95e Remove vim header
Change-Id: I991618dd2830988bf9bc9f1431b9c5f8eaf2040b
2017-01-16 10:11:28 +00:00
Hiroaki Kobayashi e7ffaf319b Replace old filter_properties with new RequestSpec NovaObject
The host_passes() method in blazar_filter depends on an old
filter_properties dictionary. However, Nova replaced it by a new
RequestSpec NovaObject. Therefore, the filter is throwing this error:

    "TypeError: 'RequestSpec' object has no attribute '__getitem__'."

This commit changes host_passes() to use the new RequestSpec NovaObject.

Change-Id: I0e57f4ee4655a8658419bfaaffad524369ee10b9
Closes-Bug: #1642137
2017-01-13 16:38:01 +00:00
Hiroaki Kobayashi 97a4a7e89f Update legacy code depending on Nova V2 API plugin
Blazar-Nova uses Nova API plugin frameworks. The V2 API was removed in
Nova commit a31d917af0cc5ecb55424598e7b812e02afbf28c. However, some
lines of V2 dependent code were still included in Blazar-Nova.

This patch updates the V2 dependent code to V2.1.

NOTE: This commit fixes unit tests in order to unblock the gate, but
doesn't restore instance reservation functionality due to major changes
in support for Nova API extensions.

Change-Id: Ie8252a350bd739845ee92e17c85f32385a7ddeb4
Closes-Bug: #1644680
2017-01-11 10:17:13 +00:00
Ildiko Vancsa cde2b3bbdf Fix oslo import issues
Change-Id: Ib21c85380795826656fd1c1fe3a3f959e32fab07
2015-09-29 21:38:01 +02:00
James Penick 44770ed8c0 Rename climatenova to blazarnova
blazarnova (was) an alias package to climatenova, swapping the two so that
climatenova is now the alias package

Change-Id: I25b5d194cdf125c2cc5d4e8c43ceb79e5a80908b
2014-07-02 21:20:37 +00:00
Pablo Andres Fuente cc776e87a8 Added blazarnova as an alias package
Added blazarnova as an alias package of climatenova package.
With this alias is possible to rename imports in small patches
that address only one or few submodules.
This will help the review process.
Renamed some entries from climate to blazar in setup.cfg.

Change-Id: I41905b41547dfb3fba1307eee9e473be29d9d4ce
Partial-Bug: #1311747
2014-06-06 16:03:30 -03:00