Bug 1013879

Summary: distribution profile json files for x86_64 distros incorrect
Product: Red Hat Satellite 5 Reporter: Ken Sugawara <ksugawar>
Component: OtherAssignee: Grant Gainey <ggainey>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecified   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-16 19:06:09 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:
Bug Depends On:    
Bug Blocks: 462714    
Attachments:
Description Flags
proposed patch sample to one of the json files none

Description Ken Sugawara 2013-10-01 01:36:44 UTC
Description of problem:
The distribution profile json files for x86_64 distros that I assume are distributed from RHN hold incorrect arch 'i386' which in turn confuses koan when creating a virtual machine (koan gives the '-m i386' option to virt-install so that a 32-bit VM is created instead of a 64-bit one that is expected).


Version-Release number of selected component (if applicable):


How reproducible:
N/A


Steps to Reproduce:
1.
2.
3.

Actual results:




Expected results:


Additional info:

There are distribution profile data json files stored at /var/lib/cobbler/config/distros.d, and all the ones for x86_64 (ks-rhel-x86_64-server-[56]-*.json) have the entry '"arch": "i386"' instead of '"arch": "x86_64"' in them.

As a result of this, when I try to deploy a virtual machine using koan from a ks profile which specifies any x86_64 distro, koan gets the ks profile's arch as "i386" via the cobbler xmlrpc API and instructs virt-install to create a 32-bit VM with the option '-m i386'. The VM boots off of the 64-bit OS image and complains it does not detect a 64-bit processor necessary to install the 64-bit OS then stops.

If I manually edit one of those files, change the "arch" parameter value to "x86_64" and restart cobblerd, cobbler xmlrpc API returns the correct arch and koan deployment works fine.

As far as I can tell, the arch is incorrectly set to i386 for ALL the x86_64 distros.

Comment 1 Ken Sugawara 2013-10-01 01:40:41 UTC
Created attachment 805673 [details]
proposed patch sample to one of the json files

Comment 2 Grant Gainey 2017-05-16 19:06:09 UTC
No idea when this was fixed in Hosted, but it appears to be corrected now. Closing current-release.