Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1393711 - openshift-jvm OSGi: TypeError: t.bundles.sortBy is not a function
openshift-jvm OSGi: TypeError: t.bundles.sortBy is not a function
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console (Show other bugs)
3.3.1
Unspecified Linux
unspecified Severity medium
: ---
: ---
Assigned To: Alexandre Kieling
Peng Li
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-11-10 03:23 EST by Libor Fuka
Modified: 2017-03-08 13 EST (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Reference to function 'sortBy' of Sugar JavaScript library, which is not included in the application. Consequence: OSGi Bundles tab doesn't show expected content Fix: Change reference to Sugar library with reference to an equivalent function in Lodash library. Result: OSGi Bundles tab shows expected content
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-01-18 07:54:27 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
screenshot (95.06 KB, image/png)
2016-11-22 04:05 EST, Peng Li
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0066 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.4 RPM Release Advisory 2017-01-18 12:23:26 EST

  None (edit)
Description Libor Fuka 2016-11-10 03:23:01 EST
Description of problem:
openshift-jvm OSGi: Bundles tab shows 'TypeError: t.bundles.sortBy is not a function' in JavaScript console (Webconsole in Firefox)

Version-Release number of selected component (if applicable):
openshift-jvm version: 1.0.50

How reproducible:
always

Steps to Reproduce:
1. Deploy some camel route to OCP (for example https://github.com/jboss-fuse/application-templates/blob/application-templates-2.0.fuse-000008/quickstarts/karaf2-camel-amq-template.json)
2. Open Java console from s2i-karaf2-camel-amq-xxx pod page
3. OSGi tab -> Bundles
4. See JavaScript console in browser

Actual results:
'TypeError: t.bundles.sortBy is not a function' in JavaScript console (Webconsole in Firefox)
Comment 1 Alexandre Kieling 2016-11-10 16:32:59 EST
Fix ready for testing. Please use openshift-jvm v1.0.52
Comment 2 Jessica Forrester 2016-11-11 06:56:08 EST
in web console in https://github.com/openshift/origin-web-console/pull/858
Comment 3 Troy Dawson 2016-11-11 14:46:14 EST
This has been merged into ocp and is in OCP v3.4.0.25 or newer.
Comment 5 Peng Li 2016-11-17 01:54:31 EST
@Libor
Is OSGi tab only available when test karaf2?I tried karaf-camel-amq and karaf-camel-rest-sql archetype, haven't seen such a tab.

If so, can you give the steps to deploy karaf2-camel-amq? 

I use below steps to deploy karaf-camel-rest-sql

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=karaf-camel-rest-sql-archetype

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

oc process -f quickstart-template.json -v GIT_REPO=. | oc create -f -  # start a binary build
oc start-build s2i-quickstart-karaf-camel-rest-sql --from-dir=.
Comment 6 Libor Fuka 2016-11-21 02:35:54 EST
You need to use https://github.com/jboss-fuse/application-templates/blob/application-templates-2.0.redhat-000026/quickstarts/karaf2-camel-amq-template.json.

This should be enough for building and deploying amq karaf2 quickstart. Other steps like mvn should not be needed.
Comment 8 Peng Li 2016-11-22 04:01:02 EST
verified OpenShift v3.4.0.26+f7e109e
Comment 9 Peng Li 2016-11-22 04:05 EST
Created attachment 1222624 [details]
screenshot
Comment 11 errata-xmlrpc 2017-01-18 07:54:27 EST
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-2017:0066

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