Bug 765093 (GLUSTER-3361)

Summary: object-strorage: shell-script should first find path of "swift" directory
Product: [Community] GlusterFS Reporter: Saurabh <saurabh>
Component: object-storageAssignee: Gaurav <ggangalw>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: mainlineCC: gluster-bugs
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 Saurabh 2011-08-08 12:28:27 UTC
the shell scripts we have for configuring object-storage should first try to find the path for swift directory's path, as for example if we use the absolute path to execute the centos-install.sh , then it won't be able to find the "swift" dir and necessary copy of config files will show the below error.


logs:-
[root@Centos1 ~]# vim /root/obj/gluster-object-storage-3.3beta1/centos_install.sh 
[root@Centos1 ~]# /root/obj/gluster-object-storage-3.3beta1/centos_install.sh 
/root/obj/gluster-object-storage-3.3beta1/centos_install.sh: line 8: cd: swift: No such file or directory
Enter external IP for Storage-Server: 10.1.12.25
Enter Super Admin key:sj
Enter Object server port (Press Enter for default 6010):
Enter Container server port (Press Enter for default 6011):
Enter Account server port (Press Enter for default 6012):
Enter '1' for https '2' for 'http' (Recommended is https):1
cp: cannot stat `config/proxy-server.conf': No such file or directory
cp: cannot stat `config/swift.conf': No such file or directory
cp: cannot stat `config/object-server.conf': No such file or directory
cp: cannot stat `config/container-server.conf': No such file or directory
cp: cannot stat `config/account-server.conf': No such file or directory

Comment 1 Gaurav 2011-08-12 02:59:51 UTC
Install scripts are always supposed to be executed from UFO path.