Bug 1529080 - "VM Lifecycle" Request last message do not indicate actual problem-invalid vm name
Summary: "VM Lifecycle" Request last message do not indicate actual problem-invalid vm...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Provisioning
Version: 5.9.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: cfme-future
Assignee: William Fitzgerald
QA Contact: Dave Johnson
URL:
Whiteboard: CFME Core
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-26 09:36 UTC by Ilanit Stein
Modified: 2019-08-06 20:04 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-12 19:18:11 UTC
Category: Bug
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
really long vm name for RHEV (57.71 KB, image/png)
2018-04-17 22:06 UTC, William Fitzgerald
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1529060 0 medium CLOSED [RFE] Mention length max limit aside VM\Template Name, in VM lifecycle operations 2021-02-22 00:41:40 UTC

Internal Links: 1529060

Description Ilanit Stein 2017-12-26 09:36:16 UTC
Description of problem:
When running Publish VM from Template, 
with VM name, that exceeds the length max limit (40 chars),
The Request will fail, with last message, that do not indicate the root cause.

Example for Request Last message, for RHV-4.1.8 provider:
[EVM] VM [wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd] Step [CheckProvisioned] Status [Error...

While the failure root cause, as can be seen in evm.log:

[----] I, [2017-12-12T03:48:17.017853 #23038:869994]  INFO -- : Calling Create Notification type: automate_user_error subject type: MiqRequest id: 5 options: {:message=>"VM Provision Error: [EVM] VM [wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd] Step [CheckProvisioned] Status [Error Creating Template] Message [[OvirtSDK4::Error]: Fault reason is \"Operation Failed\". Fault detail is \"[VM Template name must not exceed 40 characters, Attribute: _name]\". HTTP response code is 400.] "}
[----] E, [2017-12-12T03:48:17.038525 #23038:869994] ERROR -- : <AEMethod update_provision_status> VM Provision Error: [EVM] VM [wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd] Step [CheckProvisioned] Status [Error Creating Template] Message [[OvirtSDK4::Error]: Fault reason is "Operation Failed". Fault detail is "[VM Template name must not exceed 40 characters, Attribute: _name]". HTTP response code is 400.]

Note that this bug is probably relevant for the other VM/Template lifecycle operations:
"Clone Template to a VM", "Provision VM from a template",
that share same entities and tables in the code.

Version-Release number of selected component (if applicable):
CFME-5.9.0.14

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Greg Blomquist 2018-01-02 15:00:13 UTC
Sending to GregM to see if there's something we can do to better propagate this to the UI side.  If not, then it probably needs to be looked at by the RHV team.

Comment 3 William Fitzgerald 2018-04-17 22:04:18 UTC
llanit,

I used "Provision VM from a template" and tried to provision a vm with the name of billy_wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd.


My Request Last Message was very similar to you one you received. I will include a screenshot.

I noticed in the automation.log this error message which is similar to what you received : 

[----] E, [2018-04-17T15:15:30.304005 #52566:3d3ed4] ERROR -- : <AEMethod check_provisioned> ProvisionCheck error <[Ovirt::Error]: [Cannot add VM. The given name is too long.]>

If this is the same as the problem you reported, the reason this is happening because the Request Last Message value is being truncated.

Can you let me know if this re-creates your problem or if something else is going on.

Thanks 

Billy

Comment 4 William Fitzgerald 2018-04-17 22:06:06 UTC
Created attachment 1423259 [details]
really long vm name for RHEV

Comment 5 William Fitzgerald 2018-04-18 13:20:23 UTC
llanit,

Can you let me know if this re-creates your problem or if something else is going on.

Thanks 

Billy

Comment 6 Ilanit Stein 2018-04-22 05:26:16 UTC
Thanks Billy.
This indeed recreates the reported problem.
The last message I got is mentioned in the bug description, and is the same as the last message you attached.

Comment 7 William Fitzgerald 2018-06-11 21:39:14 UTC
llanit,

The problem is that data is larger than the field and we are truncating the data.

Can I close this ?

Billy

Comment 8 Ilanit Stein 2018-06-12 06:31:35 UTC
Billy,

I fully understand that the VM name data is truncated.
This is a result of a negative test I was running, 
checking the VM name length validation is in place.
 
This bug is about that the user is not displayed an error that reflect the problem.

Such error exist in evm.log:
"[VM Template name must not exceed 40 characters, Attribute: _name]"

Would have been good to pass this message to the VM provision "Last message" field.

Thanks.


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