Bug 765155 (GLUSTER-3423)

Summary: UFO beta1/beta2 compatibilty.
Product: [Community] GlusterFS Reporter: Gaurav <ggangalw>
Component: object-storageAssignee: Junaid <junaid>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.1.3CC: gluster-bugs, saurabh, vagarwal
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Gaurav 2011-08-16 12:06:22 UTC

Comment 1 Saurabh 2011-08-20 11:21:28 UTC
Case 1:
 trying upgrade.py while already working on beta2
 result: fails, but while displaying whole code.

[root@Centos1 ufo.git]# python2.6 upgrade.py
Enter the ADMIN_URL:https://10.1.12.25.443/auth           
Enter the ADMIN_KEY:srj
Retrieving data..
Upgrading data..
Traceback (most recent call last):
  File "/usr/bin/gluster-object-prep", line 5, in <module>
    pkg_resources.run_script('swift==1.4-dev', 'gluster-object-prep')
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 461, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1194, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/lib/python2.6/site-packages/swift-1.4_dev-py2.6.egg/EGG-INFO/scripts/gluster-object-prep", line 63, in <module>
    ssl=(parsed.scheme == 'https'))
  File "/usr/lib/python2.6/site-packages/swift-1.4_dev-py2.6.egg/swift/common/bufferedhttp.py", line 168, in http_connect_raw
    conn.endheaders()
  File "/usr/lib64/python2.6/httplib.py", line 904, in endheaders
    self._send_output()
  File "/usr/lib64/python2.6/httplib.py", line 776, in _send_output
    self.send(msg)
  File "/usr/lib64/python2.6/httplib.py", line 735, in send
    self.connect()
  File "/usr/lib64/python2.6/httplib.py", line 1108, in connect
    sock = socket.create_connection((self.host, self.port), self.timeout)
  File "/usr/lib/python2.6/site-packages/eventlet-0.9.16-py2.6.egg/eventlet/green/socket.py", line 43, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket.gaierror: [Errno -2] Name or service not known
('gluster-object-prep -K srj -A https://10.1.12.25.443/auth failed, aborting upgrade.',)
Reverting the changes
Cleaning up temporary files and directories


case2:
   upgrading from beta1 and giving wrong key 
   result: fails gracefully
  
[root@Centos1 ufo.git]# python2.6 upgrade.py
Enter the ADMIN_URL:https://10.1.12.25:443/auth
Enter the ADMIN_KEY:jjjjjjj
Retrieving data..
Upgrading data..
Auth subsystem prep failed: 403 Forbidden
('gluster-object-prep -K jjjjjjj -A https://10.1.12.25:443/auth failed, aborting upgrade.',)
Reverting the changes
Cleaning up temporary files and directories

case3:
     upgrading from beta1 while giving wrong adming url,
     result: fails gracefully.

[root@Centos1 ufo.git]# python2.6 upgrade.py
Enter the ADMIN_URL:https://10.1.12.26:443/auth
Enter the ADMIN_KEY:srj
Retrieving data..
Upgrading data..
Auth subsystem prep failed: 500 Server Error
('gluster-object-prep -K srj -A https://10.1.12.26:443/auth failed, aborting upgrade.',)
Reverting the changes
Cleaning up temporary files and directories


case4: 
    upgrading from beta1 while giving correct information for admin_url and key,
    result: fails, with this result,

    [root@Centos1 ufo.git]# python2.6 upgrade.py 
Enter the ADMIN_URL:https://10.1.12.25:443/auth
Enter the ADMIN_KEY:srj
Retrieving data..
Upgrading data..
Usage: gluster-object-add-user [options] <account> <user> <password> <uid> <gid>

gluster-object-add-user: error: no such option: -1
Usage: gluster-object-add-user [options] <account> <user> <password> <uid> <gid>

gluster-object-add-user: error: no such option: -1
Usage: gluster-object-add-user [options] <account> <user> <password> <uid> <gid>

gluster-object-add-user: error: no such option: -1
Usage: gluster-object-add-user [options] <account> <user> <password> <uid> <gid>

gluster-object-add-user: error: no such option: -1
Restoring the services..
Cleaning up temporary files and directories

Comment 2 Saurabh 2011-08-20 11:23:36 UTC
mount information,

glusterfs#localhost:test on /mnt/swift/test type fuse (rw,allow_other,default_permissions,max_read=131072)


glusterfs#localhost:test on /mnt/gluster-object/AUTH_a0d83bf31949951cc76352095fa29501 type fuse (rw,allow_other,default_permissions,max_read=131072)


glusterfs#localhost:auth on /mnt/swift/auth type fuse (rw,allow_other,default_permissions,max_read=131072)

glusterfs#localhost:/auth on /tmp/tmpJk1yDn type fuse (rw,allow_other,default_permissions,max_read=131072)


