Bug 1716404

Summary: [Regression] appliance console command for extending the temp storage is failing on RHEL 8
Product: Red Hat CloudForms Management Engine Reporter: Md Nadeem <mnadeem>
Component: ApplianceAssignee: Joe Vlcek <jvlcek>
Status: CLOSED CURRENTRELEASE QA Contact: Md Nadeem <mnadeem>
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.11.0CC: abellott, dgaikwad, jhenner, jvlcek, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.0.14 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-13 15:09:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:

Description Md Nadeem 2019-06-03 12:41:24 UTC
Description of problem:

The command "appliance_console_cli -t /dev/vdb" throws below error on cfme 5.11 having OS RHEL 8.0 (Ootpa) where as the same command working as expected in cfme 5.10 version having OS RHEL 7.6

~~~~~~~~~~~~~~~~~~~~~
 appliance_console_cli -t /dev/vdb
creating temp disk
Configuring /dev/vdb as temp storage...
Add temp disk starting
Add temp disk failed with error - mount exit code: 32.
See /var/www/miq/vmdb/log/appliance_console.log for details.
Traceback (most recent call last):
	11: from /opt/rh/cfme-gemset/bin/appliance_console_cli:23:in `<main>'
	10: from /opt/rh/cfme-gemset/bin/appliance_console_cli:23:in `load'
	 9: from /opt/rh/cfme-gemset/gems/manageiq-appliance_console-4.0.2/bin/appliance_console_cli:7:in `<top (required)>'
	 8: from /opt/rh/cfme-gemset/gems/manageiq-appliance_console-4.0.2/lib/manageiq/appliance_console/cli.rb:412:in `parse'
	 7: from /opt/rh/cfme-gemset/gems/manageiq-appliance_console-4.0.2/lib/manageiq/appliance_console/cli.rb:174:in `run'
	 6: from /opt/rh/cfme-gemset/gems/manageiq-appliance_console-4.0.2/lib/manageiq/appliance_console/cli.rb:363:in `config_tmp_disk'
	 5: from /opt/rh/cfme-gemset/gems/manageiq-appliance_console-4.0.2/lib/manageiq/appliance_console/temp_storage_configuration.rb:18:in `activate'
	 4: from /opt/rh/cfme-gemset/gems/manageiq-appliance_console-4.0.2/lib/manageiq/appliance_console/temp_storage_configuration.rb:27:in `add_temp_disk'
	 3: from /opt/rh/cfme-gemset/gems/manageiq-appliance_console-4.0.2/lib/manageiq/appliance_console/logging.rb:54:in `log_and_feedback'
	 2: from /opt/rh/cfme-gemset/gems/manageiq-appliance_console-4.0.2/lib/manageiq/appliance_console/logging.rb:57:in `rescue in log_and_feedback'
	 1: from /opt/rh/cfme-gemset/gems/manageiq-appliance_console-4.0.2/lib/manageiq/appliance_console/logging.rb:82:in `log_and_feedback_exception'
/opt/rh/cfme-gemset/gems/manageiq-appliance_console-4.0.2/lib/manageiq/appliance_console/logging.rb:40:in `say_error': undefined local variable or method `press_any_key' for #<ManageIQ::ApplianceConsole::TempStorageConfiguration:0x00005652bff2c7a0> (NameError)
Did you mean?  presence
[root@dhcp-8-196-243 ~]# 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The appliance_console.log shows below error message.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 [2019-06-03T08:30:37.313268 #32425]  INFO -- : MIQ(ManageIQ::ApplianceConsole::TempStorageConfiguration#add_temp_disk) : starting
E, [2019-06-03T08:30:37.862592 #32425] ERROR -- : MIQ(ManageIQ::ApplianceConsole::TempStorageConfiguration#add_temp_disk)  Command failed: mount exit code: 32. Error: mount: /var/www/miq_tmp: wrong fs type, bad option, bad superblock on /dev/vdb1, missing codepage or helper program, or other error.
. Output: . At: /opt/rh/cfme-gemset/gems/manageiq-appliance_console-4.0.2/lib/manageiq/appliance_console/temp_storage_configuration.rb:43:in `mount_temp_disk'

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Joe Vlcek 2019-07-02 14:27:58 UTC
Md

How did you configure/create /dev/vdb? Please provide information on how I can recreate this issue including how you created device /dev/vdb 

Thank you. JoeV

Comment 5 CFME Bot 2019-07-08 21:48:44 UTC
New commit detected on ManageIQ/manageiq-appliance_console/master:

https://github.com/ManageIQ/manageiq-appliance_console/commit/ac2000bd81cb9357be2a65092a8b79f77787fcaa
commit ac2000bd81cb9357be2a65092a8b79f77787fcaa
Author:     Joe VLcek <jvlcek>
AuthorDate: Mon Jul  8 17:12:37 2019 -0400
Commit:     Joe VLcek <jvlcek>
CommitDate: Mon Jul  8 17:12:37 2019 -0400

    Do not use unrecommended mount option nobarrier

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1716404

 lib/manageiq/appliance_console/temp_storage_configuration.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 6 CFME Bot 2019-07-09 13:36:27 UTC
New commit detected on ManageIQ/manageiq-appliance/master:

https://github.com/ManageIQ/manageiq-appliance/commit/818fac66d792e924a09a4be25db254d7f57187f8
commit 818fac66d792e924a09a4be25db254d7f57187f8
Author:     Brandon Dunne <brandondunne>
AuthorDate: Mon Jul  8 18:21:32 2019 -0400
Commit:     Brandon Dunne <brandondunne>
CommitDate: Mon Jul  8 18:21:32 2019 -0400

    Update dependency on manageiq-appliance_console

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1720223
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1716404

 manageiq-appliance-dependencies.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 7 Brandon Dunne 2019-07-09 21:57:10 UTC
*** Bug 1727115 has been marked as a duplicate of this bug. ***