Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

creata data directory for downloading mcg-cli #8828

Merged

Conversation

vavuthu
Copy link
Contributor

@vavuthu vavuthu commented Nov 10, 2023

For Fusion HCI to ru test cases, there is no need for pull-secret to download mcg-cli. ocs-ci will download the same form the existing secrets but its failing since data folder doesn't exist.

Signed-off-by: vavuthu [email protected]

@vavuthu vavuthu requested a review from a team as a code owner November 10, 2023 13:59
@vavuthu vavuthu added the team/ecosystem Ecosystem team related issues/PRs label Nov 10, 2023
@vavuthu
Copy link
Contributor Author

vavuthu commented Nov 10, 2023

verified locally

19:26:08 - MainThread - <path>/ocs-ci/ocs_ci/ocs/resources/mcg.py - INFO  - The expected MCG CLI binary could not be found, downloading the expected version
19:26:08 - MainThread - ocs_ci.utility.utils - INFO  - Executing command: oc --kubeconfig <cluster_path>/auth/kubeconfig -n openshift-storage get csv  -n openshift-storage -o yaml
19:26:10 - MainThread - <path>/ocs-ci/ocs_ci/ocs/resources/mcg.py - INFO  - Extracting pull-secret and placing it under <path>/ocs-ci/data/pull-secret
19:26:10 - MainThread - ocs_ci.utility.utils - INFO  - Executing command: oc get secret pull-secret -n openshift-config -ojson | jq -r '.data.".dockerconfigjson"|@base64d' > <path>/ocs-ci/data/pull-secret
19:26:12 - MainThread - ocs_ci.utility.utils - INFO  - Executing command: oc image extract --registry-config <path>/ocs-ci/data/pull-secret quay.io/rhceph-dev/mcg-cli:4.14.0-161 --confirm --path /usr/share/mcg/linux/noobaa-amd64:<path>/ocs-ci/data
19:26:22 - MainThread - ocs_ci.utility.utils - INFO  - Executing command: oc --kubeconfig <cluster_path>/auth/kubeconfig -n openshift-ingress-operator get secret router-ca -n openshift-ingress-operator -o yaml
19:26:24 - MainThread - ocs_ci.utility.utils - INFO  - Executing command: oc --kubeconfig <cluster_path>/auth/kubeconfig -n openshift-storage get noobaa  -n openshift-storage -o yaml
19:26:25 - MainThread - ocs_ci.utility.utils - INFO  - Executing command: oc --kubeconfig <cluster_path>/auth/kubeconfig -n openshift-storage get secret noobaa-admin -n openshift-storage -o yaml
19:26:26 - MainThread - <path>/ocs-ci/ocs_ci/ocs/resources/mcg.py - INFO  - Sending MCG RPC query via mcg-cli:

@vavuthu vavuthu added the Verified Mark when PR was verified and log provided label Nov 10, 2023
Copy link

openshift-ci bot commented Nov 14, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Akarsha-rai, petr-balogh, vavuthu

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@vavuthu vavuthu merged commit 9690fcf into red-hat-storage:master Nov 14, 2023
4 checks passed
@vavuthu vavuthu deleted the create_data_dir__if_doesn't_exists branch November 16, 2023 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm size/XS team/ecosystem Ecosystem team related issues/PRs Verified Mark when PR was verified and log provided
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants