RedHatSatellite / satellite-clone

Utility to assist cloning an existing Satellite 6 server to a new host
GNU General Public License v3.0
37 stars 31 forks source link

Issue with Register/Subscribe the system #332

Closed ntkathole closed 6 years ago

ntkathole commented 6 years ago
$ ansible-playbook -i inventory satellite-clone-playbook.yml  -vvv
ansible-playbook 2.5.2
  config file = /home/jenkins/workspace/satellite6_db_upgrade_migrate@3/satellite-clone/ansible.cfg
  configured module search path = [u'/home/jenkins/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible-playbook
  python version = 2.7.14 (default, Feb 17 2018, 15:10:34) [GCC 7.3.1 20180130 (Red Hat 7.3.1-2)]
Using /home/jenkins/workspace/satellite6_db_upgrade_migrate@3/satellite-clone/ansible.cfg as config file
Parsed /home/jenkins/workspace/satellite6_db_upgrade_migrate@3/satellite-clone/inventory inventory source with ini plugin
Read vars_file 'satellite-clone-vars.yml'
Read vars_file 'satellite-clone-vars.yml'
Read vars_file 'satellite-clone-vars.yml'
Read vars_file 'satellite-clone-vars.yml'
ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.

The error appears to have been in '/home/jenkins/workspace/satellite6_db_upgrade_migrate@3/satellite-clone/roles/satellite-clone/tasks/main.yml': line 30, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- name: Register/Subscribe the system to Red Hat Portal
  ^ here
johnpmitsch commented 6 years ago

@sean797 can you look into this? I've had a couple people have some issues with the new vars files, I think its from your commit introducing them. (The other error was something along the lines of 'verify_rake_task' not defined).

sean797 commented 6 years ago

Can you post a copy of the vars you are setting?

johnpmitsch commented 6 years ago

@ntkathole do you have your vars file? Also, what version and type of Satellite backup are you using?

ntkathole commented 6 years ago

@sean797 I copied satellite-clone-vars.sample.yml and added following parameters:

backup_dir: /root/customer-dbs/

register_to_portal: true

rhelversion: 7
rhn_user: <user>
rhn_password: <passwd>
rhn_pool: <pool_id>

restorecon: false

@johnpmitsch yes i have environment as well...satellite backup type is 6.3.

sean797 commented 6 years ago

@ntkathole, if you did that then it fairly sure it would fail here (before the reported error):

https://github.com/RedHatSatellite/satellite-clone/blob/cf32238338d61b3cd47f2af122c7955bd78a40b7/roles/satellite-clone/tasks/main.yml#L26-L28

Are you sure?

Also in future formatting your comments so they are easy to read would be much appreciated

ntkathole commented 6 years ago

@sean797 Thanks for the clue. Found the actual issue. Job script was replacing subscription-manager command in main.yml. Closing this as it WORKS FOR ME!