-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set limits for VM and Template names and descriptions #16736
Conversation
@miq-bot assign @gmcculloug |
@miq-bot add_labels gaprindashvili/yes, bug |
What is the timeframe for the |
Do these changes apply to all supported versions of RHV? |
@gmcculloug ovirt-engine-4.2 is already available upstream. However, if we increase the limit, the 'publish vm as template' might fail for ovirt-engine-4.1 (if the user will set a name longer than 40 chars). That's why I thought to set the shorter limit of 4.1 which will work for both versions. @Fryguy the limits which are specified in this PR are supported by all ovirt-engine versions (they were defined in the early days of ovirt-engine-3.x), except of the template name limit that was recently increased (in 4.2). |
@masayag I'm always a little concerned about enforcing these types of limits in the provisioning dialogs as admins can make modifications to the name value from automate. Like adding enumeration to the name value, but I do realized we need to start somewhere. Two thoughts:
|
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
6403513
to
1f2a123
Compare
@gmcculloug I'd prefer the second option. I've updated the PR accordingly. |
Checked commit masayag@1f2a123 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
Set limits for VM and Template names and descriptions (cherry picked from commit bf689eb) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1531292
Gaprindashvili backport details:
|
RHV enforce the following limits:
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1529052
The UI enforces the limits on insertion for the name and description fields: