Skip to content

Running plugins on the MOC (ppc64le direct)

Rudolph Pienaar edited this page Dec 7, 2019 · 6 revisions

Running plugins on the MOC (ppc64le direct)

Overview

This page documents some pfcon related commands for executing plugins on the Massachusetts Open Cloud by talking directly to pman and pfioh exposed on a specific PPC64 machine for testing purposes.

Service access

Set the access IP to fnndsc.childrens.harvard.edu

export HOST_IP=134.174.13.44

Call

pfurl --verb POST --raw \
      --http ${HOST_IP}:5005/api/v1/cmd \
      --httpResponseBodyParse \
      --jsonwrapper 'payload' \
      --msg \
'{  "action": "internalctl",
    "meta": {
                "var":     "/service/moc",
                "set":     {
                    "compute": {
                        "addr": "pman-radiology.k-apps.osh.massopen.cloud",
                        "baseURLpath": "api/v1/cmd/",
                        "status": "undefined",
                        "authToken": "{Bu7H)FyWp{,e<"
                    },
                    "data": {
                        "addr": "pfioh-radiology.k-apps.osh.massopen.cloud",
                        "baseURLpath": "api/v1/cmd/",
                        "status": "undefined",
                        "authToken": "{Bu7H)FyWp{,e<",
                        "serviceMan": "openshift"
                    }
                }
            }
}'

Set an optional proxy if in a proxied network:

pfurl --verb POST --raw \
      --http ${HOST_IP}:5005/api/v1/cmd \
      --httpResponseBodyParse \
      --jsonwrapper 'payload' \
      --msg \
'{  "action": "internalctl",
    "meta": {
                "var":     "/self",
                "set":     {
                     "httpProxy": {
                        "httpSpec": "http://proxy.tch.harvard.edu:3128",
                        "use":  true
                    }
                }
            }
}'

-30-