Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation doc is not up to date anymore #203

Open
cmoulliard opened this issue Jan 21, 2020 · 2 comments
Open

Installation doc is not up to date anymore #203

cmoulliard opened this issue Jan 21, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@cmoulliard
Copy link
Contributor

cmoulliard commented Jan 21, 2020

Issue

The installation doc is not up to date anymore as :

  • Resource runtimes to be deployed is missing
kubectl apply -n operators -f deploy/runtimes.yaml
  • Installation of runtimes is failing
kubectl apply -n operators -f deploy/runtimes.yaml 
unable to recognize "deploy/runtimes.yaml": no matches for kind "Runtime" in version "halkyon.io/v1beta1"
unable to recognize "deploy/runtimes.yaml": no matches for kind "Runtime" in version "halkyon.io/v1beta1"

Steps followed on ocp4.2

oc new-project operators
kubectl apply -n operators -f deploy/sa.yaml
kubectl apply -f deploy/cluster-role.yaml
kubectl apply -f deploy/user-rbac.yaml
kubectl apply -f deploy/cluster-role-binding.yaml
kubectl apply -f deploy/crds/capability.yaml
kubectl apply -f deploy/crds/component.yaml
kubectl apply -f deploy/crds/link.yaml
kubectl apply -n operators -f deploy/configmap.yaml
kubectl apply -n operators -f deploy/runtimes.yaml
kubectl apply -n operators -f deploy/configmap.yaml
kubectl apply -n operators -f deploy/operator.yaml
@cmoulliard cmoulliard added the bug Something isn't working label Jan 21, 2020
@cmoulliard cmoulliard added this to the Snowdrop - 2020 - Q1 milestone Jan 21, 2020
@cmoulliard
Copy link
Contributor Author

cmoulliard commented Jan 21, 2020

Are the commands provided hereafter correct ? @metacosm

kubectl create ns operators
kubectl apply -n operators -f deploy/sa.yaml
kubectl apply -f deploy/cluster-role.yaml
kubectl apply -f deploy/user-rbac.yaml
kubectl apply -f deploy/cluster-role-binding.yaml
kubectl apply -f deploy/crds/
kubectl apply -n operators -f deploy/configmap.yaml
kubectl apply -n operators -f deploy/runtimes.yaml
kubectl apply -n operators -f deploy/configmap.yaml
kubectl apply -n operators -f deploy/operator.yaml

@cmoulliard
Copy link
Contributor Author

Log of the operator's pod reports this error

2020-01-21T18:06:36.866Z	INFO	cmd	Go Version: go1.13.5
2020-01-21T18:06:36.866Z	INFO	cmd	Go OS/Arch: linux/amd64
2020-01-21T18:06:36.866Z	INFO	cmd	Version of operator-sdk: v0.8.2
2020-01-21T18:06:36.866Z	INFO	cmd	halkyon-operator version: unset
2020-01-21T18:06:36.866Z	INFO	cmd	halkyon-operator git commit: 1346076f
2020-01-21T18:06:37.012Z	INFO	cmd	Registering Halkyon resources
2020-01-21T18:06:37.012Z	INFO	cmd	Registering 3rd party resources
2020-01-21T18:06:37.012Z	INFO	cmd	Loading plugins
2020-01-21T18:06:37.012Z	INFO	cmd	halkyonio/[email protected]: downloading from https://github.com/halkyonio/kubedb-capability/releases/download/v1.0.0-beta.8/halkyon_plugin_linux.tar.gz
2020-01-21T18:06:40.307Z [DEBUG] plugin: starting plugin: path=/plugins/kubedb-capability args=[/plugins/kubedb-capability]
2020-01-21T18:06:40.360Z [DEBUG] plugin: plugin started: path=/plugins/kubedb-capability pid=27
2020-01-21T18:06:40.360Z [DEBUG] plugin: waiting for RPC address: path=/plugins/kubedb-capability
2020-01-21T18:06:40.462Z [DEBUG] plugin: using plugin: version=1
2020-01-21T18:06:40.462Z [DEBUG] plugin.kubedb-capability: plugin address: address=/tmp/plugin404488741 network=unix timestamp=2020-01-21T18:06:40.462Z
2020-01-21T18:06:40.466Z	ERROR	cmd	couldn't create or update capabilityinfo named 'database-mysql', associated capability will be ignored	{"error": "the server could not find the requested resource (post capabilityinfos.halkyon.io)"}
github.com/go-logr/zapr.(*zapLogger).Error
	/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:128
