Description of problem: For VM lifecycle operations [1] the VM\Template Name & description max limit do not match the RHV max limit: VM/Template Name - RHV: 64 chars, CFME: 40 chars VM/Template Description - RHV: 255 chars, CFME: 100 chars [1] VM provision from a template/Publish VM to a template/Clone Template to a VM Version-Release number of selected component (if applicable): CFME-5.9.0.14/RHV-4.1.8 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Adam, any chance those can be increased on the CFME side?
Ilanit - For the VM name issue can you provide more information or an environment to reproduce? I was unable to recreate in my local env and I cannot recall anywhere we limit the VM name. The description length is defined in the dialog.yaml file: https://github.com/ManageIQ/manageiq/blob/master/product/dialogs/miq_dialogs/miq_provision_redhat_dialogs_template.yaml#L290-L296 and needs to be changed in all the redhat dialogs: product/dialogs/miq_dialogs/miq_provision_redhat_dialogs_template.yaml product/dialogs/miq_dialogs/miq_provision_redhat_dialogs_clone_to_vm.yaml product/dialogs/miq_dialogs/miq_provision_redhat_dialogs_clone_to_template.yaml
VM Name limitation is not mentioned in the dialog. It is mentioned when the Request fails, 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.] See also related bug: Bug 1529080 - "VM Lifecycle" Request last message do not indicate actual problem-invalid vm name
The limitation on RHV for template name was increased in ovirt-engine-4.2 to 255 chars (see bug 1416306) Before ovirt-engine-4.2, it was 40 chars. Vm Name, Vm description and Template description limits on RHV are 255 chars. As Greg suggested, those limits should be updated on RHV dialog files. I suggest will increase all to 255, expect of Template Name which should be limited to 40 (so we won't require to add version specific logic).
https://github.com/ManageIQ/manageiq/pull/16736
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/1f2a123af834da21758d99644cabd82b7adf9fee commit 1f2a123af834da21758d99644cabd82b7adf9fee Author: Moti Asayag <masayag> AuthorDate: Wed Jan 3 17:03:17 2018 +0200 Commit: Moti Asayag <masayag> CommitDate: Thu Jan 4 15:30:40 2018 +0200 Set limits for VM and Template names and descriptions RHV enforce the following limits: * VM name to 255 characters * VM description to 255 characters * Template name to 40 characters (it will be extended to 255 in ovirt-engine-4.2) * Template description to 255 characters Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1529052 .../miq_dialogs/miq_provision_redhat_dialogs_clone_to_template.yaml | 4 ++-- .../dialogs/miq_dialogs/miq_provision_redhat_dialogs_clone_to_vm.yaml | 4 ++-- .../dialogs/miq_dialogs/miq_provision_redhat_dialogs_template.yaml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-)