[opensuse-buildservice] osc error in version 6302S
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@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Thursday 12 February 2009 14:53:37 schrieb Jan-Simon Möller:
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
Ping - any idea ? -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2009-02-17 17:07:37 +0100, Jan-Simon Möller wrote:
Am Thursday 12 February 2009 14:53:37 schrieb Jan-Simon Möller: Ping - any idea ?
I'm working on it but I'm quite busy this week. I'll probably commit a fix this weekend. Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2009-02-17 17:18:56 +0100, Marcus Hüwe wrote:
On 2009-02-17 17:07:37 +0100, Jan-Simon Möller wrote:
Am Thursday 12 February 2009 14:53:37 schrieb Jan-Simon Möller: Ping - any idea ?
I'm working on it but I'm quite busy this week. I'll probably commit a fix this weekend.
It took a bit longer because I cleaned up some other parts too but it's fixed in r6547 now. Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Jan-Simon Möller
-
Marcus Hüwe