How to use remote_addr functionality in Red Hat satellite 6 for Cloud-init and Userdata Templates for Provisioning?

Solution Verified - Updated -

Issue

  • How to add "Remote address" in Red Hat Satellite if it is behind the Load balancer for Cloud-init and Userdata Templates for Provisioning?
  • Red Hat Satellite 6.8 and earlier versions, we had an option in WebUI --> Administer --> Settings available to set the remote IP, where can we find this option from satellite 6.9?

    #  hammer settings list --search "name ~ remote_addr"
    ------------|----------------|-----------|---------------------------------------------------------------------------------
    NAME        | FULL NAME      | VALUE     | DESCRIPTION                                                                     
    ------------|----------------|-----------|---------------------------------------------------------------------------------
    remote_addr | Remote address | 127.0.0.1 | If Satellite is running behind Passenger or a remote load balancer, the IP should be set here. This is a regular expression, so it can support several load balancers, i.e: (10.0.0.1|127.0.0.1)
    ------------|----------------|-----------|---------------------------------------------------------------------------------
    
  • How to Configure Capsule to Forward the user data Template

  • Client machine unable to communicate to Red Hat Satellite 6.9 server for user-data execution step and fails with below error.

    2021-10-31 01:39:24,641 - url_helper.py[DEBUG]: Please wait 1 seconds while we wait to try again
    2021-10-31 01:39:25,642 - url_helper.py[DEBUG]: [10/11] open 'https://satellite.example.com:8443/userdata/meta-data' with {'url': 'https://satellite.example.com:8443/userdata/meta-data', 'allow_redirects': True, 'method': 'GET', 'headers': {'User-Agent': 'Cloud-Init/20.3-10.el8_4.5'}} configuration
    2021-10-31 01:39:50,241 - handlers.py[DEBUG]: finish: init-network/search-NoCloudNet: FAIL: no network data found from DataSourceNoCloudNet
    2021-10-31 01:39:50,241 - util.py[WARNING]: Getting data from <class 'cloudinit.sources.DataSourceNoCloud.DataSourceNoCloudNet'> failed
    2021-10-31 01:39:50,241 - util.py[DEBUG]: Getting data from <class 'cloudinit.sources.DataSourceNoCloud.DataSourceNoCloudNet'> failed
    

Environment

  • Red Hat Satellite 6.9+

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