Posts

Searchlight vPTG summary

Image
Yesterday, 20 Sep, the Searchlight team had had a virtual PTG on Google HangOut [0] to discuss some topics [1] about the future of Searchlight. The attendees are Zhenyu Zheng (Kevin_Zheng), Thuy Dang (thuydang), and me (dangtrinhnt).



We had gone through a couple of topics including:
Welcome new member We are very happy to welcome thuydang to the Searchlight team.
Review the works so far Most of the bugs and patches have been cleaned up. Some features especially ElasticSearch 5.x support [3] has been added to Searchlight.
Next milestone release We decided to release stein-1 (22-26 Oct 2018) with these following:

    - ES 5.x support [3]: merged
    - Fix bugs: merged + new
    - Versioned Nova notifications [4]: Zhenyu will work on this
    - tox use py3 by default: merged
    - docs clean up: merged Add use cases The Searchlight team will develop the use cases for Searchlight in order to attract more users and contributors. Some of the use case documentation is planned to be released at S…

Work around the "Could not determine host ip address" error when you run stack.sh

For some reasons, I got this error when running the stack.sh script even though I have my local.conf file setup properly (I used the same local.conf for many times)

devstack$ ./unstack.sh
[Call Trace]
./unstack.sh:33:source
/opt/stack/devstack/openrc:27:source
/opt/stack/devstack/stackrc:759:die
[ERROR] /opt/stack/devstack/stackrc:759 Could not determine host ip address. See local.conf for suggestions on setting HOST_IP.

One quick workaround is to set the HOST_IP default value in stackrc:

devtack $ nano stackrc

...
HOST_IP=${HOST_IP:-<my host ip address>}
...

Then stack.sh will run smoothly :)

Stress test CPU & Memory in Ubuntu

stress is a command line tool you can use to stress test CPU and Memory in Linux. An example could be:

stress --cpu 8


A pretty neat snippet to generate a small CPU load in a container

You can use the following to create a small CPU load in a container's bash:

 while :; do echo 'Hit CTRL+C'; sleep 1; done

"docker-compose up" error "Couldn't connect to Docker daemon"

I got this error trying to run the "docker-compose up" command:

$ docker-compose up -d     
ERROR: Couldn't connect to Docker daemon at http+docker://localhost - is it running?                                                                                                                             
If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable.

A quick fix is:

$ sudo chown $USER:docker /var/run/docker.sock