Hello community,

here is the log from the commit of package python-glanceclient for 
openSUSE:Factory checked in at 2013-10-02 13:32:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-glanceclient (Old)
 and      /work/SRC/openSUSE:Factory/.python-glanceclient.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-glanceclient"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-glanceclient/python-glanceclient.changes  
2013-09-25 14:37:31.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-glanceclient.new/python-glanceclient.changes 
    2013-10-02 13:32:47.000000000 +0200
@@ -1,0 +2,6 @@
+Thu Sep 26 09:58:14 UTC 2013 - [email protected]
+
+- Update to version 0.10.0.21:
+  + Support glance client can get ipv6 image url correctly
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-glanceclient.spec ++++++
--- /var/tmp/diff_new_pack.aszmx9/_old  2013-10-02 13:32:47.000000000 +0200
+++ /var/tmp/diff_new_pack.aszmx9/_new  2013-10-02 13:32:47.000000000 +0200
@@ -19,7 +19,7 @@
 %define component glanceclient
 
 Name:           python-glanceclient
-Version:        0.10.0.19
+Version:        0.10.0.21
 Release:        0
 Summary:        Openstack Image (Glance) API Client
 License:        Apache-2.0
@@ -80,7 +80,7 @@
 This package contains testsuite files for %{name}.
 
 %prep
-%setup -q -n python-glanceclient-0.10.0.19.g360a29a
+%setup -q -n python-glanceclient-0.10.0.21.g7a4a8a0
 %openstack_cleanup_prep
 # Our package versioning scheme is different (but we provide the correct 
thing) thus:
 sed -i "s|python-keystoneclient>=0.1.2,<1|python-keystoneclient|" 
requirements.txt

++++++ python-glanceclient-master.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-glanceclient-0.10.0.19.g360a29a/AUTHORS 
new/python-glanceclient-0.10.0.21.g7a4a8a0/AUTHORS
--- old/python-glanceclient-0.10.0.19.g360a29a/AUTHORS  2013-09-19 
19:56:21.000000000 +0200
+++ new/python-glanceclient-0.10.0.21.g7a4a8a0/AUTHORS  2013-09-25 
22:02:45.000000000 +0200
@@ -18,6 +18,7 @@
 Davanum Srinivas <[email protected]>
 David Peraza <[email protected]>
 David Wittman <[email protected]>
+Dazhao <[email protected]>
 Dean Troyer <[email protected]>
 Diego Parrilla <[email protected]>
 Dirk Mueller <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-glanceclient-0.10.0.19.g360a29a/ChangeLog 
new/python-glanceclient-0.10.0.21.g7a4a8a0/ChangeLog
--- old/python-glanceclient-0.10.0.19.g360a29a/ChangeLog        2013-09-19 
19:56:21.000000000 +0200
+++ new/python-glanceclient-0.10.0.21.g7a4a8a0/ChangeLog        2013-09-25 
22:02:45.000000000 +0200
@@ -1,3 +1,10 @@
+commit 7a4a8a0979fd76203f0cb81622a7f06ee42bb615
+Merge: 360a29a 061da46
+Author: Jenkins <[email protected]>
+Date:   Wed Sep 25 20:01:58 2013 +0000
+
+    Merge "Support glance client can get ipv6 image url correctly"
+
 commit 360a29a763ba89323fb2d501ac1edd77185f418f
 Merge: 897ae3d 3307549
 Author: Jenkins <[email protected]>
@@ -5,6 +12,20 @@
 
     Merge "Use openstack-images-v2.1-json-patch for update method"
 
