Bug 1613720
| Summary: | [apb-tools] apb broker catalog/bootstrap failed to find route for broker | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Zihan Tang <zitang> |
| Component: | Service Broker | Assignee: | Dylan Murray <dymurray> |
| Status: | CLOSED ERRATA | QA Contact: | Zihan Tang <zitang> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.11.0 | CC: | aos-bugs, chezhang, dymurray, jmontleo |
| Target Milestone: | --- | ||
| Target Release: | 3.11.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-10-11 07:24:08 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: | |||
|
Description
Zihan Tang
2018-08-08 08:20:51 UTC
https://github.com/openshift/openshift-ansible/pull/9510 https://github.com/automationbroker/apb/pull/111 https://github.com/automationbroker/apb/pull/112 PR merged in 1.9.2, I tried apb-1.9.2, ' apb broker bootstrap' and 'apb broker catalog' could work. but they failed when add -n parameters. -n, --name string Name of Automation Broker instance # apb broker bootstrap -n ansible-service-broker ERRO Failed to get broker route: Failed to find route with name [ansible-service-broker] in namespace [ansible-service-broker] # apb broker catalog -n ansible-service-broker ERRO Failed to get broker route: Failed to find route with name [ansible-service-broker] in namespace [ansible-service-broker] The defaults from the defaults.json appear to work:
# cat ~/.apb/defaults.json
{
"defaults": {
"BrokerNamespace": "openshift-ansible-service-broker",
"BrokerResourceURL": "/apis/servicecatalog.k8s.io/v1beta1/clusterservicebrokers/",
"BrokerRouteName": "asb",
"ClusterServiceBrokerName": "ansible-service-broker"
}
apb broker bootstrap
Bootstrapping the broker at [https://asb-1338-openshift-ansible-service-broker.apps.192.168.121.4.nip.io/osb/v2/bootstrap].
Successfully started bootstrap job for broker [asb]
But it looks like -n is having an impact on both the route and namespace:
apb broker bootstrap -n ansible-service-broker
ERRO Failed to get broker route: Failed to find route with name [ansible-service-broker] in namespace [ansible-service-broker]
I'm guessing ansible-service-broker was chosen because "Name of Automation Broker instance" might imply the ClusterServiceBrokerName from "oc get clusterservicebroker".
New builds added to advisory: openshift-enterprise-asb-container-v3.11.0-0.20.0.0 openshift-enterprise-apb-tools-container-v3.11.0-0.20.0.0 Verified. But the BrokerRouteName can not be changed by option, even though we change other namespace , it will still to find route for asb. Will it support namespaced broker in v3.11? if not , I think it is acceptable to only for asb. Zihan, I don't understand the question. BrokerRouteName can be changed with `apb config`. We submitted a PR which defaults the route name to `asb-1338` to resolve a bug that this was causing. That might be what you're referring to. This tool does support namespaced brokers. Sorry that I didn't remove the 'needinfo' for older apb-tools, I have checked the latest apb-1.9.6 support namespaced service broker , and BrokerRouteName can be changed with `apb config`. Thanks 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-2018:2652 |