Bug 1952854 - [OSP 17] Ignoring error injecting admin_password into image (a bytes-like object is required, not 'str')
Summary: [OSP 17] Ignoring error injecting admin_password into image (a bytes-like obj...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 17.0 (Wallaby)
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: beta
: 17.0
Assignee: Lee Yarwood
QA Contact: OSP DFG:Compute
URL:
Whiteboard:
Depends On:
Blocks: 1952859 1952902
TreeView+ depends on / blocked
 
Reported: 2021-04-23 11:36 UTC by Lee Yarwood
Modified: 2023-03-21 19:41 UTC (History)
7 users (show)

Fixed In Version: openstack-nova-23.0.3-0.20210908140341.e39bbdc.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-21 12:14:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1882421 0 None None None 2021-04-23 11:36:58 UTC
OpenStack gerrit 787712 0 None NEW guestfs: With libguestfs >= v1.41.1 decode returned bytes to string 2021-04-23 11:36:58 UTC
Red Hat Issue Tracker OSP-3272 0 None None None 2021-11-17 09:34:10 UTC
Red Hat Product Errata RHEA-2022:6543 0 None None None 2022-09-21 12:15:25 UTC

Description Lee Yarwood 2021-04-23 11:36:58 UTC
Description of problem:

https://bugzilla.redhat.com/show_bug.cgi?id=1661871 and https://github.com/libguestfs/libguestfs/commit/0ee02e0117527b86a31b2a88a14994ce7f15571f changed the return type of the read_file libguestfs API within their python bindings from a string to bytes.

As a result any attempt to inject an admin password fails with the resulting error being ignored by Nova.

Version-Release number of selected component (if applicable):
>= OSP 16.0

How reproducible:
Always.

Steps to Reproduce:
1. Try to set an admin password with something like:
$ openstack server create --image fedora32 --flavor m1.medium --password redhat --network private test

Actual results:
Instance spawns correctly but password isn't set.

Expected results:
Instance spawns with password correctly set.

Additional info:

Comment 8 errata-xmlrpc 2022-09-21 12:14:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2022:6543


Note You need to log in before you can comment on or make changes to this bug.