[Bugs] [Bug 1206065] [Backup]: Crash seen when 'glusterfind create' command is run on a non-existent volume

bugzilla at redhat.com bugzilla at redhat.com
Fri Mar 27 11:34:53 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1206065

Sweta Anandpara <sanandpa at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[Backup]: 'Glusterfind      |[Backup]:  Crash seen when
                   |create' creates a           |'glusterfind create'
                   |sub-directory at            |command is run on a
                   |$glusterd_working_directory |non-existent volume
                   |/session_dir even when the  |
                   |command fails               |



--- Comment #1 from Sweta Anandpara <sanandpa at redhat.com> ---
Found crash logs when I re did the scenario. 

Had a brand new setup, and executed the below command:
glusterfind create <sessionName> <non-existent-volume-name>

That is when a crash is seen:
Traceback (most recent call last):
  File "/usr/bin/glusterfind", line 17, in <module>
    main()
  File "/usr/libexec/glusterfs/glusterfind/main.py", line 468, in main
    globals()["mode_" + args.mode](session_dir, args)
  File "/usr/libexec/glusterfs/glusterfind/main.py", line 442, in mode_list
    human_time(last_processed).ljust(25)))
  File "/usr/libexec/glusterfs/glusterfind/utils.py", line 54, in human_time
    return datetime.fromtimestamp(float(ts)).strftime("%Y-%m-%d %H:%M:%S")
TypeError: float() argument must be a string or a number

Changing the title of this bug. The side-effect of this issue is the one that
was originally mentioned - a subdirectory getting created in $SESSION_DIR.

Pasted below are the logs:

[root at dhcp43-48 rhs_upstream3.1]# glusterfind list
[root at dhcp43-48 rhs_upstream3.1]# glusterfind create
usage: glusterfind create [-h] [--debug] [--force] session volume
glusterfind create: error: too few arguments

[root at dhcp43-48 rhs_upstream3.1]# glusterfind create sess nashh
Failed to set volume option build-pgfid on: volume set: failed: Volume nashh
does not exist

[root at dhcp43-48 rhs_upstream3.1]# glusterfind list
SESSION                   VOLUME                    SESSION TIME             
---------------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/bin/glusterfind", line 17, in <module>
    main()
  File "/usr/libexec/glusterfs/glusterfind/main.py", line 468, in main
    globals()["mode_" + args.mode](session_dir, args)
  File "/usr/libexec/glusterfs/glusterfind/main.py", line 442, in mode_list
    human_time(last_processed).ljust(25)))
  File "/usr/libexec/glusterfs/glusterfind/utils.py", line 54, in human_time
    return datetime.fromtimestamp(float(ts)).strftime("%Y-%m-%d %H:%M:%S")
TypeError: float() argument must be a string or a number
[root at dhcp43-48 rhs_upstream3.1]# 
[root at dhcp43-48 rhs_upstream3.1]# 
[root at dhcp43-48 rhs_upstream3.1]#

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list