Guest User

Untitled

a guest
Feb 12th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. - name: Check Datanode Running
  2. uri:
  3. url: http:/xxxx/v19/clusters/Azure-SBX-KRB-Cluster-ha3/services/CD-HDFS-ZosOwpMB/roleCommands/start
  4. method: POST
  5. user: admin
  6. password: admin
  7. headers:
  8. Content-Type: "application/json"
  9. body: {"items":['CD-HDFS-ZosOwpMB-DATANODE-bb35bedc431aed09bfca1c24657115f1']}
  10. body_format: json
  11. validate_certs: no
  12. return_content: yes
  13. follow_redirects: yes
  14. register: jsondata
  15.  
  16. register jsondata has below content
  17. ok: [xxxxx] => (item={'value': [{u'name': u'Start', u'success': False, u'roleRef': {u'clusterName': u'Azure-SBX-KRB-Cluster-ha3', u'roleName': u'CD-HDFS-ZosOwpMB-DATANODE-bb35bedc431aed09bfca1c24657115f1', u'serviceName': u'CD-HDFS-ZosOwpMB'}, u'resultMessage': u'Role must be stopped.', u'serviceRef': {u'clusterName': u'Azure-SBX-KRB-Cluster-ha3', u'serviceName': u'CD-HDFS-ZosOwpMB'}, u'startTime': u'2019-02-12T12:43:07.261Z', u'active': False, u'endTime': u'2019-02-12T12:43:07.261Z', u'id': 13570}], 'key': u'items'}) => {
  18. "changed": false,
  19. "item": {
  20. "key": "items",
  21. "value": [
  22. {
  23. "active": false,
  24. "endTime": "2019-02-12T12:43:07.261Z",
  25. "id": 13570,
  26. "name": "Start",
  27. "resultMessage": "Role must be stopped.",
  28. "roleRef": {
  29. "clusterName": "Azure-SBX-KRB-Cluster-ha3",
  30. "roleName": "CD-HDFS-ZosOwpMB-DATANODE-bb35bedc431aed09bfca1c24657115f1",
  31. "serviceName": "CD-HDFS-ZosOwpMB"
  32. },
  33. "serviceRef": {
  34. "clusterName": "Azure-SBX-KRB-Cluster-ha3",
  35. "serviceName": "CD-HDFS-ZosOwpMB"
  36. },
  37. "startTime": "2019-02-12T12:43:07.261Z",
  38. "success": false
  39. }
  40. ]
  41. },
  42. "msg": "items"
  43. }
Add Comment
Please, Sign In to add comment