[cobbler] Problems with writing systems through the XMLRPC API using perl XML::RPC or XMLRPC::Lite
Jason Barlow
jbarlow at central1.com
Tue Nov 13 20:07:51 UTC 2012
Solved:
The problem was that I wasn't calling enough methods before calling save_system.
The same code saves the system if I add a modify_system 'network' or a modify_system 'profile' after modifying the hostname.
Thx!
From: Jason Barlow
Sent: Friday, November 09, 2012 9:30 AM
To: cobbler mailing list
Subject: RE: [cobbler] Problems with writing systems through the XMLRPC API using perl XML::RPC or XMLRPC::Lite
Thanks for the suggestion.
I'm now checking the return values, and I've removed a failing 'modify_system call'. Everything checks out ok according to the return values, and I'm able to read stuff just fine, but the writes just are not taking.
Output:
new system id is ___NEW___system::G2EjtpYQF6V3eb+WvYbocQcEFSqEOEBoCg==
modify name:1
modify hostname: 1
save system: 1
sync:1
[root at spacewalk cobbler]# cobbler system list | grep vacsld01test
[root at vspacewalk cobbler]#
More information about the cobbler
mailing list