Hello community, here is the log from the commit of package python-heatclient for openSUSE:Factory checked in at 2013-09-16 12:45:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-heatclient (Old) and /work/SRC/openSUSE:Factory/.python-heatclient.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-heatclient" Changes: -------- --- /work/SRC/openSUSE:Factory/python-heatclient/python-heatclient.changes 2013-08-18 22:40:06.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-heatclient.new/python-heatclient.changes 2013-09-16 12:45:26.000000000 +0200 @@ -1,0 +2,24 @@ +Wed Aug 28 23:57:59 UTC 2013 - opensuse-cl...@opensuse.org + +- Update to version 0.2.4.10: + + Add X-Region-Name parameter in HTTP request + +------------------------------------------------------------------- +Tue Aug 27 00:01:23 UTC 2013 - opensuse-cl...@opensuse.org + +- Update to version 0.2.4.8: + + Rename event logical_resource_id to resource_name + +------------------------------------------------------------------- +Mon Aug 26 00:02:10 UTC 2013 - opensuse-cl...@opensuse.org + +- Update to version 0.2.4.7: + + Do not obscure Unauthorized error messages + +------------------------------------------------------------------- +Sat Aug 24 00:08:28 UTC 2013 - opensuse-cl...@opensuse.org + +- Update to version 0.2.4.5: + + Apply OS_REGION_NAME for endpoint selection + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-heatclient.spec ++++++ --- /var/tmp/diff_new_pack.BUmvT6/_old 2013-09-16 12:45:27.000000000 +0200 +++ /var/tmp/diff_new_pack.BUmvT6/_new 2013-09-16 12:45:27.000000000 +0200 @@ -19,7 +19,7 @@ %define component heatclient Name: python-%{component} -Version: 0.2.4.4 +Version: 0.2.4.10 Release: 0 Summary: Openstack Orchestration (Heat) API Client License: Apache-2.0 @@ -85,7 +85,7 @@ This package contains testsuite files for %{name}. %prep -%setup -q -n python-heatclient-0.2.4.4.gc0457ff +%setup -q -n python-heatclient-0.2.4.10.ga5d7108 %openstack_cleanup_prep echo %{version} > heatclient/versioninfo ++++++ python-heatclient-master.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-heatclient-0.2.4.4.gc0457ff/AUTHORS new/python-heatclient-0.2.4.10.ga5d7108/AUTHORS --- old/python-heatclient-0.2.4.4.gc0457ff/AUTHORS 2013-08-13 22:57:53.000000000 +0200 +++ new/python-heatclient-0.2.4.10.ga5d7108/AUTHORS 2013-08-27 17:38:02.000000000 +0200 @@ -9,8 +9,10 @@ Jianing YANG <jiani...@unitedstack.com> Lin Hua Cheng <lin-hua.ch...@hp.com> Monty Taylor <mord...@inaugust.com> +Nachi Ueno <na...@ntti3.com> Simon Pasquier <pasquier.si...@gmail.com> Steve Baker <sba...@redhat.com> Steven Dake <sd...@redhat.com> Steven Hardy <sha...@redhat.com> Sulochan Acharya <suloc...@gmail.com> +Swann Croiset <swann.croi...@bull.net> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-heatclient-0.2.4.4.gc0457ff/ChangeLog new/python-heatclient-0.2.4.10.ga5d7108/ChangeLog --- old/python-heatclient-0.2.4.4.gc0457ff/ChangeLog 2013-08-13 22:57:53.000000000 +0200 +++ new/python-heatclient-0.2.4.10.ga5d7108/ChangeLog 2013-08-27 17:38:02.000000000 +0200 @@ -1,3 +1,74 @@ +commit a5d71080efc63a174d77614c9d816a7d86423971 +Merge: 6f99131 1426237 +Author: Jenkins <jenk...@review.openstack.org> +Date: Tue Aug 27 15:35:58 2013 +0000 + + Merge "Add X-Region-Name parameter in HTTP request" + +commit 6f99131805eafa2965a08d498fd6816c60ed935f +Author: Swann Croiset <swann.croi...@bull.net> +Date: Mon Aug 26 15:08:05 2013 +0200 + + Rename event logical_resource_id to resource_name + + Required by Heat change (https://review.openstack.org/#/c/43391/) + + fixe bug #1216903 + + Change-Id: I77201348df401d5bafc7109bb4d032dd071468d8 + +commit 0b2122eae144a046a8dce9ed944b8ccdd5e957c3 +Merge: e540b68 e81f590 +Author: Jenkins <jenk...@review.openstack.org> +Date: Sun Aug 25 23:21:18 2013 +0000 + + Merge "Do not obscure Unauthorized error messages" + +commit 1426237c38792bcf62521f959157501b9c6d50ea +Author: Nachi Ueno <na...@ntti3.com> +Date: Thu Aug 22 14:43:34 2013 -0700 + + Add X-Region-Name parameter in HTTP request + + In order to specify region_name, we let client send + the OS_REGION_NAME in header file + + Fixes bug 1213291 + + Change-Id: Ie44f700ca7e412c2504b6b8faac3fd65d4fd744b + +commit e540b684166a9f7adfe862da5184517c87b3dcae +Author: Nachi Ueno <na...@ntti3.com> +Date: Thu Aug 22 11:54:05 2013 -0700 + + Apply OS_REGION_NAME for endpoint selection + + Even if we got OS_REGION_NAME on CLI, the value is not used. + In this commit, we apply OS_REGION_NAME for endpoint + selection. + + Fixes bug 1215588 + + Change-Id: Ib2e2f655282b2730a9a3b7337e56993253972ce1 + +commit e81f590ea92270f382583c01839e9882a375153c +Author: Steve Baker <sba...@redhat.com> +Date: Tue Aug 20 15:25:29 2013 +1200 + + Do not obscure Unauthorized error messages + + All Unauthorized exceptions are currently trapped and + the following message is printed: + Invalid OpenStack Identity credentials. + + This is unhelpful now that heat-api is providing structured + errors with (sometimes) helpful context for authorization failures. + + This change removes this error trapping and prints the intended + error message. + + Change-Id: Ibd943deb1f365e5f212225be1e675beb14accf97 + commit c0457ff0d4f7c603dfd60101a76797e9fae92dc4 Merge: 2d1592e 68999ba Author: Jenkins <jenk...@review.openstack.org> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-heatclient-0.2.4.4.gc0457ff/PKG-INFO new/python-heatclient-0.2.4.10.ga5d7108/PKG-INFO --- old/python-heatclient-0.2.4.4.gc0457ff/PKG-INFO 2013-08-13 22:57:53.000000000 +0200 +++ new/python-heatclient-0.2.4.10.ga5d7108/PKG-INFO 2013-08-27 17:38:03.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: python-heatclient -Version: 0.2.4.4.gc0457ff +Version: 0.2.4.10.ga5d7108 Summary: OpenStack Orchestration API Client Library Home-page: http://www.openstack.org/ Author: OpenStack diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-heatclient-0.2.4.4.gc0457ff/heatclient/common/http.py new/python-heatclient-0.2.4.10.ga5d7108/heatclient/common/http.py --- old/python-heatclient-0.2.4.4.gc0457ff/heatclient/common/http.py 2013-08-13 22:57:12.000000000 +0200 +++ new/python-heatclient-0.2.4.10.ga5d7108/heatclient/common/http.py 2013-08-27 17:37:22.000000000 +0200 @@ -53,6 +53,7 @@ self.auth_token = kwargs.get('token') self.username = kwargs.get('username') self.password = kwargs.get('password') + self.region_name = kwargs.get('region_name') self.connection_params = self.get_connection_params(endpoint, **kwargs) @staticmethod @@ -135,6 +136,8 @@ kwargs['headers'].update(self.credentials_headers()) if self.auth_url: kwargs['headers'].setdefault('X-Auth-Url', self.auth_url) + if self.region_name: + kwargs['headers'].setdefault('X-Region-Name', self.region_name) self.log_curl_request(method, url, kwargs) conn = self.get_connection() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-heatclient-0.2.4.4.gc0457ff/heatclient/shell.py new/python-heatclient-0.2.4.10.ga5d7108/heatclient/shell.py --- old/python-heatclient-0.2.4.4.gc0457ff/heatclient/shell.py 2013-08-13 22:57:12.000000000 +0200 +++ new/python-heatclient-0.2.4.10.ga5d7108/heatclient/shell.py 2013-08-27 17:37:22.000000000 +0200 @@ -224,6 +224,12 @@ def _get_endpoint(self, client, **kwargs): """Get an endpoint using the provided keystone client.""" + if kwargs.get('region_name'): + return client.service_catalog.url_for( + service_type=kwargs.get('service_type') or 'orchestration', + attr='region', + filter_value=kwargs.get('region_name'), + endpoint_type=kwargs.get('endpoint_type') or 'publicURL') return client.service_catalog.url_for( service_type=kwargs.get('service_type') or 'orchestration', endpoint_type=kwargs.get('endpoint_type') or 'publicURL') @@ -316,15 +322,15 @@ 'password': args.os_password } + if args.os_region_name: + kwargs['region_name'] = args.os_region_name + if not endpoint: endpoint = self._get_endpoint(_ksclient, **kwargs) client = heatclient.Client(api_version, endpoint, **kwargs) - try: - args.func(client, args) - except exc.Unauthorized: - raise exc.CommandError("Invalid OpenStack Identity credentials.") + args.func(client, args) @utils.arg('command', metavar='<subcommand>', nargs='?', help='Display help for <subcommand>') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-heatclient-0.2.4.4.gc0457ff/heatclient/tests/test_common_http.py new/python-heatclient-0.2.4.10.ga5d7108/heatclient/tests/test_common_http.py --- old/python-heatclient-0.2.4.4.gc0457ff/heatclient/tests/test_common_http.py 2013-08-13 22:57:12.000000000 +0200 +++ new/python-heatclient-0.2.4.10.ga5d7108/heatclient/tests/test_common_http.py 2013-08-27 17:37:22.000000000 +0200 @@ -100,6 +100,30 @@ self.assertEqual(resp.status, 200) self.m.VerifyAll() + def test_region_name(self): + # Record a 200 + fake200 = fakes.FakeHTTPResponse( + 200, 'OK', + {'content-type': 'application/octet-stream'}, + '') + + # Specify region name + mock_conn = http.httplib.HTTPConnection('example.com', 8004, + timeout=600.0) + mock_conn.request('GET', '/', + headers={'Content-Type': 'application/octet-stream', + 'X-Region-Name': 'RegionOne', + 'User-Agent': 'python-heatclient'}) + mock_conn.getresponse().AndReturn(fake200) + + # Replay, create client, assert + self.m.ReplayAll() + client = http.HTTPClient('http://example.com:8004') + client.region_name = 'RegionOne' + resp, body = client.raw_request('GET', '') + self.assertEqual(resp.status, 200) + self.m.VerifyAll() + def test_http_json_request(self): # Record a 200 mock_conn = http.httplib.HTTPConnection('example.com', 8004, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-heatclient-0.2.4.4.gc0457ff/heatclient/tests/test_shell.py new/python-heatclient-0.2.4.10.ga5d7108/heatclient/tests/test_shell.py --- old/python-heatclient-0.2.4.4.gc0457ff/heatclient/tests/test_shell.py 2013-08-13 22:57:12.000000000 +0200 +++ new/python-heatclient-0.2.4.10.ga5d7108/heatclient/tests/test_shell.py 2013-08-27 17:37:22.000000000 +0200 @@ -65,7 +65,7 @@ sys.stderr = cStringIO.StringIO() _shell = heatclient.shell.HeatShell() _shell.main(argstr.split()) - except exc.CommandError as e: + except Exception as e: self.assertRegexpMatches(e.__str__(), error_match) else: self.fail('Expected error matching: %s' % error_match) @@ -165,8 +165,9 @@ self.m.StubOutWithMock(ksclient, 'Client') self.m.StubOutWithMock(v1client.Client, 'json_request') fakes.script_keystone_client() + failed_msg = 'Unable to authenticate user with credentials provided' v1client.Client.json_request( - 'GET', '/stacks?').AndRaise(exc.Unauthorized) + 'GET', '/stacks?').AndRaise(exc.Unauthorized(failed_msg)) self.m.ReplayAll() fake_env = { @@ -176,7 +177,7 @@ 'OS_AUTH_URL': 'http://no.where', } self.set_fake_env(fake_env) - self.shell_error('list', 'Invalid OpenStack Identity credentials.') + self.shell_error('list', failed_msg) def test_create_validation(self): self.m.StubOutWithMock(ksclient, 'Client') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-heatclient-0.2.4.4.gc0457ff/heatclient/v1/shell.py new/python-heatclient-0.2.4.10.ga5d7108/heatclient/v1/shell.py --- old/python-heatclient-0.2.4.4.gc0457ff/heatclient/v1/shell.py 2013-08-13 22:57:12.000000000 +0200 +++ new/python-heatclient-0.2.4.10.ga5d7108/heatclient/v1/shell.py 2013-08-27 17:37:22.000000000 +0200 @@ -333,7 +333,7 @@ except exc.HTTPNotFound: raise exc.CommandError('Stack not found: %s' % args.id) else: - fields = ['logical_resource_id', 'resource_type', + fields = ['resource_name', 'resource_type', 'resource_status', 'updated_time'] utils.print_list(resources, fields, sortby=3) @@ -416,7 +416,7 @@ except exc.HTTPNotFound: raise exc.CommandError('Stack not found: %s' % args.id) else: - fields = ['logical_resource_id', 'id', 'resource_status_reason', + fields = ['resource_name', 'id', 'resource_status_reason', 'resource_status', 'event_time'] utils.print_list(events, fields) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/python-heatclient-0.2.4.4.gc0457ff/python_heatclient.egg-info/PKG-INFO new/python-heatclient-0.2.4.10.ga5d7108/python_heatclient.egg-info/PKG-INFO --- old/python-heatclient-0.2.4.4.gc0457ff/python_heatclient.egg-info/PKG-INFO 2013-08-13 22:57:53.000000000 +0200 +++ new/python-heatclient-0.2.4.10.ga5d7108/python_heatclient.egg-info/PKG-INFO 2013-08-27 17:38:02.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: python-heatclient -Version: 0.2.4.4.gc0457ff +Version: 0.2.4.10.ga5d7108 Summary: OpenStack Orchestration API Client Library Home-page: http://www.openstack.org/ Author: OpenStack -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org