Posts

Showing posts from September, 2018

Great OpenStack Searchlight illustrations

Image
Source:  https://www.flickr.com/photos/lollyman/4424553767/in/photostream/

Dongmyo Flea Market - A different part of Seoul

Image
Living in Seoul (South Korea) is quite expensive if you don't know where to buy things. For most of the stuff you need in your house, you can buy them online (GMarket, Coupbang, 11st etc.) which will give you a lot of discounts. But, if you want to touch the goods before buying them, visiting the Dongmyo Flea Market may be a good option. Locating near the Dongmyo station, Dongmyo Flea Market opens at 2pm on weekdays and 10am on weekends. They close before sundown and on every 2nd and 4th Tuesday. Basically, you can find everything you need from clothes to household goods with the price ranging from 1,000 won to 100,000 won (most of them are cheap). You can even find vinyl records here. Not sure where did he get all these things?

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 do

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

My first month as Searchlight's PTL

Image
At the end of the Rocky development cycle of OpenStack, the Technical Committee intended to remove Searchlight [1] and some other projects (e.g. Freezer) from the Governance (OpenStack official projects). The reasons for that are because Searchlight has missed several milestones and lacked communication of the PTLs (Project Technical Lead). I couldn't stand the fact that a pretty cool project would be abandoned so I nominated to be the PTL of Searchlight for the Stein cycle. I hope that I can do something to revive it. Why should Searchlight be revived?  That is the question I tried to answer when decided to take the lead. It's harder and harder for cloud operators to get the information about the resources of other services (e.g Nova Compute, Swift, Cinder etc.) because they evolve very fast and there are more and more resources and APIs are made (Do you hear about the placement API of Nova?). Searchlight is pretty cool in this case because It centralizes all of that inf

Search and replace a string in multiple text files in Linux

You can use this following command to search and replace a string in multiple text files in Linux: Original string: "Click here for filters." New string: "Click here for filters or full text search." find ./ -type f -exec sed -i 's/"Click here for filters."/"Click here for filters or full text search."/g' {} \;