-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Labels
SCS-VP10Related to tender lot SCS-VP10Related to tender lot SCS-VP10bugSomething isn't workingSomething isn't working
Description
I run the test against a cloud that's missing cinder-backup. The test creates a backup resource, which is in permanent error state because of the missing service, and I cannot delete it. This might be called a cinder bug, but the test triggered it. We cannot use a test that leaks resources.
What's more: the test doesn't delete the volume either because of the uncaught timeout exception...
My shell journey (abridged):
$ Tests/iaas/volume-backup/volume-backup-tester.py --os-cloud poc-wgcloud --debug
Performing cleanup for resources with the 'scs-test-' prefix ...
Creating volume ...
↳ waiting for volume with ID 'ffc4136f-df3f-4d00-8ad7-78a0dd2c04ad' to reach status 'available' ...
Create empty volume: PASS
Creating backup from volume ...
Traceback (most recent call last):
File "/home/matthiasbuechse/opensrc/scs/standards/Tests/iaas/volume-backup/volume-backup-tester.py", line 283, in <module>
main()
File "/home/matthiasbuechse/opensrc/scs/standards/Tests/iaas/volume-backup/volume-backup-tester.py", line 278, in main
test_backup(conn, prefix=args.prefix, timeout=args.timeout)
File "/home/matthiasbuechse/opensrc/scs/standards/Tests/iaas/volume-backup/volume-backup-tester.py", line 115, in test_backup
assert seconds_waited < timeout, (
^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Timeout reached while waiting for backup to reach status 'available' (backup id: 86cc7f49-e91d-47b6-9668-959759820136) after 60 seconds
$ OS_CLOUD=poc-wgcloud .cargo/bin/osc block-storage backup show 86cc7f49-e91d-47b6-9668-959759820136
┌───────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Attribute ┆ Value │
╞═══════════════════════╪════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╡
│ created_at ┆ 2024-10-30T19:55:23.000000 │
│ data_timestamp ┆ 2024-10-30T19:55:23.000000 │
│ fail_reason ┆ Service not found for creating backup. │
│ has_dependent_backups ┆ false │
│ id ┆ 86cc7f49-e91d-47b6-9668-959759820136 │
│ is_incremental ┆ false │
│ links ┆ [{"href":"https://block-storage.l1a.cloudandheat.com/v3/8ef56c4ec0a046f98ec3d95c7a677a6e/backups/86cc7f49-e91d-47b6-9668-959759820136","rel":"self"},{"href":"https://block-storage.l1a.cloudandheat.com/8ef56c4ec0a046f98ec3d95c7a677a6e/backups/86cc7f49-e91d-47b6-9668-959759820136","rel":"bookmark"}] │
│ metadata ┆ {} │
│ name ┆ scs-test-volume-backup │
│ object_count ┆ 0 │
│ size ┆ 1 │
│ status ┆ error │
│ updated_at ┆ 2024-10-30T19:55:23.000000 │
│ volume_id ┆ ffc4136f-df3f-4d00-8ad7-78a0dd2c04ad │
└───────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
$ OS_CLOUD=poc-wgcloud .cargo/bin/osc block-storage backup force-delete 86cc7f49-e91d-47b6-9668-959759820136
Error:
0: openstack server error:
uri: `https://block-storage.l1a.cloudandheat.com/v3/8ef56c4ec0a046f98ec3d95c7a677a6e/backups/86cc7f49-e91d-47b6-9668-959759820136/action?`
status: `403 Forbidden`
data: `{"forbidden":{"code":403,"message":"Policy doesn't allow volume_extension:backup_admin_actions:force_delete to be performed."}}`
Location:
openstack_cli/src/bin/osc.rs:31Metadata
Metadata
Assignees
Labels
SCS-VP10Related to tender lot SCS-VP10Related to tender lot SCS-VP10bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done