-
Notifications
You must be signed in to change notification settings - Fork 27
[DPE-6965] Wait for all storages to detatch in smoke test #869
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
Conversation
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
…ools Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
…ools Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Signed-off-by: Marcelo Henrique Neppel <marcelo.neppel@canonical.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 16/edge #869 +/- ##
========================================
Coverage 70.83% 70.83%
========================================
Files 15 15
Lines 3888 3888
Branches 580 580
========================================
Hits 2754 2754
Misses 949 949
Partials 185 185 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| timeout-minutes: 1 | ||
| if: ${{ !contains(matrix.job.spread_job, 'juju29') && (success() || (failure() && steps.spread.outcome == 'failure')) }} | ||
| run: sudo juju status --color --relations | tee ~/logs/juju-status.txt | ||
| run: sudo juju status --color --relations --storage | tee ~/logs/juju-status.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For easier debug in the future.
| "archive": {"pool": "lxd-btrfs", "size": 2048}, | ||
| "data": {"pool": "lxd-btrfs", "size": 2048}, | ||
| "logs": {"pool": "lxd-btrfs", "size": 2048}, | ||
| "temp": {"pool": "lxd-btrfs", "size": 2048}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reduce volume sizes, we may run into disk space issues in the future.
| assert len(garbage_storages) == 4 | ||
| logger.info(f"Collected storages: {garbage_storages}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before we waited for a single storage to detach, but now we need all four of them to redeploy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good check.
| await ops_test.model.set_config({"update-status-hook-interval": "10s"}) | ||
|
|
||
| logger.info("waiting for duplicate application to be blocked") | ||
| try: | ||
| async with ops_test.fast_forward("60s"): | ||
| logger.info("waiting for duplicate application to be waiting") | ||
| await ops_test.model.wait_for_idle( | ||
| apps=[DUP_APPLICATION_NAME], timeout=1000, status="blocked" | ||
| apps=[DUP_APPLICATION_NAME], timeout=1000, status="waiting", idle_period=30 | ||
| ) | ||
| except asyncio.TimeoutError: | ||
| logger.info("Application is not in blocked state. Checking logs...") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't actually block here. The test just spend a bunch of time in waiting for idle.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
marceloneppel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much!
| assert len(garbage_storages) == 4 | ||
| logger.info(f"Collected storages: {garbage_storages}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good check.
Stabilise smoke test for storage.
Checklist