Bug 1323292

Summary: Invalid date/time crashes appliance_console
Product: Red Hat CloudForms Management Engine Reporter: luke couzens <lcouzens>
Component: ApplianceAssignee: Joe Vlcek <jvlcek>
Status: CLOSED ERRATA QA Contact: luke couzens <lcouzens>
Severity: medium Docs Contact:
Priority: high    
Version: 5.5.0CC: abellott, dajohnso, jhardy, jvlcek, nachandr, obarenbo
Target Milestone: GAKeywords: ZStream
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: cli:black:appliance
Fixed In Version: 5.6.0.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1327727 (view as bug list) Environment:
Last Closed: 2016-06-29 15:47:03 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:
Bug Depends On:    
Bug Blocks: 1327727    

Description luke couzens 2016-04-01 18:20:46 UTC
Description of problem: setting the date incorrectly crashes out appliance_console


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


How reproducible:100%


Steps to Reproduce:
1.ssh into appliance
2.start appliance_console
3.select Set Timezone, Date, and Time
4.select timezone
5.set date with invalid day 
6.set time
7.say yes to configuration

Actual results:appliance_console crash


Expected results:invalid date/time supplied


Additional info: date/time I used

Date and Time Configuration

        Timezone area: America
        Timezone city: New_York
        Date:          2016-03-65
        Time:          22:50:13

Apply time and timezone configuration? (Y/N): y
Applying time and timezone configuration...
/opt/rh/rh-ruby22/root/usr/share/ruby/time.rb:300:in `local': argument out of range (ArgumentError)
	from /opt/rh/rh-ruby22/root/usr/share/ruby/time.rb:300:in `make_time'
	from /opt/rh/rh-ruby22/root/usr/share/ruby/time.rb:364:in `parse'
	from /var/www/miq/vmdb/gems/pending/appliance_console.rb:307:in `block in <module:ApplianceConsole>'
	from /var/www/miq/vmdb/gems/pending/appliance_console.rb:114:in `loop'
	from /var/www/miq/vmdb/gems/pending/appliance_console.rb:114:in `<module:ApplianceConsole>'
	from /var/www/miq/vmdb/gems/pending/appliance_console.rb:98:in `<main>'
[root@host-192-168-100-77 ~]#

Comment 2 Joe Vlcek 2016-04-04 17:49:45 UTC
This issue will be resolved as a side effect of the fix for:
https://bugzilla.redhat.com/show_bug.cgi?id=1318752

Comment 4 luke couzens 2016-04-26 17:57:48 UTC
Verified in 5.6.0.4-beta2.3

Comment 6 errata-xmlrpc 2016-06-29 15:47:03 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, 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-2016:1348