Showing posts from July, 2018

kolla-ansible deploy stucks at "haproxy : Waiting for virtual IP to appear"

I was trying to deploy Kolla all-in-one and stuck at TASK [haproxy : Waiting for virtual IP to appear] Here is how I fixed it: 1. Because, another service in the network may use the same Virtual Router ID, It is 51 by default. So, change the default " keepalived_virtual_router_id " to another value (free and in the range of 0-255) $ sudo vi /etc/kolla/globals.yml ... keepalived_virtual_router_id: "251" ... 2. Run  kolla-genpwd  to generate /etc/kolla/passwords.yml $ sudo kolla-genpwd 3. Enjoy

Failed to build docker images with kolla-build?

Most of the time when I am trying to build docker images using the kolla-build tool, I got something like: ... ERROR:kolla.common.utils:almanach-api Failed with status: matched ERROR:kolla.common.utils:almanach-collector Failed with status: matched ERROR:kolla.common.utils:bifrost-deploy Failed with status: matched ... One thing you can try is to build the images from source: $ kolla-build almanach-api almanach-collector bifrost-deploy -t source

How to install E-Commerce module in Bitnami' Open edX distribution

Important note: Bitnami distribution of Open edX is designed for testing and demonstration purposes so the e-commerce module integration is for experiment only. Please use this installation guide as your own risk. Bitnami' Open edX distribution only includes several core services such as LMS, Studio, XQueue, Forum as well as supporting services like MySQL, MongoDB, Memcached, Apache or Elasticsearch (more details here ). Additionally, Bitnami' application structure for Open edX is different than the official stack supported by the Open edX community. So, because of those reasons, in order to integrate the e-commerce module in your running instance, currently, there is no way other than doing it manually. I have had a chance to deploy successfully the e-commerce into a test Open edX instance for a customer. Below is how I did it. You can use it as a reference and leave me a comment if you find any errors or want to add something. 1. Directory structure: Assuming you h

Got "/opt/stack/requirements/.venv/bin/pip’: No such file or directory" error installing devstack

Strangely tonight when trying to install devstack for a new experiment, after a couple failing attempts (mostly with directory permissions), I got this message saying: "/opt/stack/requirements/.venv/bin/pip’: No such file or directory" What happens? Turns out it is just virtualenv was failed to install pip in the previous try. Fortunately, I found an easy fix: $ virtualenv /opt/stack/requirements/.venv/ Then I just need to execute again. Awesome!