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

Modify test_respin_app_pod_exported_nfs_volume_incluster to address teardown of deployment pod and pvc #8666

Closed
wants to merge 4 commits into from

Conversation

pintojoy
Copy link
Contributor

@pintojoy pintojoy commented Oct 11, 2023

Updated test_respin_app_pod_exported_nfs_volume_incluster to handle deployment deletion and pvc deletion if test fails. Fixes #8602

…eardown of deployment pod and pvc

Updated test_respin_app_pod_exported_nfs_volume_incluster to handle deployment deletion and pvc deletion if test fails

Signed-off-by: pintojoy <[email protected]>
@pintojoy pintojoy requested a review from amr1ta October 11, 2023 11:12
@pintojoy pintojoy requested a review from a team as a code owner October 11, 2023 11:12
@pull-request-size pull-request-size bot added the size/L PR that changes 100-499 lines label Oct 11, 2023
Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR validation on existing cluster

Cluster Name: jopinto-tip414
Cluster Configuration: conf/deployment/vsphere/ipi_1az_rhcos_vsan_3m_3w.yaml
PR Test Suite:
PR Test Path: tests/manage/nfs_feature/test_nfs_feature_enable_for_ODF_clusters.py::TestNfsEnable::test_respin_app_pod_exported_nfs_volume_incluster
Additional Test Params:
OCP VERSION: 4.14
OCS VERSION: 4.14
tested against branch: master

Job PASSED.

@pintojoy pintojoy added the Verified Mark when PR was verified and log provided label Oct 13, 2023
Comment on lines 1146 to 1188
deployment_config = """
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
name: nfs-test-pod
namespace: openshift-storage
labels:
app: nfs-test-pod
spec:
template:
metadata:
labels:
name: nfs-test-pod
spec:
restartPolicy: Always
volumes:
- name: vol
persistentVolumeClaim:
claimName: nfs-pvc
containers:
- name: fedora
image: fedora
command: ['/bin/bash', '-ce', 'tail -f /dev/null']
imagePullPolicy: IfNotPresent
securityContext:
capabilities: {}
privileged: true
volumeMounts:
- mountPath: /mnt
name: vol
livenessProbe:
exec:
command:
- 'sh'
- '-ec'
- 'df /mnt'
initialDelaySeconds: 3
periodSeconds: 3
replicas: 1
triggers:
- type: ConfigChange
paused: false
"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this content moved to template yaml location?, so in-case of future use we can consume it.

@pintojoy pintojoy removed the Verified Mark when PR was verified and log provided label Nov 8, 2023
Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR validation

Cluster Name: jopinto-tip414
Cluster Configuration: conf/deployment/vsphere/ipi_1az_rhcos_vsan_3m_3w.yaml
PR Test Suite:
PR Test Path: tests/manage/nfs_feature/test_nfs_feature_enable_for_ODF_clusters.py::TestNfsEnable::test_respin_app_pod_exported_nfs_volume_incluster
Additional Test Params:
OCP VERSION: 4.14
OCS VERSION: 4.14
tested against branch: master

Job UNSTABLE (some or all tests failed).

Copy link

@ocs-ci ocs-ci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR validation

Cluster Name: jopinto-tip414
Cluster Configuration: conf/deployment/vsphere/ipi_1az_rhcos_vsan_3m_3w.yaml
PR Test Suite:
PR Test Path: tests/manage/nfs_feature/test_nfs_feature_enable_for_ODF_clusters.py::TestNfsEnable::test_respin_app_pod_exported_nfs_volume_incluster
Additional Test Params:
OCP VERSION: 4.14
OCS VERSION: 4.14
tested against branch: master

Job PASSED.

@pintojoy pintojoy added the Verified Mark when PR was verified and log provided label Nov 15, 2023
Copy link
Contributor

@yitzhak12 yitzhak12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

openshift-ci bot commented Jan 3, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ebenahar, pintojoy, ramkiperiy, yitzhak12

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

@openshift-merge-robot
Copy link
Collaborator

PR needs rebase.

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/test-infra repository.

@pintojoy
Copy link
Contributor Author

Closing this PR, will raise a new PR to address merge conflicts post directory changes

@pintojoy pintojoy closed this Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm needs-rebase size/L PR that changes 100-499 lines Squad/Brown Verified Mark when PR was verified and log provided
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nfs-test-pods are not deleted during teardown of test_respin_app_pod_exported_nfs_volume_incluster
7 participants