-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
subscription-manager role gives error for missing rhsm_password when subscribing with Satellite #163
Comments
@vvaldez tried including a dummy value for
Then eventually fails at the attach task since it's not successfully subscribed. |
@etsauer looking into this now. First thing I see is that the variable is rhsm_satellite and no longer rhsm_server and the rhsm_method is no longer used, any chance that is an older version of the original PR? I also don't read in rhsm_register that is dynamically determined based on which parameters are set. When I run the latest subscription-manager role with those same variables you specified I get this:
This should be caught in the pre_tasks lines 42-49:
Do you have the pre_task called before the role in the play? You may be able to simply add:
It shouldn't be trying both key and password, those tasks say skipping, did it try to execute one or both? You can try -vv on the playbook run. However, I do see where a problem may occur if using a key and no password, I will work on addressing that now. |
@etsauer this worked for me using these variables:
Here's the task when it runs with no rhsm_password specified:
The full pre_tasks output should look like this:
Here's the tasks output and looks like rhsm_password gets set to "" so should not cause an issue:
|
I realized this issue only occurs if you don't have rhsm_password set at all, in my case all my tests were using the default inventory file which has rhsm_password='' in it. This PR fixes this issue. |
Fixes Issue #163 if rhsm_password is not defined
I invoke the subscription-manager role in a play like:
My inventory contains:
When run, I get an error saying:
If i'm providing an activation key, then I shouldn't need to provide rhsm_password, correct?
cc: @vvaldez
The text was updated successfully, but these errors were encountered: