Skip to content

server: fix additional zones cannot be removed - #9261

Merged
yadvr merged 1 commit into
apache:4.19from
weizhouapache:4.19-fix-delete-zone-fail
Jun 21, 2024
Merged

server: fix additional zones cannot be removed#9261
yadvr merged 1 commit into
apache:4.19from
weizhouapache:4.19-fix-delete-zone-fail

Conversation

@weizhouapache

Copy link
Copy Markdown
Member

Description

This PR reverts a change in #9212

Got an exception when delete a zone

com.cloud.utils.exception.CloudRuntimeException: The zone cannot be deleted because there are Secondary storages in this zone

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

Got an exception when delete a zone
```
com.cloud.utils.exception.CloudRuntimeException: The zone cannot be deleted because there are Secondary storages in this zone
```
@codecov

codecovBot commented Jun 17, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 14.95%. Comparing base (00fe25a) to head (9d9177d).
Report is 2 commits behind head on 4.19.

FilesPatch %Lines
...dstack/storage/datastore/db/ImageStoreDaoImpl.java0.00%1 Missing ⚠️
Additional details and impacted files
@@ Coverage Diff @@## 4.19 #9261 +/- ##
==========================================
Coverage 14.95% 14.95% Complexity 11017 11017 ==========================================
Files 5378 5378 Lines 469935 469935 Branches 59493 58597 -896 ==========================================
Hits 70301 70301 Misses 391847 391847 Partials 7787 7787 
FlagCoverage Δ
uitests4.29% <ø> (ø)
unittests15.67% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@DaanHoogland

Copy link
Copy Markdown
Contributor

I can see how this might fix a regression @weizhouapache , but isn't ZONE the proper Scope for this query logically? It seems like the solution should be in a data repair???

@weizhouapache

Copy link
Copy Markdown
MemberAuthor

I can see how this might fix a regression @weizhouapache , but isn't ZONE the proper Scope for this query logically? It seems like the solution should be in a data repair???

@DaanHoogland
if the scope if REGION, it means the image store can be accessed by all zones
the method lists

  • image stores with scope=REGION
  • and image store with scope=ZONE and data_center_id=

@DaanHooglandDaanHoogland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clgtm

@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 9990

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

[SF] Trillian Build Failed (tid-10492)

@weizhouapache

Copy link
Copy Markdown
MemberAuthor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@weizhouapache a [SL] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@DaanHooglandDaanHoogland added this to the 4.19.1.0 milestone Jun 19, 2024
@blueorangutan

Copy link
Copy Markdown

[SF] Trillian test result (tid-10494)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 57586 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9261-t10494-kvm-centos7.zip
Smoke tests completed. 128 look OK, 3 have errors, 0 did not run
Only failed and skipped tests results shown below:

TestResultTime (s)Test File
test_create_pvlan_networkError0.06test_pvlan.py
test_02_trigger_shutdownFailure336.69test_safe_shutdown.py
test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACLFailure1033.07test_vpc_redundant.py
test_02_redundant_VPC_default_routesFailure1205.97test_vpc_redundant.py
test_05_rvpc_multi_tiersFailure501.96test_vpc_redundant.py
test_05_rvpc_multi_tiersError501.98test_vpc_redundant.py

@yadvr
yadvr merged commit 0c422ac into apache:4.19Jun 21, 2024
@DaanHoogland
DaanHoogland deleted the 4.19-fix-delete-zone-fail branch June 21, 2024 11:22
dhslove pushed a commit to ablecloud-team/ablestack-cloud that referenced this pull request Jul 2, 2024
Got an exception when delete a zone
```
com.cloud.utils.exception.CloudRuntimeException: The zone cannot be deleted because there are Secondary storages in this zone
```
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants

@weizhouapache@DaanHoogland@blueorangutan@yadvr