Skip to content

Instantly share code, notes, and snippets.

View jethrosun's full-sized avatar
🦀
My code doesn't agree with me

Shuwen Jethro Sun jethrosun

🦀
My code doesn't agree with me
View GitHub Profile
@jethrosun
jethrosun / logs-ubuntu.rst
Created April 20, 2016 18:47
HaaS build errors on Ubuntu

# Ubuntu

With python default version as 2.7, the installation is correct but I came with the same error Kyle met, i.e. "OperationError unable to open database"

Solved by manualy create haas.db

sqlite3 haas.db

chown -R www-data haas.db

@jethrosun
jethrosun / logs-arch.rst
Created April 20, 2016 18:49
HaaS build errors on Arch Linux

# Arch

Basically it seems like something goes wrong with the python version, i.e. setting up virtualenv for Python2.7 can solve it. Log with details are provided. If there is something wrong with the environment setup, I will be happy to test HaaS on Arch again.

$ uname -r

4.1.21-1-lts

$ python --version

Python 3.5.1

@jethrosun
jethrosun / INSTALL.patch
Created June 7, 2016 02:46
patch for INSTALL.rst
20c20
< yum install libvirt bridge-utils ipmitool telnet httpd mod_wsgi python-pip qemu-kvm python-virtinst virt-install python-psycopg2 vconfig net-tools
---
> yum install libvirt bridge-utils ipmitool telnet httpd mod_wsgi python-pip qemu-kvm python-virtinst virt-install python-psycopg2 vconfig net-tools gcc python-devel libxml2-devel libxslt-devel
51,66c51,52
< For simplicity we have provided default values:
< Copy the following lines in file ``haas_env``
<
< HAAS_USER=haas
<
$ sudo su
[sudo] password for jethro:
root@jethro-VM:/home/jethro/git# tcpdump -envi veth0
tcpdump: listening on veth0, link-type EN10MB (Ethernet), capture size 262144 bytes
02:48:30.632558 96:93:8e:fc:b8:bb > 8e:0c:e4:78:30:b3, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 63, id 42695, offset 0, flags [DF], proto ICMP (1), length 84)
10.10.10.2 > 10.10.10.1: ICMP echo request, id 877, seq 15, length 64
02:48:30.632576 8e:0c:e4:78:30:b3 > 96:93:8e:fc:b8:bb, ethertype MPLS unicast (0x8847), length 102: MPLS (label 112, exp 0, [S], ttl 64)
(tos 0x0, ttl 64, id 29891, offset 0, flags [none], proto ICMP (1), length 84)
10.10.10.1 > 10.10.10.2: ICMP echo reply, id 877, seq 15, length 64
02:48:31.632454 96:93:8e:fc:b8:bb > 8e:0c:e4:78:30:b3, ethertype IPv4 (0x0800), length 98: (tos 0x0, ttl 63, id 42727, offset 0, flags [DF], proto ICMP (1), length 84)
@jethrosun
jethrosun / devstack-osprofiler-log
Created February 14, 2017 18:25
logs the error msgs
stack@xavier:~/devstack$ openstack endpoint list
+----------------------------------+-----------+--------------+----------------+
| ID | Region | Service Name | Service Type |
+----------------------------------+-----------+--------------+----------------+
| 6798e10622ea4da8acfdd9136133cdd1 | RegionOne | keystone | identity |
| ee816cd6252b4644ad02c9ea983d515e | RegionOne | cinder | volume |
| 90ca66ea425b4bd48a97d552efa9ade2 | RegionOne | cinderv3 | volumev3 |
| 1057563e3ee04d29952a037a8bb3acc6 | RegionOne | neutron | network |
| ff9c5320c839411ebed0826318781fe1 | RegionOne | nova_legacy | compute_legacy |
| 2776bcf809dc4b0084669ac2efba5331 | RegionOne | nova | compute |
@jethrosun
jethrosun / localrc-devstack-osprofiler
Created February 14, 2017 18:27
local.conf file of a devstack + osprofier setup
stack@xavier:~$ cat devstack/local.conf
[[Local|localrc]]
HOST_IP=192.168.0.16
SERVICE_HOST=192.168.0.16
ADMIN_PASSWORD=welcome
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=$ADMIN_PASSWORD
DEST=/opt/stack
root@xavier:/usr/pkgsrc/wip/proxychains# bmake install
=> Bootstrap dependency digest>=20010302: NOT found
=> Verifying reinstall for ../../pkgtools/digest
===> Checking for vulnerabilities in digest-20160304
===> Installing dependencies for digest-20160304
=> Build dependency cwrappers>=20150314: NOT found
=> Verifying reinstall for ../../pkgtools/cwrappers
===> Checking for vulnerabilities in cwrappers-20161125
===> Installing for cwrappers-20161125
=> Creating installation directories
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by cwrappers configure 20161125, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/usr/pkg --build=x86_64-debian-linux --host=x86_64-debian-linux --mandir=/usr/pkg/man
## --------- ##
## Platform. ##
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by cwrappers configure 20161125, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/usr/pkg --build=x86_64-debian-linux --host=x86_64-debian-linux --mandir=/usr/pkg/man
## --------- ##
## Platform. ##
=> Automatic manual page handling
pkg_create: can't stat `/usr/pkgsrc/pkgtools/cwrappers/work/.destdir/usr/pkg/libexec/cwrappers/as-wrapper'
pkg_create: can't stat `/usr/pkgsrc/pkgtools/cwrappers/work/.destdir/usr/pkg/libexec/cwrappers/c++-wrapper'
pkg_create: can't stat `/usr/pkgsrc/pkgtools/cwrappers/work/.destdir/usr/pkg/libexec/cwrappers/cc-wrapper'
pkg_create: can't stat `/usr/pkgsrc/pkgtools/cwrappers/work/.destdir/usr/pkg/libexec/cwrappers/cpp-wrapper'
pkg_create: can't stat `/usr/pkgsrc/pkgtools/cwrappers/work/.destdir/usr/pkg/libexec/cwrappers/f77-wrapper'
pkg_create: can't stat `/usr/pkgsrc/pkgtools/cwrappers/work/.destdir/usr/pkg/libexec/cwrappers/imake-wrapper'
pkg_create: can't stat `/usr/pkgsrc/pkgtools/cwrappers/work/.destdir/usr/pkg/libexec/cwrappers/ld-wrapper'
pkg_create: can't stat `/usr/pkgsrc/pkgtools/cwrappers/work/.destdir/usr/pkg/libexec/cwrappers/libtool-wrapper'
pkg_create: can't stat `/usr/pkgsrc/pkgtools/cwrappers/work/.destdir/usr/pkg/libexec/cwrappers/shlibtool-wrapper'