If I don't specify which interface is primary/provision, the first one is marked such. Most of users create host with just one interface.
Created from redmine issue http://projects.theforeman.org/issues/13927
Upstream bug assigned to mhulan
Verified with sat62 GA snap10 I can create host without specifying provision and primary flags. ~]# hammer -u admin -p changeme --output=csv host create --medium-id="9" --root-pass='foobarbaz' --organization-id="1" --location-id="2" --architecture-id="1" --operatingsystem-id="2" --name="ham-host2" --environment-id="1" --compute-resource-id="1" --domain-id="1" --puppet-proxy-id="1" --partition-table-id="61" --hostgroup-id 1 --compute-attributes="cpus=1, memory=2147483648," --volume="capacity=10G,format_type=qcow" --mac 52:54:00:23:24:05 Message,Id,Name Host created,7,ham-host2.idmqe.lab.eng.bos.redhat.com
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