Skip to content

Commit

Permalink
Merge branch 'master' into LH8573_fix_volume_creating_duplica_replica…
Browse files Browse the repository at this point in the history
…s_issues
  • Loading branch information
yangchiu authored Sep 23, 2024
2 parents 3b2332a + 63349ad commit e8cc75c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion e2e/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ directio==1.3
flake8
kubernetes==27.2.0
requests==2.32.3
boto3==1.35.19
boto3==1.35.24
pyyaml==6.0.2
minio==5.0.10
8 changes: 3 additions & 5 deletions manager/integration/tests/test_rwx.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from common import wait_for_volume_creation, DATA_SIZE_IN_MB_3
from common import create_pv_for_volume, create_pvc_for_volume
from common import DEFAULT_STATEFULSET_TIMEOUT, DEFAULT_STATEFULSET_INTERVAL
from common import wait_delete_pod, wait_for_pod_remount
from common import wait_for_pod_remount
from common import get_core_api_client, write_pod_volume_random_data
from common import create_pvc_spec, make_deployment_with_pvc # NOQA
from common import core_api, statefulset, pvc, pod, client # NOQA
Expand Down Expand Up @@ -348,7 +348,8 @@ def test_rwx_delete_share_manager_pod(core_api, statefulset): # NOQA
2. Wait for StatefulSet to come up healthy.
3. Write data and compute md5sum.
4. Delete the share manager pod.
5. Wait for a new pod to be created and volume getting attached.
5. The workload pod should still be functioning
and the volume should remain attached.
6. Check the data md5sum in statefulSet.
7. Write more data to it and compute md5sum.
8. Check the data md5sum in share manager volume.
Expand Down Expand Up @@ -382,9 +383,6 @@ def test_rwx_delete_share_manager_pod(core_api, statefulset): # NOQA
delete_and_wait_pod(core_api, share_manager_name,
namespace=LONGHORN_NAMESPACE)

target_pod = core_api.read_namespaced_pod(name=pod_name,
namespace='default')
wait_delete_pod(core_api, target_pod.metadata.uid)
wait_for_pod_remount(core_api, pod_name)

test_data_2 = generate_random_data(VOLUME_RWTEST_SIZE)
Expand Down

0 comments on commit e8cc75c

Please sign in to comment.