Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contents of driver.conf file is getting overwritten after starting cosbench driver script #318

Closed
ksingh7 opened this issue May 28, 2016 · 1 comment

Comments

@ksingh7
Copy link

ksingh7 commented May 28, 2016

Problem : The contents of driver.conf file is getting changed / overwritten after starting cosbench driver.

Here is what i have tried.
To configure cosbench driver node, i manually edited conf/driver.conf with name and url , as shown below

[root@client2 0.4.2.c3]# cat conf/driver.conf 
[driver]
name=client2
url=http://10.5.13.102:18088/driver

As soon as i am running start-driver.sh script

[root@client2 0.4.2.c3]# sh start-driver.sh
Launching osgi framwork ... 
Successfully launched osgi framework!
Booting cosbench driver ... 
Starting    cosbench-log_0.4.2    [OK]
Starting    cosbench-tomcat_0.4.2    [OK]
Starting    cosbench-config_0.4.2    [OK]
Starting    cosbench-http_0.4.2    [OK]
Starting    cosbench-cdmi-util_0.4.2    [OK]
Starting    cosbench-core_0.4.2    [OK]
Starting    cosbench-core-web_0.4.2    [OK]
Starting    cosbench-api_0.4.2    [OK]
Starting    cosbench-mock_0.4.2    [OK]
Starting    cosbench-ampli_0.4.2    [OK]
Starting    cosbench-swift_0.4.2    [OK]
Starting    cosbench-keystone_0.4.2    [OK]
Starting    cosbench-httpauth_0.4.2    [OK]
Starting    cosbench-s3_0.4.2    [OK]
Starting    cosbench-librados_0.4.2    [OK]
Starting    cosbench-scality_0.4.2    [OK]
Starting    cosbench-cdmi-swift_0.4.2    [OK]
Starting    cosbench-cdmi-base_0.4.2    [OK]
Starting    cosbench-driver_0.4.2    [OK]
Starting    cosbench-driver-web_0.4.2    [OK]
Successfully started cosbench driver!
Listening on port 0.0.0.0/0.0.0.0:18089 ... 
Persistence bundle starting...
Persistence bundle started.
----------------------------------------------
!!! Service will listen on web port: 18088 !!!
----------------------------------------------
[root@client2 0.4.2.c3]# 

The contents of conf/driver.conf file that i updated previously are getting changed to loop back IP , as below

[root@client2 0.4.2.c3]# cat conf/driver.conf 
[driver]
name=127.0.0.1:18088
url=http://127.0.0.1:18088/driver
[root@client2 0.4.2.c3]# 

Here are the output of related files

[root@client2 conf]# cat driver_template.conf
[driver]
name=driver
url=http://127.0.0.1:18088/driver
[root@client2 conf]# cat driver_1.conf
[driver]
name=127.0.0.1:18088
url=http://127.0.0.1:18088/driver
[root@client2 conf]# cat driver.conf
[driver]
name=127.0.0.1:18088
url=http://127.0.0.1:18088/driver
[root@client2 conf]# 
[root@client2 conf]# 

To reverify it , again i edited driver.conf and executed start-driver.sh and repeatedly found that the contents of driver.conf changes back to loopback ip

[root@client2 conf]#  cat driver_1.conf
[driver]
name=client2
url=http://10.5.13.102:18088/driver
[root@client2 conf]# cat driver.conf
[driver]
name=client2
url=http://10.5.13.102:18088/driver
[root@client2 conf]# 
[root@client2 0.4.2.c3]# sh start-driver.sh 
Launching osgi framwork ... 
Successfully launched osgi framework!
Booting cosbench driver ... 
Starting    cosbench-log_0.4.2    [OK]
Starting    cosbench-tomcat_0.4.2    [OK]
Starting    cosbench-config_0.4.2    [OK]
Starting    cosbench-http_0.4.2    [OK]
Starting    cosbench-cdmi-util_0.4.2    [OK]
Starting    cosbench-core_0.4.2    [OK]
Starting    cosbench-core-web_0.4.2    [OK]
Starting    cosbench-api_0.4.2    [OK]
Starting    cosbench-mock_0.4.2    [OK]
Starting    cosbench-ampli_0.4.2    [OK]
Starting    cosbench-swift_0.4.2    [OK]
Starting    cosbench-keystone_0.4.2    [OK]
Starting    cosbench-httpauth_0.4.2    [OK]
Starting    cosbench-s3_0.4.2    [OK]
Starting    cosbench-librados_0.4.2    [OK]
Starting    cosbench-scality_0.4.2    [OK]
Starting    cosbench-cdmi-swift_0.4.2    [OK]
Starting    cosbench-cdmi-base_0.4.2    [OK]
Starting    cosbench-driver_0.4.2    [OK]
Starting    cosbench-driver-web_0.4.2    [OK]
Successfully started cosbench driver!
Listening on port 0.0.0.0/0.0.0.0:18089 ... 
Persistence bundle starting...
Persistence bundle started.
----------------------------------------------
!!! Service will listen on web port: 18088 !!!
----------------------------------------------
[root@client2 0.4.2.c3]# cd conf
[root@client2 conf]# cat driver.conf
[driver]
name=127.0.0.1:18088
url=http://127.0.0.1:18088/driver
[root@client2 conf]# 
[root@client2 conf]# 

Is this a known thing or a bug ?

@ksingh7 ksingh7 changed the title contents of driver.conf file getting change after starting cosbench driver contents of driver.conf file getting overwritten after starting cosbench driver May 28, 2016
@ksingh7 ksingh7 changed the title contents of driver.conf file getting overwritten after starting cosbench driver contents of driver.conf file is getting overwritten after starting cosbench driver script May 28, 2016
@ywang19
Copy link
Contributor

ywang19 commented Jun 2, 2016

I should have replied this question before, but weirdly, it's not appearing here. anyway, here is a re-reply.

cosbench supports to launch multiple drivers on one host, so it uses conf/driver_template.conf as template for driver.conf, changes on driver.conf will take no effect, you'd change driver_template.conf instead.

@ywang19 ywang19 closed this as completed Jun 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants