Hi all,
I need to use dmaap data-router to test a publish/subscriber use case for 
transfer files.

So I created a Feed with Bus Controller with one pub test0001:test0001 on that 
Feed.

Now I publish to dmaap-dr-prov a sample file with curl command:

ubuntu@onap-control:~$ curl -k -X PUT --user "test0001:test0001" -H 
"Content-Type:application/octet-stream"  -H 
"X-DMAAP-DR-META:{\"filetype\":\"txt\"}" --data-binary @sampleFile.txt 
--post301 -location https://192.168.64.5:30269/publish/1/sampleFile.txt

But I get:

curl: (6) Could not resolve host: dmaap-dr-node

I see that dmaap-dr-prov sends a redirect to 'https://dmaap-dr-node:8443', but 
this address and this porti is visible only inside kubernetes cluster.
Is there a way to send a file from an application outside the onap K8S ?

Thanks.


This is the output of curl -v command:
...
* upload completely sent off: 12 out of 12 bytes
< HTTP/1.1 301 Moved Permanently
< Location: https://dmaap-dr-node:8443/publish/1/sampleFile.txt
< Content-Length: 0
< Server: Jetty(9.4.41.v20210516)
<
* Connection #0 to host 192.168.64.5 left intact
* Issue another request to this URL: 
'https://dmaap-dr-node:8443/publish/1/sampleFile.txt'
* Could not resolve host: dmaap-dr-node
* Closing connection 1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#23903): https://lists.onap.org/g/onap-discuss/message/23903
Mute This Topic: https://lists.onap.org/mt/89635324/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to