[ovirt-users] Re: Simple API call to start VM
It looks like VM with UUID 60c47a91-bca1-4eda-b71d-7bddf82ee8ab does not exist. From: Kirin van der Veer Date: 2018-05-30 14:07 To: users Subject: [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/CNKUCZR2CDSDVIYVUJMGY55W5ORVJMIP/
[ovirt-users] Pass through disk can't R/W
Hi, I found my VM libvirt create xml as: I found https://libvirt.org/formatdomain.html#elementsHostDevSubsys like blow: ... ...Is mandatory? ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] Remove Host Device Error
Hi, I got this log in /var/log/ovirt-engine/engine.log, when I remove a host pass through SCSI device in VM. 2018-04-28 12:23:14,568+08 ERROR [org.ovirt.engine.core.bll.hostdev.RemoveVmHostDevicesCommand] (default task-9) [7d10eb49-328e-4cde-89b9-3f3e7e9d3666] Command 'org.ovirt.engine.core.bll.hostdev.RemoveVmHostDevicesCommand' failed: null 2018-04-28 12:23:14,568+08 ERROR [org.ovirt.engine.core.bll.hostdev.RemoveVmHostDevicesCommand] (default task-9) [7d10eb49-328e-4cde-89b9-3f3e7e9d3666] Exception: java.lang.NullPointerException at org.ovirt.engine.core.bll.hostdev.RemoveVmHostDevicesCommand.executeCommand(RemoveVmHostDevicesCommand.java:64) [bll.jar:] at org.ovirt.engine.core.bll.CommandBase.executeWithoutTransaction(CommandBase.java:1205) [bll.jar:] at org.ovirt.engine.core.bll.CommandBase.executeActionInTransactionScope(CommandBase.java:1345) [bll.jar:] at org.ovirt.engine.core.bll.CommandBase.runInTransaction(CommandBase.java:1987) [bll.jar:] at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInNewTransaction(TransactionSupport.java:202) [utils.jar:] at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInRequired(TransactionSupport.java:137) [utils.jar:] at org.ovirt.engine.core.utils.transaction.TransactionSupport.executeInScope(TransactionSupport.java:105) [utils.jar:] at org.ovirt.engine.core.bll.CommandBase.execute(CommandBase.java:1405) [bll.jar:] at org.ovirt.engine.core.bll.CommandBase.executeAction(CommandBase.java:412) [bll.jar:] at org.ovirt.engine.core.bll.executor.DefaultBackendActionExecutor.execute(DefaultBackendActionExecutor.java:13) [bll.jar:] at org.ovirt.engine.core.bll.Backend.runAction(Backend.java:509) [bll.jar:] at org.ovirt.engine.core.bll.Backend.runActionImpl(Backend.java:491) [bll.jar:] at org.ovirt.engine.core.bll.Backend.runAction(Backend.java:444) [bll.jar:] at sun.reflect.GeneratedMethodAccessor370.invoke(Unknown Source) [:1.8.0_161] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_161] at java.lang.reflect.Method.invoke(Method.java:498) [rt.jar:1.8.0_161] ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] General SSLEngine problem
Hi, I got this err log when I start my engine service. 2018-04-25 18:40:21,012+08 INFO [org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient] (SSL Stomp Reactor) [] Connecting to /192.168.122.187 2018-04-25 18:40:21,019+08 ERROR [org.ovirt.vdsm.jsonrpc.client.reactors.Reactor] (SSL Stomp Reactor) [] Unable to process messages General SSLEngine problem And loggin my engine GUI, got this err Missing parameter: 'client_secret' ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] create VM failed
Hi, when I creating an VM ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[ovirt-users] SCSI HDD lost after VM reboot
Hi, All 1. I create a VM in node. 2. Passthrough a SCIS HDD to it. 3. After power off and power on this VM. 4. I can not find SCSI devices by lsscsi in VM console. 5. But, in engine web UI Compute->Virtual Machines->myVM->Host Devices still have SCSI devices ? gss...@pku.edu.cn ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Some questions about Ovirt REST API
Here is my patches. From: gss...@pku.edu.cn Date: 2018-04-12 16:45 To: omachace; users Subject: Re: Re: [ovirt-users] Some questions about Ovirt REST API Sure. I override get() and add() in my BackendVmMytestsResource.java GET works and POST not. From: Ondra Machacek Date: 2018-04-12 16:25 To: gss...@pku.edu.cn; users Subject: Re: [ovirt-users] Some questions about Ovirt REST API Ah sorry, POST isn't working and GET works, I misread it. Can you please share the generated file: {project_path}/backend/manager/modules/restapi/interface/definition/target/generated-sources/model/org/ovirt/engine/api/resource/VmMytestResource.java Maybe you can even send patches to review as draft for start, we could better understand the patch then. On 04/12/2018 10:14 AM, gss...@pku.edu.cn wrote: > Do you mean /@override/ /getMytestsResource() / in BackendVmResource ? > I have done that, otherwise GET would not pass. > > *From:* Ondra Machacek <mailto:omach...@redhat.com> > *Date:* 2018-04-12 15:43 > *To:* gss...@pku.edu.cn <mailto:gss...@pku.edu.cn>; users > <mailto:users@ovirt.org> > *Subject:* Re: [ovirt-users] Some questions about Ovirt REST API > On 04/11/2018 08:19 AM, gss...@pku.edu.cn wrote: > > Hi, > > > > I wants to creating my own service under > ../vms/{vmid}/myservice.Here is > > my methods: > > > > 1. create VmMytestService in > > /https://github.com/oVirt/ovirt-engine-api-model project./ > > add/@Service VmMytestService mytests() in /VmService .java > > 2. mvn install it and change the root pom.xml > > /4.3.9-SNAPSHOT / in my Ovirt project. > > 3.create BackendVmMytestService implements VmMytestResource > Did you also in BackendVmResource implemented 'mytests' method? > > 4.override /get() and add() /methods. > > > > After that, I use /curl/ tool to send GET and POST request. GET is > > working and return. > > However, I get this return after POST request. > > > > Would you help me with that issue? > > > > Thanks, > > wenzt > > > > > > ___ > > Users mailing list > > Users@ovirt.org > > http://lists.ovirt.org/mailman/listinfo/users > > > mytests-api-model.patch Description: Binary data mytests-ovirt-project.patch Description: Binary data ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Some questions about Ovirt REST API
Sorry for one more question. I want add an Action like .../vms/{vm:ID}/myaction So, 1. I add api in api-model project and mvn clean install. 2. After mvn clean install my ovirt engine project. I get the generated file : VmResource In that file I get Question: I cant find href 'myaction' in GET request feedback.xml I must have misunderstood sth. From: Ondra Machacek Date: 2018-04-12 16:25 To: gss...@pku.edu.cn; users Subject: Re: [ovirt-users] Some questions about Ovirt REST API Ah sorry, POST isn't working and GET works, I misread it. Can you please share the generated file: {project_path}/backend/manager/modules/restapi/interface/definition/target/generated-sources/model/org/ovirt/engine/api/resource/VmMytestResource.java Maybe you can even send patches to review as draft for start, we could better understand the patch then. On 04/12/2018 10:14 AM, gss...@pku.edu.cn wrote: > Do you mean /@override/ /getMytestsResource() / in BackendVmResource ? > I have done that, otherwise GET would not pass. > > *From:* Ondra Machacek <mailto:omach...@redhat.com> > *Date:* 2018-04-12 15:43 > *To:* gss...@pku.edu.cn <mailto:gss...@pku.edu.cn>; users > <mailto:users@ovirt.org> > *Subject:* Re: [ovirt-users] Some questions about Ovirt REST API > On 04/11/2018 08:19 AM, gss...@pku.edu.cn wrote: > > Hi, > > > > I wants to creating my own service under > ../vms/{vmid}/myservice.Here is > > my methods: > > > > 1. create VmMytestService in > > /https://github.com/oVirt/ovirt-engine-api-model project./ > > add/@Service VmMytestService mytests() in /VmService .java > > 2. mvn install it and change the root pom.xml > > /4.3.9-SNAPSHOT / in my Ovirt project. > > 3.create BackendVmMytestService implements VmMytestResource > Did you also in BackendVmResource implemented 'mytests' method? > > 4.override /get() and add() /methods. > > > > After that, I use /curl/ tool to send GET and POST request. GET is > > working and return. > > However, I get this return after POST request. > > > > Would you help me with that issue? > > > > Thanks, > > wenzt > > > > > > ___ > > Users mailing list > > Users@ovirt.org > > http://lists.ovirt.org/mailman/listinfo/users > > > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Some questions about Ovirt REST API
Sure. I override get() and add() in my BackendVmMytestsResource.java GET works and POST not. From: Ondra Machacek Date: 2018-04-12 16:25 To: gss...@pku.edu.cn; users Subject: Re: [ovirt-users] Some questions about Ovirt REST API Ah sorry, POST isn't working and GET works, I misread it. Can you please share the generated file: {project_path}/backend/manager/modules/restapi/interface/definition/target/generated-sources/model/org/ovirt/engine/api/resource/VmMytestResource.java Maybe you can even send patches to review as draft for start, we could better understand the patch then. On 04/12/2018 10:14 AM, gss...@pku.edu.cn wrote: > Do you mean /@override/ /getMytestsResource() / in BackendVmResource ? > I have done that, otherwise GET would not pass. > > *From:* Ondra Machacek <mailto:omach...@redhat.com> > *Date:* 2018-04-12 15:43 > *To:* gss...@pku.edu.cn <mailto:gss...@pku.edu.cn>; users > <mailto:users@ovirt.org> > *Subject:* Re: [ovirt-users] Some questions about Ovirt REST API > On 04/11/2018 08:19 AM, gss...@pku.edu.cn wrote: > > Hi, > > > > I wants to creating my own service under > ../vms/{vmid}/myservice.Here is > > my methods: > > > > 1. create VmMytestService in > > /https://github.com/oVirt/ovirt-engine-api-model project./ > > add/@Service VmMytestService mytests() in /VmService .java > > 2. mvn install it and change the root pom.xml > > /4.3.9-SNAPSHOT / in my Ovirt project. > > 3.create BackendVmMytestService implements VmMytestResource > Did you also in BackendVmResource implemented 'mytests' method? > > 4.override /get() and add() /methods. > > > > After that, I use /curl/ tool to send GET and POST request. GET is > > working and return. > > However, I get this return after POST request. > > > > Would you help me with that issue? > > > > Thanks, > > wenzt > > > > > > ___ > > Users mailing list > > Users@ovirt.org > > http://lists.ovirt.org/mailman/listinfo/users > > > VmMytestResource.java Description: Binary data ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Some questions about Ovirt REST API
Do you mean @override getMytestsResource() in BackendVmResource ? I have done that, otherwise GET would not pass. From: Ondra Machacek Date: 2018-04-12 15:43 To: gss...@pku.edu.cn; users Subject: Re: [ovirt-users] Some questions about Ovirt REST API On 04/11/2018 08:19 AM, gss...@pku.edu.cn wrote: > Hi, > > I wants to creating my own service under ../vms/{vmid}/myservice.Here is > my methods: > > 1. create VmMytestService in > /https://github.com/oVirt/ovirt-engine-api-model project./ > add/@Service VmMytestService mytests() in /VmService .java > 2. mvn install it and change the root pom.xml > /4.3.9-SNAPSHOT / in my Ovirt project. > 3.create BackendVmMytestService implements VmMytestResource Did you also in BackendVmResource implemented 'mytests' method? > 4.override /get() and add() /methods. > > After that, I use /curl/ tool to send GET and POST request. GET is > working and return. > However, I get this return after POST request. > > Would you help me with that issue? > > Thanks, > wenzt > > > ___ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users