-
Bug
-
Resolution: Not a Bug
-
Medium
-
Frankfurt Release
-
None
1. Problem description:
$ kubectl get ing -n onap | grep dcaemod
onap-dcaemod-designtool-ingress nifi.simpledemo.onap.org,nifi-api.simpledemo.onap.org A.B.C.D 80 19d
onap-dcaemod-distributor-api-ingress distributor.simpledemo.onap.org A.B.C.D 80 19d
onap-dcaemod-genprocessor-ingress nifi-jars.simpledemo.onap.org A.B.C.D 80 19d
onap-dcaemod-onboarding-api-ingress onboarding.simpledemo.onap.org A.B.C.D 80 19d
Note: "A.B.C.D" here is the IP address, it has been deleted and replace by A.B.C.D.
For the separate ingress services, it was able to access to all the services via DNS FQDN, for example:
- Design tool: http://nifi.simpledemo.onap.org/nifi/
- Onboarding API: http://onboarding.simpledemo.onap.org/onboarding
- Distributor API: http://distributor.simpledemo.onap.org/distributor
- and so on ...
The "Nifi Parser Error" message (or error) was happened because (please refer to the attachment screen-shoots for the details):
- when we tried to add runtime-api, i.e., "http://dcaemod-runtime-api:9090", to Distribution Target Environment from NiFi Web UI (i.e., http://nifi.simpledemo.onap.org/nifi), this actually sent a POST request to "http://nifi.simpledemo.onap.org/distributor/distribution-targets", with the request body is {"name":"dcaeruntime","runtimeApiUrl":"http://dcaemod-runtime-api:9090","description":"test"}.
- and as we can see, the destination url, here is "http://nifi.simpledemo.onap.org/distributor/distribution-targets", for such the POST request abive is not correct, the correct url is: "http://distributor.simpledemo.onap.org/distributor/distribution-targets"
2. One solution to fix it
- change the "host" on the dcaemod-distributor-api-ingress service, by replace the "distributor.simpledemo.onap.org" by "nifi.simpledemo.onap.org", this helps to have correct distribution url when adding runtime-api. Did it by the following:
$ kubectl edit ing -n onap onap-dcaemod-distributor-api-ingress
spec:
rules:
- host: nifi.simpledemo.onap.org
http:
paths: - backend:
serviceName: dcaemod-distributor-api
servicePort: 8080
path: /distributor
- after that, the ingress services for dcae mod will be shown as follows:
onap-dcaemod-designtool-ingress nifi.simpledemo.onap.org,nifi-api.simpledemo.onap.org A.B.C.D 80 19d
onap-dcaemod-distributor-api-ingress nifi.simpledemo.onap.org A.B.C.D 80 19d
onap-dcaemod-genprocessor-ingress nifi-jars.simpledemo.onap.org A.B.C.D 80 19d
onap-dcaemod-onboarding-api-ingress onboarding.simpledemo.onap.org A.B.C.D 80 19d