-
Notifications
You must be signed in to change notification settings - Fork 9
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 #7 from networkservicemesh/cluster
- Loading branch information
Showing
24 changed files
with
551 additions
and
45 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
version: 1.0 | ||
root: "./.tests/cloud_test/" | ||
timeout: 7200 # 2 hour total total timeout | ||
shuffle-enabled: true | ||
statistics: | ||
enabled: true | ||
interval: 60 # 60 seconds for statistics | ||
import: | ||
- cloudtest/packet.yaml | ||
- cloudtest/tests.yaml | ||
|
||
retest: # Allow to do test re-run if some kind of failures are detected, line CNI network plugin errors. | ||
count: 1 # Allow 5 times to do restart | ||
warmup-time: 15 # Put 15 seconds warmup for cluster instance to be used again. | ||
allowed-retests: 2 # If cluster instance have few attempts with retest requests one after another, we need to restart cluster. | ||
pattern: | ||
- "NetworkPlugin cni failed to set up pod" # Error in AWS dur to leak of IPs or not ability to assign them. | ||
- "etcdserver: request timed out" # Error in any could, reason unknown. | ||
- "unable to establish connection to VPP (VPP API socket file /run/vpp/api.sock does not exist)" # a VPP is not started, it will be re-started in general, but will cause test fail. | ||
# Sometimes (rarely) docker registry is unavailable for a moment | ||
- "Error response from daemon: Get https://.*docker.io/.*: dial tcp: lookup registry" | ||
- "Error response from daemon: Get https://.*docker.io/.*: net/http: request canceled while waiting for connection" | ||
- "Failed create pod sandbox" | ||
reporting: | ||
junit-report: "results/junit.xml" | ||
health-check: | ||
- message: "Branch is not up to date" | ||
interval: 60 # 1 minute | ||
run: | | ||
echo "Health check!" |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
name: Pull Request on update/* Branch Push | ||
on: | ||
push: | ||
branches: | ||
- update/** | ||
jobs: | ||
auto-pull-request: | ||
name: Pull Request on update/* Branch Push | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Construct PR message | ||
run: | | ||
PULL_REQUEST_BODY=$(git log -1) | ||
echo ${PULL_REQUEST_BODY} | ||
echo PULL_REQUEST_BODY=${PULL_REQUEST_BODY} >> $GITHUB_ENV | ||
- name: pull-request-action | ||
uses: vsoch/pull-request-action@1.0.12 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.NSM_BOT_GITHUB_TOKEN }} | ||
BRANCH_PREFIX: "update/" | ||
PULL_REQUEST_BRANCH: "master" |
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 +1,2 @@ | ||
.idea | ||
# Goland files | ||
.idea |
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
version: 1.0 | ||
providers: | ||
- name: "packet" | ||
kind: "packet" | ||
instances: 1 | ||
retry: 5 | ||
node-count: 2 | ||
enabled: true | ||
timeout: 2400 # 40 minutes to start cluster | ||
env: | ||
- CLUSTER_RULES_PREFIX=null # To not add any specific code | ||
- KUBECONFIG=$(tempdir)/config | ||
- CLUSTER_NAME=$(cluster-name)-$(date)-${GITHUB_RUN_NUMBER}-$(rands10) | ||
env-check: | ||
- PACKET_AUTH_TOKEN | ||
- PACKET_PROJECT_ID | ||
- GITHUB_RUN_NUMBER | ||
packet: | ||
ssh-key: sshkey.pub # A key name relative to $(tempdir) or absolute | ||
hardware-devices: | ||
- name: "Master" | ||
host-name: "SR-IOV-Master-${CLUSTER_NAME}" | ||
os: "ubuntu_20_04" | ||
billing-cycle: "hourly" | ||
network: | ||
type: "hybrid" | ||
port-vlans: | ||
eth3: 1044 | ||
- name: "Worker" | ||
host-name: "SR-IOV-Worker-${CLUSTER_NAME}" | ||
os: "ubuntu_20_04" | ||
billing-cycle: "hourly" | ||
network: | ||
type: "hybrid" | ||
port-vlans: | ||
eth3: 1044 | ||
hardware-reservations: | ||
- 2cf78481-53b0-46c8-a084-6e9815acdb0b | ||
- 2361d3c2-f694-4fa7-a683-a9f69e2abe7c | ||
- 70b51e39-2e65-4a64-8191-dd28386c0b80 | ||
- 4f27da36-a911-45a5-ab81-0e789348e3fe | ||
- 7741d4a8-8555-492b-8d73-63c2f0715d16 | ||
- d173dbde-8510-454e-b0c2-c120c397cdf5 | ||
scripts: | ||
install: "echo all deps installed" | ||
setup: | | ||
ssh-keygen -t rsa -f $(tempdir)/sshkey -q -N "" | ||
/bin/bash -c "eval `ssh-agent -s`; ssh-add $(tempdir)/sshkey" | ||
start: scripts/create-kubernetes-cluster.sh $(device.Master.pub.ip.4) $(device.Worker.pub.ip.4) "$(tempdir)/sshkey" |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
executions: | ||
- name: "tests" | ||
env: | ||
- ARTIFACTS_ARCHIVE=true | ||
root: ./ | ||
timeout: 3600 | ||
cluster-count: 1 | ||
cluster-selector: | ||
- packet | ||
cluster-env: | ||
- KUBECONFIG |
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
Oops, something went wrong.