On 11/23/2009 12:16 PM, Scott Henson wrote:
On 11/23/2009 03:09 PM, Wes Hardin wrote:
> FYI, this is already filed as bug #516
>
>
https://fedorahosted.org/cobbler/ticket/516
>
> On 11/23/2009 12:35 PM, Max Krasnyansky wrote:
>> On 11/23/2009 07:08 AM, Baird, Josh wrote:
>>> FYI – This appears to be a bug in cobbler-web.
>>>
>>> Using the CLI worked:
>>>
>>> cobbler profile edit –repos=”repo1 repo2” –name=profileName.
>>
>> Just wanted to confirm that I'm seeing exact same issue.
>> I'm running
>> cobbler-web-2.0.1-1.fc11.noarch
>> cobbler-2.0.1-1.fc11.noarch
>>
If we could get a copy of the json or cobbler report output for one done
with the WUI and one done via the CLI, that would help track down the
problem. I get the feeling that they are serialized differently and end
up getting deserialized as a type that the ks templates don't expect.
Actually I think it's just a bug in the UI itself. For example I can
make changes to other things (like kernel opts) then save the profile
and the list of repos is still correct. But changes in the list repos
seem to be completely ignored.
Here is a diff of the pretty printed json (using python-simplejson) for
a dummy profile that I just created using UI. I selected
f12-x86_64-everything repo before saving.
'after' is a result of running:
cobbler profile edit --name=xyz --repos=f12-x86_64-everything
--- before 2009-11-23 17:49:23.717630972 -0800
+++ after 2009-11-23 17:49:34.263693476 -0800
@@ -4,12 +4,14 @@
"name_servers_search": [],
"ks_meta": {},
"kernel_options_post": {},
- "repos": [],
+ "repos": [
+ "f12-x86_64-everything"
+ ],
"redhat_management_key": "<<inherit>>",
"virt_path": "",
"kernel_options": {},
"name_servers": [],
- "mtime": 1259027038.549572,
+ "mtime": 1259027168.0007191,
"template_files": {},
"uid": "MTI1OTAyNzAyNy45MzkxMDU5ODguMjgzOTM",
"virt_auto_boot": 0,
Max