Mailinglist Archive: opensuse-buildservice (189 mails)

< Previous Next >
[opensuse-buildservice] osc error in version 6302S
  • From: "Jan-Simon Möller" <dl9pf@xxxxxx>
  • Date: Thu, 12 Feb 2009 14:53:37 +0100
  • Message-id: <200902121453.38024.dl9pf@xxxxxx>
I use osc with a local instance.

2 issues came up in this setup:

1) login data for public obs are requrested also if -A<host> is given (so no
connection / data for build.o.o needed!)
2) oops / traceback ( but after that osc ls runs )

User starts osc for the first time ...


jsmoeller@host:~> osc -Ahttp://<somehostname> ls

Your user account / password are not configured yet.
You will be asked for them below, and they will be stored in
/home/jsmoeller/.oscrc for future use.

Creating osc configuration file /home/jsmoeller/.oscrc ...
Username:
Password:
done

the apiurl '<somehostname>' does not exist in the config file. Please enter
your credentials for this apiurl.

Username: jsmoeller
Password:
Traceback (most recent call last):
File "/usr/bin/osc", line 12, in <module>
r = babysitter.run(osccli)
File "/usr/lib/python2.5/site-packages/osc/babysitter.py", line 40, in run
return prg.main()
File "/usr/lib/python2.5/site-packages/osc/cmdln.py", line 256, in main
return self.cmd(args)
File "/usr/lib/python2.5/site-packages/osc/cmdln.py", line 279, in cmd
retval = self.onecmd(argv)
File "/usr/lib/python2.5/site-packages/osc/cmdln.py", line 395, in onecmd
return self._dispatch_cmd(handler, argv)
File "/usr/lib/python2.5/site-packages/osc/cmdln.py", line 1070, in
_dispatch_cmd
return handler(argv[0], opts, *args)
File "/usr/lib/python2.5/site-packages/osc/commandline.py", line 209, in
do_list
print '\n'.join(meta_get_project_list(conf.config['apiurl']))
File "/usr/lib/python2.5/site-packages/osc/core.py", line 1597, in
meta_get_project_list
f = http_GET(u)
File "/usr/lib/python2.5/site-packages/osc/core.py", line 1493, in http_GET
def http_GET(*args, **kwargs): return http_request('GET', *args,
**kwargs)
File "/usr/lib/python2.5/site-packages/osc/core.py", line 1442, in
http_request
api_host_options=conf.get_apiurl_api_host_options(url)
File "/usr/lib/python2.5/site-packages/osc/conf.py", line 161, in
get_apiurl_api_host_options
return config['api_host_options'][apisrv]
KeyError: 'http://<somehostname>'

(<somehostname> is a real dns name)


Best regards,
Jan-Simon
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups