- Red Hat Satellite 6.x.
- When trying to execute a Hammer command it fails with:
[root@satellite6 ~]# hammer virt-who-config deploy --id 1 --organization-id 1 Could not deploy the Virt Who configuration: Association not found for location
- Verify if there are any defaults set for Hammer specifically relating to Organizations and Locations:
[root@satellite6 ~]# hammer defaults list [root@satellite6 ~]# cat /root/.hammer/defaults.yml
After making appropriate changes with regards to the default Organization/Location set in /root/.hammer/defaults.yml the Hammer utility works just fine.
Red Hat Satellite 6.5 provides a
--no-use-defaultsswitch to by-pass the default settings:
[firstname.lastname@example.org ~]# hammer --no-use-defaults virt-who-config deploy --id 1 --organization-id 1
- Hammer has a default Organization(depending on the situation) or Location set which it reads every time while executing a command.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.