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 2051891 - vCPUs in RHV getting reset to one vCPU after editing a host in Satellite
Summary: vCPUs in RHV getting reset to one vCPU after editing a host in Satellite
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Compute Resources - RHEV
Version: 6.10.2
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.12.0
Assignee: aabramov
QA Contact: Lukáš Hellebrandt
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-08 10:01 UTC by Stefan Meyer
Modified: 2022-11-16 13:33 UTC (History)
4 users (show)

Fixed In Version: fog_ovirt v2.0.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-11-16 13:33:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 34422 0 Normal New b'vCPUs in RHV getting reset to one vCPU after editing a host in Satellite' 2022-02-09 09:35:24 UTC
Red Hat Issue Tracker SAT-12785 0 None None None 2022-09-07 13:32:28 UTC
Red Hat Product Errata RHSA-2022:8506 0 None None None 2022-11-16 13:33:44 UTC

Description Stefan Meyer 2022-02-08 10:01:05 UTC
Description of problem:
- The vCPUs in RHV are getting reset to one vCPU after editing a host in Satellite

Version-Release number of selected component (if applicable):
- Satellite 6.8.6
- Satellite 6.10.2
- RHV 4.4.9.5

How reproducible:
Whenever a host is edited in Satellite

Steps to Reproduce:
1. Set vCPU in RHV from 1 to 2
2. Go to edit page of the host in Satellite
3. Check how many vCPUs are assigned in the Virtual Machine tab, all fields are grayed out but it should show 2 vCPU
4. Save without changing anything
5. The ammount of vCPUs in RHV has now changed to 1 vCPU


Actual results:
- Satellite overrides the ammount of vCPUs that may have been changed in RHV
- If the memory has changed it is not changed by Satellite

Expected results:
- Satellite should not override the ammount of assigned vCPU after initial installation

Additional info:
- I was not able to reproduce this when using "hammer host update"
- Assigning a new hostgroup from the "All Hosts" page does not trigger the reset

Comment 4 aabramov 2022-02-09 09:35:23 UTC
Created redmine issue https://projects.theforeman.org/issues/34422 from this bug

Comment 6 Stefan Meyer 2022-02-09 15:22:04 UTC
The fix from https://github.com/fog/fog-ovirt/pull/104 has been successfully tested on
- Satellite 6.8.6
- Satellite 6.10.2
- Satellite 7.0 Snap 8

While 6.8 is out of maintenance support I like to request a backport to 6.9 and 6.10 for it.

Comment 7 Bryan Kearney 2022-02-17 16:06:38 UTC
Upstream bug assigned to aabramov

Comment 8 Bryan Kearney 2022-02-17 16:06:40 UTC
Upstream bug assigned to aabramov

Comment 13 Lukáš Hellebrandt 2022-09-07 13:14:01 UTC
Verified with Sat 6.12 snap 9.0.

1) I created a VM through Satellite, have it running. It has 3 vCPUs (as per both Satellite and RHV).
2) I edited the VM in Satellite (Hosts -> <host> -> Edit), left vCPUs intact (it can't be edited anyway as it's greyed out). Submitted the form. It still has 3 vCPUs.
3) I shut the VM down through Satellite and did 2) again. It still has 3 vCPUs.
4) I edited the VM through RHV to have 5 vCPUs. It now shows 5 vCPUs both in RHV and in Satellite's edit form (greyed out).
5) I did 2) again. It still has 5 vCPUs.
6) I edited through Hammer:
```
# hammer host update --name <name> --comment 'Nobody expects the Spanish inquisition.'
Host updated.
```
It still has 5 vCPUs.

Comment 17 errata-xmlrpc 2022-11-16 13:33:25 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 (Important: Satellite 6.12 Release), 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-2022:8506


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