Skip to content

Instantly share code, notes, and snippets.

View dsavineau's full-sized avatar
🏠
Working from home

Dimitri Savineau dsavineau

🏠
Working from home
  • Red Hat
  • Montréal
View GitHub Profile
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ipaddress import ip_address
class FilterModule(object):
''' Return DNS or IP subject alt name '''
def subject_alt_name(self, val):
# docker run --net=host --ulimit nofile=1024:1024 --pid=host --ipc=host --privileged=true --name=ceph-osd-sdb -v /etc/ceph:/etc/ceph:z -v /var/lib/ceph/:/var/lib/ceph/:z -v /dev:/dev -v /etc/localtime:/etc/localtime:ro -v /var/run/ceph:/var/run/ceph:z -v /var/run/udev/:/var/run/udev/ -e DEBUG=verbose -e CLUSTER=ceph -e CEPH_DAEMON=OSD_CEPH_DISK_ACTIVATE -e OSD_DEVICE=/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_602c5b7c-87b7-42ad-9 -e OSD_JOURNAL=/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_609b3b61-ce92-4f20-9 -e OSD_BLUESTORE=0 -e OSD_FILESTORE=1 -e OSD_DMCRYPT=0 docker.io/ceph/daemon:v3.2.4-stable-3.2-luminous-centos-7
2019-07-10 18:21:31 /entrypoint.sh: VERBOSE: activating bash debugging mode.
2019-07-10 18:21:31 /entrypoint.sh: To run Ceph daemons in debugging mode, pass the CEPH_ARGS variable like this:
2019-07-10 18:21:31 /entrypoint.sh: -e CEPH_ARGS='--debug-ms 1 --debug-osd 10'
2019-07-10 18:21:31 /entrypoint.sh: This container environement variables are: HOSTNAME=beta
OSD_DEVICE=/dev/disk/by-id/scsi-0QE
# docker run --net=host --ulimit nofile=1024:1024 --pid=host --privileged=true --name=ceph-osd-prepare-sdb -v /etc/ceph:/etc/ceph:z -v /var/lib/ceph/:/var/lib/ceph/:z -v /dev:/dev -v /etc/localtime:/etc/localtime:ro -e DEBUG=verbose -e CLUSTER=ceph -e CEPH_DAEMON=OSD_CEPH_DISK_PREPARE -e OSD_DEVICE=/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_602c5b7c-87b7-42ad-9 -e OSD_JOURNAL=/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_609b3b61-ce92-4f20-9 -e OSD_BLUESTORE=0 -e OSD_FILESTORE=1 -e OSD_DMCRYPT=0 -e OSD_JOURNAL_SIZE=5120 docker.io/ceph/daemon:v3.2.4-stable-3.2-luminous-centos-7
2019-07-10 18:11:53 /entrypoint.sh: VERBOSE: activating bash debugging mode.
2019-07-10 18:11:53 /entrypoint.sh: To run Ceph daemons in debugging mode, pass the CEPH_ARGS variable like this:
2019-07-10 18:11:53 /entrypoint.sh: -e CEPH_ARGS='--debug-ms 1 --debug-osd 10'
2019-07-10 18:11:53 /entrypoint.sh: This container environement variables are: HOSTNAME=beta
OSD_DEVICE=/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_602c5b7c-87b7-42ad-9
LC_ALL=
[stack@undercloud ~]$ rally deployment list
Command failed, please check log for more info
2017-04-18 16:11:21.113 23742 CRITICAL rally [-] DBNonExistentTable: (sqlite3.OperationalError) no such table: deployments [SQL: u'SELECT deployments.enum_deployments_status AS deployments_enum_deployments_status, deployments.created_at AS deployments_created_at, deployments.updated_at AS deployments_updated_at, deployments.id AS deployments_id, deployments.uuid AS deployments_uuid, deployments.parent_uuid AS deployments_parent_uuid, deployments.name AS deployments_name, deployments.started_at AS deployments_started_at, deployments.completed_at AS deployments_completed_at, deployments.config AS deployments_config, deployments.credentials AS deployments_credentials \nFROM deployments \nWHERE deployments.parent_uuid IS NULL']
2017-04-18 16:11:21.113 23742 ERROR rally Traceback (most recent call last):
2017-04-18 16:11:21.113 23742 ERROR rally File "/usr/bin/rally", line 10, in <module>
2017-04-18 16:11:21.113 23742 ERRO
@dsavineau
dsavineau / gist:69d267b3e8c5e68136fa
Last active August 29, 2015 14:07
edeploy_#129
### SPECS ###
# -*- python -*-
[
('pdisk', 'disk0', 'ctrl', '1'),
('pdisk', 'disk0', 'type', 'SAS'),
('pdisk', 'disk0', 'id', '32:0'),
('pdisk', 'disk0', 'size', '136.125'),
('pdisk', 'disk1', 'ctrl', '1'),
@dsavineau
dsavineau / gist:6565611
Created September 14, 2013 21:02
CMaNGOS cata linking error on mangosd
[100%] Building CXX object src/mangosd/CMakeFiles/mangosd.dir/soapC.cpp.o
[100%] Building CXX object src/mangosd/CMakeFiles/mangosd.dir/soapServer.cpp.o
Linking CXX executable mangosd
../game/libgame.a(Level3.cpp.o): In function `ChatHandler::HandleLearnAllMySpellsCommand(char*)':
Level3.cpp:(.text+0xc68): undefined reference to `SpellEntry::GetSpellLevel() const'
Level3.cpp:(.text+0xcbb): undefined reference to `SpellEntry::GetSpellFamilyName() const'
../game/libgame.a(Level3.cpp.o): In function `ChatHandler::HandleAuraCommand(char*)':
Level3.cpp:(.text+0x479f): undefined reference to `SpellEntry::GetSpellEffect(SpellEffectIndex) const'
Level3.cpp:(.text+0x47f1): undefined reference to `SpellEntry::GetSpellEffect(SpellEffectIndex) const'
Level3.cpp:(.text+0x4849): undefined reference to `SpellEntry::GetSpellEffect(SpellEffectIndex) const'
@dsavineau
dsavineau / gist:6552714
Created September 13, 2013 16:11
logstash geoip filter for apache
logstash::filter::geoip { 'geoip':
instances => ['shipper'],
order => 20,
type => 'apache',
source => 'clientip',
add_tag => ['country'],
database => '/usr/share/GeoIP/GeoIP.dat',
}