Bug 1952859

Summary: [OSP 16.2] Ignoring error injecting admin_password into image (a bytes-like object is required, not 'str')
Product: Red Hat OpenStack Reporter: Lee Yarwood <lyarwood>
Component: openstack-novaAssignee: Lee Yarwood <lyarwood>
Status: CLOSED ERRATA QA Contact: James Parker <jparker>
Severity: high Docs Contact:
Priority: high    
Version: 16.2 (Train)CC: dasmith, eglynn, jhakimra, jparker, kchamart, mschuppe, sbauza, sgordon, stephenfin, vromanso
Target Milestone: betaKeywords: Patch, Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-nova-20.6.1-2.20210510134812.10df176.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1952902 (view as bug list) Environment:
Last Closed: 2021-09-15 07:14:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1952854    
Bug Blocks: 1952902    

Description Lee Yarwood 2021-04-23 11:46:45 UTC
This bug was initially created as a copy of Bug #1952854

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 14 errata-xmlrpc 2021-09-15 07:14:16 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 (Red Hat OpenStack Platform (RHOSP) 16.2 enhancement advisory), 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-2021:3483