turandot icon indicating copy to clipboard operation
turandot copied to clipboard

Documentation error on hello-world example , version : v0.5.0

Open mimihuhux opened this issue 3 years ago • 3 comments

Hi friend, can you help to report the error is what reason, ths...

2021/08/14 14:16:29.761 INFO [turandot-operator.controller] updating Clout status for service: workspace/hello-world 2021/08/14 14:16:29.761 INFO [turandot-operator.controller] Event(v1.ObjectReference{Kind:"Service", Namespace:"workspace", Name:"hello-world", UID:"7d0841a3-12b5-4d4c-b119-bcc45837c2bf", APIVersion:"turandot.puccini.cloud/v1alpha1", ResourceVersion:"121596", FieldPath:""}): type: 'Normal' reason: 'Compiled' Service template compiled successfully 2021/08/14 14:16:29.781 INFO [turandot-operator.controller] getting artifacts from Clout: /cache/clout/workspace-hello-world-7d0841a3-12b5-4d4c-b119-bcc45837c2bf.yaml 2021/08/14 14:16:29.809 INFO [turandot-operator.controller] updating instantiation status to "NotInstantiated" for service: workspace/hello-world 2021/08/14 14:16:29.809 INFO [turandot-operator.controller] Event(v1.ObjectReference{Kind:"Service", Namespace:"workspace", Name:"hello-world", UID:"7d0841a3-12b5-4d4c-b119-bcc45837c2bf", APIVersion:"turandot.puccini.cloud/v1alpha1", ResourceVersion:"121597", FieldPath:""}): type: 'Warning' reason: 'InstantiationError' Service instantiation error: TypeError: Object has no member 'exec' at internal:kubernetes.artifacts.get:1:87(5) 2021/08/14 14:16:29.817 INFO [kutil.url] deleted temporary file "/tmp/kutil-docker10.102.235.1135000workspaceservice-templates-hello-world-a2fdf5cf-55fc-4cc0-8ac7-fa8025f5b465latestformat=csar-4256242706" 2021/08/14 14:16:29.817 INFO [turandot-operator.processor.services] requeuing unfinished work item (1 time) workspace/hello-world 2021/08/14 14:16:29.823 INFO [turandot-operator.processor.services] processing work item workspace/hello-world 2021/08/14 14:16:29.832 INFO [turandot-operator.controller] instantiating service: workspace/hello-world 2021/08/14 14:16:29.832 INFO [turandot-operator.controller] updating instantiation status to "Instantiating" for service: workspace/hello-world 2021/08/14 14:16:29.861 INFO [turandot-operator.controller] compiling TOSCA service template: docker://10.102.235.113:5000/workspace/service-templates-hello-world-a2fdf5cf-55fc-4cc0-8ac7-fa8025f5b465:latest?format=csar 2021/08/14 14:16:29.861 INFO [turandot-operator.controller] inputs: map[] 2021/08/14 14:16:29.861 INFO [puccini.parser] {read} $Root: docker://10.102.235.113:5000/workspace/service-templates-hello-world-a2fdf5cf-55fc-4cc0-8ac7-fa8025f5b465:latest?format=csar 2021/08/14 14:16:29.861 INFO [kutil.url] downloading from "docker://10.102.235.113:5000/workspace/service-templates-hello-world-a2fdf5cf-55fc-4cc0-8ac7-fa8025f5b465:latest?format=csar" to temporary file "/tmp/kutil-docker10.102.235.1135000workspaceservice-templates-hello-world-a2fdf5cf-55fc-4cc0-8ac7-fa8025f5b465latestformat=csar-3104360571" 2021/08/14 14:16:29.892 INFO [kutil.url] downloading from "docker://10.102.235.113:5000/workspace/service-templates-hello-world-a2fdf5cf-55fc-4cc0-8ac7-fa8025f5b465:latest?format=csar" to temporary file "/tmp/kutil-docker10.102.235.1135000workspaceservice-templates-hello-world-a2fdf5cf-55fc-4cc0-8ac7-fa8025f5b465latestformat=csar-391229009" 2021/08/14 14:16:30.401 INFO [turandot-operator.controller] updating Clout status for service: workspace/hello-world 2021/08/14 14:16:30.402 INFO [turandot-operator.controller] Event(v1.ObjectReference{Kind:"Service", Namespace:"workspace", Name:"hello-world", UID:"7d0841a3-12b5-4d4c-b119-bcc45837c2bf", APIVersion:"turandot.puccini.cloud/v1alpha1", ResourceVersion:"121602", FieldPath:""}): type: 'Normal' reason: 'Compiled' Service template compiled successfully 2021/08/14 14:16:30.419 INFO [turandot-operator.controller] getting artifacts from Clout: /cache/clout/workspace-hello-world-7d0841a3-12b5-4d4c-b119-bcc45837c2bf.yaml 2021/08/14 14:16:30.439 INFO [turandot-operator.controller] updating instantiation status to "NotInstantiated" for service: workspace/hello-world 2021/08/14 14:16:30.439 INFO [turandot-operator.controller] Event(v1.ObjectReference{Kind:"Service", Namespace:"workspace", Name:"hello-world", UID:"7d0841a3-12b5-4d4c-b119-bcc45837c2bf", APIVersion:"turandot.puccini.cloud/v1alpha1", ResourceVersion:"121607", FieldPath:""}): type: 'Warning' reason: 'InstantiationError' Service instantiation error: TypeError: Object has no member 'exec' at internal:kubernetes.artifacts.get:1:87(5) 2021/08/14 14:16:30.446 INFO [kutil.url] deleted temporary file "/tmp/kutil-docker10.102.235.1135000workspaceservice-templates-hello-world-a2fdf5cf-55fc-4cc0-8ac7-fa8025f5b465latestformat=csar-3104360571"

mimihuhux avatar Aug 14 '21 14:08 mimihuhux

1

2

mimihuhux avatar Aug 14 '21 15:08 mimihuhux

Hi! The error is simple -- you probably did a "git clone" and are using the main branch, but you downloaded version 0.5.0 and things have changed since then. So do a "git checkout tags/v0.5.0 -b main" to make sure you're in the right state.

tliron avatar Aug 14 '21 16:08 tliron

HI ,Tlion, Thank you,Problem solved. The reason for the problem is that the Turandot-operator version is inconsistent with the Git code v0.5.0, recompile turandot-operator for v0.5.0, its ok.. ok

mimihuhux avatar Aug 16 '21 03:08 mimihuhux