Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1040697

Summary: Automated build process failed due to invalid /dev/sda3 entry in /etc/fstab
Product: Red Hat Enterprise Linux 6 Reporter: Bob Brown <rob.v.brown>
Component: ec2-imagesAssignee: dgao
Status: CLOSED WONTFIX QA Contact: Vratislav Hutsky <vhutsky>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.4CC: dgregor, jgreguske, jmatthew, vhutsky
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-06 11:00:36 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 Bob Brown 2013-12-11 22:33:29 UTC
Description of problem:
automated build for RHEL 6.4 in AWS failed when swapon -a returned 255 due to /etc/fstab entry

Version-Release number of selected component (if applicable):
AMI: RHEL-6.4_GA-x86_64-7-Hourly2 (ami-5344d263)

How reproducible:  Happened 4 times before I figured out what was going on


Steps to Reproduce:
1.  Build an Instance
2.  Create a swap device (LVM typically)
3.  Add entry to /etc/fstab for new swap device
4.  Run swapon -a to add all swap devices

Actual results:  
Return code 255 with output about /dev/sda3  not existing

Expected results: 
Return code of 0 as the device added should be the only one.


Additional info:
Workaround:  use swapon -a -e

Comment 2 Vratislav Hutsky 2016-08-31 10:55:55 UTC
Following the below mentioned procedure, we were not able to reproduce the issue:

1. create an instance of ami-5344d263 (us-west-2 region)
2. once the system is up, attach a new volume to the instance (/dev/xvdj)
3. create a swap partition:
     fdisk /dev/xvdj
4. mkswap /dev/xvdj1
5. add entry to /etc/fstab
     /dev/xvdj1 none            swap    sw              0       0
6. swapon -a
7. exit code is 0 and free -m shows the swap space is in use

We also gave it a try on a RHEL 6.8 machine (ami-e017f58f in eu-central-1), the result was the same, exit code 0.

Comment 4 Jan Kurik 2017-12-06 11:00:36 UTC
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.

The official life cycle policy can be reviewed here:

http://redhat.com/rhel/lifecycle

This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com/