Hello Everyone, space_cmd failing to import *.json configuration channel when file type "Directory" is created under the channel, because key contents is empty or not exist. Command: spacecmd -d configchannel_import oel6-general.json -u rhn_update Error: ERROR: redstone.xmlrpc.XmlRpcFault: Invalid argument(s): contents Fix: /usr/lib/python2.6/site-packages/spacecmd/configchannel.py 1067 if filedetails['type'] == 'directory': 1068 isdir = True 1069 if filedetails.has_key('contents'): 1070 del filedetails['contents']
repaired in commit: 26ba75d31fb7aa5bed167245a891ad28d508facb
Used this file for testing: https://bugzilla.redhat.com/attachment.cgi?id=990404&action=edit # spacecmd -u <user> -p <pass> -- configchannel_import db-postgresql-wal-el7.json INFO: Spacewalk Username: <user> INFO: Connected to https://<fqdn>/rpc/api as admin INFO: Importing config channel Database PostgreSQL WAL EL7 INFO: Found file /var/lib/pgsql/data/postgresql.conf for cc Database PostgreSQL WAL EL7 INFO: Found directory /var/lib/pgsql/data/wal-archive for cc Database PostgreSQL WAL EL7 Import worked and on webUI I can see 1 file and 1 directory in the created config channel. I have tested on both SWnightly@OracleXE10@RHEL6 and SWnightly@PostgreSQL@RHEL7 (spacecmd-2.6.16-1.el6).
Spacewalk 2.7 has been released. https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes27