Bootstrap script fails with invalid syntax while registering a RHEL 8 Sever with Red Hat Satellite 6

Solution Verified - Updated -

Issue

  • bootstrap.py script is failing on Red Hat Enterprise Linux 8 with below error while registering system to Red Hat Satellite 6 Server.

    # ./bootstrap.py -l admin -p 'xxxx' -s satellite.example.com -L 'Location' -o 'Organization' -a ActivationKey -g HostGroup
    
     File "/root/bootstrap.py", line 50
       print "[%sERROR%s], [%s], EXITING: [%s] failed to execute properly." %   (error_colors['FAIL'], error_colors['ENDC'], datetime.now().strftime('%Y-%m-%d %H:%M:%S'), msg)
                                                                          ^
    SyntaxError: invalid syntax
    

Environment

  • Red Hat Satellite 6.5 or higher
  • Red Hat Enterprise Linux 8
  • bootstrap.py

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