intel / intel/mfd-osd-control

Alter host issue

Open
#2 0 comments 0 reactions 1 assignee Claimed by @adrianlasota View on GitHub
Dominant language
Python
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Hello,

I'm encountering an issue when attempting to set the active_boot_type parameter using the osd.alter_host() function in the MFD Python module. Despite passing active_boot_type=ActiveBootType.DISKLESS, the host configuration does not reflect this change.

Part of the code:

osd.alter_host(mac=MAC,
active_boot_type=ActiveBootType.DISKLESS,
diskless_os="xxx",
refresh=RefreshMode.ONCE
)

The logs indicate that the PUT request to the OSD API does not include the active_boot_type parameter. Only diskless_os_key and refresh_mode are being sent:

LOG:

MODULE_DEBUG:mfd_osd_control.mfd_osd_control:Sending PUT request to OSD https://xxx/v1/api/ with params {'diskless_os_key': 'xxx', 'refresh_mode': 'ONCE'} for altering host.
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): xxx:443
DEBUG:urllib3.connectionpool:https://xxx:443 "PUT /v1/api/host/xxx HTTP/1.1" 200 1479
MODULE_DEBUG:mfd_osd_control.mfd_osd_control:Host xxx has been updated successfully.

Despite the successful response (200 OK), the boot type remains unchanged. The expected behavior is that the host's active boot type should be updated to DISKLESS.

Let me know if you need more logs or a test case.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.