Skip to content

Instantly share code, notes, and snippets.

@2stacks
2stacks / openwisp.csr
Created December 1, 2019 20:20
GSOC 2019 CA Task
-----BEGIN CERTIFICATE REQUEST-----
MIICWDCCAUACAQAwEzERMA8GA1UEAxMIT3Blbndpc3AwggEiMA0GCSqGSIb3DQEB
AQUAA4IBDwAwggEKAoIBAQCwoqhBCJVXVZMrCAQ9HJdW2Mzy4DCl6nCDdl+04pTf
z5Gg2vTImD/oJxUQ5in+fF27PxLW/l9+Juz6MyOCVQ2B74pgq0HdqSq4bP/vWy2h
Di34KAihWQUOAlAPOgf6pu+mNoXQJ0fMSB65owQUqDUB5B2QWirQwSfPp2L8cuS7
HS1bfesNMD+WNaAoTW9gsHfWLRMZQLBJ4EFt9lK3LhcsHVhXOgBKp0acjnzgJqbP
SJsHdDeG+VMKE+DvgtdW6On9ClHNWUakC2OvamACNdGoQWpLilFPNLp1EnOZi6DF
kV4cYYqs9afnU1mSxJuGjkAVp4lAWZ3bXxtT37n1qrdJAgMBAAGgADANBgkqhkiG
9w0BAQsFAAOCAQEAp01Bbcv61pyJVmhVeoqeh2ZIeb808jnI7yJKK5r/xP+6bJ9s
jr0vhRpzXq+3WUud7+CirUu78LA00GUy2kTBSuwDh84lk+19uM++krH2Wy+X3Lb/
@2stacks
2stacks / loadbalancer-octavia.yaml
Last active September 4, 2019 17:05
Octavia Overlay
# Loadbalancer (LBAASv2) with Octavia - requires Rocky or later
---
applications:
barbican:
charm: cs:barbican
num_units: 1
options:
openstack-origin: cloud:bionic-stein
to:
- lxd:0
@2stacks
2stacks / bundle.yaml
Last active September 16, 2019 16:29
Openstack Base Charm
variables:
openstack-origin: &openstack-origin cloud:bionic-stein
data-port: &data-port br-ex:eno2
worker-multiplier: &worker-multiplier 0.25
osd-devices: &osd-devices /dev/sdb /dev/vdb
expected-osd-count: &expected-osd-count 2
expected-mon-count: &expected-mon-count 1
mysql-connections: &mysql-connections 1000
machines:
'0':
@2stacks
2stacks / octavia-worker.log
Created August 24, 2019 16:34
Octavia Worker Log creating Loadbalancer
2019-08-24 16:22:47.972 675855 INFO octavia.controller.queue.endpoint [-] Creating load balancer '9e09a705-c050-4d30-a32b-e4d8c152c06f'...
2019-08-24 16:22:47.981 675855 WARNING octavia.controller.worker.controller_worker [-] Failed to fetch load_balancer 9e09a705-c050-4d30-a32b-e4d8c152c06f from DB. Retrying for up to 60 seconds.
2019-08-24 16:22:49.498 675855 INFO octavia.network.drivers.neutron.allowed_address_pairs [-] Port 6e7f2288-6a33-4eee-ace1-d5e2a1f1fa2b already exists. Nothing to be done.
2019-08-24 16:22:51.545 675855 INFO octavia.controller.worker.tasks.database_tasks [-] Created Amphora in DB with id 83c91d18-4a47-4316-ac14-4d352d92b155
2019-08-24 16:22:52.531 675855 INFO octavia.certificates.generator.local [-] Signing a certificate request using OpenSSL locally.
2019-08-24 16:22:52.531 675855 INFO octavia.certificates.generator.local [-] Using CA Certificate from config.
2019-08-24 16:22:52.532 675855 INFO octavia.certificates.generator.local [-] Using CA Private Key from config.
2019-08-24 16
@2stacks
2stacks / nova-logs
Created August 24, 2019 16:27
Nova Compute creating Octavia Amphora instance
2019-08-24 16:22:59.826 2993 INFO nova.compute.claims [req-964ea4bd-5cb9-410e-9103-03ff510e2683 eca5106244694c0b9c0308d25e36b139 a8bae0c5692b425baf0751683b892ba0 - 417452f562404cb182a5d8fefc96df36 417452f562404cb182a5d8fefc96df36] [instance: 5adb2815-aeb5-4a48-be84-718023ce894d] Attempting claim on node metal-04.maas: memory 1024 MB, disk 8 GB, vcpus 1 CPU
2019-08-24 16:22:59.827 2993 INFO nova.compute.claims [req-964ea4bd-5cb9-410e-9103-03ff510e2683 eca5106244694c0b9c0308d25e36b139 a8bae0c5692b425baf0751683b892ba0 - 417452f562404cb182a5d8fefc96df36 417452f562404cb182a5d8fefc96df36] [instance: 5adb2815-aeb5-4a48-be84-718023ce894d] Total memory: 48280 MB, used: 512.00 MB
2019-08-24 16:22:59.827 2993 INFO nova.compute.claims [req-964ea4bd-5cb9-410e-9103-03ff510e2683 eca5106244694c0b9c0308d25e36b139 a8bae0c5692b425baf0751683b892ba0 - 417452f562404cb182a5d8fefc96df36 417452f562404cb182a5d8fefc96df36] [instance: 5adb2815-aeb5-4a48-be84-718023ce894d] memory limit not specified, defaulting to unlimited
2019-08-24 16
2019/08/02 18:47:08 [INFO] Updating global catalog helm
E0802 18:47:08.826738 6 streamwatcher.go:109] Unable to decode an event from the watch stream: net/http: request canceled (Client.Timeout exceeded while reading body)
E0802 18:47:08.828036 6 streamwatcher.go:109] Unable to decode an event from the watch stream: net/http: request canceled (Client.Timeout exceeded while reading body)
E0802 18:47:08.828907 6 streamwatcher.go:109] Unable to decode an event from the watch stream: net/http: request canceled (Client.Timeout exceeded while reading body)
I0802 18:47:10.900819 6 trace.go:76] Trace[313863902]: "GuaranteedUpdate etcd3: *unstructured.Unstructured" (started: 2019-08-02 18:47:09.966381345 +0000 UTC m=+3613.562800556) (total time: 934.405486ms):
Trace[313863902]: [934.250354ms] [933.708092ms] Transaction committed
I0802 18:47:10.901742 6 trace.go:76] Trace[1211378169]: "Update /apis/management.cattle.io/v3/userattributes/user-fxhjr" (started: 2019-08-02 18:47:09.966045716 +
$ docker-compose logs dashboard
WARNING: Some services (controller, daphne, dashboard, nginx, postgres, radius, redis, topology, websocket) use the 'deploy' key, which will be ignored. Compose does not support 'deploy' configuration - use `docker stack deploy` to deploy to a swarm.
Attaching to docker-openwisp_dashboard_1
dashboard_1 | Waiting for database to become available...
dashboard_1 | Connection with database established.
dashboard_1 | Waiting for redis to become available...
dashboard_1 | Connection with redis established.
dashboard_1 | Traceback (most recent call last):
dashboard_1 | File "/usr/local/lib/python3.7/site-packages/django/db/utils.py", line 110, in load_backend
dashboard_1 | return import_module('%s.base' % backend_name)
@2stacks
2stacks / gist:a90ba06f92ed3b0805dba5136ef61f7b
Last active January 25, 2019 19:03
django-freeradius dependency on openwisp_utils
ReadOnlyAdmin was moved to openwisp-utils per this commit - https://github.com/openwisp/openwisp-utils/commit/58ac13d5f1f41da82aeaba69629ad83c76a737ba
Installing django-freeradius requires openwisp-utils
openwisp-utils>=0.2,<0.3.1
Version of openwisp-utils available on PyPi doesn't include changes made to master since last release v0.2.2
When trying to run Django project which includes django-freeradius I see the failure in the logs below.