Bug 1013879 - distribution profile json files for x86_64 distros incorrect
Summary: distribution profile json files for x86_64 distros incorrect
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Grant Gainey
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: 462714
TreeView+ depends on / blocked
 
Reported: 2013-10-01 01:36 UTC by Ken Sugawara
Modified: 2017-05-16 19:06 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-16 19:06:09 UTC
Target Upstream Version:


Attachments (Terms of Use)
proposed patch sample to one of the json files (1.68 KB, patch)
2013-10-01 01:40 UTC, Ken Sugawara
no flags Details | Diff

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.


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