Hello, regression from 6.5: hammer hostgroup create --name xxx ... --environment production Hostgroup created. In 6.6 however: hammer hostgroup create --name xxx ... --environment production Could not create the hostgroup: Error: lifecycle_environment not found. Apparently something made hammer think that --environment is actually --lifecycle-environment: hammer hostgroup create --name xxx ... --environment Library Hostgroup created. Unable to crate hosts or hostgroups, blocker, regression.
*** Bug 1715992 has been marked as a duplicate of this bug. ***
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/23204 has been resolved.
These patches caused https://bugzilla.redhat.com/show_bug.cgi?id=1730026 . More bugs might be coming as we discover them.
When pulling in such changes we should consider the downstream documentation impact, certainly 6.6 versions of [1] and [2] will be affected. Oleh, could you please file a bz against documentation detailing the scope of changes so that the docs guys have time to sort it out before release? Also I'd say the problem in comment #7 is a blocker for this bz. [1]https://access.redhat.com/documentation/en-us/red_hat_satellite/6.5/html-single/hammer_cli_guide/index [2]https://access.redhat.com/documentation/en-us/red_hat_satellite/6.5/html/hammer_cheat_sheet/index
VERIFIED on beta snap, verified by automation: tests/foreman/cli/test_hostgroup.py::HostGroupTestCase::test_positive_create_with_multiple_entities_and_delete ``` hammer -v -u admin -p changeme --output=csv environment create --location-ids="463" --name="jZlJEl" --organization-ids="465"' 2019-08-02 14:29:18 - robottelo.ssh - INFO - <<< stdout Message,Id,Name Environment created.,119,jZlJEl ... hammer -v -u admin -p changeme --output=csv hostgroup create --architecture="gfNbrbPQDs" --content-source-id="1" --content-view="UsCDcgHsQO" --domain="fe9saudcec" --environment="jZlJEl" --locations="y0OMVUqkUX" --lifecycle-environment="4AMfy0" --medium="iElooq" --name="NDqnTcvtqgIElqlRMuToWWchPxXvlJGMGROYgcnTKyNsBdCCzeTbqVgmNNL" --operatingsystem="022mdv 3.6" --organization-ids="465,448" --partition-table="DaMr20Zamo" --puppet-ca-proxy="qe-sat66-*.redhat.com" --puppet-classes="generic_1" --puppet-proxy="qe-sat66-*.redhat.com" --query-organization="pjU7gk" --subnet="U6jLIFko"' 2019-08-02 14:30:28 - robottelo.ssh - INFO - <<< stdout Message,Id,Name Hostgroup created.,50,NDqnTcvtqgIElqlRMuToWWchPxXvlJGMGROYgcnTKyNsBdCCzeTbqVgmNNL ... hammer -v -u admin -p changeme hostgroup info --id="50"' 2019-08-02 14:30:31 - robottelo.ssh - INFO - <<< stdout Id: 50 Name: NDqnTcvtqgIElqlRMuToWWchPxXvlJGMGROYgcnTKyNsBdCCzeTbqVgmNNL Title: NDqnTcvtqgIElqlRMuToWWchPxXvlJGMGROYgcnTKyNsBdCCzeTbqVgmNNL Puppet Environment: jZlJEl ... ```
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2019:3175