Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1737418

Summary: [Kubevirt-Foreman] Compute profile edit form has no validation for Storage size
Product: Red Hat Satellite Reporter: Vladimír Sedmík <vsedmik>
Component: Compute Resources - CNVAssignee: Shira Maximov <mshira>
Status: CLOSED ERRATA QA Contact: Vladimír Sedmík <vsedmik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: egolov, mshira, orabin, pkliczew, zhunting
Target Milestone: 6.7.0Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman_kubevirt-0.1.5 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1755376 (view as bug list) Environment:
Last Closed: 2020-04-14 13:25:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1755376    

Description Vladimír Sedmík 2019-08-05 10:42:29 UTC
Description of problem:
The Compute profile edit form allows a user to enter invalid value, there is no validation performed.

Version-Release number of selected component (if applicable):
Satellite 6.6.0 snap 14:
satellite-6.6.0-5.beta.el7sat.noarch
tfm-rubygem-foreman_kubevirt-0.1.4-1.el7sat.noarch
tfm-rubygem-fog-kubevirt-1.3.1-1.el7sat.noarch

How reproducible:
always

Steps to Reproduce:
1. Go to Infrastructure > Compute resources > select kubevirt CR > Compute profiles
2. Click some profile or create a new one.
3. Click '+Add volume' and input requried size.

Actual results:
Any input string (text) is accepted with no error message.

Expected results:
Only numbers and valid units (MGTPE) should be accepted.

Additional info:
Similar to this BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1700769

Comment 3 Shira Maximov 2019-08-26 07:51:57 UTC
Created redmine issue https://projects.theforeman.org/issues/27703 from this bug

Comment 4 Bryan Kearney 2019-08-26 12:01:35 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/27703 has been resolved.

Comment 7 Shira Maximov 2019-09-25 14:15:51 UTC
*** Bug 1755376 has been marked as a duplicate of this bug. ***

Comment 11 errata-xmlrpc 2020-04-14 13:25:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:1454