halkyon.io/plugins/capability.register
	/go/pkg/mod/halkyon.io/[email protected]/capability/registry.go:85
halkyon.io/plugins/capability.NewPlugin
	/go/pkg/mod/halkyon.io/[email protected]/capability/client.go:124
main.main
	/go/src/halkyon.io/operator/cmd/manager/main.go:154
runtime.main
	/usr/local/go/src/runtime/proc.go:203
2020-01-21T18:06:40.467Z	ERROR	cmd	couldn't create or update capabilityinfo named 'database-mongodb', associated capability will be ignored	{"error": "the server could not find the requested resource (post capabilityinfos.halkyon.io)"}
github.com/go-logr/zapr.(*zapLogger).Error
	/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:128
halkyon.io/plugins/capability.register
	/go/pkg/mod/halkyon.io/[email protected]/capability/registry.go:85
halkyon.io/plugins/capability.NewPlugin
	/go/pkg/mod/halkyon.io/[email protected]/capability/client.go:124
main.main
	/go/src/halkyon.io/operator/cmd/manager/main.go:154
runtime.main
	/usr/local/go/src/runtime/proc.go:203
2020-01-21T18:06:40.469Z	ERROR	cmd	couldn't create or update capabilityinfo named 'database-postgres', associated capability will be ignored	{"error": "the server could not find the requested resource (post capabilityinfos.halkyon.io)"}
github.com/go-logr/zapr.(*zapLogger).Error
	/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:128
halkyon.io/plugins/capability.register
	/go/pkg/mod/halkyon.io/[email protected]/capability/registry.go:85
halkyon.io/plugins/capability.NewPlugin
	/go/pkg/mod/halkyon.io/[email protected]/capability/client.go:124
main.main
	/go/src/halkyon.io/operator/cmd/manager/main.go:154
runtime.main
	/usr/local/go/src/runtime/proc.go:203
2020-01-21T18:06:40.469Z	INFO	cmd	Loaded 1 plugin(s) for a total of 3 capabilities
2020-01-21T18:06:40.469Z	INFO	kubebuilder.controller	Starting EventSource	{"controller": "component-controller", "source": "kind source: halkyon.io/v1beta1, Kind=Component"}
2020-01-21T18:06:40.469Z	INFO	kubebuilder.controller	Starting EventSource	{"controller": "capability-controller", "source": "kind source: halkyon.io/v1beta1, Kind=Capability"}
2020-01-21T18:06:40.469Z	INFO	kubebuilder.controller	Starting EventSource	{"controller": "link-controller", "source": "kind source: halkyon.io/v1beta1, Kind=Link"}
2020-01-21T18:06:40.570Z	INFO	kubebuilder.controller	Starting Controller	{"controller": "component-controller"}
2020-01-21T18:06:40.570Z	INFO	kubebuilder.controller	Starting Controller	{"controller": "capability-controller"}
2020-01-21T18:06:40.570Z	INFO	kubebuilder.controller	Starting Controller	{"controller": "link-controller"}
2020-01-21T18:06:40.670Z	INFO	kubebuilder.controller	Starting workers	{"controller": "link-controller", "worker count": 1}
2020-01-21T18:06:40.670Z	INFO	kubebuilder.controller	Starting workers	{"controller": "component-controller", "worker count": 1}
2020-01-21T18:06:40.670Z	INFO	kubebuilder.controller	Starting workers	{"controller": "capability-controller", "worker count": 1}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant