| Summary: | Adding VM via rhevm-shell to not set up DC fails with NPE | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | Lukas Svaty <lsvaty> |
| Component: | BLL.Virt | Assignee: | Michal Skrivanek <michal.skrivanek> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | meital avital <mavital> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.6.7 | CC: | bugs, lsvaty, oourfali, tjelinek |
| Target Milestone: | --- | Flags: | rule-engine:
planning_ack?
rule-engine: devel_ack? rule-engine: testing_ack? |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-03 14:16:44 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Virt | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Lukas Svaty
2016-10-06 13:32:10 UTC
The relevant lines from server.log seem to be the following:
Caused by: java.lang.NullPointerException
at org.ovirt.engine.core.bll.Backend.evaluateCorrelationId(Backend.java:494) [bll.jar:]
at org.ovirt.engine.core.bll.Backend.runAction(Backend.java:477) [bll.jar:]
at org.ovirt.engine.core.bll.Backend.runActionImpl(Backend.java:466) [bll.jar:]
at org.ovirt.engine.core.bll.Backend.runAction(Backend.java:419) [bll.jar:]
Apparently in this situation creation of the command instance fails, and returns null.
does it reproduce also on 4.0 engine? working for 4.0
[oVirt shell (connected)]# add vm --cluster-name Clean --name test --template-name Blank
* Found bundle for host ******: 0x26fa460
* Connection 0 seems to be dead!
* Closing connection 0
* About to connect() to ******** port 443 (#1)
* Trying ***.***.***.***...
* Connected to ******** (***.***.***.***) port 443 (#1)
* skipping SSL peer certificate verification
* SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
* Server certificate:
* subject: CN=********,O=********,C=US
* start date: Sep 15 08:48:56 2016 GMT
* expire date: Aug 21 08:48:56 2021 GMT
* common name: ********
* issuer: CN=********.32711,O=$PROD,C=US
* Server auth using Basic with user 'admin@internal'
> POST /ovirt-engine/api/vms HTTP/1.1
> Authorization: Basic YWRtaW5AaW50ZXJuYWw6MTIzNDU2
> User-Agent: PycURL/7.29.0
> Host: ********
> Cookie: JSESSIONID=y1vdQvRuVGMeNbMYNJFiZXsDHanzI99x3vNCt57c.********
> Version: 3
> Content-Type: application/xml
> Accept: application/xml
> Filter: False
> Prefer: persistent-auth
> Content-Length: 147
> <vm>
> <name>test</name>
> <cluster>
> <name>Clean</name>
> </cluster>
> <template>
> <name>Blank</name>
> </template>
> </vm>
* upload completely sent off: 147 out of 147 bytes
< HTTP/1.1 400 Bad Request
< Date: Mon, 24 Oct 2016 12:10:39 GMT
< Server: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips
< Content-Type: application/xml
< Content-Length: 265
< Connection: close
<
< <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
< <fault>
< <reason>Operation Failed</reason>
< <detail>[Cannot add VM: Storage Domain cannot be accessed.
< -Please check that at least one Host is operational and Data Center state is up.]</detail>
< </fault>
* Closing connection 1
==================================== ERROR =================================
status: 400
reason: Bad Request
detail: Cannot add VM: Storage Domain cannot be accessed.
-Please check that at least one Host is operational and Data Center state is up.
============================================================================
great, works on 4.0, closing |