While changing name of storage domain from rhevm-shell , the command fails
Issue
- Any combination of the command fails:
[RHEVM shell (connected)]# update storagedomain Storage-2 --name jaison --host-id 0787ec6c-adda-4cea-89c6-7927275f1ca9 --storage-logical_unit logical_unit.address=10.xx.xx.xx,logical_unit.port=3260,logical_unit.target=iqn.1999-08.com.netapp:sn.135107447,logical_unit.serial=SNETAPP_LUN_P4DbSowwsL-f,logical_unit.vendor_id=NETAPP,logical_unit.product_id=LUN,logical_unit.lun_mapping=0,logical_unit.portal="10.xx.xx.xx:3260,1001",logical_unit-paths=0,logical_unit.id=360a9800050344462536f7777734c2d66
error: wrong number of arguments, try 'help update' for help.
- Not does the following work:
[RHEVM shell (connected)]# update storagedomain Storage-2 --name jaison --storage-logical_unit logical_unit.address=10.xx.xx.xx,logical_unit.port=3260,logical_unit.target=iqn.1999-08.com.netapp:sn.135107447,logical_unit.serial=SNETAPP_LUN_P4DbSowwsL-f,logical_unit.vendor_id=NETAPP,logical_unit.product_id=LUN,logical_unit.lun_mapping=0,logical_unit.portal="10.xx.xx.xx:3260,1001",logical_unit-paths=0,logical_unit.id=360a9800050344462536f7777734c2d66
error: wrong number of arguments, try 'help update' for help.
[RHEVM shell (connected)]# update storagedomain Storage-2 --name jaison
error:
status: 500
reason: Internal Server Error
detail: JBWEB000065: HTTP Status 500 - java.lang.NullPointerException
[RHEVM shell (connected)]# update storagedomain Storage-2 --name jaison --storage-type iscsi --storage-address 10.xx.xx.xx --storage-override_luns false --storage-logical_unit logical_unit.address=10.xx.xx.xx,logical_unit.port=3260,logical_unit.target=iqn.1999-08.com.netapp:sn.135107447,logical_unit.serial=SNETAPP_LUN_P4DbSowwsL-f,logical_unit.vendor_id=NETAPP,logical_unit.product_id=LUN,logical_unit.lun_mapping=0,logical_unit.portal="10.xx.xx.xx:3260,1001",logical_unit-paths=0,logical_unit.id=360a9800050344462536f7777734c2d66
error: wrong number of arguments, try 'help update' for help.
[RHEVM shell (connected)]# update storagedomain Storage-2 --name jaison --storage-type iscsi --storage-address 10.xx.xx.xx --storage-override_luns false
error:
status: 500
reason: Internal Server Error
detail: JBWEB000065: HTTP Status 500 - java.lang.NullPointerException
[RHEVM shell (connected)]# update storagedomain Storage-2 --name jaison --format v3 --host-id 0787ec6c-adda-4cea-89c6-7927275f1ca9 --storage-address 10.xx.xx.xx --storage-logical_unit logical_unit.address=10.xx.xx.xx,logical_unit.port=3260,logical_unit.target=iqn.1999-08.com.netapp:sn.135107447,logical_unit.serial=SNETAPP_LUN_P4DbSowwsL-f,logical_unit.vendor_id=NETAPP,logical_unit.product_id=LUN,logical_unit.lun_mapping=0,logical_unit.portal='10.xx.xx.xx:3260,1001',logical_unit-paths=0,logical_unit.id=360a9800050344462536f7777734c2d66 --storage-override_luns false --storage-type iscsi --type data
error: wrong number of arguments, try 'help update' for help.
- As per https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.3/html/Command_Line_Shell_Guide/storagedomain.html
the following should succeed:
[RHEVM shell (connected)]# update storagedomain DataStorage --name DataStorageOld
Environment
- Red Hat Enterprise Virtualization 3.3
- Red Hat Enterprise Virtualization 3.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
