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

feat: DDS Backup, Restore, Configuration support #709

Merged
merged 3 commits into from
Aug 19, 2024
Merged

Conversation

anton-sidelnikov
Copy link
Member

What this PR does / why we need it

Which issue this PR fixes

Special notes for your reviewer

Acceptance tests:

=== RUN   TestDdsBackupLifeCycle
    backups_test.go:29: Attempting to create DDSv3 backup for instance: 00ea86cb93cd441aaa309812ea64675bin02
    backups_test.go:41: DDSv3 backup successfully created
    backups_test.go:52: Attempting to list DDSv3 backups for instance: 00ea86cb93cd441aaa309812ea64675bin02
    backups_test.go:59: Attempting to get download links for DDSv3 backup: a9fb8e82ce4c4c31991f5a0fef6c7150br02
    backups_test.go:67: Attempting to set backup policy for DDSv3 instance: 00ea86cb93cd441aaa309812ea64675bin02
    backups_test.go:78: Attempting to get backup policy for DDSv3 instance: 00ea86cb93cd441aaa309812ea64675bin02
    backups_test.go:85: Attempting to modify backup policy for DDSv3 instance: 00ea86cb93cd441aaa309812ea64675bin02
    backups_test.go:96: Attempting to get again backup policy for DDSv3 instance: 00ea86cb93cd441aaa309812ea64675bin02
    backups_test.go:45: Attempting to delete DDSv3 backup: a9fb8e82ce4c4c31991f5a0fef6c7150br02
    backups_test.go:49: Deleted DDSv3 backup: a9fb8e82ce4c4c31991f5a0fef6c7150br02
--- PASS: TestDdsBackupLifeCycle (140.74s)
PASS

Process finished with the exit code 0

=== RUN   TestDdsRestoreLifeCycle
    restore_test.go:24: Attempting to create DDSv3 backup for instance: 00ea86cb93cd441aaa309812ea64675bin02
    restore_test.go:36: DDSv3 backup successfully created
    restore_test.go:47: Attempting to restore DDSv3 instance to Original: 00ea86cb93cd441aaa309812ea64675bin02
    restore_test.go:40: Attempting to delete DDSv3 backup: 42cc132361764a22b4dd6c9a133ad429br02
    restore_test.go:44: Deleted DDSv3 backup: 42cc132361764a22b4dd6c9a133ad429br02
--- PASS: TestDdsRestoreLifeCycle (341.06s)
PASS

Process finished with the exit code 0

=== RUN   TestDdsConfigurationLifeCycle
    configuration_test.go:22: Attempting to get DDSv3 instance config
    configuration_test.go:27: Attempting to list DDSv3 template configurations
    configuration_test.go:32: Attempting to get DDSv3 template configuration
    configuration_test.go:37: Attempting to apply DDSv3 template configuration
--- PASS: TestDdsConfigurationLifeCycle (8.62s)
PASS

Process finished with the exit code 0


