Skip to content

Commit

Permalink
Adds an OCI backend
Browse files Browse the repository at this point in the history
Note the "Outstanding [TODO] section at the top of ais/backend/oci.go

Signed-off-by: Edward McClanahan <[email protected]>
  • Loading branch information
edmc-ss committed Dec 13, 2024
1 parent e3d63ab commit 4856ea8
Show file tree
Hide file tree
Showing 32 changed files with 622 additions and 230 deletions.
16 changes: 16 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,14 @@ test:short:azure:
- ${SCRIPTS_DIR}/clean_deploy.sh --target-cnt $NUM_TARGET --proxy-cnt $NUM_PROXY --mountpath-cnt $FS_CNT --azure
- make test-short

test:short:oci:
<<: *test_short_skip_scheduled_def
variables:
BUCKET: "oc://ais-ci"
script:
- ${SCRIPTS_DIR}/clean_deploy.sh --target-cnt $NUM_TARGET --proxy-cnt $NUM_PROXY --mountpath-cnt $FS_CNT --oci
- make test-short

test:long:
<<: *test_long_skip_scheduled_def
variables:
Expand Down Expand Up @@ -343,6 +351,14 @@ test:long:azure:
- ${SCRIPTS_DIR}/clean_deploy.sh --target-cnt $NUM_TARGET --proxy-cnt $NUM_PROXY --mountpath-cnt $FS_CNT --azure --ht
- make test-long

test:long:oci:
<<: *test_long_def
variables:
BUCKET: "oc://ais-ci"
script:
- ${SCRIPTS_DIR}/clean_deploy.sh --target-cnt $NUM_TARGET --proxy-cnt $NUM_PROXY --mountpath-cnt $FS_CNT --oci --ht
- make test-long

test:long:aisloader:
stage: test-long
tags:
Expand Down
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ run:
- aws
- azure
- gcp
- oci
# - nethttp
# - statsd

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ help:
@printf " $(cyan)%s$(term-reset)\n %s\n\n" \
"make deploy" "Deploy cluster locally" \
"make kill clean" "Stop locally deployed cluster and cleanup all cluster-related data and bucket metadata (but not cluster map)" \
"make kill deploy <<< $$'7\n2\n4\ny\ny\n'" "Shutdown and then (non-interactively) generate local configs and deploy a cluster consisting of 7 targets (4 mountpaths each) and 2 proxies; build 'aisnode' executable with GCP and AWS backends" \
"make kill deploy <<< $$'7\n2\n4\ny\ny\n'" "Shutdown and then (non-interactively) generate local configs and deploy a cluster consisting of 7 targets (4 mountpaths each) and 2 proxies; build 'aisnode' executable with AWS and GCP backends" \
"TAGS=\"aws gcp\" make kill deploy <<< $$'7\n2\n'" "Same as above (see docs/getting_started.md for many more examples)" \
"GORACE='log_path=/tmp/race' make deploy" "Deploy cluster with race detector, write reports to /tmp/race.<PID>" \
"MODE=debug make deploy" "Deploy cluster with 'aisnode' (AIS target and proxy) executable built with debug symbols and debug asserts enabled" \
Expand Down
18 changes: 18 additions & 0 deletions ais/backend/mock_oci.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//go:build !oci

// Package backend contains implementation of various backend providers.
/*
* Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved.
*/
package backend

import (
"github.com/NVIDIA/aistore/api/apc"
"github.com/NVIDIA/aistore/cmn"
"github.com/NVIDIA/aistore/core"
"github.com/NVIDIA/aistore/stats"
)

func NewOCI(core.TargetPut, stats.Tracker) (core.Backend, error) {
return nil, &cmn.ErrInitBackend{Provider: apc.GCP}
}
Loading

0 comments on commit 4856ea8

Please sign in to comment.