ibmcb / cbtool

Cloud Rapid Experimentation and Analysis Toolkit
Apache License 2.0
79 stars 49 forks source link

cb_post_boot.sh starts log store and object store services locally on vms #445

Open rayx opened 5 months ago

rayx commented 5 months ago

See the following code in scripts/common/cb_post_boot.sh:

if [[ x"${my_vm_uuid}" == x"${load_manager_vm_uuid}" || x"${my_type}" == x"none" ]]
then
    syslog_netcat "Starting (AI) Log store..."
    start_syslog `get_global_sub_attribute logstore port`
    syslog_netcat "Local (AI) Log store started"
    syslog_netcat "Starting (AI) Object store..."
    start_redis ${osportnumber}
    syslog_netcat "Local (AI) Object store started"
    setup_rclocal_restarts
fi

When I run "vmattach tinyvm", I observe that the x"${my_type}" == x"none" check is true and the script starts redis server and rsyslog daemon on the vm.

$ /usr/bin/redis-cli -h 192.168.122.24 -p 6379 -n 0 hget TEST_centos:MYPLM:VM:B409458E-0220-523F-948D-DDA6D4421542 type
"none"

I think these local services on vms are not used (even if the vm serves as load manager)? From my understanding, vms scripts only access object store and log store services running globally.