Bug 1469986 - Need enable catalog console in openshift-ansible
Summary: Need enable catalog console in openshift-ansible
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: ewolinet
QA Contact: Johnny Liu
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-12 08:22 UTC by DeShuai Ma
Modified: 2017-11-27 10:27 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-10 05:31:01 UTC
Target Upstream Version:
Embargoed:
sdodson: needinfo-
sdodson: needinfo-
sdodson: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1471881 0 unspecified CLOSED Service Catalog cannot create podpresets.settings.k8s.io in project "demo" 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHEA-2017:1716 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.6 RPM Release Advisory 2017-08-10 09:02:50 UTC

Internal Links: 1471881

Description DeShuai Ma 2017-07-12 08:22:36 UTC
Description of problem:
Now service-catalog and ansible-service-broker all support install by openshift-ansilbe. We need support catalog console in ocp36 too. As there is no card for this, just create the bug to trace the issue.

Version-Release number of the following components:

How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual results:

Expected results:

Additional info:

Comment 1 Scott Dodson 2017-07-12 12:36:46 UTC
What's catalog console?

Comment 2 DeShuai Ma 2017-07-12 13:24:17 UTC
(In reply to Scott Dodson from comment #1)
> What's catalog console?

https://github.com/openshift/origin-web-catalog

Comment 3 Samuel Padgett 2017-07-12 14:02:02 UTC
The catalog UI needs to be enabled by a web console extension. (The right extension content depends on whether pod presets are enabled and the template broker is enabled.)

https://docs.openshift.org/latest/install_config/web_console_customization.html#web-console-enable-tech-preview-feature


For new catalog landing page:

window.OPENSHIFT_CONSTANTS.ENABLE_TECH_PREVIEW_FEATURE.service_catalog_landing_page = true;


If pod presets are enabled, you'll also need:

window.OPENSHIFT_CONSTANTS.ENABLE_TECH_PREVIEW_FEATURE.pod_presets = true;


If the template broker is enabled, you'll also need:

window.OPENSHIFT_CONSTANTS.ENABLE_TECH_PREVIEW_FEATURE.template_service_broker = true;

Comment 7 DeShuai Ma 2017-07-17 02:22:25 UTC
Could you help move to ON_QA, this should be fixed in latest puddle.

Comment 8 DeShuai Ma 2017-07-17 09:59:46 UTC
I try latest version, I find we also need PodPreset admission controller as default in /etc/origin/master/master-config.yaml Otherwise podpreset can't inject info to pod.

admissionConfig:
  pluginConfig:
    PodPreset:
      configuration:
        kind: DefaultAdmissionConfig
        apiVersion: v1
        disable: false

ref: https://github.com/openshift/origin/pull/14461#issuecomment-307807536

Comment 10 John Matthews 2017-07-17 15:02:54 UTC
I filed https://bugzilla.redhat.com/show_bug.cgi?id=1471881

Might be related to comment #8

When Creating a Binding a saw the below error from Service Catalog (puddle 3.6.152)

controller_binding.go:336] Creating Secret demo/postgresql-apb-399c3-t3idc
controller_binding.go:231] Error injecting binding results for Binding "demo/postgresql-apb-399c3-jmcmw": User "system:serviceaccount:kube-service-catalog:service-catalog-controller" cannot create podpresets.settings.k8s.io in project "demo"

Comment 11 DeShuai Ma 2017-07-18 05:33:11 UTC
Hi, John Matthews
This is different issue, you met the issue when create podpresets. For comment 8, this is after create podpresetsm then whether podpreset can inject pod not for create process.

Comment 12 DeShuai Ma 2017-07-18 05:34:13 UTC
As comment 8, we also add that.

Comment 14 Scott Dodson 2017-07-18 20:40:40 UTC
Additional changes merged.

Comment 15 Scott Dodson 2017-07-21 13:56:08 UTC
More changes merged.

Comment 16 DeShuai Ma 2017-07-24 06:53:57 UTC
Verify on openshift-ansible-3.6.162-1.git.0.50e29bd.el7.noarch.rpm. PodPreset admission controller is added.

admissionConfig:
  pluginConfig:
    PodPreset:
      configuration:
        apiVersion: v1
        disable: false
        kind: DefaultAdmissionConfig

Comment 17 Johnny Liu 2017-07-24 09:52:55 UTC
Also verify this bug with openshift-ansible-3.6.162-1.git.0.50e29bd.el7.noarch on a multiple master HA env, and PASS.


/etc/origin/master/openshift-ansible-catalog-console.js is created on each master in this cluster, and PodPreset admission controller is added into all the masters' config file.

Comment 19 errata-xmlrpc 2017-08-10 05:31:01 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/RHEA-2017:1716


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