Bug 1380421 - openshift-jvm Camel console cannot pause/start routes
Summary: openshift-jvm Camel console cannot pause/start routes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.3.1
Assignee: Alexandre Kieling
QA Contact: Xia Zhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-29 14:38 UTC by Marek Schmidt
Modified: 2016-10-27 15:42 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: JavaScript code referencing invalid Array function Consequence: Camel routes don't show up in the tree view Fix: Changed the reference to a valid JavaScript Array function Result: Camel routes started to appear in the tree view and their details are displayed as expected
Clone Of:
Environment:
Last Closed: 2016-10-27 15:42:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
configuration/settings.xml (4.40 KB, application/xml)
2016-09-29 14:38 UTC, Marek Schmidt
no flags Details
screenshot (65.77 KB, image/png)
2016-09-29 14:44 UTC, Marek Schmidt
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:2084 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.3.1.3 bug fix update 2016-10-27 19:41:25 UTC

Description Marek Schmidt 2016-09-29 14:38:03 UTC
Created attachment 1205965 [details]
configuration/settings.xml

Description of problem:

In the JVM console for Camel apps, clicking on a camel context in a "Route" list view doesn't enable the "Pause","Stop" nor "Delete" buttons.

Instead, the following javascript error shows in the browser console:

libs-3d3f8220c5.js:5 TypeError: i.any is not a function
    at f.t.anySelectionHasState (libs-3d3f8220c5.js:65)
    at fn0 (eval at compile (libs-3d3f8220c5.js:7), <anonymous>:4:551)
    at libs-3d3f8220c5.js:5
    at f.$digest (libs-3d3f8220c5.js:6)
    at f.$apply (libs-3d3f8220c5.js:6)
    at Object.S [as $apply] (libs-3d3f8220c5.js:13)
    at g (libs-3d3f8220c5.js:53)
    at L.n.success (libs-3d3f8220c5.js:13)
    at t.<anonymous> (libs-3d3f8220c5.js:51)
    at Array.success (libs-3d3f8220c5.js:51)


Version-Release number of selected component (if applicable):
openshift v3.3.0.32
kubernetes v1.3.0+52492b4
openshift-jvm Version: 1.0.47 Commit ID: fe68cabf7eb0f96c13dedbf56fae43b0248323d4

How reproducible:
always (both Firefox and Google Chrome)

Steps to Reproduce:
1. instantiate a FIS maven archetype,

mvn archetype:generate \
  -DarchetypeCatalog=https://repo.fusesource.com/nexus/content/groups/public/io/fabric8/archetypes/archetypes-catalog/2.2.0.redhat-079/archetypes-catalog-2.2.0.redhat-079-archetype-catalog.xml \
  -DarchetypeGroupId=io.fabric8.archetypes \
  -DarchetypeVersion=2.2.0.redhat-079 \
  -DarchetypeArtifactId=cdi-camel-jetty-archetype

(pass anything as groupid, artifactid... ) 

2. replace the configuration/settings.xml with the one in attachment  (not necessary, but otherwise the build will take 30 minutes)

3. process and apply the template (from the file in the archetype)

oc process -f quickstart-template.json -v GIT_REPO=. | oc create -f -  # ignore the GIT_REPO, we will start a binary build
oc start-build s2i-quickstart-cdi-camel-jetty --from-dir=.

4. wait for the build to finish,

5. locate the pod in the openshift console, click the "Open Java Console" 

6. click the "Routes" entry in the tree view on the left, with the "Camel" tab "Attributes" view

7. a row should appear on the table with "myJettyCamel" context

8. click on the row 

Actual results:

a javascript error appears in the browser javascript logs

Expected results:

"pause" button should be made available to be able to pause the camel context

Additional info:

Comment 1 Marek Schmidt 2016-09-29 14:44:58 UTC
Created attachment 1205967 [details]
screenshot

Comment 2 Alexandre Kieling 2016-10-05 15:11:01 UTC
Fixed version: v1.0.48

Comment 3 Jessica Forrester 2016-10-05 15:13:30 UTC
This can't go to MODIFIED until origin-web-console/enterprise-3.3 branch is updated to pull in v1.0.48

Comment 4 Alexandre Kieling 2016-10-05 20:21:44 UTC
A new version with only the bug fixes has been released: v1.0.49

Comment 6 Peng Li 2016-10-17 08:59:26 UTC
verified with below version, issue is fixed.

[1]
[root@qe-penli-master-1 ~]# openshift version
openshift v3.3.1.2
kubernetes v1.3.0+52492b4
etcd 2.3.0+git

About openshift-jvm

Version: 1.0.50

Commit ID: dcbee06e1d9043763259c661132673a7d69e8b95

Comment 8 Peng Li 2016-10-17 09:05:08 UTC
steps to add

1. add ~/.m2/settings.xml
https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Fuse/6.0/html/Deploying_into_the_Container/files/Build-GenerateMaven.html

2. create is 'fis-java-openshift' in namespace 'openshift' first

Comment 10 errata-xmlrpc 2016-10-27 15:42:43 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:2084


Note You need to log in before you can comment on or make changes to this bug.