[ovirt-users] Re: Simple API call to start VM
. Later I thought that perhaps the problem was that I need to use the VM Name instead of it's UUID, since all of the examples in the official docs use something like "123" or "007". However when I changed the curl request to the below: curl --user "admin@internal:SECRETPASSWORD" --request POST --header "Content-Type: application/xml" --header "Accept: application/xml" --data '' https://ovirt-engine.localnet:443/ovirt-engine/api/vms/name_of_my_vm/start I got no feedback on the commandline. So I checked engine.log, but there were only a few entries as per below: 2018-05-31 11:43:39,940+10 INFO [org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default task-49) [] User admin@internal successfully logged in with scopes: ovirt-app-api ovirt-ext=token-info:authz-search ovirt-ext=token-info:public-authz-search ovirt-ext=token-info:validate ovirt-ext=token:password-access 2018-05-31 11:43:39,954+10 INFO [org.ovirt.engine.core.bll.aaa.CreateUserSessionCommand] (default task-39) [41871d82] Running command: CreateUserSessionCommand internal: false. 2018-05-31 11:43:39,962+10 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-39) [41871d82] EVENT_ID: USER_VDC_LOGIN(30), User admin@internal-authz connecting from '192.168.1.0' using session 'EfiWrbyRpCilceYzJsgOz+E/An7JBAHr2ASziyZyFykop9vO77gc1+u3CQh542eNq/BXOXpOOxKhQLQhIKarEg==' logged in. 2018-05-31 11:43:39,971+10 INFO [org.ovirt.engine.core.bll.aaa.LogoutSessionCommand] (default task-39) [6209f488] Running command: LogoutSessionCommand internal: false. 2018-05-31 11:43:39,976+10 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-39) [6209f488] EVENT_ID: USER_VDC_LOGOUT(31), User admin@internal-authz connected from '192.168.1.0' using session 'EfiWrbyRpCilceYzJsgOz+E/An7JBAHr2ASziyZyFykop9vO77gc1+u3CQh542eNq/BXOXpOOxKhQLQhIKarEg==' logged out. Note that the name I specified does not show up at all. Anyone have any ideas? On Wed, May 30, 2018 at 7:03 PM, Andrej Krejcir wrote: > Hi, > > the URL path is missing 'ovirt-engine', it should be: > https://ovirtengine.localnet:443/ovirt-engine/api/vms/ > dfbba498-e8b6-4fee-a86c-c91ab68eae0d/start > > Also, the admin user name is: 'admin@internal' > > Here is the API documentation, for more info: > http://ovirt.github.io/ovirt-engine-api-model/4.2/# > services/vm/methods/start > > > Andrej > > On 30 May 2018 at 08:07, Kirin van der Veer planetinnovation.com.au> wrote: > >> Hi oVirt users, >> I have (what I hope) is a simple problem. >> I want to make an https request to start a VM via the oVirt REST API. >> Here is the command that I think should work: >> curl --user "admin:SECRETPASSWORD" --request POST --header "Content-Type: >> application/xml" --header "Accept: application/xml" --data '' >> https://ovirtengine.localnet:443/api/vms/69c47a91-bbv1-4eda- >> b71d-7bddf82ee8ab/start >> >> However I get a 404 in response (see below): >> >> >> 404 Not Found >> >> Not Found >> The requested URL /api/vms/60c47a91-bca1-4eda-b71d-7bddf82ee8ab/start >> was not found on this server. >> >> >> Where have I made a mistake here? >> >> >> >> *IMPORTANT NOTE. *If you are NOT AN AUTHORISED RECIPIENT of this e-mail, >> please contact Planet Innovation Pty Ltd by return e-mail or by telephone >> on +613 9945 7510. In this case, you should not read, print, re-transmit, >> store or act in reliance on this e-mail or any attachments, and should >> destroy all copies of them. This e-mail and any attachments are >> confidential and may contain legally privileged information and/or >> copyright material of Planet Innovation Pty Ltd or third parties. You >> should only re-transmit, distribute or commercialise the material if you >> are authorised to do so. Although we use virus scanning software, we deny >> all liability for viruses or alike in any message or attachment. This >> notice should not be removed. >> >> ___ >> Users mailing list -- users@ovirt.org >> To unsubscribe send an email to users-le...@ovirt.org >> Privacy Statement: https://www.ovirt.org/site/privacy-policy/ >> oVirt Code of Conduct: https://www.ovirt.org/communit >> y/about/community-guidelines/ >> List Archives: https://lists.ovirt.org/archiv >> es/list/users@ovirt.org/message/5N6N4BHF6ZFJLEARSEALCON7DJIMXRCZ/ >> >> > -- *IMPORTANT NOTE. *If you are NOT AN AUTHORISED RECIPIENT of this e-mail, please contact Planet Innovation Pty Ltd by return e-mai
[ovirt-users] Simple API call to start VM
Hi oVirt users, I have (what I hope) is a simple problem. I want to make an https request to start a VM via the oVirt REST API. Here is the command that I think should work: curl --user "admin:SECRETPASSWORD" --request POST --header "Content-Type: application/xml" --header "Accept: application/xml" --data '' https://ovirtengine.localnet:443/api/vms/69c47a91-bbv1-4eda-b71d-7bddf82ee8ab/start However I get a 404 in response (see below): 404 Not Found Not Found The requested URL /api/vms/60c47a91-bca1-4eda-b71d-7bddf82ee8ab/start was not found on this server. Where have I made a mistake here? -- *IMPORTANT NOTE. *If you are NOT AN AUTHORISED RECIPIENT of this e-mail, please contact Planet Innovation Pty Ltd by return e-mail or by telephone on +613 9945 7510. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments are confidential and may contain legally privileged information and/or copyright material of Planet Innovation Pty Ltd or third parties. You should only re-transmit, distribute or commercialise the material if you are authorised to do so. Although we use virus scanning software, we deny all liability for viruses or alike in any message or attachment. This notice should not be removed. ** ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement: https://www.ovirt.org/site/privacy-policy/ oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/5N6N4BHF6ZFJLEARSEALCON7DJIMXRCZ/
Re: [ovirt-users] Using VDSM to edit management interface
Hi Peter, Thanks again for trying to help out on this one. Unfortunately this sent me right back to where I started. When you grep for DNS entries the only matching file is /etc/sysconfig/network-scripts/ifcfg-ovirtmgmt As per my previous email this file is also generated (by VDSM this time) and I don't see how to update the VDSM database so that it generates the file with different entries. It's turtles all the way down :) Kirin. On Fri, Mar 16, 2018 at 5:12 PM, Peter Hudec wrote: > Remove any settings about dns from the network manager adn the > /etc/resolv.conf won't be auto generated. > > https://ma.ttias.be/centos-7-networkmanager-keeps- > overwriting-etcresolv-conf/ > > Peter > > On 16/03/2018 02:15, Kirin van der Veer wrote: > > Ďakujem Peter, but this doesn't seem to work in my case. > > /etc/resolv.conf is regenerated by Network Manager after a reboot > > and my domain settings are lost. Your comments regarding the > > reliance on DNS make sense for most installations, but in my case > > oVirt is a secondary service that I would not expect to run unless > > our core infrastructure is working correctly. I'm hesitant to edit > > /etc/hosts directly, since that can lead to confusion when the > > underlying IP addresses change. For now I will hardcode the IPs of > > my servers. It's frustrating (and surprising) that there is not an > > easy way to do this. > > > > Kirin. > > > > On Thu, Mar 15, 2018 at 5:17 PM, Peter Hudec > <mailto:phu...@cnc.sk>> wrote: > > > > Hi Kirin, > > > > I suggest to do it old way and edit the /etc/resolv.conf manually. > > > > And one advice. Do not relay on the DNS on infrastructure servers. > > Use /etc/hosts. If he DNS will not be accessible, you will have > > problem to put it infrastructure up/working. As side effect the > > hosts allow you to use short names to access servers. > > > > If you are ansible positive, you could use > > > > hudecof.resolv https://galaxy.ansible.com/hudecof/resolv/ > > <https://galaxy.ansible.com/hudecof/resolv/> hudecof.hosts > > https://galaxy.ansible.com/hudecof/hosts/ > > <https://galaxy.ansible.com/hudecof/hosts/> > > > > > > Peter > > > > On 15/03/2018 06:03, Kirin van der Veer wrote: > >> Hi oVirt people, I have setup a new cluster consisting of many > >> oVirt Nodes with a single dedicated oVirt Engine machine. For > >> the most part things are working, however despite entering the > >> DNS search domain during install on the Nodes the management > >> interface is not aware of my search domain and it has not been > >> added to /etc/resolv.conf (perhaps that is unnecessary?). I > >> eventually worked out that the DNS search domain should be > >> included in /etc/sysconfig/network-scripts/ifcfg-ovirtmgmt > >> However as per the header/warning, that file is generated by > >> VDSM. I assumed that I should be able to edit the search domain > >> with vdsClient, but when I run "vdsClient -m" I don't see any > >> options related to network config. I found the following page on > >> DNS config: > >> > > https://www.ovirt.org/develop/release-management/features/network/ > allowExplicitDnsConfiguration/ > > > > > <https://www.ovirt.org/develop/release-management/features/network/ > allowExplicitDnsConfiguration/> > >> > >> > > But it does not seem to offer a way of specifying the DNS search > > domain > >> (other than perhaps directly editing /etc/resolv.conf - which is > >> generated/managed by Network Manager). nmcli reports that all of > >> my interfaces (including ovirtmgmt) are "unmanaged". Indeed when > >> I attempt to run nmtui there is nothing listed to configure. > >> This should be really simple! I just want to add my local search > >> domain so I can use the short name for my NFS server. I'd > >> appreciate any advice. > >> > >> Thanks in advance, Kirin. > >> > >> > >> . > >> > >> *IMPORTANT NOTE. *If you are NOT AN AUTHORISED RECIPIENT of this > >> e-mail, please contact Planet Innovation Pty Ltd by return > >> e-mail or by telephone on +613 9945 7510 > >> . In > > this case, you should not > >> read, print, re-transmit, store or act in reliance on this > >> e-mail or any attachments, and should destroy all copies of them. > >> This e-mail and any attachments are confidential and may contain > >> legally privileged
Re: [ovirt-users] Using VDSM to edit management interface
Ďakujem Peter, but this doesn't seem to work in my case. /etc/resolv.conf is regenerated by Network Manager after a reboot and my domain settings are lost. Your comments regarding the reliance on DNS make sense for most installations, but in my case oVirt is a secondary service that I would not expect to run unless our core infrastructure is working correctly. I'm hesitant to edit /etc/hosts directly, since that can lead to confusion when the underlying IP addresses change. For now I will hardcode the IPs of my servers. It's frustrating (and surprising) that there is not an easy way to do this. Kirin. On Thu, Mar 15, 2018 at 5:17 PM, Peter Hudec wrote: > Hi Kirin, > > I suggest to do it old way and edit the /etc/resolv.conf manually. > > And one advice. Do not relay on the DNS on infrastructure servers. Use > /etc/hosts. If he DNS will not be accessible, you will have problem to > put it infrastructure up/working. As side effect the hosts allow you > to use short names to access servers. > > If you are ansible positive, you could use > > hudecof.resolv https://galaxy.ansible.com/hudecof/resolv/ > hudecof.hosts https://galaxy.ansible.com/hudecof/hosts/ > > > Peter > > On 15/03/2018 06:03, Kirin van der Veer wrote: > > Hi oVirt people, I have setup a new cluster consisting of many > > oVirt Nodes with a single dedicated oVirt Engine machine. For the > > most part things are working, however despite entering the DNS > > search domain during install on the Nodes the management interface > > is not aware of my search domain and it has not been added to > > /etc/resolv.conf (perhaps that is unnecessary?). I eventually > > worked out that the DNS search domain should be included in > > /etc/sysconfig/network-scripts/ifcfg-ovirtmgmt However as per the > > header/warning, that file is generated by VDSM. I assumed that I > > should be able to edit the search domain with vdsClient, but when I > > run "vdsClient -m" I don't see any options related to network > > config. I found the following page on DNS config: > > https://www.ovirt.org/develop/release-management/features/network/ > allowExplicitDnsConfiguration/ > > > > > But it does not seem to offer a way of specifying the DNS search domain > > (other than perhaps directly editing /etc/resolv.conf - which is > > generated/managed by Network Manager). nmcli reports that all of my > > interfaces (including ovirtmgmt) are "unmanaged". Indeed when I > > attempt to run nmtui there is nothing listed to configure. This > > should be really simple! I just want to add my local search domain > > so I can use the short name for my NFS server. I'd appreciate any > > advice. > > > > Thanks in advance, Kirin. > > > > > > . > > > > *IMPORTANT NOTE. *If you are NOT AN AUTHORISED RECIPIENT of this > > e-mail, please contact Planet Innovation Pty Ltd by return e-mail > > or by telephone on +613 9945 7510. In this case, you should not > > read, print, re-transmit, store or act in reliance on this e-mail > > or any attachments, and should destroy all copies of them. This > > e-mail and any attachments are confidential and may contain legally > > privileged information and/or copyright material of Planet > > Innovation Pty Ltd or third parties. You should only re-transmit, > > distribute or commercialise the material if you are authorised to > > do so. Although we use virus scanning software, we deny all > > liability for viruses or alike in any message or attachment. This > > notice should not be removed. > > > > ** > > > > > > ___ Users mailing list > > Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users > > > > > -- > *Peter Hudec* > Infraštruktúrny architekt > phu...@cnc.sk <mailto:phu...@cnc.sk> > > *CNC, a.s.* > Borská 6, 841 04 Bratislava > Recepcia: +421 2 35 000 100 > > Mobil:+421 905 997 203 > *www.cnc.sk* <http:///www.cnc.sk> -- *IMPORTANT NOTE. *If you are NOT AN AUTHORISED RECIPIENT of this e-mail, please contact Planet Innovation Pty Ltd by return e-mail or by telephone on +613 9945 7510. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments are confidential and may contain legally privileged information and/or copyright material of Planet Innovation Pty Ltd or third parties. You should only re-transmit, distribute or commercialise the material if you are authorised to do so. Although we use virus scanning software, we deny all liability for viruses or alike in any message or attachment. This notice should not be removed. ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] Using VDSM to edit management interface
Hi oVirt people, I have setup a new cluster consisting of many oVirt Nodes with a single dedicated oVirt Engine machine. For the most part things are working, however despite entering the DNS search domain during install on the Nodes the management interface is not aware of my search domain and it has not been added to /etc/resolv.conf (perhaps that is unnecessary?). I eventually worked out that the DNS search domain should be included in /etc/sysconfig/network-scripts/ifcfg-ovirtmgmt However as per the header/warning, that file is generated by VDSM. I assumed that I should be able to edit the search domain with vdsClient, but when I run "vdsClient -m" I don't see any options related to network config. I found the following page on DNS config: https://www.ovirt.org/develop/release-management/features/network/allowExplicitDnsConfiguration/ But it does not seem to offer a way of specifying the DNS search domain (other than perhaps directly editing /etc/resolv.conf - which is generated/managed by Network Manager). nmcli reports that all of my interfaces (including ovirtmgmt) are "unmanaged". Indeed when I attempt to run nmtui there is nothing listed to configure. This should be really simple! I just want to add my local search domain so I can use the short name for my NFS server. I'd appreciate any advice. Thanks in advance, Kirin. . -- *IMPORTANT NOTE. *If you are NOT AN AUTHORISED RECIPIENT of this e-mail, please contact Planet Innovation Pty Ltd by return e-mail or by telephone on +613 9945 7510. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments are confidential and may contain legally privileged information and/or copyright material of Planet Innovation Pty Ltd or third parties. You should only re-transmit, distribute or commercialise the material if you are authorised to do so. Although we use virus scanning software, we deny all liability for viruses or alike in any message or attachment. This notice should not be removed. ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users