-
Bug
-
Resolution: Done
-
Medium
-
Frankfurt Release
-
None
-
Frankfurt offline deployment
-
DCAE Guilin Sprint 3, DCAE Guilin Sprint 4, DCAE Guilin Sprint 5
DCAE Dashboard GUI has option to update running deployment from GUI. Also same is available from published API:
https://git.onap.org/ccsdk/dashboard/tree/ccsdk-app-os/src/main/resources/swagger.json#n321
Whenever trying to call update for existing deployment either from API or from GUI application, user get's
'404 Not Found' error.
Frankfurt images:
nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.mod.onboardingapi:2.12.1 nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.inventory-api:3.4.1 nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.k8s-bootstrap-container:1.12.6 nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.cm-container:2.1.0 nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.tls-init-container:2.1.0 nexus3.onap.org:10001/onap/dcae-fe:1.3.4 nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.deployment-handler:4.3.0 nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.configbinding:2.5.2 nexus3.onap.org:10001/onap/dcae-dt:1.3.4 nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.multisite-init-container:1.0.0 nexus3.onap.org:10001/onap/dcae-be:1.3.4 nexus3.onap.org:10001/onap/org.onap.dcaegen2.platform.servicechange-handler:1.3.2 nexus3.onap.org:10001/onap/org.onap.dcaegen2.deployments.healthcheck-container:1.3.1 nexus3.onap.org:10001/onap/dcae-tosca-app:1.3.3 nexus3.onap.org:10001/onap/org.onap.ccsdk.dashboard.ccsdk-app-os:1.3.2
Snip from onap-dcae-dashboard POD's /opt/logs/dcae/dashboard/application.log log
... 2020-07-21T05:23:07.640Z||https-openssl-nio-8443-exec-8|o.a.h.i.c.LoggingManagedHttpClientConnection| http-outgoing-11 >> PUT /dcae-deployment-update/samsung_rapp-datacollector?cfy_tenant_name=default_tenant HTTP/1.1 2020-07-21T05:23:07.641Z||https-openssl-nio-8443-exec-8|o.a.h.i.c.LoggingManagedHttpClientConnection| http-outgoing-11 >> Accept: application/json, application/*+json 2020-07-21T05:23:07.641Z||https-openssl-nio-8443-exec-8|o.a.h.i.c.LoggingManagedHttpClientConnection| http-outgoing-11 >> Content-Type: application/json 2020-07-21T05:23:07.641Z||https-openssl-nio-8443-exec-8|o.a.h.i.c.LoggingManagedHttpClientConnection| http-outgoing-11 >> Content-Length: 146 2020-07-21T05:23:07.641Z||https-openssl-nio-8443-exec-8|o.a.h.i.c.LoggingManagedHttpClientConnection| http-outgoing-11 >> Host: deployment-handler:8443 2020-07-21T05:23:07.641Z||https-openssl-nio-8443-exec-8|o.a.h.i.c.LoggingManagedHttpClientConnection| http-outgoing-11 >> Connection: Keep-Alive 2020-07-21T05:23:07.642Z||https-openssl-nio-8443-exec-8|o.a.h.i.c.LoggingManagedHttpClientConnection| http-outgoing-11 >> User-Agent: Apache-HttpClient/4.5.7 (Java/1.8.0_242) 2020-07-21T05:23:07.642Z||https-openssl-nio-8443-exec-8|o.a.h.i.c.LoggingManagedHttpClientConnection| http-outgoing-11 >> Accept-Encoding: gzip,deflate 2020-07-21T05:23:07.642Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 >> "PUT /dcae-deployment-update/samsung_rapp-datacollector?cfy_tenant_name=default_tenant HTTP/1.1[\r][\n]" 2020-07-21T05:23:07.642Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 >> "Accept: application/json, application/*+json[\r][\n]" 2020-07-21T05:23:07.642Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 >> "Content-Type: application/json[\r][\n]" 2020-07-21T05:23:07.643Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 >> "Content-Length: 146[\r][\n]" 2020-07-21T05:23:07.643Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 >> "Host: deployment-handler:8443[\r][\n]" 2020-07-21T05:23:07.643Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 >> "Connection: Keep-Alive[\r][\n]" 2020-07-21T05:23:07.643Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 >> "User-Agent: Apache-HttpClient/4.5.7 (Java/1.8.0_242)[\r][\n]" 2020-07-21T05:23:07.643Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 >> "Accept-Encoding: gzip,deflate[\r][\n]" 2020-07-21T05:23:07.644Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 >> "[\r][\n]" 2020-07-21T05:23:07.644Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 >> "{"serviceTypeId":"dc01366c-3b8f-4794-a860-4e58cf794aed","inputs":{"image":"nexus3.onap.org:10001/onap/datacollector/datacollector:stable-master"}}" 2020-07-21T05:23:07.647Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 << "HTTP/1.1 404 Not Found[\r][\n]" 2020-07-21T05:23:07.648Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 << "Content-Security-Policy: default-src 'none'[\r][\n]" 2020-07-21T05:23:07.648Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 << "X-Content-Type-Options: nosniff[\r][\n]" 2020-07-21T05:23:07.648Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 << "Content-Type: text/html; charset=utf-8[\r][\n]" 2020-07-21T05:23:07.648Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 << "Content-Length: 188[\r][\n]" 2020-07-21T05:23:07.648Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 << "Date: Tue, 21 Jul 2020 05:23:07 GMT[\r][\n]" 2020-07-21T05:23:07.648Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 << "Connection: keep-alive[\r][\n]" 2020-07-21T05:23:07.649Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 << "[\r][\n]" 2020-07-21T05:23:07.649Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 << "<!DOCTYPE html>[\n]" 2020-07-21T05:23:07.649Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 << "<html lang="en">[\n]" 2020-07-21T05:23:07.649Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 << "<head>[\n]" 2020-07-21T05:23:07.649Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 << "<meta charset="utf-8">[\n]" 2020-07-21T05:23:07.649Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 << "<title>Error</title>[\n]" 2020-07-21T05:23:07.649Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 << "</head>[\n]" 2020-07-21T05:23:07.650Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 << "<body>[\n]" 2020-07-21T05:23:07.650Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 << "<pre>Cannot PUT /dcae-deployment-update/samsung_rapp-datacollector</pre>[\n]" 2020-07-21T05:23:07.650Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 << "</body>[\n]" 2020-07-21T05:23:07.650Z||https-openssl-nio-8443-exec-8|org.apache.http.impl.conn.Wire| http-outgoing-11 << "</html>[\n]" 2020-07-21T05:23:07.650Z||https-openssl-nio-8443-exec-8|o.a.h.i.c.LoggingManagedHttpClientConnection| http-outgoing-11 << HTTP/1.1 404 Not Found 2020-07-21T05:23:07.651Z||https-openssl-nio-8443-exec-8|o.a.h.i.c.LoggingManagedHttpClientConnection| http-outgoing-11 << Content-Security-Policy: default-src 'none' 2020-07-21T05:23:07.651Z||https-openssl-nio-8443-exec-8|o.a.h.i.c.LoggingManagedHttpClientConnection| http-outgoing-11 << X-Content-Type-Options: nosniff 2020-07-21T05:23:07.651Z||https-openssl-nio-8443-exec-8|o.a.h.i.c.LoggingManagedHttpClientConnection| http-outgoing-11 << Content-Type: text/html; charset=utf-8 2020-07-21T05:23:07.651Z||https-openssl-nio-8443-exec-8|o.a.h.i.c.LoggingManagedHttpClientConnection| http-outgoing-11 << Content-Length: 188 2020-07-21T05:23:07.652Z||https-openssl-nio-8443-exec-8|o.a.h.i.c.LoggingManagedHttpClientConnection| http-outgoing-11 << Date: Tue, 21 Jul 2020 05:23:07 GMT 2020-07-21T05:23:07.652Z||https-openssl-nio-8443-exec-8|o.a.h.i.c.LoggingManagedHttpClientConnection| http-outgoing-11 << Connection: keep-alive 2020-07-21T05:23:07.652Z||https-openssl-nio-8443-exec-8|o.a.h.impl.execchain.MainClientExec| Connection can be kept alive indefinitely 2020-07-21T05:23:07.653Z||https-openssl-nio-8443-exec-8|o.s.web.client.RestTemplate| PUT request for "https://deployment-handler:8443/dcae-deployment-update/samsung_rapp-datacollector?cfy_tenant_name=default_tenant" resulted in 404 (Not Found); invoking error handler 2020-07-21T05:23:07.653Z||https-openssl-nio-8443-exec-8|o.a.h.i.c.PoolingHttpClientConnectionManager| Connection [id: 11][route: {s}->https://deployment-handler:8443] can be kept alive indefinitely ...
jackl shared a link to deployment-handler API doc in email with the question "Does the version of the deployment handler in ONAP support the update operation? I do not see the /deployments/deployment_id/update endpoint in the API documentation"
https://docs.onap.org/projects/onap-dcaegen2/en/latest/sections/apis/deployment-handler.html
It may be the case that underlying deployment-handler (what DCAE Dashboard is using I guess) does not support this? Anyway it's DCAE Dashboards problem how to implement this operation. Or if cannot implement it, remove it from GUI and from API.