Skip to content

Conversation

last-genius
Copy link
Contributor

No description provided.

…starting up

Otherwise, errors like this can be a little bit confusing in the logs:

```
[dispatch:session.login_with_password |backtrace]
Raised Db_exn.Read_missing_uuid("host", "", "236acc01-0f95-4af1-8b35-f5a2fb51c354")
```

Signed-off-by: Andrii Sultanov <[email protected]>
It is a XenServer-specific expectation that these certificates should always be
present on the host (they are not provided on XCP-ng by default, for example,
due to licensing restrictions).

The error log is not followed by any exception, and the missing UEFI
certificates do not interrupt any operation, they just mean the host is set up
differently (which can be verified by the clients with appropriate API calls
like pool-get-guest-secureboot-readiness):

```
xapi: [error||Sync UEFI certificates on host with XAPI db |xapi_host]
check_valid_uefi_certs: missing KEK.auth in /var/lib/varstored

xapi: [error||Sync UEFI certificates on host with XAPI db |xapi_host]
check_valid_uefi_certs: missing db.auth in /var/lib/varstored
```

These warrant a warning instead of an error log.

Signed-off-by: Andrii Sultanov <[email protected]>
The regex removed parameters with a particular suffix instead of checking for
the whole name.

For example, after providing a uuid parameter to xe vif-move, network-uuid
would no longer be suggested:
```
$ xe vif-move <TAB><TAB>
network-uuid=  uuid=

$ xe vif-move uuid=0af7619c-0798-c5be-5a0e-20813a48c7df <TAB><TAB>
```

This is fixed now:
```
$ xe vif-move uuid=0af7619c-0798-c5be-5a0e-20813a48c7df <TAB><TAB>
$ xe vif-move uuid=0af7619c-0798-c5be-5a0e-20813a48c7df network-uuid=
```

Signed-off-by: Andrii Sultanov <[email protected]>
@last-genius
Copy link
Contributor Author

Noticed a few more things to fix, so marking as draft

@last-genius last-genius marked this pull request as draft June 12, 2025 10:11
There were several optional boolean parameters that were checked and used in
cli_operations but were not included in cli_frontend (therefore would not be
shown in suggestions or 'xe help command').

Add these to cli_frontend. is_unique is a ... unique case because it does not
follow the style of the CLI parameters (which use dashes, not underscores, to
separate words), so add 'is-unique' to cli_frontend but handle both in
cli_operations.

Signed-off-by: Andrii Sultanov <[email protected]>
This code hasn't been used for 10+ years.

Signed-off-by: Andrii Sultanov <[email protected]>
@last-genius last-genius marked this pull request as ready for review June 12, 2025 10:44
@last-genius
Copy link
Contributor Author

Added three more commits

@last-genius last-genius added this pull request to the merge queue Jun 13, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 13, 2025
@last-genius last-genius added this pull request to the merge queue Jun 13, 2025
Merged via the queue into xapi-project:master with commit 8b1ec25 Jun 13, 2025
16 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