Posts

Showing posts with the label build

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

Deploy OpenWRT as QoS VNF on OpenStack Tacker

So I just updated the OpenWRT VNFM management driver of OpenStack Tacker to support more services like DHCP, DNS, and QoS ( the code is under review now ). But, if you are so eager to try, here is how: 1. Download the custom image of OpenWRT from here  (because the default OpenWRT image doesn't have qos-scripts installed). 2. Upload that image to your OpenStack instance: openstack image create OpenWRT --disk-format qcow2 \                                --container-format bare \                                --file /path_to_image/openwrt.img \                                --public 3. Use this VNFD template to generate VNF: Note : Use this at your own risk. References: [0] https://wiki.openwrt.org/doc/howto/obtain.firmwa...

Could not run rails console in gitlab due to missing readline

Yesterday, I was trying to open the rails console of my gitlab server (gitlab v6.9.2, Ubuntu 12.04) to reset the admin password by the following command: $ cd /home/git/gitlab $ sudo -u git -H bundle exec rails console production But it raised this error: ... `require': no such file to load -- readline (LoadError) ... After a while, I fixed it by ( DO NOT MODIFY THE GEMFILE ): 1. Install readline dev packages: $ sudo apt-get install libreadline-dev 2. Recompile or upgrade ruby to v2.1: Note: The use of Ruby version managers such as RVM, rbenv or chruby with GitLab in production frequently leads to hard to diagnose problems. For example, GitLab Shell is called from OpenSSH and having a version manager can prevent pushing and pulling over SSH. Version managers are not supported and we strongly advise everyone to follow the instructions below to use a system Ruby. Install the required packages to compile ruby: $ sudo apt-get install -y build-essential zlib1g-de...