Red Hat Bugzilla – Bug 1323292
Invalid date/time crashes appliance_console
Last modified: 2016-06-29 11:47:03 EDT
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 ~]#
This issue will be resolved as a side effect of the fix for: https://bugzilla.redhat.com/show_bug.cgi?id=1318752
Verified in 5.6.0.4-beta2.3
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