Hammer cli create ovirt vm

solved it by replacing all of the ovirt entities with their IDs instead of
the names on foreman:

hammer -d -v host create --name test005 --hostgroup general_server
–compute-resource=IL-PROD003-oVirt --environment=production
–puppet-ca-proxy lava2-proxy --puppet-proxy lava2-proxy
–interface="managed=true,primary=true,provision=true,compute_name=eth0,compute_network=
131e065c-c45b-46e0-9aaa-32257b537839" --domain taboolasyndication.com
–subnet IL_new_subnet --operatingsystem "CentOS 6.7" --architecture x86_64
–medium "new Centos mirror" --partition-table "Kickstart default"
–compute-attributes="cluster=43d568fa-b634-4f93-979b-9fe647110888,cores=2,memory=4294967296,start=1"
–volume="size_gb=20,storage_domain=a3948287-570e-4911-866a-ecc18f4a6a44
,bootable=true,preallocate=0"

seems like hammer can't integrate with ovirt to figure what name translated
to which id…

Any clue why this is happening?

> solved it by replacing all of the ovirt entities with their IDs instead
> of the names on foreman:
>
>
> hammer -d -v host create --name test005 --hostgroup general_server
> --compute-resource=IL-PROD003-oVirt --environment=production
> --puppet-ca-proxy lava2-proxy --puppet-proxy lava2-proxy
> --interface="managed=true,primary=true,provision=true,compute_name=eth0,compute_network=131e065c-c45b-46e0-9aaa-32257b537839"
> --domain taboolasyndication.com --subnet IL_new_subnet --operatingsystem
> "CentOS 6.7" --architecture x86_64 --medium "new Centos mirror"
> --partition-table "Kickstart default"
> --compute-attributes="cluster=43d568fa-b634-4f93-979b-9fe647110888,cores=2,memory=4294967296,start=1"
> --volume="size_gb=20,storage_domain=a3948287-570e-4911-866a-ecc18f4a6a44,bootable=true,preallocate=0"
>
>
>
> seems like hammer can't integrate with ovirt to figure what name
> translated to which id…
>
> Any clue why this is happening?
>

It's because there's currently no Foreman API hammer could use to
translate between names and ids of the provider entities. I'll update
the documentation to point this out.

T.

··· On 10/07/2015 10:23 AM, Eliraz Asulin wrote:


You received this message because you are subscribed to the Google
Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to foreman-users+unsubscribe@googlegroups.com
mailto:foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com
mailto:foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Thanks guys, can you send me the link to the relevant API usages?

··· On Wednesday, October 7, 2015 at 1:56:55 PM UTC+3, Dominic Cleal wrote: > > On 07/10/15 11:53, Tomas Strachota wrote: > > On 10/07/2015 10:23 AM, Eliraz Asulin wrote: > >> solved it by replacing all of the ovirt entities with their IDs instead > >> of the names on foreman: > >> > >> > >> hammer -d -v host create --name test005 --hostgroup general_server > >> --compute-resource=IL-PROD003-oVirt --environment=production > >> --puppet-ca-proxy lava2-proxy --puppet-proxy lava2-proxy > >> > --interface="managed=true,primary=true,provision=true,compute_name=eth0,compute_network=*131e065c-c45b-46e0-9aaa-32257b537839*" > > >> --domain taboolasyndication.com --subnet IL_new_subnet > --operatingsystem > >> "CentOS 6.7" --architecture x86_64 --medium "new Centos mirror" > >> --partition-table "Kickstart default" > >> > --compute-attributes="cluster=*43d568fa-b634-4f93-979b-9fe647110888*,cores=2,memory=4294967296,start=1" > > >> > --volume="size_gb=20,storage_domain=*a3948287-570e-4911-866a-ecc18f4a6a44*,bootable=true,preallocate=0" > > >> > >> > >> > >> seems like hammer can't integrate with ovirt to figure what name > >> translated to which id... > >> > >> Any clue why this is happening? > >> > > > > It's because there's currently no Foreman API hammer could use to > > translate between names and ids of the provider entities. > > APIs were added in #4222 - see the various > /compute_resources/:id/available_* routes that are now implemented for a > few CR types. #4593 tracks corresponding Hammer support. > > -- > Dominic Cleal > dom...@cleal.org >

Thank you very much!

··· On Wednesday, October 7, 2015 at 2:31:42 PM UTC+3, Dominic Cleal wrote: > > On 07/10/15 12:29, Eliraz Asulin wrote: > > Thanks guys, can you send me the link to the relevant API usages? > > http://theforeman.org/api/1.9/apidoc/v2/compute_resources.html > > If you need to find it again, go to theforeman.org > Documentation > > API, and search for "available". API docs are also available once > installed under the /apidoc prefix, then select v2. > > -- > Dominic Cleal > dom...@cleal.org >

APIs were added in #4222 - see the various
/compute_resources/:id/available_* routes that are now implemented for a
few CR types. #4593 tracks corresponding Hammer support.

··· On 07/10/15 11:53, Tomas Strachota wrote: > On 10/07/2015 10:23 AM, Eliraz Asulin wrote: >> solved it by replacing all of the ovirt entities with their IDs instead >> of the names on foreman: >> >> >> hammer -d -v host create --name test005 --hostgroup general_server >> --compute-resource=IL-PROD003-oVirt --environment=production >> --puppet-ca-proxy lava2-proxy --puppet-proxy lava2-proxy >> --interface="managed=true,primary=true,provision=true,compute_name=eth0,compute_network=*131e065c-c45b-46e0-9aaa-32257b537839*" >> --domain taboolasyndication.com --subnet IL_new_subnet --operatingsystem >> "CentOS 6.7" --architecture x86_64 --medium "new Centos mirror" >> --partition-table "Kickstart default" >> --compute-attributes="cluster=*43d568fa-b634-4f93-979b-9fe647110888*,cores=2,memory=4294967296,start=1" >> --volume="size_gb=20,storage_domain=*a3948287-570e-4911-866a-ecc18f4a6a44*,bootable=true,preallocate=0" >> >> >> >> seems like hammer can't integrate with ovirt to figure what name >> translated to which id... >> >> Any clue why this is happening? >> > > It's because there's currently no Foreman API hammer could use to > translate between names and ids of the provider entities.


Dominic Cleal
dominic@cleal.org

http://theforeman.org/api/1.9/apidoc/v2/compute_resources.html

If you need to find it again, go to theforeman.org > Documentation >
API, and search for "available". API docs are also available once
installed under the /apidoc prefix, then select v2.

··· On 07/10/15 12:29, Eliraz Asulin wrote: > Thanks guys, can you send me the link to the relevant API usages?


Dominic Cleal
dominic@cleal.org