Bug 1336182

Summary: Utilization - "Interval" field does not contain dropdown for Providers,Projects, Replicators and Container Services
Product: Red Hat CloudForms Management Engine Reporter: Einat Pacifici <epacific>
Component: UI - OPSAssignee: Federico Simoncelli <fsimonce>
Status: CLOSED ERRATA QA Contact: Einat Pacifici <epacific>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 5.6.0CC: dajohnso, dclarizi, fsimonce, hkataria, jhardy, mpovolny, nachandr, obarenbo, simaishi
Target Milestone: GAFlags: epacific: automate_bug+
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: c&u
Fixed In Version: 5.6.0.8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-29 16:02:34 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:
Attachments:
Description Flags
Provider-wrongGUI and Pods-correctGUI attached none

Description Einat Pacifici 2016-05-15 10:59:57 UTC
Created attachment 1157643 [details]
Provider-wrongGUI and Pods-correctGUI attached

Description of problem:
When viewing Utilization data - the Interval dropdown should show: Hourly/Daily/Most recent hour selection

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

How reproducible:
Always

Steps to Reproduce:
1.Compute --> Containers -->Providers --> Select provider
2.Click Monitoring --> Utilization button
3.View generated page

Actual results:
Metrics page is provided with "Interval:", but no dropdown is seen.

Expected results:
Metrics page provided with "Interval:" + dropdown of Hourly/Daily/Most recent hour.

Additional info:
Attachement contains Screenshot of Providers page, but, this bug is seen also under Projects, Replicators and Container Services.

Comment 2 Federico Simoncelli 2016-05-16 12:59:09 UTC
Dan here the code seems common to all providers:

app/views/layouts/_perf_options.html.haml

      %dt
        = _("Interval")
      %dd
        - if @perf_options[:index] && %w(host vm).include?(request.parameters["controller"])
          - rt_chart = YAML.load(File.open("#{CHARTS_LAYOUTS_FOLDER}/realtime_perf_charts/#{@perf_options[:model]}.yaml"))
          - @rt_hide = rt_chart[@perf_options[:index].to_i][:type] == "None"
        - if request.parameters["controller"] == "storage" && @perf_options[:cat]
          = select("perf", "typ", %w(Hourly Daily), {:selected => @perf_options[:typ]},
                                                      :disabled => "")
        - elsif %(Host VmOrTemplate ContainerNode Container ContainerGroup MiddlewareServer).include?(@perf_options[:model]) && !@rt_hide
          = select_tag("perf_typ",
                        options_for_select(["Hourly", "Daily", ["Most Recent Hour", "realtime"]], @perf_options[:typ]),
                        "data-miq_sparkle_on" => true,
                        :class    => "selectpicker")
          :javascript
             miqInitSelectPicker();
             miqSelectPickerEvent("perf_typ", "#{url}")


I have the impression that this is not specific to containers. Thoughts?

Comment 4 Federico Simoncelli 2016-05-17 09:12:01 UTC
Fix at:  https://github.com/ManageIQ/manageiq/pull/8752

Dan, as mentioned in the PR, the issue is a regression introduced in all the pages by the select picker enhancements.

Removing the "container" whiteboard.

Comment 5 Harpreet Kataria 2016-05-17 18:40:01 UTC
*** Bug 1336216 has been marked as a duplicate of this bug. ***

Comment 6 Federico Simoncelli 2016-05-18 19:48:19 UTC
As mentioned in comment 4 this is not related to containers. Removing "container" from the whiteboard again.

Comment 7 Einat Pacifici 2016-05-29 09:59:00 UTC
All dropdowns now function as expected.

Comment 9 errata-xmlrpc 2016-06-29 16:02:34 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