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'
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.