ubuntu@nodez00c10:~$ curl -X POST http://localhost:30477/v2/projects/tenant-01/logical-clouds/lc1/terminate -v
* Trying 127.0.0.1:30477...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 30477 (#0)
> POST /v2/projects/tenant-01/logical-clouds/lc1/terminate HTTP/1.1
> Host: localhost:30477
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 202 Accepted
< Date: Thu, 07 Apr 2022 06:53:10 GMT
< Content-Length: 0
<
* Connection #0 to host localhost left intact
ubuntu@nodez00c10:~$ curl -X POST http://localhost:30477/v2/projects/tenant-01/logical-clouds/lc1/status -v
* Trying 127.0.0.1:30477...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 30477 (#0)
> POST /v2/projects/tenant-01/logical-clouds/lc1/status HTTP/1.1
> Host: localhost:30477
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 405 Method Not Allowed
< Date: Thu, 07 Apr 2022 06:53:27 GMT
< Content-Length: 0
<
* Connection #0 to host localhost left intact
ubuntu@nodez00c10:~$ curl -X GET http://localhost:30477/v2/projects/tenant-01/logical-clouds/lc1/status -v
Note: Unnecessary use of -X or --request, GET is already inferred.
* Trying 127.0.0.1:30477...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 30477 (#0)
> GET /v2/projects/tenant-01/logical-clouds/lc1/status HTTP/1.1
> Host: localhost:30477
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Content-Type: application/json
< Date: Thu, 07 Apr 2022 06:53:39 GMT
< Content-Length: 1869
<
{"project":"tenant-01","name":"lc1","states":{"statusctxid":"2248008278788970498","actions":[{"state":"Created","instance":"","time":"2022-04-07T06:49:27.576Z","revision":0},{"state":"Instantiated","instance":"2248008278788970498","time":"2022-04-07T06:49:27.8Z","revision":1},{"state":"Terminated","instance":"2248008278788970498","time":"2022-04-07T06:53:10.074Z","revision":2}]},"deployedStatus":"Terminated","readyStatus":"NotReady","readyCounts":{"NotPresent":10},"clusters":[{"clusterProvider":"kubernetes","cluster":"kud1","connectivity":"Available","resources":[{"GVK":{"Group":"rbac.authorization.k8s.io","Version":"v1","Kind":"Role"},"name":"lc1-role0","readyStatus":"NotPresent"},{"GVK":{"Group":"rbac.authorization.k8s.io","Version":"v1","Kind":"RoleBinding"},"name":"lc1-roleBinding0","readyStatus":"NotPresent"},{"GVK":{"Group":"certificates.k8s.io","Version":"v1","Kind":"CertificateSigningRequest"},"name":"lc1-user-csr","readyStatus":"NotPresent"},{"GVK":{"Group":"","Version":"v1","Kind":"Namespace"},"name":"md1","readyStatus":"NotPresent"},{"GVK":{"Group":"","Version":"v1","Kind":"ResourceQuota"},"name":"tenant-01-quotas","readyStatus":"NotPresent"}]},{"clusterProvider":"kubernetes","cluster":"kud2","connectivity":"Available","resources":[{"GVK":{"Group":"rbac.authorization.k8s.io","Version":"v1","Kind":"Role"},"name":"lc1-role0","readyStatus":"NotPresent"},{"GVK":{"Group":"rbac.authorization.k8s.io","Version":"v1","Kind":"RoleBinding"},"name":"lc1-roleBinding0","readyStatus":"NotPresent"},{"GVK":{"Group":"certificates.k8s.io","Version":"v1","Kind":"CertificateSigningRequest"},"name":"lc1-user-csr","readyStatus":"NotPresent"},{"GVK":{"Group":"","Version":"v1","Kind":"Namespace"},"name":"md1","readyStatus":"NotPresent"},{"GVK":{"Group":"","Version":"v1","Kind":"ResourceQuota"},"name":"tenant-01-quotas","readyStatus":"NotPresent"}]}]}
* Connection #0 to host localhost left intact
ubuntu@nodez00c10:~$ curl -X DELETE http://localhost:30477/v2/projects/tenant-01/logical-clouds/lc1 -v
* Trying 127.0.0.1:30477...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 30477 (#0)
> DELETE /v2/projects/tenant-01/logical-clouds/lc1 HTTP/1.1
> Host: localhost:30477
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 409 Conflict
< Content-Type: text/plain; charset=utf-8
< X-Content-Type-Options: nosniff
< Date: Thu, 07 Apr 2022 06:54:15 GMT
< Content-Length: 61
<
Cannot delete parent without deleting child references first
* Connection #0 to host localhost left intact
ubuntu@nodez00c10:~$ curl -X DELETE http://localhost:30477/v2/projects/tenant-01/logical-clouds/lc1 -v
* Trying 127.0.0.1:30477...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 30477 (#0)
> DELETE /v2/projects/tenant-01/logical-clouds/lc1 HTTP/1.1
> Host: localhost:30477
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 500 Internal Server Error
< Content-Type: text/plain; charset=utf-8
< X-Content-Type-Options: nosniff
< Date: Thu, 07 Apr 2022 06:54:39 GMT
< Content-Length: 82
<
The server encountered an internal error and was unable to complete your request.
* Connection #0 to host localhost left intact
ubuntu@nodez00c10:~$ k logs -n emco emco-dcm-64f67c4c87-cmv56
{"Error":"stat ref-schemas/v1.yaml: no such file or directory","File":"ref-schemas/v1.yaml","SOURCE":"file[schema.go:250] func[db.readSchema]","level":"warning","msg":"DatabaseReferentialSchema: database schema file does not exist.","time":"2022-04-07T06:10:24.056911064Z"}
10.32.0.24 - - [07/Apr/2022:06:48:52 +0000] "GET /v2/projects/tenant-01/logical-clouds HTTP/1.0" 200 5
10.32.0.25 - - [07/Apr/2022:06:49:17 +0000] "POST /v2/projects/tenant-01/logical-clouds HTTP/1.1" 201 196
10.32.0.25 - - [07/Apr/2022:06:49:27 +0000] "POST /v2/projects/tenant-01/logical-clouds/lc1/user-permissions HTTP/1.1" 201 864
10.32.0.25 - - [07/Apr/2022:06:49:27 +0000] "POST /v2/projects/tenant-01/logical-clouds/lc1/cluster-quotas HTTP/1.1" 201 638
10.32.0.25 - - [07/Apr/2022:06:49:27 +0000] "POST /v2/projects/tenant-01/logical-clouds/lc1/cluster-references HTTP/1.1" 201 240
10.32.0.25 - - [07/Apr/2022:06:49:27 +0000] "POST /v2/projects/tenant-01/logical-clouds/lc1/cluster-references HTTP/1.1" 201 240
{"SOURCE":"file[rpc.go:82] func[rpc.GetRpcConn]","level":"error","msg":"GetRpcConn: no Grpc connection available.","name":"rsync","time":"2022-04-07T06:49:27.767686225Z"}
10.32.0.25 - - [07/Apr/2022:06:49:27 +0000] "POST /v2/projects/tenant-01/logical-clouds/lc1/instantiate HTTP/1.1" 202 0
{"SOURCE":"file[client.go:257] func[module.checkAppContext]","chandle":"/context/2248008278788970498/app/logical-cloud/cluster/kubernetes+kud2/","level":"error","msg":"Couldn't fetch the handle for the cluster status object","time":"2022-04-07T06:49:29.277972724Z"}
10.32.0.25 - - [07/Apr/2022:06:49:46 +0000] "GET /v2/projects/tenant-01/logical-clouds HTTP/1.1" 200 198
10.32.0.25 - - [07/Apr/2022:06:49:46 +0000] "GET /v2/projects/tenant-01/logical-clouds/lc1/cluster-references HTTP/1.1" 200 4378
10.32.0.25 - - [07/Apr/2022:06:49:46 +0000] "GET /v2/projects/tenant-01/logical-clouds/lc1/user-permissions HTTP/1.1" 200 866
10.32.0.25 - - [07/Apr/2022:06:49:46 +0000] "GET /v2/projects/tenant-01/logical-clouds/lc1/cluster-quotas HTTP/1.1" 200 640
10.32.0.1 - - [07/Apr/2022:06:53:10 +0000] "POST /v2/projects/tenant-01/logical-clouds/lc1/terminate HTTP/1.1" 202 0
10.32.0.1 - - [07/Apr/2022:06:53:27 +0000] "POST /v2/projects/tenant-01/logical-clouds/lc1/status HTTP/1.1" 405 0
10.32.0.1 - - [07/Apr/2022:06:53:39 +0000] "GET /v2/projects/tenant-01/logical-clouds/lc1/status HTTP/1.1" 200 1869
{"SOURCE":"file[logicalcloud.go:329] func[module.(*LogicalCloudClient).Delete]","level":"error","logicalcloud":"lc1","msg":"Error when deleting Logical Cloud (scenario with Terminated status)","time":"2022-04-07T06:54:15.163394659Z"}
{"Error":"Error when deleting Logical Cloud (scenario with Terminated status): db Remove parent child constraint: Cannot delete parent without deleting child references first. Key: module.LogicalCloudKey {tenant-01 lc1}","Module":null,"Parameters":{"logicalCloud":"lc1","project":"tenant-01"},"SOURCE":"file[apierror.go:52] func[apierror.HandleErrors]","level":"error","msg":"Error :: ","time":"2022-04-07T06:54:15.163693637Z"}
10.32.0.1 - - [07/Apr/2022:06:54:15 +0000] "DELETE /v2/projects/tenant-01/logical-clouds/lc1 HTTP/1.1" 409 61
{"Error":"Error finding the context id: Error getting run time context metadata: Key doesn't exist","Module":null,"Parameters":{"logicalCloud":"lc1","project":"tenant-01"},"SOURCE":"file[apierror.go:52] func[apierror.HandleErrors]","level":"error","msg":"Error :: ","time":"2022-04-07T06:54:39.634980344Z"}
10.32.0.1 - - [07/Apr/2022:06:54:39 +0000] "DELETE /v2/projects/tenant-01/logical-clouds/lc1 HTTP/1.1" 500 82
ubuntu@nodez00c10:~$ curl -X GET http://localhost:30477/v2/projects/tenant-01/logical-clouds/lc1 -v
Note: Unnecessary use of -X or --request, GET is already inferred.
* Trying 127.0.0.1:30477...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 30477 (#0)
> GET /v2/projects/tenant-01/logical-clouds/lc1 HTTP/1.1
> Host: localhost:30477
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Content-Type: application/json
< Date: Thu, 07 Apr 2022 07:00:29 GMT
< Content-Length: 196
<
{"metadata":{"name":"lc1","description":"md1","userData1":"data 1","userData2":"data 2"},"spec":{"namespace":"md1","labels":null,"level":"1","user":{"userName":"tenant-01","type":"certificate"}}}
* Connection #0 to host localhost left intact
ubuntu@nodez00c10:~$ curl -X GET http://localhost:30477/v2/projects/tenant-01/logical-clouds/lc1/status -v
Note: Unnecessary use of -X or --request, GET is already inferred.
* Trying 127.0.0.1:30477...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 30477 (#0)
> GET /v2/projects/tenant-01/logical-clouds/lc1/status HTTP/1.1
> Host: localhost:30477
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 500 Internal Server Error
< Content-Type: text/plain; charset=utf-8
< X-Content-Type-Options: nosniff
< Date: Thu, 07 Apr 2022 07:00:37 GMT
< Content-Length: 127
<
The server encountered an internal error and was unable to complete your request.
{"states":{"statusctxid":"","actions":null}}
* Connection #0 to host localhost left intact
ubuntu@nodez00c10:~$