Red Hat Satellite bootstrap.py failing for activation-keys or org-labels with spaces.

Solution In Progress - Updated -

Issue

If the bootstrap.py script is used with -o (--organization) or -a (--activationkey) options, and the arguments to those options contain whitespace in either the name of the organization or the activation key, then a call to the /usr/sbin/rhn-migrate-classic-to-rhsm script will fail during execution with an error similar to this...

# /root/bootstrap.py --force -l admin -s satellite6.example.com -o 'myorg' -L 'mylocation' -g RHEL6_hostgroup -a "RHEL 6"
  (Output truncated)
[ERROR], [2016-11-08 14:01:56], EXITING: [/usr/sbin/rhn-migrate-classic-to-rhsm --org myorg --activation-key RHEL 6  --destination-url=https://satellite6.example.com:443/rhsm --keep --force] failed to execute properly.
Couldn't find activation key 'RHEL'
  (Output truncated)

Environment

Red Hat Satellite 6
katello-client-bootstrap.noarch

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.