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

[ROSA HCP] storage encryption. fix namespace issue #11153

Merged

Conversation

DanielOsypenko
Copy link
Contributor

fix the error

2025-01-15 17:26:02  10:26:02 - MainThread - ocs_ci.utility.utils - INFO  - Executing command: oc create -f /tmp/clientkeyrshnu5m_
2025-01-15 17:26:03  10:26:02 - MainThread - ocs_ci.utility.templating - INFO  - apiVersion: v1
2025-01-15 17:26:03  data:
2025-01-15 17:26:03    token: '*****'
2025-01-15 17:26:03  kind: Secret
2025-01-15 17:26:03  metadata:
2025-01-15 17:26:03    name: ocs-kms-token
2025-01-15 17:26:03    namespace: openshift-storage
2025-01-15 17:26:03  type: Opaque
2025-01-15 17:26:03  
2025-01-15 17:26:03  10:26:02 - MainThread - ocs_ci.utility.utils - INFO  - Executing command: oc create -f /tmp/tokenq0lo5hay
2025-01-15 17:26:03  10:26:03 - MainThread - ocs_ci.utility.utils - WARNING  - Command stderr: Error from server (NotFound): error when creating "/tmp/tokenq0lo5hay": namespaces "openshift-storage" not found
2025-01-15 17:26:03  
2025-01-15 17:26:03  10:26:03 - MainThread - ocs_ci.deployment.deployment - ERROR  - Error during execution of command: oc create -f /tmp/tokenq0lo5hay.
2025-01-15 17:26:03  Error is Error from server (NotFound): error when creating "/tmp/tokenq0lo5hay": namespaces "openshift-storage" not found

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Error trace >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
2025-01-15 17:29:14          if deploy:
2025-01-15 17:29:14              # Deploy cluster
2025-01-15 17:29:14  >           deployer.deploy_cluster(log_cli_level)
2025-01-15 17:29:14  
2025-01-15 17:29:14  tests/conftest.py:1955: 
2025-01-15 17:29:14  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
2025-01-15 17:29:14  ocs_ci/deployment/deployment.py:706: in deploy_cluster
2025-01-15 17:29:14      self.do_deploy_ocs()
2025-01-15 17:29:14  ocs_ci/deployment/deployment.py:374: in do_deploy_ocs
2025-01-15 17:29:14      self.deploy_ocs()
2025-01-15 17:29:14  ocs_ci/deployment/rosa.py:282: in deploy_ocs
2025-01-15 17:29:14      super(ROSA, self).deploy_ocs()
2025-01-15 17:29:14  ocs_ci/deployment/deployment.py:2026: in deploy_ocs
2025-01-15 17:29:14      self.deploy_ocs_via_operator(image)
2025-01-15 17:29:14  ocs_ci/deployment/deployment.py:1337: in deploy_ocs_via_operator
2025-01-15 17:29:14      kms.deploy()
2025-01-15 17:29:14  ocs_ci/utility/kms.py:140: in deploy
2025-01-15 17:29:14      self.deploy_vault_external()
2025-01-15 17:29:14  ocs_ci/utility/kms.py:168: in deploy_vault_external
2025-01-15 17:29:14      self.create_ocs_vault_resources()
2025-01-15 17:29:14  ocs_ci/utility/kms.py:421: in create_ocs_vault_resources
2025-01-15 17:29:14      self.create_resource(token_data, prefix="token")
2025-01-15 17:29:14  ocs_ci/utility/kms.py:95: in create_resource
2025-01-15 17:29:14      run_cmd(f"oc create -f {resource_data_yaml.name}", timeout=300)
2025-01-15 17:29:14  ocs_ci/utility/utils.py:488: in run_cmd
2025-01-15 17:29:14      completed_process = exec_cmd(
...
2025-01-15 17:29:14  E               ocs_ci.ocs.exceptions.CommandFailed: Error during execution of command: oc create -f /tmp/tokenq0lo5hay.
2025-01-15 17:29:14  E               Error is Error from server (NotFound): error when creating "/tmp/tokenq0lo5hay": namespaces "openshift-storage" not found

Signed-off-by: Daniel Osypenko <dosypenk@redhat.com>
@DanielOsypenko
Copy link
Contributor Author

@DanielOsypenko DanielOsypenko added the Verified Mark when PR was verified and log provided label Jan 15, 2025
@DanielOsypenko
Copy link
Contributor Author

/cherry-pick release-4.17

@openshift-cherrypick-robot
Copy link
Collaborator

@DanielOsypenko: once the present PR merges, I will cherry-pick it on top of release-4.17 in a new PR and assign it to you.

In response to this:

/cherry-pick release-4.17

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copy link

openshift-ci bot commented Jan 22, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dahorak, DanielOsypenko, fbalak, paraggit

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

@dahorak dahorak merged commit 9670539 into red-hat-storage:master Jan 22, 2025
6 of 7 checks passed
@openshift-cherrypick-robot
Copy link
Collaborator

@DanielOsypenko: new pull request created: #11188

In response to this:

/cherry-pick release-4.17

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm size/XS TestCase failing Verified Mark when PR was verified and log provided
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants