Bug 1136282
Summary: | `foreman-rake bootdisk:generate:generic` fails with: Permission denied - bootdisk_<fqdn>.iso | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Jan Hutař <jhutar> |
Component: | Provisioning | Assignee: | Dominic Cleal <dcleal> |
Status: | CLOSED ERRATA | QA Contact: | Tazim Kolhar <tkolhar> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.0.3 | CC: | bbuckingham, cwelton, lzap, mmccune, sghai, sthirugn, tkolhar |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://projects.theforeman.org/issues/7370 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-08-12 05:15:57 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jan Hutař
2014-09-02 09:33:24 UTC
Sorry, expected result (due to fact we are on Sat6 without any repos synced) should be some reasonable error message. ISO can not be generated because we do not have the content. I can confirm, this is because foreman-rake runs as "foreman" effective user. Unfortunately changing to /tmp does not help, it looks like it wants to create some kind of temporary file somewhere. We should respect the $PWD when copying the file. Workaround: [root@dell-pe2950-01 ~]# foreman-rake bootdisk:generate:generic OUTPUT=/tmp/my.iso Size of boot image is 4 sectors -> No emulation Total translation table size: 2048 Total rockridge attributes bytes: 0 Total directory bytes: 0 Path table size(bytes): 10 Max brk space used 0 339 extents written (0 MB) Wrote /tmp/my.iso WORKAROUND: User should specify an output directory on where to write the ISO file where the foreman user has permission to write to. A good example of this is /tmp Created redmine issue http://projects.theforeman.org/issues/7370 from this bug Moving to POST since upstream bug http://projects.theforeman.org/issues/7370 has been closed ------------- Dominic Cleal Applied in changeset commit:foreman_bootdisk|c010a67fada33276da4dd9164d6580f16d476904. VERIFIED: # foreman-rake bootdisk:generate:generic --trace ** Invoke bootdisk:generate:generic (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute bootdisk:generate:generic Size of boot image is 4 sectors -> No emulation Total translation table size: 2048 Total rockridge attributes bytes: 0 Total directory bytes: 290 Path table size(bytes): 10 Max brk space used 0 339 extents written (0 MB) Wrote /tmp/bootdisk_2365076133.dom.com.iso This bug is slated to be released with Satellite 6.1. 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, 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/RHSA-2015:1592 |