The patch I submitted the other day addresses the first problem - the
last line indicates the error: self.setting.server should be
self.settings.server.
Once I fixed that typo, there was another error because the
"http_port" default setting was an 'int' and not a 'str', so I fixed
that as well by making http_port a string in settings.py. If any
other parts of the code rely on http_port being an integer, it should
be trivial to fix the http_server line.
-- j
On Feb 16, 2008, at 6:35 PM, Stephen John Smoogen wrote:
System is RHEL-5 with cobbler-0.8 updates.
/var/www/cobbler/repo_mirror/rhel-i386-server-cluster-5/getPackage/
system-config-cluster-1.0.50-1.3.noarch.rpm
already exists and appears to be complete
- creating: /var/www/cobbler/repo_mirror/.origin/rhel-i386-server-
cluster-5.repo
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
54, in main
return BootCLI().run(sys.argv)
File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
43, in run
return self.loader.run(args)
File "/usr/lib/python2.4/site-packages/cobbler/commands.py", line
69, in run
return fn.run()
File "/usr/lib/python2.4/site-packages/cobbler/modules/cli_misc.py",
line 227, in run
return self.api.reposync(self.options.only)
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 332,
in reposync
return reposync.run(name)
File "/usr/lib/python2.4/site-packages/cobbler/action_reposync.py",
line 74, in run
self.do_reposync(repo)
File "/usr/lib/python2.4/site-packages/cobbler/action_reposync.py",
line 180, in do_reposync
temp_file = self.create_local_file(repo, temp_path, output=False)
File "/usr/lib/python2.4/site-packages/cobbler/action_reposync.py",
line 247, in create_local_file
http_server = self.setting.server + ":" + self.settings.http_port
AttributeError: RepoSync instance has no attribute 'setting'
Doing this with any repository (using --only=fedora-8-updates for
instance) gives the same error. My guess is that there is a 0.6.5->0.8
config change missing.
This led to another error
[root@snorbtz ~]# cobbler reposync -h
usage: cobbler reposync [ARGS]
options:
-h, --help show this help message and exit
--only=ONLY update only this repository name
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
54, in main
return BootCLI().run(sys.argv)
File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
43, in run
return self.loader.run(args)
File "/usr/lib/python2.4/site-packages/cobbler/commands.py", line
66, in run
loaded_ok = fn.parse_args(args)
File "/usr/lib/python2.4/site-packages/cobbler/commands.py", line
190, in parse_args
(self.options, self.args) = p.parse_args(args)
File "/usr/lib/python2.4/optparse.py", line 1275, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib/python2.4/optparse.py", line 1319, in _process_args
self._process_short_opts(rargs, values)
File "/usr/lib/python2.4/optparse.py", line 1426, in
_process_short_opts
option.process(opt, value, values, self)
File "/usr/lib/python2.4/optparse.py", line 707, in process
return self.take_action(
File "/usr/lib/python2.4/optparse.py", line 729, in take_action
parser.exit()
File "/usr/lib/python2.4/optparse.py", line 1449, in exit
sys.exit(status)
SystemExit: 0
--
Stephen J Smoogen. -- CSIRT/Linux System Administrator
How far that little candle throws his beams! So shines a good deed
in a naughty world. = Shakespeare. "The Merchant of Venice"
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools