- Bring up standard OpenShift cluster -- the method of setup should not matter
(openshift-ansible or oc cluster up). Additionally, it should not matter if there
is a cluster-scoped Ansible Service Broker present or not. The requirement is that
the user creating the
install.yml
file should have sufficient permissions to create the broker's resources (cluster-admin
). Also, ensure the brew registry is configured as an insecure registry which contains the test image: (brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888
).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export MINISHIFT_ENABLE_EXPERIMENTAL=y | |
minishift config set openshift-version v3.9.0 # should be the default, but just being explicit | |
minishift start --extra-clusterup-flags "--service-catalog" | |
oc login -u system:admin | |
oc get secret -n kube-service-catalog -o go-template='{{ range .items }}{{ if eq .type "kubernetes.io/service-account-token" }}{{ index .data "service-ca.crt" }}{{end}}{{"\n"}}{{end}}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@192 system]# journalctl -fu atomic-openshift-master-controllers.service | grep TemplateInstance | |
Aug 01 20:04:38 192.168.121.105.nip.io atomic-openshift-master-controllers[8062]: I0801 20:04:38.521814 8062 templateinstance_controller.go:127] TemplateInstance controller: syncing foo3/deaa5021-1a6a-41fe-aebf-58b8c7659162 | |
Aug 01 20:04:38 192.168.121.105.nip.io atomic-openshift-master-controllers[8062]: I0801 20:04:38.536057 8062 templateinstance_controller.go:395] TemplateInstance controller: creating TemplateConfig for foo3/deaa5021-1a6a-41fe-aebf-58b8c7659162 | |
Aug 01 20:04:38 192.168.121.105.nip.io atomic-openshift-master-controllers[8062]: I0801 20:04:38.541734 8062 templateinstance_controller.go:457] TemplateInstance controller: running SARs for foo3/deaa5021-1a6a-41fe-aebf-58b8c7659162 | |
Aug 01 20:04:38 192.168.121.105.nip.io atomic-openshift-master-controllers[8062]: I0801 20:04:38.551887 8062 templateinstance_controller.go:517] TemplateI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
357:func TestReconcileServiceInstanceWithParameters(t *testing.T) { | |
711:func TestReconcileServiceInstanceResolvesReferences(t *testing.T) { | |
1107:func TestReconcileServiceInstance(t *testing.T) { | |
1380:func TestReconcileServiceInstanceAsynchronous(t *testing.T) { | |
1566:func TestReconcileServiceInstanceDelete(t *testing.T) { | |
1906:func TestReconsileServiceInstanceDeleteWithParameters(t *testing.T) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Goals: | |
* Instance provision/deprovision PR by 6/20 | |
[6/11] | |
Introduction, setup. Being able to build after Docker CE. Met with Paul and solidified gameplan. | |
[6/12] | |
Picking up where prior instance ref work left off. Using prov-nsc branch, | |
working our way through reconcileServiceInstance add. Trying to create the | |
provision request so that we can send the request off to the broker. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* instance ref PR (submitted) | |
* serviceclass control loop (submitted, blocked) | |
* serviceplan control loop (written, blocked) | |
* serviceinstance control loop + tests (working on provisioning) | |
* servicebindings control loop (not started yet) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using config file mounted to /etc/ansible-service-broker/config.yaml | |
============================================================ | |
== Starting Ansible Service Broker... == | |
============================================================ | |
[32m[2018-05-09T14:42:41.644Z] [NOTICE] - Initializing clients...[0m | |
[36m[2018-05-09T14:42:41.645Z] [DEBUG] - Connecting to Cluster[0m | |
time="2018-05-09T14:42:41Z" level=info msg="OpenShift version: %vv3.10.0-alpha.0+34dcab4-1066" | |
time="2018-05-09T14:42:41Z" level=info msg="unable to retrieve the network plugin, defaulting to not joining networks - clusternetworks.network.openshift.io \"default\" not found" | |
time="2018-05-09T14:42:41Z" level=info msg="Kubernetes version: %vv1.10.0+b81c8f8" | |
[36m[2018-05-09T14:42:41.651Z] [DEBUG] - Connecting Dao[0m |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"services": [ | |
{ | |
"name": "dh-pyzip-demo-apb", | |
"id": "0e991006d21029e47abe71acc255e807", | |
"description": "Python Zip Demo APB Implementation", | |
"bindable": false, | |
"metadata": { | |
"dependencies": [ | |
"docker.io/ansibleplaybookbundle/py-zip-demo:latest" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I0426 02:57:57.504761 1 controller_servicebroker.go:284] NSKD: list opts: &{TypeMeta:{Kind: APIVersion:} ListMeta:{SelfLink:/apis/servicecatalog.k8s.io/v1beta1/namespaces/ansible-service-broker/serviceplans ResourceVersion:3 Continue:} Items:[]} | |
I0426 02:57:57.504867 1 controller_servicebroker.go:285] NSKD: no list opts: &{TypeMeta:{Kind: APIVersion:} ListMeta:{SelfLink:/apis/servicecatalog.k8s.io/v1beta1/namespaces/ansible-service-broker/serviceplans ResourceVersion:3 Continue:} Items:[]} | |
I0426 02:58:07.203152 1 controller_servicebroker.go:284] NSKD: list opts: &{TypeMeta:{Kind: APIVersion:} ListMeta:{SelfLink:/apis/servicecatalog.k8s.io/v1beta1/namespaces/ansible-service-broker/serviceplans ResourceVersion:53 Continue:} Items:[]} | |
I0426 02:58:07.203238 1 controller_servicebroker.go:285] NSKD: no list opts: &{TypeMeta:{Kind: APIVersion:} ListMeta:{SelfLink:/apis/servicecatalog.k8s.io/v1beta1/namespaces/ansible-service-broker/serviceplans ResourceVersion:53 Continue:} Items:[]} | |
I0426 02 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aliases: | |
map[string]string{} | |
Override: | |
map[string]interface {}{"v":"10"} | |
PFlags: | |
map[string]viper.FlagValue{"nfs-share":viper.pflagValue{flag:(*pflag.Flag)(0xc4202a65a0)}, "nfs-shares-root":viper.pflagValue{flag:(*pflag.Flag)(0xc4202a6640)}, "bootstrapper":viper.pflagValue{flag:(*pflag.Flag)(0xc4202e92c0)}, "container-runtime":viper.pflagValue{flag:(*pflag.Flag)(0xc4202a6c80)}, "docker-opt":viper.pflagValue{flag:(*pflag.Flag)(0xc4202a6780)}, "xhyve-disk-driver":viper.pflagValue{flag:(*pflag.Flag)(0xc4202a6500)}, "kubernetes-version":viper.pflagValue{flag:(*pflag.Flag)(0xc4202a6be0)}, "apiserver-name":viper.pflagValue{flag:(*pflag.Flag)(0xc4202a6820)}, "dns-domain":viper.pflagValue{flag:(*pflag.Flag)(0xc4202a6a00)}, "host-only-cidr":viper.pflagValue{flag:(*pflag.Flag)(0xc4202a6320)}, "iso-url":viper.pflagValue{flag:(*pflag.Flag)(0xc4202a6000)}, "mount-string":viper.pflagValue{flag:(*pflag.Flag)(0xc4202e9ea0)}, "registry-mirror":viper.pflagValue{flag:(*pflag.Flag)(0xc4202a6b40)}, "apiserver-ips":viper.pflagValu |