Errors encountered during convert2rhel process of CentOS 7 to RHEL 7 while applying the ansible role from Red Hat Satellite

Solution Verified - Updated -

Issue

Below different issues are observed while applying an ansible role redhat.satellite.convert2rhel as per documentation.

  • Issue 1:

    Below error is observed while applying the variable satellite_server_url with value satellite.example.com.

    "msg": "The server URL needs to be either HTTPS or HTTP!"
    
  • Issue 2:

    Below error is observed while applying the variable satellite_manifest_path with value /root/manifest_Sat_20220623T124844Z.zip.

    fatal: [abc.example.com]: FAILED! => {"changed": false, "msg": "Manifest is older than existing data."}
    
  • Issue 3:

    Below error is observed while applying for a role in the proxy environment.

    fatal: [abc.example.com]: FAILED! => {"msg": "An unhandled exception occurred while running the lookup plugin 'url'. Error was a <class 'ansible.errors.AnsibleError'>, 
    original message: Failed lookup url for https://ftp.redhat.com/redhat/convert2rhel/redhat-uep.pem : <urlopen error timed out>. Failed lookup url for 
    https://ftp.redhat.com/redhat/convert2rhel/redhat-uep.pem : <urlopen error timed out>"}
    
  • Issue 4:

    Applying role satellite_content_rhel_enable_rhel7 throws the below error.

    fatal: [abc.example.com]: FAILED! => {"msg": "The conditional check 'satellite_content_rhel_enable_rhel7' failed. The error was: error while evaluating conditional 
    (satellite_content_rhel_enable_rhel7): 'satellite_content_rhel_enable_rhel7' is undefined\n\nThe error appears to be in 
    '/usr/share/ansible/collections/ansible_collections/redhat/satellite/roles/convert2rhel/tasks/products_and_repos.yml': line 20, 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: \"Create '{{ satellite_convert2rhel_rhel7_product }}' product and repositories\"\n  ^ here\nWe could be wrong, but this 
    one looks like it might be an issue with\nmissing quotes. Always quote template expression brackets when they\nstart a value. For instance:\n\n    with_items:\n      - {{ foo }}\n\nShould be 
    written as:\n\n    with_items:\n      - \"{{ foo }}\"\n"}
    

Environment

  • Red Hat Satellite 6.11

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content