=== RUN   TestDdsList
--- PASS: TestDdsList (0.78s)
=== RUN   TestDdsSingleLifeCycle
    instances_test.go:34: Attempting to create DDSv3 single instance
    instances_test.go:278: DDSv3 replica set instance successfully created
    instances_test.go:44: {fc6f7ca2dc64489f9f43da83db9a282ain02 dds-acc-whXvM0aI  normal 8635 Single eu-de {DDS-Community 4.0 } wiredTiger 2024-08-16T16:23:53 2024-08-16T16:23:52 rwuser 0 16dbd25d-c55c-405b-9e56-11b03e7e7dc1 44ed75f0-65df-4865-b4d9-4565fc56e2f1 88a47a36-1b69-41b5-bef8-f74a2a85933f {08:00-09:00 0x14000010a90 } 14:00-18:00 [{single    {20 0.293701171875} [{275a349516724d538b3628601c474d4cno02 dds-acc-whXvM0aI_single_node_1 normal Primary 10.0.239.179  dds.mongodb.s2.medium.4.single eu-de-03}]}]   [] 0 []}
    instances_test.go:125: Update name
    helpers.go:59: Attempting to create eip/bandwidth
    helpers.go:75: Waiting for eip 98230841-8f01-4bd6-a808-4e64f3cad3d1 to be active
    helpers.go:82: Created eip/bandwidth: 98230841-8f01-4bd6-a808-4e64f3cad3d1
    instances_test.go:145: AttachEip
    instances_test.go:157: UnbindEip
    instances_test.go:167: Enable the SSL
    instances_test.go:174: Modify instance internal IP
    instances_test.go:184: Modify instance port
    instances_test.go:193: Modify instance SG
    instances_test.go:202: Modify instance specs
    instances_test.go:220: Modify instance volume size
    instances_test.go:415: Attempting to delete DDSv3 instance: fc6f7ca2dc64489f9f43da83db9a282ain02
    instances_test.go:425: DDSv3 instance deleted successfully: fc6f7ca2dc64489f9f43da83db9a282ain02
    helpers.go:88: Attempting to delete eip/bandwidth: 98230841-8f01-4bd6-a808-4e64f3cad3d1
    helpers.go:94: Waitting for eip 98230841-8f01-4bd6-a808-4e64f3cad3d1 to be deleted
    helpers.go:99: Deleted eip/bandwidth: 98230841-8f01-4bd6-a808-4e64f3cad3d1
--- PASS: TestDdsSingleLifeCycle (1155.97s)
PASS

=== RUN   TestDdsClusterLifeCycle
    instances_test.go:50: Attempting to create DDSv3 cluster instance
    instances_test.go:405: DDSv3 replica set instance successfully created: f80a1b98b44b416b8c3352247fd53658in02
    instances_test.go:60: {f80a1b98b44b416b8c3352247fd53658in02 dds-acc-K4ahauce  normal 8635 Sharding eu-de {DDS-Community 3.4 } wiredTiger 2024-08-16T13:56:10 2024-08-16T13:56:10 rwuser 0 16dbd25d-c55c-405b-9e56-11b03e7e7dc1 44ed75f0-65df-4865-b4d9-4565fc56e2f1 88a47a36-1b69-41b5-bef8-f74a2a85933f {08:00-09:00 0x140003ce500 } 14:00-18:00 [{mongos    { } [{3ccba8091383436b987599392a8c9846no02 dds-acc-K4ahauce_mongos_node_1 normal master 10.0.144.63  dds.mongodb.s2.medium.4.mongos eu-de-03} {75a9035944dd4de2afd8d2689bce8728no02 dds-acc-K4ahauce_mongos_node_2 normal master 10.0.20.187  dds.mongodb.s2.medium.4.mongos eu-de-03}]} {shard 449ab5912ea74011a9fb786817a4eafegr02 shard_1 normal {20 0.29344940185546875} [{02d508978fa54633943311c61ea07353no02 dds-acc-K4ahauce_shard_1_node_2 normal Primary   dds.mongodb.s2.medium.4.shard eu-de-03} {7f1237da662244a6a804fb68ce1e2203no02 dds-acc-K4ahauce_shard_1_node_3 normal Hidden   dds.mongodb.s2.medium.4.shard eu-de-03} {ea9cd414409a47de969239de93bf4296no02 dds-acc-K4ahauce_shard_1_node_1 normal Secondary   dds.mongodb.s2.medium.4.shard eu-de-03}]} {shard b0eab22ccf364718a2ab790b09415d13gr02 shard_2 normal {20 0.2937164306640625} [{35ae29e175a74a9c98e97f136ff1d371no02 dds-acc-K4ahauce_shard_2_node_2 normal Primary   dds.mongodb.s2.medium.4.shard eu-de-03} {3816d46e141f49ba868f866ebbcf9855no02 dds-acc-K4ahauce_shard_2_node_3 normal Hidden   dds.mongodb.s2.medium.4.shard eu-de-03} {6bf9957f9f5b4da6bb625bac826e4528no02 dds-acc-K4ahauce_shard_2_node_1 normal Secondary   dds.mongodb.s2.medium.4.shard eu-de-03}]} {config e9a7c78aa6f447ec855c5a2c9dfc0fb3gr02 config normal {20 0.29378509521484375} [{07ad0c6918554e50ab937d3f507d59cfno02 dds-acc-K4ahauce_config_node_1 normal Secondary   dds.mongodb.s2.large.2.config eu-de-03} {bbfa90c625f04a37a6e510f8f23dae8cno02 dds-acc-K4ahauce_config_node_3 normal Hidden   dds.mongodb.s2.large.2.config eu-de-03} {c6e38ef16ad6414cac4ac7879f42f2f7no02 dds-acc-K4ahauce_config_node_2 normal Primary   dds.mongodb.s2.large.2.config eu-de-03}]}]   [] 0 [{muh2 kuh2} {muh kuh}]}
    instances_test.go:62: Attempting to add 2 mongo nodes to cluster
    instances_test.go:73: Attempting to add 2 shard nodes to cluster
    instances_test.go:87: Enable config IP
    instances_test.go:410: Attempting to delete DDSv3 instance: f80a1b98b44b416b8c3352247fd53658in02
    instances_test.go:420: DDSv3 instance deleted successfully: f80a1b98b44b416b8c3352247fd53658in02
