Closed weslleyrosalem closed 4 years ago
The provisioner script now uses an AMI that is only available to Red Hat Customers with Cloud Access. (Refer to https://www.redhat.com/en/technologies/cloud-computing/cloud-access for instructions to register)
Is there some other image that can be used. We are using a corporate AWS account with no control on subscription. Is there another AMI that can be used that is available to users by default
I'm getting the same issue and do have the RHEL cloud images in the AWS account. Any ideas?
Error message:
TASK [manage_ec2_instances : save ami for ansible control node] **** Tuesday 15 October 2019 14:38:52 +0100 (0:00:01.805) 0:00:35.750 *** fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: No last item, sequence was empty.\n\nThe error appears to be in '/code/ansible/workshops/provisioner/roles/manage_ec2_instances/tasks/provision.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: save ami for ansible control node\n ^ here\n"}
Regarding RHEL AMIs, it's possible to do this change:
filter: 'RHEL-7.6_HVM-20190618-x86_64-0-Hourly2-GP2'
Instead of 'RHEL-7.6_HVM-20190515-x86_64-0-Access2-GP2'
Just edit provisioner/roles/manage_ec2_instances/defaults/main.yml file.
Regarding RHEL AMIs, it's possible to do this change:
filter: 'RHEL-7.6_HVM-20190618-x86_64-0-Hourly2-GP2'
Instead of 'RHEL-7.6_HVM-20190515-x86_64-0-Access2-GP2'
Just edit provisioner/roles/manage_ec2_instances/defaults/main.yml file.
Thanks, it worked ;)
Thanks @rcalvaga ;D
Can we have this be an option in the extra_vars.yml instead of having to modify the role vars? Ideally an hourly RHEL flag would be great that uses Hourly instead.
I feel like we need to change it something accessible for more folks, I need to talk to my counterpart RHEL TMM
Would be good to get this to identify the base AMIs by pattern and have two options available for pattern.
Talked with @IPvSean about this, and recommended that a public instance of RHEL8 on AWS should be used rather than this specialized image as it would help the community deploy an instance without the need of registering for a special access image. Another thought is create a variable that could be modified that could use the Locked off image or the public AMI, but default to the public AMI
biggest issue with the current method is that there is limited documentation on how to access the image and its not in the main documents as a requirement.
@VDI-Tech-Guy that sounds great. Do you need a PR for this or is that already set?
@magicalyak - My understanding is Sean will look at it this week and let us know.
this is fixed and on standard image for RHEL8, sorry for the delay on the update here
SUMMARY
Error in the last step before instance creation. It created the 3 nodes and ansible after hardcoded putting the attrbutes :
ISSUE TYPE
EXTRA VARS FILE
for more information on the extra vars file please refer to: https://github.com/network-automation/linklight/blob/master/provisioner/README.md
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
RHEL
TOWER
PLAYBOOK SHORT OUTPUT