Problem:
unable to run hammer bootdisk commands and hammer --help does not list bootdisk Expected outcome:
the ability to run bootdisk commands such as hammer bootdisk host --host node.example.com Foreman and Proxy versions:
Foreman Version: 3.11.2
Foreman Smart Proxy Version: 3.11.2 Foreman and Proxy plugin versions:
Operating System: Red Hat Enterprise Linux 9.4 (Plow)
CPE OS Name: cpe:/o:redhat:enterprise_linux:9::baseos
Kernel: Linux 5.14.0-427.33.1.el9_4.x86_64
Architecture: x86-64
Other relevant data:
as shown in plugin version it does list foreman_bootdisk version 21.2.3 but i’m unable to access the module via hammer cli.
[ INFO 2024-09-12T15:03:47 Init] Configuration from the file /etc/hammer/cli_config.yml has been loaded
[ INFO 2024-09-12T15:03:47 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman.yml has been loaded
[ INFO 2024-09-12T15:03:47 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_ansible.yml has been loaded
[ INFO 2024-09-12T15:03:47 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_puppet.yml has been loaded
[ INFO 2024-09-12T15:03:47 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_remote_execution.yml has been loaded
[ INFO 2024-09-12T15:03:47 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_ssh.yml has been loaded
[ INFO 2024-09-12T15:03:47 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_tasks.yml has been loaded
[ INFO 2024-09-12T15:03:47 Init] Configuration from the file /etc/hammer/cli.modules.d/foreman_templates.yml has been loaded
[ INFO 2024-09-12T15:03:47 Init] Configuration from the file /etc/hammer/cli.modules.d/katello.yml has been loaded
running dnf repoquery -l rubygem-foreman_bootdisk to confirm what files are part of the install there are no mentioned of it touching anything in /etc/hammer/cli.modules.d/.
Its my understanding that hammer loads further modules from cli.modules.d,
is likely to be the cause of the issue or perhaps just another side effect?
Thank you for responding and apologies for not making that clear,
Yes, rubygem-hammer_cli_foreman_bootdisk is what is installed and was done so via the foreman-installer.
But the installer doesn’t support installing the Bootdisk CLI parts
And the rubygem-hammer_cli_foreman_bootdisk package contains /etc/hammer/cli.modules.d/foreman_bootdisk.yml which is missing on your system as per the above paste.
So foreman_plugin_bootdisk isn’t installing rubygem-foreman_bootdisk?
I attempted to install rubygem-foreman_bootdisk today and it said it was already installed,
so i presumed it must have been installed by foreman_plugin_bootdisk.
due to this i made dnf reinstall before posting this issue.
I then proceeded to check what the package was installing using dnf repoquery -l rubygem-foreman_bootdisk and it doesn’t look to touch the module directory.
shouldn’t dnf repoquery -l rubygem-foreman_bootdisk return /etc/hammer/cli.modules.d/foreman_bootdisk.yml if it includes it?
You say rubygem-foreman_bootdisk, that’s the Foreman (server) part of Bootdisk. But I wrote rubygem-hammer_cli_foreman_bootdisk (note the hammer_cli in the package name!), which is the Hammer/CLI part.