Bug 824143 - cobbler does not recognize fedora17 as a valid OS version
Summary: cobbler does not recognize fedora17 as a valid OS version
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: cobbler
Version: 17
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: James C.
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-22 20:06 UTC by Jonathan DeHaan
Modified: 2012-05-22 22:46 UTC (History)
4 users (show)

Fixed In Version: 2.2.3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-22 22:46:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jonathan DeHaan 2012-05-22 20:06:56 UTC
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 22:46:21 UTC
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.