Skip to content

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

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

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

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.

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>

@chunjiez chunjiez left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's possible to generate such a table by automatic method, however, it is not valuable. It's just a text UI application.

@stephenchengCloud stephenchengCloud merged commit 5fa04f1 into master 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