Bug 890523
| Summary: | [RESTAPI]: cannot update vm with no printed error | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Dafna Ron <dron> | ||||
| Component: | ovirt-engine-restapi | Assignee: | Ori Liel <oliel> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Elena <edolinin> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 3.2.0 | CC: | dyasny, ecohen, iheim, mpastern, oramraz, Rhev-m-bugs, sgrinber, srevivo, ykaul | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | infra | ||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2013-01-07 15:41:07 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | Infra | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Dafna Ron
2012-12-27 13:58:07 UTC
i cannot reproduce this [1], sounds like some issue with your api, please provide rhevm log, cli debug output [1] id : bae984c7-2697-46b7-8a98-01cb6e9e38f9 name : test description : aaa cluster-id : e8861726-0b88-11e1-bd8c-27fb0a7aaa76 cpu-topology-cores : 2 cpu-topology-sockets : 1 creation_time : 2012-03-13T10:07:37.524+02:00 display-address : 10.35.1.127 display-allow_override : True display-monitors : 1 display-port : 5900 display-smartcard_enabled : False display-type : vnc high_availability-enabled : False high_availability-priority: 1 memory : 1073741824 memory_policy-ballooning : True memory_policy-guaranteed : 1073741824 origin : ovirt os-boot-dev : hd os-type : unassigned placement_policy-affinity : migratable quota-id : 00000000-0000-0000-0000-000000000000 stateless : False status-state : down template-id : 00000000-0000-0000-0000-000000000000 type : server usb-enabled : False [oVirt shell (connected)]# update vm bae984c7-2697-46b7-8a98-01cb6e9e38f9 --name test2 id : bae984c7-2697-46b7-8a98-01cb6e9e38f9 name : test2 description : aaa cluster-id : e8861726-0b88-11e1-bd8c-27fb0a7aaa76 cpu-topology-cores : 2 cpu-topology-sockets : 1 creation_time : 2012-03-13T10:07:37.524+02:00 display-address : 10.35.1.127 display-allow_override : True display-monitors : 1 display-port : 5900 display-smartcard_enabled : False display-type : vnc high_availability-enabled : False high_availability-priority: 1 memory : 1073741824 memory_policy-ballooning : True memory_policy-guaranteed : 1073741824 origin : ovirt os-boot-dev : hd os-type : unassigned placement_policy-affinity : migratable quota-id : 00000000-0000-0000-0000-000000000000 stateless : False status-state : down template-id : 00000000-0000-0000-0000-000000000000 type : server usb-enabled : False here is the vm: [RHEVM shell (connected)]# list vms --query 'name=test' send: 'GET /api/vms;case_sensitive=True?search=name%3Dtest HTTP/1.1\r\nHost: dafna-web-admin.qa.lab.tlv.redhat.com\r\nAccept-Encoding: identity\r\nFilter: False\r\nPrefer: persistent-auth\r\ncookie: JSESSIONID=piUmefAwuIXW9Z0W7em8GrvY\r\nContent-type: application/xml\r\nAuthorization: Basic YWRtaW5AaW50ZXJuYWw6MTIzNDU2\r\n\r\n' reply: 'HTTP/1.1 200 OK\r\n' header: Date: Thu, 27 Dec 2012 14:27:28 GMT header: Pragma: No-cache header: Cache-Control: no-cache header: Expires: Thu, 01 Jan 1970 02:00:00 IST header: Set-Cookie: JSESSIONID=Bhx69mK+C08UVXWYQhh0R2LH; Path=/api; Secure header: JSESSIONID: Bhx69mK+C08UVXWYQhh0R2LH header: Content-Type: application/xml header: Content-Length: 3289 header: Connection: close id : 258db527-b878-4993-8c65-30437eb6c7a1 name : test here's the debug: [RHEVM shell (connected)]# update vm 258db527-b878-4993-8c65-30437eb6c7a1 --name test1 send: 'GET /api/vms/258db527-b878-4993-8c65-30437eb6c7a1 HTTP/1.1\r\nHost: dafna-web-admin.qa.lab.tlv.redhat.com\r\nAccept-Encoding: identity\r\nFilter: False\r\nPrefer: persistent-auth\r\ncookie: JSESSIONID=HfR9Z+OcKc-GT7j01d3b3EPL\r\nContent-type: application/xml\r\nAuthorization: Basic YWRtaW5AaW50ZXJuYWw6MTIzNDU2\r\n\r\n' reply: 'HTTP/1.1 200 OK\r\n' header: Date: Thu, 27 Dec 2012 14:22:50 GMT header: Pragma: No-cache header: Cache-Control: no-cache header: Expires: Thu, 01 Jan 1970 02:00:00 IST header: Set-Cookie: JSESSIONID=piUmefAwuIXW9Z0W7em8GrvY; Path=/api; Secure header: JSESSIONID: piUmefAwuIXW9Z0W7em8GrvY header: Content-Type: application/xml header: Content-Length: 3066 header: Connection: close send: 'PUT /api/vms/258db527-b878-4993-8c65-30437eb6c7a1 HTTP/1.1\r\nHost: dafna-web-admin.qa.lab.tlv.redhat.com\r\nAccept-Encoding: identity\r\nContent-Length: 2831\r\nFilter: False\r\ncookie: JSESSIONID=piUmefAwuIXW9Z0W7em8GrvY\r\nPrefer: persistent-auth\r\nContent-type: application/xml\r\nAuthorization: Basic YWRtaW5AaW50ZXJuYWw6MTIzNDU2\r\n\r\n' send: '<vm href="/api/vms/258db527-b878-4993-8c65-30437eb6c7a1" id="258db527-b878-4993-8c65-30437eb6c7a1">\n <actions>\n <link href="/api/vms/258db527-b878-4993-8c65-30437eb6c7a1/ticket" rel="ticket"/>\n <link href="/api/vms/258db527-b878-4993-8c65-30437eb6c7a1/migrate" rel="migrate"/>\n <link href="/api/vms/258db527-b878-4993-8c65-30437eb6c7a1/cancelmigration" rel="cancelmigration"/>\n <link href="/api/vms/258db527-b878-4993-8c65-30437eb6c7a1/shutdown" rel="shutdown"/>\n <link href="/api/vms/258db527-b878-4993-8c65-30437eb6c7a1/start" rel="start"/>\n <link href="/api/vms/258db527-b878-4993-8c65-30437eb6c7a1/stop" rel="stop"/>\n <link href="/api/vms/258db527-b878-4993-8c65-30437eb6c7a1/suspend" rel="suspend"/>\n <link href="/api/vms/258db527-b878-4993-8c65-30437eb6c7a1/detach" rel="detach"/>\n <link href="/api/vms/258db527-b878-4993-8c65-30437eb6c7a1/export" rel="export"/>\n <link href="/api/vms/258db527-b878-4993-8c65-30437eb6c7a1/move" rel="move"/>\n </actions>\n <name>test1</name>\n <link href="/api/vms/258db527-b878-4993-8c65-30437eb6c7a1/disks" rel="disks"/>\n <link href="/api/vms/258db527-b878-4993-8c65-30437eb6c7a1/nics" rel="nics"/>\n <link href="/api/vms/258db527-b878-4993-8c65-30437eb6c7a1/cdroms" rel="cdroms"/>\n <link href="/api/vms/258db527-b878-4993-8c65-30437eb6c7a1/snapshots" rel="snapshots"/>\n <link href="/api/vms/258db527-b878-4993-8c65-30437eb6c7a1/tags" rel="tags"/>\n <link href="/api/vms/258db527-b878-4993-8c65-30437eb6c7a1/permissions" rel="permissions"/>\n <link href="/api/vms/258db527-b878-4993-8c65-30437eb6c7a1/statistics" rel="statistics"/>\n <type>desktop</type>\n <status>\n <state>down</state>\n </status>\n <memory>536870912</memory>\n <cpu>\n <topology cores="1" sockets="1"/>\n </cpu>\n <os type="unassigned">\n <boot dev="hd"/>\n </os>\n <high_availability>\n <enabled>false</enabled>\n <priority>1</priority>\n </high_availability>\n <display>\n <type>spice</type>\n <monitors>1</monitors>\n <allow_override>false</allow_override>\n </display>\n <cluster href="/api/clusters/fe901fd2-974b-4a37-867f-aab5bdfc6d0b" id="fe901fd2-974b-4a37-867f-aab5bdfc6d0b"/>\n <template href="/api/templates/00000000-0000-0000-0000-000000000000" id="00000000-0000-0000-0000-000000000000"/>\n <creation_time>2012-12-27T14:38:56.545+02:00</creation_time>\n <origin>ovirt</origin>\n <stateless>false</stateless>\n <placement_policy>\n <affinity>migratable</affinity>\n </placement_policy>\n <memory_policy>\n <guaranteed>536870912</guaranteed>\n <ballooning>true</ballooning>\n </memory_policy>\n <quota id="00000000-0000-0000-0000-000000000000"/>\n <usb>\n <enabled>false</enabled>\n </usb>\n</vm>\n' reply: 'HTTP/1.1 500 Internal Server Error\r\n' header: Date: Thu, 27 Dec 2012 14:22:50 GMT header: Content-Type: text/html;charset=utf-8 header: Content-Length: 4142 header: Connection: close error: status: 500 reason: Internal Server Error detail: HTTP Status 500 Created attachment 669621 [details]
engine log
I ran echo into the log with >>>> before I ran commands from the cli.
Could not reproduce using API or CLI, More information required. If there's a server in which the problem occurs now, we can try to connect to it. If we can't reproduce, we should close the bug. i am still reproducing on the same setup. [RHEVM shell (connected)]# update vm ffb02cbb-0a4e-43c2-bcb9-463109ccda52 --name FDFD error: status: 500 reason: Internal Server Error detail: HTTP Status 500 maybe its connected to how we connect to the cli? [root@dafna-web-admin yum.repos.d]# rhevm-shell -c -l "https://dafna-web-admin.qa.lab.tlv.redhat.com:443/api" -u admin@internal --insecure Password: (In reply to comment #7) > i am still reproducing on the same setup. > > [RHEVM shell (connected)]# update vm ffb02cbb-0a4e-43c2-bcb9-463109ccda52 > --name FDFD > > error: > status: 500 > reason: Internal Server Error > detail: HTTP Status 500 > > maybe its connected to how we connect to the cli? > > [root@dafna-web-admin yum.repos.d]# rhevm-shell -c -l > "https://dafna-web-admin.qa.lab.tlv.redhat.com:443/api" -u admin@internal > --insecure > Password: it's not related, ori, i suggest you using dafna's server (dafna-web-admin) to check this, btw dafna, 1. what cli/sdk version you're using (you can see it in shell via info command) 2. did you made any manual db changes on your environment? rhevm-sdk-3.1.0.16-1.el6ev.noarch I did not make any manual changes on this db Ori did log in to my setup so I am not sure why it did not reproduce for him maybe Ori and I can sit together for a few minutes and see what we are doing different (In reply to comment #9) > rhevm-sdk-3.1.0.16-1.el6ev.noarch > what cli version is? please copy/paste shell "info" command output. [RHEVM shell (connected)]# info backend version: 3.2 sdk version : 3.1.0.16 cli version : 3.1.1.1 python version : 2.6.6.final.0 entry point : https://dafna-web-admin.qa.lab.tlv.redhat.com:443/api [RHEVM shell (connected)]# Unclear why the problem happened, but according to Dafna, it's been fixed in more recent version: (03:58:07 PM) oliel: which Backend version are you using? (03:58:17 PM) Dafna_wfh: its sf2 (03:58:37 PM) Dafna_wfh: rhevm-backend-3.2.0-2.el6ev.noarch . . . (04:28:19 PM) Dafna_wfh: good news :) you can close it as current release. after the upgrade I am able to update the vm (04:28:39 PM) Dafna_wfh: here is the fixed version (04:28:40 PM) Dafna_wfh: [RHEVM shell (connected)]# info (04:28:40 PM) Dafna_wfh: backend version: 3.2 (04:28:40 PM) Dafna_wfh: sdk version : 3.1.0.16 (04:28:41 PM) Dafna_wfh: cli version : 3.1.1.1 (04:28:42 PM) Dafna_wfh: python version : 2.6.6.final.0 (04:28:45 PM) Dafna_wfh: entry point : https://dafna-web-admin.qa.lab.tlv.redhat.com:443/api Closing the bug |