Commit 1c83d6d
authored
CA-426596: Supports SM feature removing (#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.1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
112 | 122 | | |
113 | | - | |
| 123 | + | |
114 | 124 | | |
115 | 125 | | |
116 | 126 | | |
117 | 127 | | |
118 | 128 | | |
119 | | - | |
| 129 | + | |
120 | 130 | | |
121 | 131 | | |
122 | 132 | | |
| |||
0 commit comments