Commit f3e3bea
committed
CA-426596: Supports SM feature removing
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. One host reports the feature
is removed, it be removed from pool-level db.
Signed-off-by: Changlei Li <changlei.li@citrix.com>1 parent d317bbf commit f3e3bea
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
112 | 116 | | |
113 | | - | |
| 117 | + | |
114 | 118 | | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
118 | 122 | | |
119 | | - | |
| 123 | + | |
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
| |||
0 commit comments