[root@Centos1 ufo.git]# ls /tmp/tmpJk1yDn/tmplLgRhJ/test
tester  tester1  tester2  tester3

Comment 3 Junaid 2011-08-20 14:48:11 UTC
Saurabh,

To investigate the case 4 further, can you please paste the contents of the file user_info, it contains the list of users, there uid, gid and password. I think that has not been built properly.


(In reply to comment #1)
> Case 1:
>  trying upgrade.py while already working on beta2
>  result: fails, but while displaying whole code.
> 
> [root@Centos1 ufo.git]# python2.6 upgrade.py
> Enter the ADMIN_URL:https://10.1.12.25.443/auth           
> Enter the ADMIN_KEY:srj
> Retrieving data..
> Upgrading data..
> Traceback (most recent call last):
>   File "/usr/bin/gluster-object-prep", line 5, in <module>
>     pkg_resources.run_script('swift==1.4-dev', 'gluster-object-prep')
>   File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 461, in
> run_script
>     self.require(requires)[0].run_script(script_name, ns)
>   File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1194, in
> run_script
>     execfile(script_filename, namespace, namespace)
>   File
> "/usr/lib/python2.6/site-packages/swift-1.4_dev-py2.6.egg/EGG-INFO/scripts/gluster-object-prep",
> line 63, in <module>
>     ssl=(parsed.scheme == 'https'))
>   File
> "/usr/lib/python2.6/site-packages/swift-1.4_dev-py2.6.egg/swift/common/bufferedhttp.py",
> line 168, in http_connect_raw
>     conn.endheaders()
>   File "/usr/lib64/python2.6/httplib.py", line 904, in endheaders
>     self._send_output()
>   File "/usr/lib64/python2.6/httplib.py", line 776, in _send_output
>     self.send(msg)
>   File "/usr/lib64/python2.6/httplib.py", line 735, in send
>     self.connect()
>   File "/usr/lib64/python2.6/httplib.py", line 1108, in connect
>     sock = socket.create_connection((self.host, self.port), self.timeout)
>   File
> "/usr/lib/python2.6/site-packages/eventlet-0.9.16-py2.6.egg/eventlet/green/socket.py",
> line 43, in create_connection
>     for res in getaddrinfo(host, port, 0, SOCK_STREAM):
> socket.gaierror: [Errno -2] Name or service not known
> ('gluster-object-prep -K srj -A https://10.1.12.25.443/auth failed, aborting
> upgrade.',)
> Reverting the changes
> Cleaning up temporary files and directories
> 
> 
> case2:
>    upgrading from beta1 and giving wrong key 
>    result: fails gracefully
> 
> [root@Centos1 ufo.git]# python2.6 upgrade.py
> Enter the ADMIN_URL:https://10.1.12.25:443/auth
> Enter the ADMIN_KEY:jjjjjjj
> Retrieving data..
> Upgrading data..
> Auth subsystem prep failed: 403 Forbidden
> ('gluster-object-prep -K jjjjjjj -A https://10.1.12.25:443/auth failed,
> aborting upgrade.',)
> Reverting the changes
> Cleaning up temporary files and directories
> 
> case3:
>      upgrading from beta1 while giving wrong adming url,
>      result: fails gracefully.
> 
> [root@Centos1 ufo.git]# python2.6 upgrade.py
> Enter the ADMIN_URL:https://10.1.12.26:443/auth
> Enter the ADMIN_KEY:srj
> Retrieving data..
> Upgrading data..
> Auth subsystem prep failed: 500 Server Error
> ('gluster-object-prep -K srj -A https://10.1.12.26:443/auth failed, aborting
> upgrade.',)
> Reverting the changes
> Cleaning up temporary files and directories
> 
> 
> case4: 
>     upgrading from beta1 while giving correct information for admin_url and
> key,
>     result: fails, with this result,
> 
>     [root@Centos1 ufo.git]# python2.6 upgrade.py 
> Enter the ADMIN_URL:https://10.1.12.25:443/auth
> Enter the ADMIN_KEY:srj
> Retrieving data..
> Upgrading data..
> Usage: gluster-object-add-user [options] <account> <user> <password> <uid>
> <gid>
> 
> gluster-object-add-user: error: no such option: -1
> Usage: gluster-object-add-user [options] <account> <user> <password> <uid>
> <gid>
> 
> gluster-object-add-user: error: no such option: -1
> Usage: gluster-object-add-user [options] <account> <user> <password> <uid>
> <gid>
> 
> gluster-object-add-user: error: no such option: -1
> Usage: gluster-object-add-user [options] <account> <user> <password> <uid>
> <gid>
> 
> gluster-object-add-user: error: no such option: -1
> Restoring the services..
> Cleaning up temporary files and directories

Comment 4 Saurabh 2011-09-13 02:27:01 UTC
tested this earlier hence moving it to verified state