Skip to content

[master] CA-426596: Supports SM feature removing#7045

Merged
robhoes merged 2 commits intoxapi-project:masterfrom
changlei-li:private/changleli/sm-feature-remove
Apr 29, 2026
Merged

[master] CA-426596: Supports SM feature removing#7045
robhoes merged 2 commits intoxapi-project:masterfrom
changlei-li:private/changleli/sm-feature-remove

Conversation

@changlei-li
Copy link
Copy Markdown
Contributor

In current xapi_sm.ml, the quired new sm features at XAPI start goes to pending_features. After all hosts reporting the new sm features, they are set in xapi-db.
However, when the sm feature is removed, the item still exists. For example, xapi-storage-plugins-xfs remove SR_PROB as it is not implemented, but XAPI doesn't detect it. It leads to fresh-installed host (withour xfs SR_PROB) can't join the pool (with xfs SR_PROB) due to POOL_JOINING_SM_FEATURES_INCOMPATIBLE.
Considering the pending_features, it wants to keep the minimal common features all over the hosts. As the same principle, the removed feature shall be removed immediately in the pool-level sm table. If one host reports the feature is removed, it should be removed from pool-level db.

This the forward port of PR #7042.

In current xapi_sm.ml, the quired new sm features at
XAPI start goes to pending_features. After all hosts
reporting the new sm features, they are set in xapi-db.
However, when the sm feature is removed, the item still
exists. For example, xapi-storage-plugins-xfs remove
SR_PROB as it is not implemented, but XAPI doesn't detect
it. It leads to fresh-installed host (withour xfs SR_PROB)
can't join the pool (with xfs SR_PROB) due to
POOL_JOINING_SM_FEATURES_INCOMPATIBLE.

Considering the pending_features, it wants to keep the
minimal common features all over the hosts. As the same
principle, the removed feature shall be removed immediately
in the pool-level sm table. If one host reports the feature
is removed, it should be removed from pool-level db.

Signed-off-by: Changlei Li <changlei.li@citrix.com>
Signed-off-by: Changlei Li <changlei.li@citrix.com>
@robhoes robhoes added this pull request to the merge queue Apr 29, 2026
Merged via the queue into xapi-project:master with commit fd19748 Apr 29, 2026
16 checks passed
@changlei-li changlei-li deleted the private/changleli/sm-feature-remove branch April 30, 2026 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants