Chris Weaver wrote:
So far so good, except after the upgrade I get little "u"s in front of many fields in distros, repos, profiles, and systems. I removed and readded profiles and systems and they are still there. For example:
owners : [u'admin'] ks metadata : {u'ntpservers': u'172.24.184.2,172.24.184.3', u'nodetype': u'single'} name servers : [u'172.24.170.200,172.24.170.201']
Is this normal?
Yes, it's ok, this just means things are being saved as unicode data types underneath. Ideally the "report" should make things not show this though. We should look at cleaning this up for later. I suspect we'll have to make a function like "format_list" and "format_hash" for the web app to make report look nicer. It is side effect of the json switch on some systems.
A side point though -- Your name servers field is a little wrong, probably a result from when we used to save that a comma delimited string in previous versions (there were some bugs about this particular field, and pretty much only this field, in 1.4.X). In newer versions it's stored as an array so it can be processed appropriately. Cobbler's CLI and web app now accept input uniformly as space delimited strings and save things that are lists as actual lists.
The u's in the output, anyway, is a minor bug -- I'll open a Trac item on it -- but your configuration, once you fix the nameserver item, should be fine.
--Michael
On Fri, Mar 27, 2009 at 7:56 PM, Jeff Schroeder jeffschroed@gmail.com wrote:
On Fri, Mar 27, 2009 at 4:45 PM, Michael DeHaan mdehaan@redhat.com wrote:
Jeff Schroeder wrote:
On Fri, Mar 27, 2009 at 4:40 PM, Michael DeHaan mdehaan@redhat.com wrote:
I am reading the above "as it works" and "it doesn't"... can you clarify? My brain may not be working well.
Works on fedora 10 and fails with that traceback on CentOS 5
It is probably a function of the underlying data rather than the libraries involved.
Be sure "yaml" is /not/ in site-packages if you did a non-RPM install at any point in the past.
Also find what files have "!lang" in them and paste them... it may be that they are not in the right syntax because they were originally were written out by the old YAML implementation, which would be annoying. If the parser doesn't like it, intervention may be required.
You can probably quote "!lang" and make it happy, but I'd need to see the whole context to be sure.
It was a Fedora 9 profile.d file that was complaining. Sure enough commenting it out fixed the problem. Thanks
-- Jeff Schroeder
Don't drink and derive, alcohol and analysis don't mix. http://www.digitalprognosis.com _______________________________________________ cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler