Description of problem: When creating a new VM in locate DC, the OK buttonis ignored: An ERROR is showed in hte javascript console: Wed Feb 12 11:15:53 GMT+100 2014 com.google.gwt.logging.client.LogConfiguration SEVERE: (TypeError) stack: TypeError: Cannot read property 'n' of null at SSj (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:16318:1315) at Object.Uwl [as iU] (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:16478:20282) at jjj (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:15335:72) at Object.mjj [as sh] (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:16448:443) at Object.Kqd [as le] (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:16388:14548) at YM (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:13950:137) at Object.pN (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:16388:4758) at XMLHttpRequest.<anonymous> (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:11424:65) at Vq (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:7958:29) at Yq (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:14545:57) at XMLHttpRequest.<anonymous> (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:12055:45): Cannot read property 'n' of null com.google.gwt.core.client.JavaScriptException: (TypeError) stack: TypeError: Cannot read property 'n' of null at SSj (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:16318:1315) at Object.Uwl [as iU] (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:16478:20282) at jjj (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:15335:72) at Object.mjj [as sh] (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:16448:443) at Object.Kqd [as le] (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:16388:14548) at YM (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:13950:137) at Object.pN (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:16388:4758) at XMLHttpRequest.<anonymous> (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:11424:65) at Vq (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:7958:29) at Yq (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:14545:57) at XMLHttpRequest.<anonymous> (https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html:12055:45): Cannot read property 'n' of null at Unknown.SSj(https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html@1315) at Unknown.Uwl(https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html@20282) at Unknown.jjj(https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html@72) at Unknown.mjj(https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html@443) at Unknown.Kqd(https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html@14548) at Unknown.YM(https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html@137) at Unknown.pN(https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html@4758) at Unknown.<anonymous>(https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html@65) at Unknown.Vq(https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html@29) at Unknown.Yq(https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html@57) at Unknown.<anonymous>(https://rhevm33/webadmin/webadmin/511596125446E3CE4EC34D35C625AC75.cache.html@45) Version-Release number of selected component (if applicable): rhevm-webadmin-portal-3.3.0-0.46.el6ev.noarch How reproducible: 100% Steps to Reproduce: 1. Create a default DC 2. Create a new local DC/CL/SD: Local/Local_CL/AStorageName 3. Click "New VM" 4. Change the cluster (this is mandatory) to the second cluster the local one. 5. Fill the VM name and click OK Actual results: Nothing happens Expected results: Vm is created Additional info: Tsted in Firefox, Chrome, IE
well, this does not reproduce to me (nor current U/S, 3.4, or the build you mentioned). From what browser is that stack trace? (because they are different for each). Could you please attach the stack from the firefox? Also please attach the relevant engine logs. Thank you
(In reply to Tomas Jelinek from comment #2) > well, this does not reproduce to me (nor current U/S, 3.4, or the build you > mentioned). > > From what browser is that stack trace? (because they are different for > each). > > Could you please attach the stack from the firefox? > > Also please attach the relevant engine logs. > > Thank you Hi, It was google-chrome. I have reproduced the issue with firefox 27.0.1. I would like to point out that the DC taht I use to reproduce is Local type. POST https://rhevm33/webadmin/webadmin/GenericApiGWTService [HTTP/1.1 200 OK 7ms] 13:31:22.808 "Mon Mar 03 13:31:22 GMT+100 2014 com.google.gwt.logging.client.LogConfiguration SEVERE: (TypeError) stack: qSj@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:16320 swl@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:16477 Jij@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:15341 Mij@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:16447 qqd@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:16390 LM@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:13943 cN@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:16390 T9d/c.onreadystatechange<@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:11410 Uq@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:7954 Xq@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:14543 Wq/<@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:12067 fileName: https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html lineNumber: 16320 columnNumber: 1305: e is null com.google.gwt.core.client.JavaScriptException: (TypeError) stack: qSj@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:16320 swl@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:16477 Jij@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:15341 Mij@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:16447 qqd@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:16390 LM@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:13943 cN@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:16390 T9d/c.onreadystatechange<@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:11410 Uq@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:7954 Xq@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:14543 Wq/<@https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html:12067 fileName: https://rhevm33/webadmin/webadmin/703514569DB8B555E64E057CF39EEA11.cache.html lineNumber: 16320 columnNumber: 1305: e is null at Unknown.qSj(Unknown Source) at Unknown.swl(Unknown Source) at Unknown.Jij(Unknown Source) at Unknown.Mij(Unknown Source) at Unknown.qqd(Unknown Source) at Unknown.LM(Unknown Source) at Unknown.cN(Unknown Source) at Unknown.T9d/c.onreadystatechange<(Unknown Source) at Unknown.Uq(Unknown Source) at Unknown.Xq(Unknown Source) at Unknown.Wq/<(Unknown Source) at Unknown.anonymous(Unknown Source)" 703514569DB8B555E64E057CF39EEA11.cache.html:16390 13:31:24.129 POST https://rhevm33/webadmin/webadmin/GenericApiGWTService [HTTP/1.1 200 OK 46ms]
Thank you for the new logs - now I see the issue. The problem is with the incorrect selection of the default host when changing from one DC with some hosts to a different one with some hosts. Until the fix will be available you can use a simple workaround: after selecting the local DC go to "Host side tab" -> "Start Running On" -> "Specific" and select some host. Than you should be able to create a VM.
Roman, does the workaround mentioned above work?
(In reply to Tomas Jelinek from comment #7) > Roman, does the workaround mentioned above work? Hi, thank you for pointing that out. I used REST API to create the VM. I just wanted to make sure that it will be fixed. Thanks Roman
Verified in ovirt-engine-3.5.0-0.0.master.20140804172041.git23b558e.el6.noarch (rc1). Verification steps: 1. Have the Default data center stuffed with Default cluster, host and active storage. 2. Add second - local - data center LocalDC plus cluster LocalCL, host and local storage. 3. VMs tab -> New VM -> switch Default cluster to LocalCL. Enter VM name and submit. Result: New VM in LocalDC is created, no errors occured in engine.log or browser console.
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://rhn.redhat.com/errata/RHSA-2015-0158.html