+commit 061da46202759f55866d224f9ab8013e747637c7
+Author: Dazhao <[email protected]>
+Date:   Wed Aug 21 12:54:19 2013 +0800
+
+    Support glance client can get ipv6 image url correctly
+    
+    This patch is for fix bug 1208784. In openstack ipv6 environment,
+    if the os image url is not provided, need use the provided host
+    to generate literal ipv6 image url.
+    
+    Fixes bug 1208784
+    
+    Change-Id: Icb71241a639db02d079348f086bd7bd5f0412609
+
 commit 897ae3d795423a0f1d92f0738ad4dff99c28c6de
 Author: Fei Long Wang <[email protected]>
 Date:   Sun Aug 11 11:02:32 2013 +0800
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-glanceclient-0.10.0.19.g360a29a/PKG-INFO 
new/python-glanceclient-0.10.0.21.g7a4a8a0/PKG-INFO
--- old/python-glanceclient-0.10.0.19.g360a29a/PKG-INFO 2013-09-19 
19:56:21.000000000 +0200
+++ new/python-glanceclient-0.10.0.21.g7a4a8a0/PKG-INFO 2013-09-25 
22:02:45.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: python-glanceclient
-Version: 0.10.0.19.g360a29a
+Version: 0.10.0.21.g7a4a8a0
 Summary: OpenStack Image API Client Library
 Home-page: http://www.openstack.org/
 Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python-glanceclient-0.10.0.19.g360a29a/glanceclient/shell.py 
new/python-glanceclient-0.10.0.21.g7a4a8a0/glanceclient/shell.py
--- old/python-glanceclient-0.10.0.19.g360a29a/glanceclient/shell.py    
2013-09-19 19:55:47.000000000 +0200
+++ new/python-glanceclient-0.10.0.21.g7a4a8a0/glanceclient/shell.py    
2013-09-25 22:02:10.000000000 +0200
@@ -23,6 +23,7 @@
 import sys
 
 from keystoneclient.v2_0 import client as ksclient
+import netaddr
 
 import glanceclient
 from glanceclient import exc
@@ -347,6 +348,9 @@
         if args.os_image_url:
             return args.os_image_url
         elif args.host:
+            # Check if it is legal ipv6 address, if so, need wrap it with '[]'
+            if netaddr.valid_ipv6(args.host):
+                args.host = '[%s]' % args.host
             scheme = 'https' if args.use_ssl else 'http'
             return '%s://%s:%s/' % (scheme, args.host, args.port)
         else:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python-glanceclient-0.10.0.19.g360a29a/python_glanceclient.egg-info/PKG-INFO
 
new/python-glanceclient-0.10.0.21.g7a4a8a0/python_glanceclient.egg-info/PKG-INFO
--- 
old/python-glanceclient-0.10.0.19.g360a29a/python_glanceclient.egg-info/PKG-INFO
    2013-09-19 19:56:21.000000000 +0200
+++ 
new/python-glanceclient-0.10.0.21.g7a4a8a0/python_glanceclient.egg-info/PKG-INFO
    2013-09-25 22:02:45.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: python-glanceclient
-Version: 0.10.0.19.g360a29a
+Version: 0.10.0.21.g7a4a8a0
 Summary: OpenStack Image API Client Library
 Home-page: http://www.openstack.org/
 Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/python-glanceclient-0.10.0.19.g360a29a/tests/test_shell.py 
new/python-glanceclient-0.10.0.21.g7a4a8a0/tests/test_shell.py
--- old/python-glanceclient-0.10.0.19.g360a29a/tests/test_shell.py      
2013-09-19 19:55:47.000000000 +0200
+++ new/python-glanceclient-0.10.0.21.g7a4a8a0/tests/test_shell.py      
2013-09-25 22:02:10.000000000 +0200
@@ -80,3 +80,14 @@
             add_help=False,
             formatter_class=openstack_shell.HelpFormatter,)
         self.assertTrue(expected, actual_parser)
+
+    def test_get_image_url_by_ipv6Addr_host(self):
+        fake_args = lambda: None
+        setattr(fake_args, 'os_image_url', None)
+        setattr(fake_args, 'host', '2011:2013:1:f101::1')
+        setattr(fake_args, 'use_ssl', True)
+        setattr(fake_args, 'port', '9292')
+        expected_image_url = 'https://[2011:2013:1:f101::1]:9292/'
+        test_shell = openstack_shell.OpenStackImagesShell()
+        targeted_image_url = test_shell._get_image_url(fake_args)
+        self.assertEqual(expected_image_url, targeted_image_url)

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to