Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 761099 Details for
Bug 974384
longevity: fuse mount logs(DHT) - failed to get the 'linkto' xattr No data available
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
test script
test1.py (text/x-python), 3.50 KB, created by
Saurabh
on 2013-06-14 06:42:02 UTC
(
hide
)
Description:
test script
Filename:
MIME Type:
Creator:
Saurabh
Created:
2013-06-14 06:42:02 UTC
Size:
3.50 KB
patch
obsolete
>#!/usr/bin/python > >import sys >from libs import logger >import subprocess >import os >import errno >from libs import crefi >import time >import ConfigParser >import re >import socket >from libs import teslib > > >def main(): > tflag = 0 > (parser, sec) = teslib.config_read(config_file_path) > volnames, mastervol = teslib.getVolumes(parser, sec, testname) > (parser, sec) = teslib.config_read(rhs_config_path) > nodes = teslib.getNodes(parser,sec) > master = nodes[0] > client = socket.gethostname() > volname = mastervol > retc = teslib.volume_info(volname, master) > if retc == 0: > tflag += 1 > > retc = teslib.volume_status(volname, master) > if retc == 0: > tflag += 1 > > logger.info("Mounting the volume "+volname+" on "+client) > retc = teslib.volume_mount(volname, master, mnt_pnt) > if retc == 0: > tflag += 1 > else: > sys.exit(1) > > test_dir = mnt_pnt+"/test_1."+str(time.time()).split('.')[0] > try: > os.makedirs(test_dir) > except OSError as ex: > if not ex.errno is errno.EEXIST: > raise > logger.info("creating data with definite filenames on mount point in "+client) > > try: > crefi.multipledir(test_dir,b,d,n,"create","text", inter , size="100K", rand=False) > tflag += 1 > except : > logger.error("Creation of files has been failed for some reason") > teslib.data_cleanup(test_dir,client,mnt_pnt) > teslib.volume_umount(client, mnt_pnt) > sys.exit(1) > logger.info("chmod on data in the mount point in "+client) > > try: > crefi.multipledir(test_dir,b,d,n,"chmod") > tflag += 1 > except : > logger.error("chmod on files has been failed for some reason") > logger.info("Creating symlink for the data on mount point in "+client) > > try: > crefi.multipledir(test_dir,b,d,n,"symlink") > tflag += 1 > except : > logger.error("Symlink creation for files has been failed for some reason") > logger.info("creating hardlinks for the data on mount point in "+client) > > try: > crefi.multipledir(test_dir,b,d,n,"hardlink") > tflag += 1 > except : > logger.error("Hardlink creation for files has been failed for some reason") > logger.info("Renaming files on mount point in "+client) > > try: > crefi.multipledir(test_dir,b,d,n,"rename") > tflag += 1 > except : > logger.error("Renaming of the files has been failed for some reason") > > ret_code = teslib.data_cleanup(test_dir,client,mnt_pnt) > if ret_code == 0: > tflag += 1 > > ret_code = teslib.volume_umount(client, mnt_pnt) > if ret_code == 0: > tflag += 1 > > if tflag < 10: > logger.error(testname+" FAILED") > else: > logger.info(testname+" PASSED") > > >if __name__ =='__main__': > testname = os.path.basename(sys.argv[0]).split(".")[0] > if len(sys.argv) != 2: > print "Need to provide path to log directory" > sys.exit(1) > else: > log_path = sys.argv[1]+"/"+testname+"."+str(time.time()).split('.')[0]+".log" > logger = logger.setup_logger(log_path) > crefi.setLogger(log_path) > teslib.setLogger(log_path) > mnt_pnt= "/mnt/client_"+testname > config_file_path = "/rhs-tests/longevity/config/tests.conf" #path to config tests config file > rhs_config_path = "/rhs-tests/longevity/config/rhs-nodes.conf" #path rhs-nodes config file > > n= # number of file in each directory > b= # number of directories in each level > d= # depth of the directory > inter= # interval at which the number of files created will be logged > > main()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 974384
: 761099