Bug 1142098 - hosted engine setup doesn't detect volume creation failures
Summary: hosted engine setup doesn't detect volume creation failures
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-hosted-engine-setup
Version: 3.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.6.0
Assignee: Sandro Bonazzola
QA Contact: Elad
URL:
Whiteboard: integration
Depends On:
Blocks: 1234915
TreeView+ depends on / blocked
 
Reported: 2014-09-16 07:40 UTC by Sandro Bonazzola
Modified: 2015-11-04 13:55 UTC (History)
16 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-11-04 13:55:28 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)
logs (327.30 KB, application/octet-stream)
2014-09-16 07:45 UTC, Sandro Bonazzola
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 33996 0 master MERGED vdsm: use vdscli instead of vdsClient Never
oVirt gerrit 37845 0 master MERGED packaging: setup: asking about retriyng VG creation with force option Never

Description Sandro Bonazzola 2014-09-16 07:40:20 UTC
Not sure about what changed in HA or VDSM but now when I try to deploy hosted engine on iSCSI I have:

{'status': {'message': "Logical volume does not exist: ('59fbe5c7-3f29-4149-8595-fa6fb60b2965/688bc33b-5da4-4072-bd74-0dee60f1c940',)", 'code': 610}}

Since the setup part has not been changed, opening this bug down in the chain.

Comment 1 Sandro Bonazzola 2014-09-16 07:45:22 UTC
Created attachment 937885 [details]
logs

Comment 2 Sandro Bonazzola 2014-09-16 09:35:44 UTC
Looks like it was a bad vdsm error handling by setup. It failed to create a volume with size of 25GB in a iscsi lun of 26GB due to insufficient space but the error has not been detected by the setup.

Reducing severity and priority and drop blocking.

Comment 3 Sandro Bonazzola 2014-09-16 09:37:16 UTC
Just a note for remembering what need to be changed:

        status, message = serv.createVolume([
            sdUUID,
            spUUID,
            imgUUID,
            self.environment[ohostedcons.StorageEnv.IMAGE_SIZE_GB],
            volFormat,
            preallocate,
            diskType,
            volUUID,
            self.environment[ohostedcons.StorageEnv.IMAGE_DESC],
        ])

it returns status = 0 also if it failed creating the volume.
Need to change this code for using API instead of vdsClient.

Comment 4 Sandro Bonazzola 2014-12-01 07:16:17 UTC
Moving to 3.6 since the solution uses refactored code for using API instead of CLI

Comment 5 Sandro Bonazzola 2015-02-20 11:08:10 UTC
Automated message: can you please update doctext or set it as not required?

Comment 6 Nikolai Sednev 2015-05-31 18:23:39 UTC
Hi Sandro,
Please provide exact reproduction steps.

Comment 7 Sandro Bonazzola 2015-06-04 07:48:27 UTC
(In reply to Nikolai Sednev from comment #6)
> Hi Sandro,
> Please provide exact reproduction steps.

See comment #2.
try to create a volume with size of 25GB in a iscsi lun of 26GB: it should detect insufficient space and properly handle it.

Comment 8 Elad 2015-06-04 10:42:31 UTC
An attempt to deploy the hosted-engine image on a LUN that doesn't have enough capacity (tried on a 26G LUN) is detected and handled well:


[WARNING] Not enough free space, about 21 GiB are available
          Please specify the disk size of the VM in GB [Defaults to minimum requirement: 25]: 


Verified using:
ovirt-hosted-engine-setup-1.3.0-0.0.master.20150518075146.gitdd9741f.el7.noarch

Comment 9 Sandro Bonazzola 2015-11-04 13:55:28 UTC
oVirt 3.6.0 has been released on November 4th, 2015 and should fix this issue.
If problems still persist, please open a new BZ and reference this one.


Note You need to log in before you can comment on or make changes to this bug.