tempest - standalone virturalmedia redfish can fail trying to use ipxe...

Bug #2028279 reported by Julia Kreger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
New
Undecided
Unassigned

Bug Description

While investigating failures related to the recent ubuntu jammy dnsmasq[0] issues. We stumbled upon a CI job which was executing the ironic_tempest_plugin.tests.scenario.ironic_standalone.test_ramdisk_iso.BaremetalRamdiskBootIsoVMedia test scenario. It *appears* that we never performed virtual media configuration, likely because for this test to work the boot_interface would have needed to be redfish-virtual-media. It appears the test did not update it either (need to check if it is supposed to, or not.)

The test did the right thing, Setting the iso in the instance_info filed:

"instance_info": {"boot_iso": "http://mirrors.dotsrc.org/tinycorelinux/14.x/x86/release/Core-current.iso"},

Response payload towards the end of the test:

    Response - Headers: {'date': 'Thu, 20 Jul 2023 07:21:34 GMT', 'server': 'Apache/2.4.52 (Ubuntu)', 'x-openstack-ironic-api-minimum-version': '1.1', 'x-openstack-ironic-api-maximum-version': '1.86', 'x-openstack-ironic-api-version': '1.66', 'content-length': '3138', 'content-type': 'application/json', 'openstack-request-id': 'req-3cf4b909-7b7b-4661-8cb2-130b268792d9', 'connection': 'close', 'status': '200', 'content-location': 'https://173.231.255.106/baremetal/v1/nodes/dc700a35-34d4-45bd-9002-854aa9d62def'}
        Body: b'{"uuid": "dc700a35-34d4-45bd-9002-854aa9d62def", "created_at": "2023-07-20T07:12:38+00:00", "updated_at": "2023-07-20T07:21:35+00:00", "automated_clean": null, "bios_interface": "no-bios", "boot_interface": "ipxe", "clean_step": {}, "conductor_group": "", "console_enabled": false, "console_interface": "no-console", "deploy_interface": "ramdisk", "deploy_step": {}, "description": null, "driver": "redfish", "driver_info": {"redfish_address": "http://173.231.255.106:9132", "redfish_username": "admin", "redfish_password": "******", "redfish_system_id": "/redfish/v1/Systems/node-3"}, "driver_internal_info": {"deploy_steps": null, "last_power_state_change": "2023-07-20T07:21:32.936536"}, "extra": {}, "fault": null, "inspection_finished_at": null, "inspection_started_at": null, "inspect_interface": "no-inspect", "instance_info": {"boot_iso": "http://mirrors.dotsrc.org/tinycorelinux/14.x/x86/release/Core-current.iso"}, "instance_uuid": "a25ed689-625a-48a1-a11c-b485a1dd58eb", "last_error": null, "lessee": null, "maintenance": false, "maintenance_reason": null, "management_interface": "redfish", "name": "node-3", "network_data": {}, "network_interface": "flat", "owner": null, "power_interface": "redfish", "power_state": "power on", "properties": {"cpu_arch": "x86_64", "capabilities": "boot_mode:uefi", "vendor": "Sushy Emulator"}, "protected": false, "protected_reason": null, "provision_state": "active", "provision_updated_at": "2023-07-20T07:21:35+00:00", "raid_config": {}, "raid_interface": "no-raid", "rescue_interface": "no-rescue", "reservation": null, "resource_class": "baremetal", "retired": false, "retired_reason": null, "storage_interface": "noop", "target_power_state": null, "target_provision_state": null, "target_raid_config": {}, "traits": ["CUSTOM_GOLD"], "vendor_interface": "no-vendor", "links": [{"href": "https://173.231.255.106/baremetal/v1/nodes/dc700a35-34d4-45bd-9002-854aa9d62def", "rel": "self"}, {"href": "https://173.231.255.106/baremetal/nodes/dc700a35-34d4-45bd-9002-854aa9d62def", "rel": "bookmark"}], "conductor": "np0034723273", "allocation_uuid": null, "chassis_uuid": "58dec4c9-d6e3-400a-9890-420836dac790", "ports": [{"href": "https://173.231.255.106/baremetal/v1/nodes/dc700a35-34d4-45bd-9002-854aa9d62def/ports", "rel": "self"}, {"href": "https://173.231.255.106/baremetal/nodes/dc700a35-34d4-45bd-9002-854aa9d62def/ports", "rel": "bookmark"}], "states": [{"href": "https://173.231.255.106/baremetal/v1/nodes/dc700a35-34d4-45bd-9002-854aa9d62def/states", "rel": "self"}, {"href": "https://173.231.255.106/baremetal/nodes/dc700a35-34d4-45bd-9002-854aa9d62def/states", "rel": "bookmark"}], "portgroups": [{"href": "https://173.231.255.106/baremetal/v1/nodes/dc700a35-34d4-45bd-9002-854aa9d62def/portgroups", "rel": "self"}, {"href": "https://173.231.255.106/baremetal/nodes/dc700a35-34d4-45bd-9002-854aa9d62def/portgroups", "rel": "bookmark"}], "volume": [{"href": "https://173.231.255.106/baremetal/v1/nodes/dc700a35-34d4-45bd-9002-854aa9d62def/volume", "rel": "self"}, {"href": "https://173.231.255.106/baremetal/nodes/dc700a35-34d4-45bd-9002-854aa9d62def/volume", "rel": "bookmark"}]}'

