Closed reneradoi closed 3 months ago
This PR updates the installed snap to the fixed version which can install on existing storage and does not overwrite the data in snap_common.
Other content of this PR:
The integration test test_storage_reuse_after_scale_down
is now working. I've:
The test case test_storage_reuse_in_new_cluster_after_app_removal
is being skipped. Currently this test fails all the time, I first need to understand how this is supposed to work before fixing this test.
The PR is now ready for review again.
LGTM. My only remark is that we need to dig more into what is causing the 503.
On a separate PR, we should log 503 errors and its explanation, as follows:
GET _cluster/allocation/explain { "index": ".charm-node-lock", }
Yes that's true, I'll add another issue or draft PR, will think about it.
Issue
When attaching an existing storage to a new unit, 2 issues happen:
Solution
Integration Testing
Tests for attaching existing storage can be found in integration/ha/test_storage.py. There are now three test cases:
Other Issues
As part of this PR, another issue is addressed: https://github.com/canonical/opensearch-operator/issues/306. It is resolved with this commit: https://github.com/canonical/opensearch-operator/pull/272/commits/19f843c201504f89025cc3442cbdc8e8e69bec9f