Bug 824143 - cobbler does not recognize fedora17 as a valid OS version
cobbler does not recognize fedora17 as a valid OS version
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: cobbler (Show other bugs)
17
x86_64 Linux
unspecified Severity medium
: ---
: ---
Assigned To: James C.
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-22 16:06 EDT by Jonathan DeHaan
Modified: 2012-05-22 18:46 EDT (History)
4 users (show)

See Also:
Fixed In Version: 2.2.3
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-05-22 18:46:21 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jonathan DeHaan 2012-05-22 16:06:56 EDT
User-Agent:       Mozilla/5.0 (X11; Linux x86_64) KHTML/4.8.3 (like Gecko) Konqueror/4.8 Fedora/4.8.3-1.fc17
Build Identifier: 

In cobbler-2.2.2-1.fc17.noarch, running the command "cobbler distro edit --name=fedora17-x86_64 --os=fedora17" produces the following output: "cobbler: error: option --os-version: invalid choice: 'fedora17' (choose from" (and then it lists a lot of OSs, but no fedora17).

When 'fedora17' is added to line 44 of /usr/lib/python2.7/site-packages/cobbler/codes.py and cobblerd restarted, command succeeds.

Reproducible: Always

Steps to Reproduce:
1. Install cobbler.
2. Create distro for fedora17.
3. Set distro breed to 'redhat'
4. Attempt to set os-version to 'fedora17'
Actual Results:  
Cobbler reported that 'fedora17' was not a valid OS version.

Expected Results:  
Cobbler should have set the OS version to 'fedora17'
Comment 1 James C. 2012-05-22 18:46:21 EDT
This is fixed in master and will be released in 2.2.3 (it includes fedora18 as well):


"redhat"  : [ "rhel3", "rhel4", "rhel5", "rhel6", "fedora14", "fedora15", "fedora16", "fedora17", "fedora18", "rawhide", "generic24", "generic26", "virtio26", "other" ],


Ideally in the future, I'm going to move the code away from having these hard-coded values in them to avoid this kind of issue. As you noted, you can easily hand-edit codes.py in the site-packages/cobbler/ directory (restart cobblerd afterward) to add the new value in the mean time.

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