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 1520382 - The memory value (in bytes) loaded from the template causes the host provisioning to fail
Summary: The memory value (in bytes) loaded from the template causes the host provisio...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Compute Resources - RHEV
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Sanket Jagtap
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-04 11:50 UTC by Nikhil Kathole
Modified: 2019-08-12 16:09 UTC (History)
7 users (show)

Fixed In Version: foreman-1.15.6.27-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:54:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
screenshot of UI (61.85 KB, image/png)
2017-12-04 11:50 UTC, Nikhil Kathole
no flags Details
Error while provisioning (58.30 KB, image/png)
2017-12-04 11:50 UTC, Nikhil Kathole
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 21922 0 None None None 2017-12-11 07:38:59 UTC

Description Nikhil Kathole 2017-12-04 11:50:14 UTC
Created attachment 1362646 [details]
screenshot of UI

Description of problem: The memory loaded from the template is in bytes (that template has 1 GB or 1024 MB of RAM), this cause the host provisioning to fail.The error while provisioning "Failed to create a compute rhevm1 (RHEV) instance."

Version-Release number of selected component (if applicable):Satellite 6.3 snap 27


How reproducible:always


Steps to Reproduce:
1. Goto Infrastructure > Compute resources
2. Create a RHEV compute resource
3. Select the created compute resource
4. Select Compute profiles
5. Select a profile
6. select a template

Actual results: The memory value sets in bytes causing the host provisioning to fail.

Expected results: The memory value should set correctly.


Additional info:The work around is to visit Virtual Machine tab at host creation stage and correct that value.

Comment 1 Nikhil Kathole 2017-12-04 11:50:47 UTC
Created attachment 1362647 [details]
Error while provisioning

Comment 3 Djebran Lezzoum 2017-12-04 12:15:13 UTC
The main reason is when you save this profile (you notice that memory is 0 Bytes in compute resource profile) and if you open it again , you will notice that the memory field is empty

Comment 4 Djebran Lezzoum 2017-12-05 13:50:05 UTC
Info: Think the memory field when updated does not trigger the change event (and consequently the hidden field is not updated), we are facing the same issue in automation when setting that value and we have to trigger that change event explicitly by executing "memory_input.dispatchEvent(new Event('change'));".

So when the data is loaded from template the script update that field but the change event is not triggered.

Comment 5 Sanket Jagtap 2017-12-08 10:20:29 UTC
The also, affects image based provisioning.

Reproducer:
1. Create a valid Compute profile for RHEV without template (Do not select any  template)
2. Add memory to compute profile 1GB 
3. Create a host, Select created Compute profile, Go to virtual machine tab ,
    Memory value is 1GB
4. Go to operating System Tab , select Image based provisioning. Again, visit the 
   Virtual machine tab, memory value is overridden to memory in bytes.
5. This fails the provisioning of the box.

Workaround - when using Compute profile with Image based provisioning, go to Virtual machine tab to correct the memory value.

Comment 7 Shira Maximov 2017-12-11 07:38:55 UTC
Created redmine issue http://projects.theforeman.org/issues/21922 from this bug

Comment 8 Satellite Program 2017-12-31 11:22:31 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/21922 has been resolved.

Comment 11 Sanket Jagtap 2018-01-16 12:58:37 UTC
Build: Satellite 6.3.0 snap32

The bytes memory is converted to Mb's and/or Gb's

Marking as verified

Comment 12 Satellite Program 2018-02-21 16:54:37 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-2018:0336


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