Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hammer sub-command environment fails on CentOS 7 Provision Nightly #1442

Open
ephracis opened this issue Nov 12, 2021 · 2 comments
Open

Hammer sub-command environment fails on CentOS 7 Provision Nightly #1442

ephracis opened this issue Nov 12, 2021 · 2 comments

Comments

@ephracis
Copy link

I try to bring up the box centos7-provision-nightly but it fails with the following error:

TASK [foreman_provisioning_infrastructure : update environment] ****************
fatal: [centos7-provision-nightly]: FAILED! => changed=true 
  cmd: |-
    hammer environment update --name production --organizations 'Default Organization' --locations 'Default Location'
  delta: '0:00:01.089646'
  end: '2021-11-12 10:22:07.066657'
  msg: non-zero return code
  rc: 64
  start: '2021-11-12 10:22:05.977011'
  stderr: |-
    Error: No such sub-command 'environment'.
  
    See: 'hammer --help'.
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>
@ekohl
Copy link
Member

ekohl commented Dec 23, 2021

I think this command was renamed due to ambiguity. I think it should now be puppet-environment.

@ofedoren
Copy link
Member

Exactly, first of all the environment command was deprecated for a while and then was removed in hammer-cli-foreman 3.0.0. Moreover at that time all the Puppet related commands/options were extracted and are no longer present in hammer-cli-foreman starting 3.0.0 version. To have those, you need to install hammer-cli-foreman-puppet plugin.

P.S. There are no longer environment command anyway, it's puppet-environment now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants