Commit 30a56a4
CP-17481: Add upgrade logic for new Host.control_domain
This needs to be done before the "hi-level" database upgrade because the
code to ensure the VM record for dom0 exists is in the dbsync logic
which is called as part of starting the database engine. This all
happens before the DB upgrade, and therefore, the dbsync logic tries to
create an additional dom0 record because it does not have the
Host.control_domain link.
This patch adds the Host.control_domain link during the dbsync if it
finds a VM with the CONTROL_DOMAIN_UUID from the Xensource_inventory.
Signed-off-by: Si Beaumont <[email protected]>1 parent 54933c4 commit 30a56a4
1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
140 | | - | |
141 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
142 | 152 | | |
143 | 153 | | |
144 | 154 | | |
| |||
226 | 236 | | |
227 | 237 | | |
228 | 238 | | |
| 239 | + | |
229 | 240 | | |
230 | 241 | | |
231 | 242 | | |
| |||
0 commit comments