openshift / openshift/oadp-operator
e2e: Support CRC "cloud provider"
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 92
- Forks
- 93
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 43
Description
Is your feature request related to a problem? Please describe.
While testing https://github.com/openshift/velero/pull/353#issuecomment-2415077477 with https://github.com/crc-org/crc, following is observed.
~/git/velero oadp_e2e_velero
❯ make -f Makefile.prow test-e2e
Cloning oadp-operator
rm -rf /tmp/oadp-operator
git clone --depth 1 --single-branch --branch master https://github.com/openshift/oadp-operator.git /tmp/oadp-operator
Cloning into '/tmp/oadp-operator'...
remote: Enumerating objects: 487, done.
remote: Counting objects: 100% (487/487), done.
remote: Compressing objects: 100% (395/395), done.
remote: Total 487 (delta 105), reused 316 (delta 76), pack-reused 0 (from 0)
Receiving objects: 100% (487/487), 10.46 MiB | 6.88 MiB/s, done.
Resolving deltas: 100% (105/105), done.
Running oadp-operator e2e tests
pushd /tmp/oadp-operator && export VELERO_IMAGE=quay.io/konveyor/velero:latest && make test-e2e && popd
/tmp/oadp-operator ~/git/velero
bash: /tmp/oadp-operator/bin/setup-envtest: No such file or directory
$CLUSTER_TYPE is [none]
cat: /var/run/oadp-credentials/new-velero-bucket-name: No such file or directory
mkdir -p /tmp/test-settings
TMP_DIR=/tmp/test-settings \
OPENSHIFT_CI="true" \
PROVIDER="none" \
AZURE_RESOURCE_FILE="/var/run/secrets/ci.openshift.io/multi-stage/metadata.json" \
CI_JSON_CRED_FILE="/Users/drajds/.aws/osServicePrincipal.json" \
OADP_JSON_CRED_FILE="/var/run/oadp-credentials/azure-credentials" \
OADP_CRED_FILE="/var/run/oadp-credentials/new-aws-credentials" \
BUCKET="" \
TARGET_CI_CRED_FILE="/Users/drajds/.aws/.awscred" \
VSL_REGION="" \
BSL_REGION="us-east-1" \
BSL_AWS_PROFILE="default" \
/bin/bash "tests/e2e/scripts/none_settings.sh"
/bin/bash: tests/e2e/scripts/none_settings.sh: No such file or directory
make[1]: *** [test-e2e-setup] Error 127
make: *** [test-e2e] Error 2
~/git/velero oadp_e2e_velero
❯
Describe the solution you'd like
Describe alternatives you've considered
Additional context
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Makefile.prow's test-e2e target and the OADP operator setup invoked in /tmp/oadp-operator. Inspect the missing bin/setup-envtest and tests/e2e/scripts/none_settings.sh paths to understand how the current provider is selected. Done means the e2e setup runs successfully for CRC without the missing-file errors shown here.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash, go
- Domain
- devops, testing-qa
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100