Skip to content

Commit 75dd21c

Browse files
authored
Merge pull request #352 from fabric-testbed/rel1.6
Rel1.6 changes
2 parents 12a1e26 + 55eb48c commit 75dd21c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+799
-320
lines changed

Dockerfile-auth

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM python:3.9.0
1+
FROM python:3.11.0
22
MAINTAINER Komal Thareja<[email protected]>
33

4-
ARG HANDLERS_VER=1.5.2
4+
ARG HANDLERS_VER=1.6.0
55

66
RUN mkdir -p /usr/src/app
77
WORKDIR /usr/src/app
@@ -23,7 +23,7 @@ RUN pip3 install .
2323
RUN mkdir -p "/etc/fabric/message_bus/schema"
2424
RUN mkdir -p "/etc/fabric/actor/config"
2525
RUN mkdir -p "/var/log/actor"
26-
RUN cp /usr/local/lib/python3.9/site-packages/fabric_mb/message_bus/schema/*.avsc /etc/fabric/message_bus/schema
26+
RUN cp /usr/local/lib/python3.11/site-packages/fabric_mb/message_bus/schema/*.avsc /etc/fabric/message_bus/schema
2727
RUN pip3 install fabric-am-handlers==${HANDLERS_VER}
2828
RUN sh /usr/src/app/install.sh
2929

Dockerfile-broker

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9.0
1+
FROM python:3.11.0
22
MAINTAINER Komal Thareja<[email protected]>
33

44
RUN mkdir -p /usr/src/app
@@ -21,7 +21,7 @@ RUN pip3 install .
2121
RUN mkdir -p "/etc/fabric/message_bus/schema"
2222
RUN mkdir -p "/etc/fabric/actor/config"
2323
RUN mkdir -p "/var/log/actor"
24-
RUN cp /usr/local/lib/python3.9/site-packages/fabric_mb/message_bus/schema/*.avsc /etc/fabric/message_bus/schema
24+
RUN cp /usr/local/lib/python3.11/site-packages/fabric_mb/message_bus/schema/*.avsc /etc/fabric/message_bus/schema
2525
RUN sh /usr/src/app/install.sh
2626

2727
ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh"]

Dockerfile-cf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9.0
1+
FROM python:3.11.0
22
MAINTAINER Komal Thareja<[email protected]>
33

44
RUN mkdir -p /usr/src/app
@@ -20,10 +20,10 @@ RUN pip3 install .
2020
RUN mkdir -p "/etc/fabric/message_bus/schema"
2121
RUN mkdir -p "/etc/fabric/actor/config"
2222
RUN mkdir -p "/var/log/actor"
23-
RUN cp /usr/local/lib/python3.9/site-packages/fabric_mb/message_bus/schema/*.avsc /etc/fabric/message_bus/schema
23+
RUN cp /usr/local/lib/python3.11/site-packages/fabric_mb/message_bus/schema/*.avsc /etc/fabric/message_bus/schema
2424

25-
RUN echo "0 2 * * * root /usr/local/bin/python3.9 /usr/src/app/audit.py -f /etc/fabric/actor/config/config.yaml -d 30 -c slices -o remove" >> /etc/crontab
26-
RUN echo "0/15 * * * * root /usr/local/bin/python3.9 /usr/src/app/audit.py -f /etc/fabric/actor/config/config.yaml -d 30 -c slivers -o close" >> /etc/crontab
25+
RUN echo "0 2 * * * root /usr/local/bin/python3.11 /usr/src/app/audit.py -f /etc/fabric/actor/config/config.yaml -d 30 -c slices -o remove" >> /etc/crontab
26+
RUN echo "0/15 * * * * root /usr/local/bin/python3.11 /usr/src/app/audit.py -f /etc/fabric/actor/config/config.yaml -d 30 -c slivers -o close" >> /etc/crontab
2727
RUN service cron reload
2828
RUN service cron restart
2929

Dockerfile-orchestrator

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.9.0
1+
FROM python:3.11.0
22
MAINTAINER Komal Thareja<[email protected]>
33

44
RUN mkdir -p /usr/src/app
@@ -22,7 +22,7 @@ RUN pip3 install .
2222
RUN mkdir -p "/etc/fabric/message_bus/schema"
2323
RUN mkdir -p "/etc/fabric/actor/config"
2424
RUN mkdir -p "/var/log/actor"
25-
RUN cp /usr/local/lib/python3.9/site-packages/fabric_mb/message_bus/schema/*.avsc /etc/fabric/message_bus/schema
25+
RUN cp /usr/local/lib/python3.11/site-packages/fabric_mb/message_bus/schema/*.avsc /etc/fabric/message_bus/schema
2626
RUN sh /usr/src/app/install.sh
2727

2828
ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh"]

docker-compose-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ services:
257257
- ./secrets/kafkacat1.client.key:/etc/fabric/message_bus/ssl/client.key
258258
- ./secrets/kafkacat1-ca1-signed.pem:/etc/fabric/message_bus/ssl/client.pem
259259
pdp:
260-
image: fabrictestbed/authzforce-pdp:3.1.0
260+
image: fabrictestbed/authzforce-pdp:6.1.0
261261
container_name: pdp
262262
restart: always
263263
user: ${PDP_UID:-1000}:${PDP_GID:-1000}

docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22
service cron start
3-
python3.9 -m $1
3+
python3.11 -m $1

fabric_cf/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = "1.5.2"
1+
__version__ = "1.6.0"
22
__VERSION__ = __version__

fabric_cf/actor/core/apis/abc_actor_management_object.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,14 @@ def update_slice(self, *, slice_mng: SliceAvro, caller: AuthToken, modify_state:
187187
@return result status with error information in case of failure
188188
"""
189189

190+
def delete_slice(self, *, slice_id: ID, caller: AuthToken) -> ResultAvro:
191+
"""
192+
Deletes the specified slice - moves the slice into Closing state.
193+
@param slice_id slice ID
194+
@param caller caller
195+
@return result status with error information in case of failure
196+
"""
197+
190198
def add_slice(self, *, slice_obj: SliceAvro, caller: AuthToken) -> ResultStringAvro:
191199
"""
192200
Adds a new slice

fabric_cf/actor/core/apis/abc_actor_mixin.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,17 @@ def modify_slice(self, *, slice_object: ABCSlice):
441441
Exception in case of error
442442
"""
443443

444+
@abstractmethod
445+
def delete_slice(self, *, slice_id: ID):
446+
"""
447+
Delete the slice registered with the actor. Moves the slice into Closing State
448+
449+
Args:
450+
slice_id: slice id
451+
Raises:
452+
Exception in case of error
453+
"""
454+
444455
@abstractmethod
445456
def remove_slice(self, *, slice_object: ABCSlice):
446457
"""

fabric_cf/actor/core/apis/abc_authority.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@
3131
from fim.graph.resources.neo4j_arm import Neo4jARMGraph
3232

3333
from fabric_cf.actor.core.apis.abc_server_actor import ABCServerActor
34-
from fabric_cf.actor.core.kernel.poa import Poa
3534

3635
if TYPE_CHECKING:
3736
from fabric_cf.actor.core.apis.abc_authority_reservation import ABCAuthorityReservation
3837
from fabric_cf.actor.core.apis.abc_controller_callback_proxy import ABCControllerCallbackProxy
3938
from fabric_cf.actor.core.apis.abc_reservation_mixin import ABCReservationMixin
4039
from fabric_cf.actor.core.kernel.resource_set import ResourceSet
4140
from fabric_cf.actor.security.auth_token import AuthToken
41+
from fabric_cf.actor.core.kernel.poa import Poa
4242

4343

4444
class ABCAuthority(ABCServerActor):

0 commit comments

Comments
 (0)