when I try tab-completion in hammer I get this error:
environment command is deprecated and will be removed in one of the future versions. Please use puppet-environment command instead.
report command is deprecated and will be removed in one of the future versions. Please use config-report command instead.
Error: uninitialized constant HammerCLIKatello::LifecycleEnvironmentNameResolvable
Did you mean? HammerCLIKatello::LifecycleEnvironmentNameMapping
hammer tab-completion works
Foreman and Proxy versions:
Distribution and version:
CentOS Linux release 7.8.2003 (Core)
Other relevant data:
As I only plan to use ansible I didn’t installed puppet. These are the specific options I used for the installer:
# create dummy puppet group to workaround this bug
grep puppet /etc/group &> /dev/null || groupadd --gid 5000 puppet
sudo foreman-installer \
--tuning medium \
I have found other similar bug reports (
https://bugzilla.redhat.com/show_bug.cgi?id=1730026) and I also experience the same issue when executing
hammer docker manifest list
I have also posted this bug report to
Bug #29661: hammer tab-completion crash - Hammer CLI - Foreman but as there was no activity in some days I decided to also post it here. Please feel free to delete this post if it’s not allowed.
Which version of hammer-cli-foreman-docker do you use? You can run
hammer --version to list installed plugins.
These are the versions I have:
# hammer --version
* hammer_cli_foreman (2.0.2)
* hammer_cli_foreman_ansible (0.3.2)
* hammer_cli_foreman_bootdisk (0.3.0)
* hammer_cli_foreman_docker (unknown version)
* hammer_cli_foreman_tasks (unknown version)
* hammer_cli_katello (0.21.0)
As I see that
hammer --version doesn’t provide the version details about docker and tasks plugins, these are the rpms that I have in my system:
# rpm -qa|grep -i docker
# rpm -qa|grep -i tasks
Oh, I see now. I’m afraid that released version of hammer-cli-foreman-docker is pretty outdated.
I’m going to release new version of hammer-cli-foreman-docker, which should have fix in it.
thanks for looking into it
if you let me know when the packages are ready I can test them and give feedback.
Sorry for taking so long
The new gem version (
hammer_cli_foreman_docker 0.0.5) was released already, the rpm package is on the way
thank you! I will test the packages as soon as they are available and I will report back
Is it normal that I cannot find the packages in yum yet? Do I have to update my repos? This is what I have installed now (I did a
yum clean all first):
[root@katello-testing ~]# rpm -qa | egrep "foreman-release|katello-repos"
[root@katello-testing ~]# yum list --show-duplicates tfm-rubygem-hammer_cli_foreman_docker
tfm-rubygem-hammer_cli_foreman_docker.noarch 0.0.4-4.el7 @foreman-plugins
tfm-rubygem-hammer_cli_foreman_docker.noarch 0.0.4-4.el7 foreman-plugins
May 14, 2020, 9:55am
thank you. It seems that this package fixed the tab-completion issue.