-
Notifications
You must be signed in to change notification settings - Fork 21
Missing org_id and activationkey lookup for redhat subscription #249
Comments
My first idea to solve this issue is the following code
|
subscription_data.csv.sample got an extra parameter. We can use this extra parameter to subscribe with activationkey for example. extra,--activationkey='...' --org='...' If we do so, roles/redhat_subscription/tasks/main.yml:46 raise an error: "Error: Activation keys cannot be used with --auto-attach." Move --auto-attach in subscription file sample. Remove --force because extra param is already set This PR fixes projectatomic#249
The honest answer is because we are lazy. :) When this test suite first began, we were always testing systems that had been freshly booted and had no subscriptions present. It is perfectly reasonable to check for a valid subscription before trying to register. I'm pleased to see you have a PR for this, so I'll be sure to review it in the near future. |
No problems :) Like this user can decide how they want to use subscription-manager Let me know if you don't like this solution. I will implement the conditional subscription playbook. |
Adding support for the |
…250) subscription_data.csv.sample got an extra parameter. We can use this extra parameter to subscribe with activationkey for example. extra,--activationkey='...' --org='...' If we do so, roles/redhat_subscription/tasks/main.yml:46 raise an error: "Error: Activation keys cannot be used with --auto-attach." Move --auto-attach in subscription file sample. Remove --force because extra param is already set This PR fixes #249
Hello,
I got an issue with actual tests. I running
improved-sanity-test
against aRHEL-Atomic-7.4
virtual machine. My virtual machine is already activated.So I got one question:
subscription-manager
against a machine with an active subscription?If we want to force the subscription to be sure the
subscription-manager
works, could we move this to another test?If this is not possible, could we fix
roles/redhat_subscription/tasks/main.yml
to lookup fororg_id
andactivationkey
also.I need to be able to activate my Red Hat subscription with
org_id
andactivationkey
only.Thanks
The text was updated successfully, but these errors were encountered: