Description of problem: When using hammer cli to synchronize content to the capsule we need to know which fields are required versus optional. e.g. we have found that we can synchronize by --environment-id but not by --environment [root@lonlxt90001 script]# hammer -u admin -p changeme capsule content synchronize --environment 'development' --name 'lonlxt90002.acme.com' Could not synchronize capsule content: Error: environment not found [root@lonlxt90001 script]# [root@lonlxt90001 script]# hammer -u admin -p changeme lifecycle-environment list --organization ACME ---|-------------|------------ ID | NAME | PRIOR ---|-------------|------------ 2 | Library | 5 | production | stage 8 | STG | Library 4 | stage | development 7 | Dev | Library 3 | development | Library 9 | PROD | Library ---|-------------|------------ [root@lonlxt90001 script]# This one works ""[root@lonlxt90001 script]# hammer -u admin -p changeme capsule content synchronize --environment-id 3 --id 2"" Version-Release number of selected component (if applicable): 6.0.7 How reproducible: see above Actual results: Expected results: Additional info:
Created redmine issue http://projects.theforeman.org/issues/14656 from this bug
[root@xyz ~]# hammer -u admin -p changeme capsule content synchronize --environment DEV --name abc.redhat.com Could not synchronize capsule content: Error: Missing options to search organization [root@xyz ~]# hammer -u admin -p changeme capsule content synchronize --environment DEV --name abc.redhat.com --help Usage: hammer capsule content synchronize [OPTIONS] Options: --async Do not wait for the task --environment ENVIRONMENT_NAME Name to search by --environment-id ENVIRONMENT_ID --id ID Id of the capsule --name NAME Name to search by --organization NAME Organization name --organization-id ID Organization ID [root@xyz ~]# hammer -u admin -p changeme capsule content synchronize --environment DEV --name abc.redhat.com --organization "Default Organization" [............................................................................................................................................ ] [75%] VERIFIED with sat62-snap12.1
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-2016:1501