Bug 1115966
Summary: | Update storage domain from rhevm-shell fails with java.lang.NullPointerException | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Jaison Raju <jraju> |
Component: | ovirt-engine-restapi | Assignee: | Tal Nisan <tnisan> |
Status: | CLOSED ERRATA | QA Contact: | Elad <ebenahar> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.3.0 | CC: | acanan, amureini, anande, bazulay, iheim, jraju, oramraz, rbalakri, Rhev-m-bugs, scohen, tnisan, yeylon |
Target Milestone: | --- | Flags: | amureini:
Triaged+
|
Target Release: | 3.5.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | storage | ||
Fixed In Version: | org.ovirt.engine-root-3.5.0-22 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-02-11 18:05:20 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Storage | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jaison Raju
2014-07-03 12:13:25 UTC
This happens because the BackendStorageDomainResource.getIncomingLuns() method doesn't take into account that the incoming storage object may be null, like in this case. this bug status was moved to MODIFIED before engine vt5 was built, hence moving to on_qa, if this was mistake and the fix isn't in, please contact rhev-integ Still failing with a NUllPointerExceptoin for editing a storage domain via rhevm-shell: [RHEVM shell (connected)]# update storagedomain --host-name green-vdsa iscsi1 --name --storage-type iscsi --storage-address 10.35.160.104 --storage-override_luns false ====================================================================================================== ERROR ==================================================================================================== status: 500 reason: Internal Server Error detail: JBWEB000065: HTTP Status 500 - java.lang.NullPointerException Which version did you test it on? rhev 3.5 vt7 rhevm-3.5.0-0.17.beta.el6ev.noarch Update storage domain using rhevm-shell now works as expected: [RHEVM shell (connected)]# update storagedomain --host-name green-vdsc iscsi2 --name iscsi22 --storage-type iscsi --storage-address 10.35.146.129 --storage-override_luns false 2014-11-27 14:38:37,271 INFO [org.ovirt.engine.core.bll.storage.UpdateStorageDomainCommand] (ajp-/127.0.0.1:8702-9) [362d1785] Running command: UpdateStorageDomainCommand internal: false. Entities affected : ID: 7105b661-ba03-4362-b692-3091c1aff5e7 Type: StorageAction group EDIT_STORAGE_DOMAIN_CONFIGURATION with role type ADMIN 2014-11-27 14:38:37,275 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.SetStorageDomainDescriptionVDSCommand] (ajp-/127.0.0.1:8702-9) [362d1785] START, SetStorageDomainDescriptionVDSCommand( storagePoolId = fb436630-9318-41b1-a2b8-bc3d3aa17097, ignoreFailoverLimit = false, storageDomainId = 7105b661-ba03-4362-b692-3091c1aff5e7, description = iscsi22), log id: 2727da2e 2014-11-27 14:38:37,443 INFO [org.ovirt.engine.core.vdsbroker.irsbroker.SetStorageDomainDescriptionVDSCommand] (ajp-/127.0.0.1:8702-9) [362d1785] FINISH, SetStorageDomainDescriptionVDSCommand, log id: 2727da2e Verified using rhev 3.5 vt12 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 |