Bug 1323974

Summary: [intservice_public_213] The APIMan default index name is incorrect
Product: OKD Reporter: chunchen <chunchen>
Component: LoggingAssignee: Luke Meyer <lmeyer>
Status: CLOSED NOTABUG QA Contact: chunchen <chunchen>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.xCC: aos-bugs, kurt.stam, wsun
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-12 18:45:49 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:

Description chunchen 2016-04-05 08:48:53 UTC
Description of problem:
The APIMan default index should be named ".apiman_management", but not ".apiman_manager".

Version-Release number of selected component (if applicable):
fabric8/elasticsearch-k8s:1.6.0
fabric8/apiman:2.2.103
fabric8/apiman-gateway:2.2.103

How reproducible:
always

Steps to Reproduce:
1. setup domain

export KUBERNETES_DOMAIN=<ec2-instance-domain-name>

2. Download gofabric8 binary from https://github.com/fabric8io/gofabric8/releases

3. Create a project on OpenShift and add cluster-admin role to user

oc new-project PROJECT-NAME

oadm policy add-cluster-role-to-user cluster-admin USER  ## run on master host

4. Install fabric8

./gofabric8 deploy -y

./gofabric8 secrets -y

5. Add fabric8 app route to master-config.yaml

oc get route

cat master-config.yaml
<-----------snip--------->
corsAllowedOrigins:
- 127.0.0.1
- <ec2-instance-domain-name>:8443
- fabric8.{KUBERNETES_DOMAIN}
<-----------snip--------->

6. Restart OpenShift master server

7. Refer to http://fabric8.io/guide/getStarted/apps.html#ipaas to download the latest apiman templates,
   Then access this url http://repo1.maven.org/maven2/io/fabric8/ipaas/distro/distro to find latest templae, like below:

curl -o apiman.zip http://repo1.maven.org/maven2/io/fabric8/ipaas/distro/distro/2.2.103/distro-2.2.103-templates.zip

8. Deploy apiman app

unzip apiman.zip && cd main

oc process -f apiman-2.2.103.json | oc create -f -

9. Create route for apiman by following http://fabric8.io/guide/getStarted/apps.html#creating-routes

mvn io.fabric8:fabric8-maven-plugin:2.2.101:create-routes

10. Check the index in ES for APIMan
oc get route

curl http://elasticsearch-v1-chun1.router.default.svc.cluster.local/_search | python -mjson.tool

Actual results:
Please refer to file in attachment

Expected results:
The APIMan default index should be named ".apiman_management"

Additional info:

Comment 1 Kurt T Stam 2016-04-05 17:32:17 UTC
.apiman_manager is the correct name. So we should change our expected result.

Comment 2 chunchen 2016-04-06 02:50:37 UTC
@Kurt T Stam

Got it, I am accepting the trello card.

Comment 3 Luke Meyer 2016-05-12 18:45:49 UTC
So unless I am missing something, this should be closed. Feel free to correct me if needed.