-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #405 from fabric-testbed/rel1.8
Rel1.8 - changes
- Loading branch information
Showing
42 changed files
with
1,589 additions
and
369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,10 +138,7 @@ logs | |
*_creds | ||
*.lock | ||
*.log | ||
neo4j1/ | ||
neo4j2/ | ||
neo4j3/ | ||
neo4j4/ | ||
neo4j*/ | ||
pdp/ | ||
pg_data/ | ||
schema/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
FROM python:3.11.0 | ||
MAINTAINER Komal Thareja<[email protected]> | ||
|
||
ARG HANDLERS_VER=1.7.1 | ||
ARG HANDLERS_VER=1.8.0 | ||
|
||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
__version__ = "1.7.0" | ||
__version__ = "1.8.0" | ||
__VERSION__ = __version__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,9 @@ | |
# | ||
# | ||
# Author: Komal Thareja ([email protected]) | ||
import enum | ||
from enum import Enum | ||
|
||
from fabric_cf.actor.boot.configuration import ActorConfig | ||
from fabric_cf.actor.core.apis.abc_actor_mixin import ABCActorMixin | ||
from fabric_cf.actor.core.apis.abc_delegation import ABCDelegation | ||
|
@@ -36,6 +39,19 @@ | |
from fabric_cf.actor.core.kernel.resource_set import ResourceSet | ||
|
||
|
||
class AllocationAlgorithm(Enum): | ||
FirstFit = enum.auto() | ||
BestFit = enum.auto() | ||
WorstFit = enum.auto() | ||
Random = enum.auto() | ||
|
||
def __repr__(self): | ||
return self.name | ||
|
||
def __str__(self): | ||
return self.name | ||
|
||
|
||
class Policy(ABCPolicy): | ||
""" | ||
Base class for all policy implementations. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ | |
# Author: Komal Thareja ([email protected]) | ||
from __future__ import annotations | ||
|
||
from datetime import datetime | ||
from typing import List | ||
|
||
from fabric_mb.message_bus.messages.close_delegations_avro import CloseDelegationsAvro | ||
|
@@ -132,7 +133,8 @@ def delete_slice(self, *, slice_id: ID) -> bool: | |
def get_reservations(self, *, states: List[int] = None, slice_id: ID = None, | ||
rid: ID = None, oidc_claim_sub: str = None, email: str = None, rid_list: List[str] = None, | ||
type: str = None, site: str = None, node_id: str = None, | ||
host: str = None, ip_subnet: str = None, full: bool = False) -> List[ReservationMng]: | ||
host: str = None, ip_subnet: str = None, full: bool = False, | ||
start: datetime = None, end: datetime = None) -> List[ReservationMng]: | ||
request = GetReservationsRequestAvro() | ||
request = self.fill_request_by_id_message(request=request, slice_id=slice_id, | ||
states=states, email=email, rid=rid, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.