i've found that when using the webui to edit / add ksmeta values that include 
spaces, i have to enclose them in quotes.  when you reload the page however the 
quotes aren't saved, so every time you load a page with spaces in the values 
you have to re-add the quotes.

in my case it happens when i use ksmeta params to define the domain search 
order for /etc/resolv.conf.  so i'm forced to enclose the domains as such:
dns_search="sub.domain.com domain.com"

i only see this in the webui.  the command line works just fine without quotes, 
IIRC.


byron

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Joshua J. Kugler
Sent: Monday, February 27, 2012 10:50 PM
To: cobbler mailing list
Subject: [cobbler] Data storage locations for cobbler and/or why does it 
corrupt form data?

Besides /var/lib/cobbler, where does cobbler store data?

I ended up with some corrupted data in Kickstart Metadata that refused to be 
fixed when I saved the form. I stopped httpd, edited the json file (this is a 
profile), deleted the webui_sessions, restarted httpd, but when I pull up the 
profiles, it still shows the old, broken KS metadata. 
Tried in another browser, tried reloading the page. It's still correct on 
disk...why is it displaying incorrectly in the web UI?

BTW, two profiles (with the same strings in the JSON file) display it 
correctly, but two profiles show it broken.

So, more fiddling.  I enter this in the field:

chef_args=-j
http://build.lab.whamcloud.com:8080/job/infra_lab/lastSuccessfulBuild/artifact/chef/solo/iu_jenkins_builder.json

(that's all one line) hit save, and it displays correctly.

I then add this to the end:

user_packages=@Development Tools,koan

and save, and it displays like this:

chef_args=-j user_packages=@Development 
http://build.lab.whamcloud.com:8080/job/infra_lab/lastSuccessfulBuild/artifact/chef/solo/iu_jenkins_builder.json
Tools,koan 

Why? Why does it split it up like that? Why does it not just same the string, 
as entered, into the JSON file?  And the crazy thing is, in two other profiles, 
it saves, and displays, correctly.

Any ideas?

j

--
Joshua J. Kugler - Fairbanks, Alaska
Azariah Enterprises - Programming and Website Design [email protected] - 
Jabber: [email protected] PGP Key: http://pgp.mit.edu/  ID 0x73B13B6A 
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to