Bug 1984968 - Swift-less virtual media based deploy in BMaaS configurations fails with permission issue
Summary: Swift-less virtual media based deploy in BMaaS configurations fails with perm...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-ironic
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z2
: 16.2 (Train on RHEL 8.4)
Assignee: Steve Baker
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-22 14:44 UTC by Julia Kreger
Modified: 2022-03-23 22:11 UTC (History)
2 users (show)

Fixed In Version: openstack-ironic-13.0.8-2.20211123004901.be7cff6.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-23 22:10:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 732413 0 None MERGED Fix redfish-virtual-media file permission 2021-07-22 14:44:20 UTC
OpenStack gerrit 818183 0 None NEW Fix redfish-virtual-media file permission 2021-11-17 01:53:59 UTC
Red Hat Issue Tracker OSP-6378 0 None None None 2021-11-15 13:04:29 UTC
Red Hat Product Errata RHBA-2022:1001 0 None None None 2022-03-23 22:11:20 UTC

Description Julia Kreger 2021-07-22 14:44:20 UTC
Description of problem:

File permission errors are generated when attempting to access ISO virtual media files mastered for virtual media boot. Customer engineer contacted the upstream development team asking questions regarding Lenovo virtual media hardware compatibility. Since it is not officially documented as supported, and given their environment configuration they ran into some issues, one being the file permission issue. In this particular environment, the customer operates swift which the driver uses by default, however their BMCs are unable to access swift and they are not wanting to make the change to do so, and thus they needed to set [redfish]use_swift=False in the ironic configuration file.

<timeu> after adding the config flag, it tries to download the iso but fails with: PermissionError: [Errno 13] Permission denied: '/var/lib/ironic/httpboot/redfish/boot-01c9e448-b833-4a11-a561-3282b27e1205'
<timeu> seems like that the created redfish directory has some weird permissions: dr-x---r-t. 2 ironic ironic         6 Jul 21 21:33 redfish


Turns out, we already found and fixed this upstream, just never backported it to ?Victoria?, Ussuri, and Train releases of OpenStack.


Version-Release number of selected component (if applicable):

16.1

How reproducible:

Always when attempting to operate virtual media without swift, i.e. setting [redfish]use_swift=False.

Steps to Reproduce:
1. Set [redfish]use_swift=False in ironic.conf
2. Setup node for redfish virtual media based deployment
3. Deploy!

Actual results:

Deployment fails with underlying permission error in the logs. Ramdisk never boots.

Expected results:

Ramdisk boots in order to perform deployment.

Additional info:

Upstream fix which was confirmed to fix this in OCP has already been merged, and just needs to be backported upstream and then downstream where applicable.

Comment 1 Steve Baker 2021-11-17 01:54:00 UTC
Updating for the proposed train backport

Comment 9 errata-xmlrpc 2022-03-23 22:10:49 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 16.2.2), 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/RHBA-2022:1001


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