Skip to content

[reproducer] Fix MAC address corruption in bm_info#4018

Open
hjensas wants to merge 1 commit into
openstack-k8s-operators:mainfrom
hjensas:OSPRH-31852
Open

[reproducer] Fix MAC address corruption in bm_info#4018
hjensas wants to merge 1 commit into
openstack-k8s-operators:mainfrom
hjensas:OSPRH-31852

Conversation

@hjensas

@hjensas hjensas commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

The _with_nics variable already evaluates to a Python dict from the combine() call. Piping it through | from_yaml caused Ansible to serialize it as a YAML string and re-parse it.

PyYAML's YAML 1.1 sexagesimal rule then corrupted all-numeric MAC addresses (e.g. 41:13:61:22:00:02) into integers (41136122002).

Remove the redundant | from_yaml to prevent the lossy round-trip.

Closes: OSPRH-31852
Assisted-By: Claude (claude-4.6-sonnet-medium)

The `_with_nics` variable already evaluates to a Python dict from
the `combine()` call. Piping it through `| from_yaml` caused Ansible
to serialize it as a YAML string and re-parse it.

PyYAML's YAML 1.1 sexagesimal rule then corrupted **all-numeric** MAC
addresses (e.g. `41:13:61:22:00:02`) into integers (`41136122002`).

Remove the redundant `| from_yaml` to prevent the lossy round-trip.

Closes: OSPRH-31852
Assisted-By: Claude (claude-4.6-sonnet-medium)
Signed-off-by: Harald Jensås <hjensas@redhat.com>
@openshift-ci

openshift-ci Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign michburk for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant