redhatgov.workshops icon indicating copy to clipboard operation
redhatgov.workshops copied to clipboard

openshift_terraform RHSM error handling

Open jvanmeter opened this issue 6 years ago • 0 comments

The registration logic needs to be enhanced to provide better handling of different error conditions. For example this error is ignored when it should error, because this activation key did not have a subscription attached.

TASK [openshift.prereq : Register host via Activation key] *********************************** fatal: [node.0.dca-ocp101.redhatgov.io]: FAILED! => {"changed": false, "cmd": "/sbin/subscription-manager register --org 11294799 --activationkey VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "msg": "None of the subscriptions on the activation key were available for attaching.", "rc": 70, "stderr": "None of the subscriptions on the activation key were available for attaching.\n", "stderr_lines": ["None of the subscriptions on the activation key were available for attaching."], "stdout": "", "stdout_lines": []} ...ignoring

jvanmeter avatar Oct 02 '18 02:10 jvanmeter