Skip to content

Convert all OpaqueRef fields in host, pool, SR and VM records#88

Merged
stephenchengCloud merged 1 commit into
release/xs8from
private/stephenche/CA-388617-2
Jun 8, 2026
Merged

Convert all OpaqueRef fields in host, pool, SR and VM records#88
stephenchengCloud merged 1 commit into
release/xs8from
private/stephenche/CA-388617-2

Conversation

@stephenchengCloud

Copy link
Copy Markdown
Contributor

xsconsole maps raw xapi OpaqueRef strings to typed HotOpaqueRef objects using hand-maintained converter tables in HotData. Newer XAPI releases added several Ref fields (e.g. host.control_domain, host.certificates, host.features, pool.repositories, VM.groups) that were missing from these tables. In testing mode this caused xsconsole to spam "Missed OpaqueRef" messages over the curses UI, notably on the Resource Pool Configuration screen.

Add the missing Ref / Set(Ref) fields to the FetchHost, FetchPool, FetchSR and FetchVM converters, cross-referenced against the xen-api datamodel. Map(String, Ref) fields such as host.blobs are intentionally left unconverted.

(cherry picked from commit 5fa04f1)

xsconsole maps raw xapi OpaqueRef strings to typed HotOpaqueRef objects
using hand-maintained converter tables in HotData. Newer XAPI releases
added several Ref fields (e.g. host.control_domain, host.certificates,
host.features, pool.repositories, VM.groups) that were missing from
these tables. In testing mode this caused xsconsole to spam "Missed
OpaqueRef" messages over the curses UI, notably on the Resource Pool
Configuration screen.

Add the missing Ref / Set(Ref) fields to the FetchHost, FetchPool,
FetchSR and FetchVM converters, cross-referenced against the xen-api
datamodel. Map(String, Ref) fields such as host.blobs are intentionally
left unconverted.

Signed-off-by: Stephen Cheng <stephen.cheng@citrix.com>
(cherry picked from commit 5fa04f1)
@stephenchengCloud

Copy link
Copy Markdown
Contributor Author

Just a cherry-pick from XS 9.

@stephenchengCloud stephenchengCloud merged commit 789ad7a into release/xs8 Jun 8, 2026
2 checks passed
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