--- PASS: TestDdsClusterLifeCycle (1085.70s)
=== RUN   TestDdsReplicaLifeCycle
    instances_test.go:278: Attempting to create DDSv3 replica set instance
    instances_test.go:335: DDSv3 replica set instance successfully created
    instances_test.go:111: {05cc266bcfb74acdaa50c92c9e4df611in02 dds-acc-L6bk7AlX  normal 8635 ReplicaSet eu-de {DDS-Community 3.4 } wiredTiger 2024-08-16T14:14:32 2024-08-16T14:14:31 rwuser 0 16dbd25d-c55c-405b-9e56-11b03e7e7dc1 44ed75f0-65df-4865-b4d9-4565fc56e2f1 88a47a36-1b69-41b5-bef8-f74a2a85933f {08:00-09:00 0x140000aba20 } 14:00-18:00 [{replica    {20 0.2934150695800781} [{294bccc7a95e4737a9c9112889a5f0cbno02 dds-acc-L6bk7AlX_replica_node_3 normal Hidden 10.0.78.81  dds.mongodb.s2.medium.4.repset eu-de-03} {8c7514810c8343038a555a4ad9d73d63no02 dds-acc-L6bk7AlX_replica_node_1 normal Secondary 10.0.199.221  dds.mongodb.s2.medium.4.repset eu-de-03} {c26b87ed1cca4fefb94879b7c23a91a5no02 dds-acc-L6bk7AlX_replica_node_2 normal Primary 10.0.191.0  dds.mongodb.s2.medium.4.repset eu-de-03}]}]   [] 0 [{muh2 kuh2} {muh kuh}]}
    instances_test.go:410: Attempting to delete DDSv3 instance: 05cc266bcfb74acdaa50c92c9e4df611in02
    instances_test.go:420: DDSv3 instance deleted successfully: 05cc266bcfb74acdaa50c92c9e4df611in02
--- PASS: TestDdsReplicaLifeCycle (356.96s)
PASS

Process finished with the exit code 0

@anton-sidelnikov anton-sidelnikov added the gate Merge PR label Aug 19, 2024
@otc-zuul otc-zuul bot merged commit db3e93b into devel Aug 19, 2024
8 checks passed
@otc-zuul otc-zuul bot deleted the dds-update branch August 19, 2024 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gate Merge PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants