Skip to content

Instantly share code, notes, and snippets.

View eriknelson's full-sized avatar
🤘

Erik Nelson eriknelson

🤘
View GitHub Profile
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}}'
[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

Namespaced Broker Test Plan

  1. 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).
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) {
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.
* 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)
Using config file mounted to /etc/ansible-service-broker/config.yaml
============================================================
== Starting Ansible Service Broker... ==
============================================================
[2018-05-09T14:42:41.644Z] [NOTICE] - Initializing clients...
[2018-05-09T14:42:41.645Z] [DEBUG] - Connecting to Cluster
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"
[2018-05-09T14:42:41.651Z] [DEBUG] - Connecting Dao
{
"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"
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
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