It *really* looks like somehow we just started with the wrong boot_interface setting. :\

[0]: https://bugs.launchpad.net/ironic/+bug/2026757?comments=all

Revision history for this message
Julia Kreger (juliaashleykreger) wrote :
Download full text (4.2 KiB)

So tempest, seems to have failed to execute, or to be more precise, the plugin failed, to set the configuration as expected:

       Body: [{"path": "/driver", "value": "redfish", "op": "replace"}, {"path": "/deploy_interface", "value": "ramdisk", "op": "replace"}]
    Response - Headers: {'date': 'Thu, 20 Jul 2023 07:21:10 GMT', 'server': 'Apache/2.4.52 (Ubuntu)', 'x-openstack-ironic-api-minimum-version': '1.1', 'x-openstack-ironic-api-maximum-version': '1.86', 'x-openstack-ironic-api-version': '1.66', 'content-length': '2988', 'content-type': 'application/json', 'openstack-request-id': 'req-5498b2f1-096f-4252-913e-59045841d6b5', 'connection': 'close', 'status': '200', 'content-location': 'https://173.231.255.106/baremetal/v1/nodes/dc700a35-34d4-45bd-9002-854aa9d62def'}
        Body: b'{"uuid": "dc700a35-34d4-45bd-9002-854aa9d62def", "created_at": "2023-07-20T07:12:38+00:00", "updated_at": "2023-07-20T07:21:11+00:00", "automated_clean": null, "bios_interface": "no-bios", "boot_interface": "ipxe", "clean_step": {}, "conductor_group": "", "console_enabled": false, "console_interface": "no-console", "deploy_interface": "ramdisk", "deploy_step": {}, "description": null, "driver": "redfish", "driver_info": {"redfish_address": "http://173.231.255.106:9132", "redfish_username": "admin", "redfish_password": "******", "redfish_system_id": "/redfish/v1/Systems/node-3"}, "driver_internal_info": {}, "extra": {}, "fault": null, "inspection_finished_at": null, "inspection_started_at": null, "inspect_interface": "no-inspect", "instance_info": {}, "instance_uuid": "a25ed689-625a-48a1-a11c-b485a1dd58eb", "last_error": null, "lessee": null, "maintenance": false, "maintenance_reason": null, "management_interface": "redfish", "name": "node-3", "network_data": {}, "network_interface": "flat", "owner": null, "power_interface": "redfish", "power_state": "power off", "properties": {"cpu_arch": "x86_64", "capabilities": "boot_mode:uefi", "vendor": "Sushy Emulator"}, "protected": false, "protected_reason": null, "provision_state": "available", "provision_updated_at": "2023-07-20T07:12:51+00:00", "raid_config": {}, "raid_interface": "no-raid", "rescue_interface": "no-rescue", "reservation": "np0034723273", "resource_class": "baremetal", "retired": false, "retired_reason": null, "storage_interface": "noop", "target_power_state": null, "target_provision_state": null, "target_raid_config": {}, "traits": ["CUSTOM_GOLD"], "vendor_interface": "no-vendor", "links": [{"href": "https://173.231.255.106/baremetal/v1/nodes/dc700a35-34d4-45bd-9002-854aa9d62def", "rel": "self"}, {"href": "https://173.231.255.106/baremetal/nodes/dc700a35-34d4-45bd-9002-854aa9d62def", "rel": "bookmark"}], "conductor": "np0034723273", "allocation_uuid": null, "chassis_uuid": "58dec4c9-d6e3-400a-9890-420836dac790", "ports": [{"href": "https://173.231.255.106/baremetal/v1/nodes/dc700a35-34d4-45bd-9002-854aa9d62def/ports", "rel": "self"}, {"href": "https://173.231.255.106/baremetal/nodes/dc700a35-34d4-45bd-9002-854aa9d62def/ports", "rel": "bookmark"}], "states": [{"href": "https://173.231.255.106/baremetal/v1/nodes/dc700a35-34d4-45bd-9002-854aa9d62def/states", "rel": "self"}, {"href": "https://173.231.25...

Read more...

Revision history for this message
Julia Kreger (juliaashleykreger) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.