Continued changes for NNF fencing - #22
Conversation
Signed-off-by: Nate Thornton <nate.thornton@hpe.com>
| |`--systems-uri=[URI]` | The URI of the Systems object. Must be `/redfish/v1/Systems/Node0` | | ||
| |`--ssl-insecure` | Instructs the use of an insecure SSL exchange | | ||
| | `ip=[ADDRESS]` | The IP address or hostname of the HSS controller | | ||
| | `port=[PORT]` | The Port of the HSS controller. Must be `80` | |
There was a problem hiding this comment.
should this be port=80 then?
| | `ip=[ADDRESS]` | The IP address or hostname of the HSS controller | | ||
| | `port=[PORT]` | The Port of the HSS controller. Must be `80` | | ||
| | `systems-uri=[URI]` | The URI of the Systems object. Must be `/redfish/v1/Systems/Node0` | | ||
| | `ssl-insecure=[BOOL]` | Instructs the use of an insecure SSL exchange. Must be `true` | |
| import logging | ||
| import atexit | ||
|
|
||
| sys.path.append("@FENCEAGENTSLIBDIR@") |
There was a problem hiding this comment.
I think we need a comment here. Does the user need to change this?
There was a problem hiding this comment.
Sorry, should have made it more obvious in the PR. This is just a place to stuff my changes so I have a copy if my machine were to crash. The final place will be in the ClusterLabs repo (or a fork), in which case configure/make will handle the string substitution.
| try: | ||
| from kubernetes import client | ||
| except ImportError: | ||
| logging.error("Couldn't import kubernetes.client - not found or not accessible") |
There was a problem hiding this comment.
Why handle this one specifically?
There was a problem hiding this comment.
Because it has to be manually installed using pip
| } | ||
|
|
||
| def main(): | ||
| atexit.register(atexit_handler) |
There was a problem hiding this comment.
It's in fencing.py
| if e.status == 401: | ||
| fail(EC_LOGIN_DENIED) | ||
| elif e.status == 404: | ||
| fail(EC_STATUS) |
There was a problem hiding this comment.
could use http.HTTPStatus for these codes
Signed-off-by: Nate Thornton <nate.thornton@hpe.com>
Updates the readme for
Adds my in-progress fence_nnf.py changes
Adds my notes.md file
Signed-off-by: Nate Thornton nate.thornton@hpe.com