Posts

Showing posts from February, 2016

[Fuel] How to use postgres database in Fuel

Image
For those who wants to check out the data in Fuel's Postgres database, this document can give a simple guide to do so for the reference.
Here it is:
Find out the postgres docker [root@fuel /]# docker ps


[root@fuel /]# dockerctl fuel-core-7.0-psotgres shell
[root@fuel /]# sudo su - postgres
-bash-4.1$ psql
psql (9.3.5)
Type "help" for help.

postgres=#

So, now we can use postgressql database!
Use "nailgun" database postgres=# \c nailgun You are now connected to database "nailgun" as user "postgres". List all tables in database nailgun=# \dt

Look "tasks" table schema nailgun=# \d tasks        Use SQL to select the data in table nailgun=# select * from information_schema.columns where table_name = tasks;


[Fuel] To build up Fuel Nailgun developing environment

Image
Well, I try to build up Fuel Nail Gun developing environment on my Debian 7 virtualbox VM. All my referencedocument is this nailgun.
Although this document seems to use Ubuntu 12.04/14.04, but I still insist to build on Debian 7 due to my personal persistence. Here we go:

Install nailgun developing environmentsudo apt-get install --yes postgresql postgresql-server-dev-all
sudo sed -ir 's/peer/trust/' /etc/postgresql/9.1/main/pg_hba.conf
sudo service postgresql restart
sudo -u postgres psql -c "CREATE ROLE nailgun WITH LOGIN PASSWORD 'nailgun'"
sudo -u postgres createdb nailgun

sudo apt-get install --yes python-dev python-pip
sudo pip install virtvualenvvirtualewrapper . /usr/local/bin/virtualenvwrapper.sh # you can save this to .bashrcmkvirtualenv fuel # you can use any name instead of 'fuel' workon fuel # command selects the particular environment sudo apt-get install --yes git git clone https://github.com/openstack/fuel-web.git cd fuel-web pip install …

[Networking] The excerpt about Jumbo Frame, MTU size and RX drop

This document is the excerpt about my survey of Jumbo Frame, MTU size and RX drop so that it may looks disorganized.
I can give my quick conclusion for my study:
( my lab is 10G network with supporting Jumbo Frame )

server1 <-----> Switch1 <-----> Switch2 <-----> server2
mtu:1500        mtu:9000        mtu:1500        mtu:1500    ==> only less then or equal mtu:1500 can pass through

server1 <-----> Switch1 <-----> Switch2 <-----> server2
mtu:1500        mtu:9000        mtu:9000        mtu:1500    ==> all mtu between 1500 and 9000 can pass through

P.S: the setting mtu to server/host doesn't affect their's mru (maximum receive units). So they can receive mtu 9000 packets even though mtu is 1500

============ The following are the excerpt ===============
https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk61922
'