Hi Marcin, You probably shouldn't be using cfy commands to install DCAE components, the recommended approach is via DCAE Dashboard, or if you want to automate then the dcae-deployment handler offers a REST API. The issue however, is most likely not stemming from your usage of cfy, it appears that the DMaaP Plugin is failing to create a topic. based on this:
2020-07-23 11:33:15.021 LOG <pm-mapper> [preconfigure] INFO: Posting to URL: https://dmaap-bc:8443/webapi/mr_clients with body: {'action': ['view', 'pub'], 'clientRole': u'org.onap.dcae.pmPublisher', 'fqtn': u'org.onap.dmaap.mr.PERFORMANCE_MEASUREMENTS', 'dcaeLocationName': u'san-francisco'} 2020-07-23 11:33:15.021 LOG <pm-mapper> [preconfigure] ERROR: Error adding client to feed: 400 Client Error: Bad Request for url: https://dmaap-bc:8443/webapi/mr_clients 2020-07-23 11:33:15.021 CFY <pm-mapper> [preconfigure] Task failed 'dmaapplugin.mr_relationships.add_mr_publisher' -> 400 Client Error: Bad Request for url: https://dmaap-bc:8443/webapi/mr_clients 2020-07-23 11:33:15.591 CFY <pm-mapper> 'install' workflow execution failed: RuntimeError: Workflow failed: Task failed 'dmaapplugin.mr_relationships.add_mr_publisher' -> 400 Client Error: Bad Request for url: https://dmaap-bc:8443/webapi/mr_clients There are multiple reasons that this could happen, the components used are are AAF and DMaaP (all 3 of its services), so it's likely one of those components are experiencing some issues in your environment. Best Regards Joe ________________________________ From: onap-discuss@lists.onap.org <onap-discuss@lists.onap.org> on behalf of Przybysz, Marcin (Nokia - PL/Wroclaw) via lists.onap.org <marcin.przybysz=nokia....@lists.onap.org> Sent: 23 July 2020 10:46 To: onap-discuss@lists.onap.org <onap-discuss@lists.onap.org>; VENKATESH KUMAR, VIJAY <vv7...@att.com>; ms5...@att.com <ms5...@att.com> Subject: [onap-discuss] PM-MAPPER DMAAP Problem with add pm-mapper as publisher to topic org.onap.dmaap.mr.PERFORMANCE_MEASUREMENTS Hi, I’m using Frankfurt ONAP installation and I want to install pm-mapper. I do it according highlighted commands: kubectl -n onap exec -it dev-dcae-bootstrap-dd56f9bc-wct8s bash mkdir ~/custom_inputs cd ~/custom_inputs vi k8s-pm-mapper-inputs.yaml client_id: d...@dcae.onap.org client_password: demo123456! enable_http: true tag_version: some_nexus:10001/onap/org.onap.dcaegen2.services.pm-mapper:1.3.1 ### Correct Nexus repository should be set, container version should be as in pm-mpper blueprint filter: {"filters": [{"pmDefVsn":"targetVersion", "nfType":"targetNodeType", "vendor":"targetVendor","measTypes":["targetMeasType"]}]} cfy blueprints upload -b pm-mapper /blueprints/k8s-pm-mapper.yaml cfy deployments create -b pm-mapper -i ~/custom_inputs/k8s-pm-mapper-inputs.yaml pm-mapper cfy executions start -d pm-mapper install After this set of commands installation is triggered but it ends with an error. Below are log and events from execution : ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Log: ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Executing workflow install on deployment pm-mapper [timeout=900 seconds] 2020-07-23 11:33:01.112 CFY <pm-mapper> Starting 'install' workflow execution 2020-07-23 11:33:02.883 CFY <pm-mapper> [pm-topic_fgeftv] Creating node instance 2020-07-23 11:33:03.529 CFY <pm-mapper> [pm-feed_xlqebj] Creating node instance 2020-07-23 11:33:03.529 CFY <pm-mapper> [pm-topic_fgeftv.create] Sending task 'dmaapplugin.mr_lifecycle.create_topic' 2020-07-23 11:33:03.529 CFY <pm-mapper> [pm-feed_xlqebj.create] Sending task 'dmaapplugin.dr_lifecycle.create_feed' 2020-07-23 11:33:04.199 LOG <pm-mapper> [pm-topic_fgeftv.create] INFO: Attempting to create topic name PERFORMANCE_MEASUREMENTS 2020-07-23 11:33:04.734 LOG <pm-mapper> [pm-topic_fgeftv.create] INFO: Posting to URL: https://dmaap-bc:8443/webapi/topics with body: {'owner': u'dcaecm', 'topicDescription': 'No description provided', 'topicName': u'PERFORMANCE_MEASUREMENTS', 'txenable': False} 2020-07-23 11:33:04.734 LOG <pm-mapper> [pm-feed_xlqebj.create] INFO: Attempting to create feed name bulk_pm_feed 2020-07-23 11:33:04.734 LOG <pm-mapper> [pm-feed_xlqebj.create] INFO: Posting to URL: https://dmaap-bc:8443/webapi/feeds?useExisting=true with body: {'owner': u'dcaecm', 'feedVersion': '0.0', 'asprClassification': 'unclassified', 'feedName': u'bulk_pm_feed', 'feedDescription': 'No description provided'} 2020-07-23 11:33:04.734 LOG <pm-mapper> [pm-feed_xlqebj.create] INFO: Created feed name bulk_pm_feed with feed id 1 2020-07-23 11:33:05.330 CFY <pm-mapper> [pm-topic_fgeftv.create] Task succeeded 'dmaapplugin.mr_lifecycle.create_topic' 2020-07-23 11:33:05.330 CFY <pm-mapper> [pm-topic_fgeftv] Node instance created 2020-07-23 11:33:05.330 CFY <pm-mapper> [pm-feed_xlqebj.create] Task succeeded 'dmaapplugin.dr_lifecycle.create_feed' 2020-07-23 11:33:05.928 CFY <pm-mapper> [pm-feed_xlqebj] Node instance created 2020-07-23 11:33:05.928 CFY <pm-mapper> [pm-topic_fgeftv] Configuring node instance: nothing to do 2020-07-23 11:33:05.928 CFY <pm-mapper> [pm-feed_xlqebj] Configuring node instance: nothing to do 2020-07-23 11:33:06.523 CFY <pm-mapper> [pm-feed_xlqebj] Starting node instance: nothing to do 2020-07-23 11:33:06.523 CFY <pm-mapper> [pm-topic_fgeftv] Starting node instance: nothing to do 2020-07-23 11:33:06.523 CFY <pm-mapper> [pm-topic_fgeftv] Node instance started 2020-07-23 11:33:07.105 CFY <pm-mapper> [pm-feed_xlqebj] Node instance started 2020-07-23 11:33:07.105 CFY <pm-mapper> [pm-mapper_3izv4f] Creating node instance 2020-07-23 11:33:07.825 CFY <pm-mapper> [pm-mapper_3izv4f.create] Sending task 'k8splugin.create_for_components_with_streams' 2020-07-23 11:33:10.695 LOG <pm-mapper> [pm-mapper_3izv4f.create] INFO: Added config for dcae-pm-mapper 2020-07-23 11:33:11.380 LOG <pm-mapper> [pm-mapper_3izv4f.create] INFO: Done setting up: dcae-pm-mapper 2020-07-23 11:33:11.380 CFY <pm-mapper> [pm-mapper_3izv4f.create] Task succeeded 'k8splugin.create_for_components_with_streams' 2020-07-23 11:33:11.380 CFY <pm-mapper> [pm-mapper_3izv4f] Node instance created 2020-07-23 11:33:11.380 CFY <pm-mapper> [pm-mapper_3izv4f] Pre-configuring relationships 2020-07-23 11:33:12.057 CFY <pm-mapper> [preconfigure] Sending task 'dmaapplugin.dr_relationships.add_dr_subscriber' 2020-07-23 11:33:12.595 LOG <pm-mapper> [preconfigure] INFO: Attempting to add subscriber pm-mapper to feed pm-feed 2020-07-23 11:33:13.110 LOG <pm-mapper> [preconfigure] INFO: Posting to URL: https://dmaap-bc:8443/webapi/dr_subs with body: {'username': u'username', 'dcaeLocationName': u'san-francisco', 'deliveryURL': u'https://dcae-pm-mapper:8443/delivery', 'feedId': u'1', 'decompress': True, 'privilegedSubscriber': True, 'userpwd': u'password'} 2020-07-23 11:33:13.110 LOG <pm-mapper> [preconfigure] INFO: on source: {'username': u'username', 'delivery_url': u'https://dcae-pm-mapper:8443/delivery', 'subscriber_id': u'2', 'decompress': True, 'location': u'san-francisco', 'password': u'password', 'privilegedSubscriber': True} 2020-07-23 11:33:13.110 LOG <pm-mapper> [preconfigure] INFO: Added subscriber id 2 to feed 1 at san-francisco 2020-07-23 11:33:13.646 CFY <pm-mapper> [preconfigure] Task succeeded 'dmaapplugin.dr_relationships.add_dr_subscriber' 2020-07-23 11:33:13.646 CFY <pm-mapper> [preconfigure] Sending task 'dmaapplugin.mr_relationships.add_mr_publisher' 2020-07-23 11:33:14.404 LOG <pm-mapper> [preconfigure] INFO: Attempting to add pm-mapper as publisher to topic org.onap.dmaap.mr.PERFORMANCE_MEASUREMENTS 2020-07-23 11:33:15.021 LOG <pm-mapper> [preconfigure] INFO: Posting to URL: https://dmaap-bc:8443/webapi/mr_clients with body: {'action': ['view', 'pub'], 'clientRole': u'org.onap.dcae.pmPublisher', 'fqtn': u'org.onap.dmaap.mr.PERFORMANCE_MEASUREMENTS', 'dcaeLocationName': u'san-francisco'} 2020-07-23 11:33:15.021 LOG <pm-mapper> [preconfigure] ERROR: Error adding client to feed: 400 Client Error: Bad Request for url: https://dmaap-bc:8443/webapi/mr_clients 2020-07-23 11:33:15.021 CFY <pm-mapper> [preconfigure] Task failed 'dmaapplugin.mr_relationships.add_mr_publisher' -> 400 Client Error: Bad Request for url: https://dmaap-bc:8443/webapi/mr_clients 2020-07-23 11:33:15.591 CFY <pm-mapper> 'install' workflow execution failed: RuntimeError: Workflow failed: Task failed 'dmaapplugin.mr_relationships.add_mr_publisher' -> 400 Client Error: Bad Request for url: https://dmaap-bc:8443/webapi/mr_clients Execution of workflow install for deployment pm-mapper failed. [error=Traceback (most recent call last): File "/opt/mgmtworker/env/lib/python2.7/site-packages/cloudify/dispatch.py", line 571, in _remote_workflow_child_thread workflow_result = self._execute_workflow_function() File "/opt/mgmtworker/env/lib/python2.7/site-packages/cloudify/dispatch.py", line 600, in _execute_workflow_function result = self.func(*self.args, **self.kwargs) File "/opt/mgmtworker/env/lib/python2.7/site-packages/cloudify/plugins/workflows.py", line 30, in install node_instances=set(ctx.node_instances)) File "/opt/mgmtworker/env/lib/python2.7/site-packages/cloudify/plugins/lifecycle.py", line 29, in install_node_instances processor.install() File "/opt/mgmtworker/env/lib/python2.7/site-packages/cloudify/plugins/lifecycle.py", line 102, in install graph.execute() File "/opt/mgmtworker/env/lib/python2.7/site-packages/cloudify/workflows/tasks_graph.py", line 237, in execute raise self._error RuntimeError: Workflow failed: Task failed 'dmaapplugin.mr_relationships.add_mr_publisher' -> 400 Client Error: Bad Request for url: https://dmaap-bc:8443/webapi/mr_clients ] ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Events: ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Listing events for execution id 903a77c0-e45d-4003-a6f7-3fea77bc9e6d [include_logs=True] 2020-07-23 11:33:01.112 CFY <pm-mapper> Starting 'install' workflow execution 2020-07-23 11:33:02.883 CFY <pm-mapper> [pm-topic_fgeftv] Creating node instance 2020-07-23 11:33:03.529 CFY <pm-mapper> [pm-feed_xlqebj] Creating node instance 2020-07-23 11:33:03.529 CFY <pm-mapper> [pm-topic_fgeftv.create] Sending task 'dmaapplugin.mr_lifecycle.create_topic' 2020-07-23 11:33:03.529 CFY <pm-mapper> [pm-feed_xlqebj.create] Sending task 'dmaapplugin.dr_lifecycle.create_feed' 2020-07-23 11:33:04.199 LOG <pm-mapper> [pm-topic_fgeftv.create] INFO: Attempting to create topic name PERFORMANCE_MEASUREMENTS 2020-07-23 11:33:04.734 LOG <pm-mapper> [pm-topic_fgeftv.create] INFO: Posting to URL: https://dmaap-bc:8443/webapi/topics with body: {'owner': u'dcaecm', 'topicDescription': 'No description provided', 'topicName': u'PERFORMANCE_MEASUREMENTS', 'txenable': False} 2020-07-23 11:33:04.734 LOG <pm-mapper> [pm-feed_xlqebj.create] INFO: Attempting to create feed name bulk_pm_feed 2020-07-23 11:33:04.734 LOG <pm-mapper> [pm-feed_xlqebj.create] INFO: Posting to URL: https://dmaap-bc:8443/webapi/feeds?useExisting=true with body: {'owner': u'dcaecm', 'feedVersion': '0.0', 'asprClassification': 'unclassified', 'feedName': u'bulk_pm_feed', 'feedDescription': 'No description provided'} 2020-07-23 11:33:04.734 LOG <pm-mapper> [pm-feed_xlqebj.create] INFO: Created feed name bulk_pm_feed with feed id 1 2020-07-23 11:33:05.330 CFY <pm-mapper> [pm-topic_fgeftv.create] Task succeeded 'dmaapplugin.mr_lifecycle.create_topic' 2020-07-23 11:33:05.330 CFY <pm-mapper> [pm-topic_fgeftv] Node instance created 2020-07-23 11:33:05.330 CFY <pm-mapper> [pm-feed_xlqebj.create] Task succeeded 'dmaapplugin.dr_lifecycle.create_feed' 2020-07-23 11:33:05.928 CFY <pm-mapper> [pm-feed_xlqebj] Node instance created 2020-07-23 11:33:05.928 CFY <pm-mapper> [pm-topic_fgeftv] Configuring node instance: nothing to do 2020-07-23 11:33:05.928 CFY <pm-mapper> [pm-feed_xlqebj] Configuring node instance: nothing to do 2020-07-23 11:33:06.523 CFY <pm-mapper> [pm-feed_xlqebj] Starting node instance: nothing to do 2020-07-23 11:33:06.523 CFY <pm-mapper> [pm-topic_fgeftv] Starting node instance: nothing to do 2020-07-23 11:33:06.523 CFY <pm-mapper> [pm-topic_fgeftv] Node instance started 2020-07-23 11:33:07.105 CFY <pm-mapper> [pm-feed_xlqebj] Node instance started 2020-07-23 11:33:07.105 CFY <pm-mapper> [pm-mapper_3izv4f] Creating node instance 2020-07-23 11:33:07.825 CFY <pm-mapper> [pm-mapper_3izv4f.create] Sending task 'k8splugin.create_for_components_with_streams' 2020-07-23 11:33:10.695 LOG <pm-mapper> [pm-mapper_3izv4f.create] INFO: Added config for dcae-pm-mapper 2020-07-23 11:33:11.380 LOG <pm-mapper> [pm-mapper_3izv4f.create] INFO: Done setting up: dcae-pm-mapper 2020-07-23 11:33:11.380 CFY <pm-mapper> [pm-mapper_3izv4f.create] Task succeeded 'k8splugin.create_for_components_with_streams' 2020-07-23 11:33:11.380 CFY <pm-mapper> [pm-mapper_3izv4f] Node instance created 2020-07-23 11:33:11.380 CFY <pm-mapper> [pm-mapper_3izv4f] Pre-configuring relationships 2020-07-23 11:33:12.057 CFY <pm-mapper> [preconfigure] Sending task 'dmaapplugin.dr_relationships.add_dr_subscriber' 2020-07-23 11:33:12.595 LOG <pm-mapper> [preconfigure] INFO: Attempting to add subscriber pm-mapper to feed pm-feed 2020-07-23 11:33:13.110 LOG <pm-mapper> [preconfigure] INFO: Posting to URL: https://dmaap-bc:8443/webapi/dr_subs with body: {'username': u'username', 'dcaeLocationName': u'san-francisco', 'deliveryURL': u'https://dcae-pm-mapper:8443/delivery', 'feedId': u'1', 'decompress': True, 'privilegedSubscriber': True, 'userpwd': u'password'} 2020-07-23 11:33:13.110 LOG <pm-mapper> [preconfigure] INFO: Added subscriber id 2 to feed 1 at san-francisco 2020-07-23 11:33:13.110 LOG <pm-mapper> [preconfigure] INFO: on source: {'username': u'username', 'delivery_url': u'https://dcae-pm-mapper:8443/delivery', 'subscriber_id': u'2', 'decompress': True, 'location': u'san-francisco', 'password': u'password', 'privilegedSubscriber': True} 2020-07-23 11:33:13.646 CFY <pm-mapper> [preconfigure] Task succeeded 'dmaapplugin.dr_relationships.add_dr_subscriber' 2020-07-23 11:33:13.646 CFY <pm-mapper> [preconfigure] Sending task 'dmaapplugin.mr_relationships.add_mr_publisher' 2020-07-23 11:33:14.404 LOG <pm-mapper> [preconfigure] INFO: Attempting to add pm-mapper as publisher to topic org.onap.dmaap.mr.PERFORMANCE_MEASUREMENTS 2020-07-23 11:33:15.021 LOG <pm-mapper> [preconfigure] INFO: Posting to URL: https://dmaap-bc:8443/webapi/mr_clients with body: {'action': ['view', 'pub'], 'clientRole': u'org.onap.dcae.pmPublisher', 'fqtn': u'org.onap.dmaap.mr.PERFORMANCE_MEASUREMENTS', 'dcaeLocationName': u'san-francisco'} 2020-07-23 11:33:15.021 LOG <pm-mapper> [preconfigure] ERROR: Error adding client to feed: 400 Client Error: Bad Request for url: https://dmaap-bc:8443/webapi/mr_clients 2020-07-23 11:33:15.021 CFY <pm-mapper> [preconfigure] Task failed 'dmaapplugin.mr_relationships.add_mr_publisher' -> 400 Client Error: Bad Request for url: https://dmaap-bc:8443/webapi/mr_clients 2020-07-23 11:33:15.591 CFY <pm-mapper> 'install' workflow execution failed: RuntimeError: Workflow failed: Task failed 'dmaapplugin.mr_relationships.add_mr_publisher' -> 400 Client Error: Bad Request for url: https://dmaap-bc:8443/webapi/mr_clients ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Can you please help me to solve that issue? BR Marcin Przybysz (NOKIA) -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#21754): https://lists.onap.org/g/onap-discuss/message/21754 Mute This Topic: https://lists.onap.org/mt/75742750/21656 Group Owner: onap-discuss+ow...@lists.onap.org Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-