Fail2Ban

Unban an IP fail2ban-client set sshd unbanip –iphere– Show status of jails [root@l1-adl3 ~]# fail2ban-client status Status |- Number of jail: 1 `- Jail list: sshd   Show the Fail2Ban log cat /var/log/fail2ban.log

Read More »

Cinder Ceph config

Puppet settings cinder::controller::settings:         DEFAULT:                 rpc_backend: “rabbit”                 my_ip: “%{::ipaddress_eth0}”                 verbose: “True”                 debug: “False”                 auth_strategy: “keystone”                 enabled_backends: “ceph_sas,ceph_sata”                 glance_host: “%{hiera(‘glance::virtualIP’)}”                 volume_driver: “cinder.volume.drivers.rbd.RBDDriver”                 rbd_pool: “volumes”                 rbd_ceph_conf: “/etc/ceph/ceph.conf”                 rbd_flatten_volume_from_snapshot: “false”                 rbd_max_clone_depth: “5”                 rbd_store_chunk_size: “4”                 rados_connect_timeout: “-1”                 glance_api_version: “2”                 default_volume_type: “sas”         ceph_sas: […]

Read More »

Cinder volume service error when opening Ceph

Whe configuring Cinder for a Ceph backend i got this   2016-02-11 16:02:58.939 13065 ERROR cinder.volume.manager [req-07be81aa-8417-4367-a19d-cace7e6ab7a0 – – – – -] Failed to initialize driver. 2016-02-11 16:02:58.939 13065 ERROR cinder.volume.manager Traceback (most recent call last): 2016-02-11 16:02:58.939 13065 ERROR cinder.volume.manager   File “/usr/lib/python2.7/site-packages/cinder/volume/manager.py”, line 368, in init_host 2016-02-11 16:02:58.939 13065 ERROR cinder.volume.manager     self.driver.check_for_setup_error() 2016-02-11 16:02:58.939 […]

Read More »

Ceph disk not online after a reboot

After a reboot of my Ceph test VM’s a few OSD’s didnt come online When running ceph osd tree I saw [root@lib-cephosd1 ~]# ceph osd tree ID WEIGHT  TYPE NAME             UP/DOWN REWEIGHT PRIMARY-AFFINITY -1 0.29984 root default -2 0.09995     host lib-cephosd1  1 0.00999         osd.1              up  1.00000          1.00000  0 0.00999         osd.0              up  1.00000          1.00000  2 0.00999         […]

Read More »

Errors running Glance[Liberty] on Centos 7

When trying to install\run glance on Centos 7 I came across the following error ImportError: No module named oslo_policy This was resolved by installing the python oslo_policy module by running pip install oslo.policy You may or not need to install pip(Python’s equivalent to Yum almost?) yum install python-pip   Thats all wonderful but now i […]

Read More »

Handy Ceph Commands

Show all disks on the OSD you are logged into ceph-disk list Example output [root@cephosd1 ~]# ceph-disk list WARNING:ceph-disk:Old blkid does not support ID_PART_ENTRY_* fields, trying sgdisk; may not correctly identify ceph volumes with dmcrypt /dev/sda :  /dev/sda1 other, xfs, mounted on /boot  /dev/sda2 other, LVM2_member /dev/sdb other, unknown /dev/sdc other, unknown /dev/sdd :  /dev/sdd1 […]

Read More »

Openstack Liberty – Neutron config file issue

All the doco I could lay my hand on for configuring OpenStack Liberty(Which at the time of writing, is not alot!) shows the config file for the OpenVSwitch agent to be located at “/etc/neutron/plugin.ini” which is a symlink to “/etc/neutron/plugins/ml2/ml2_conf.ini” I configured /etc/neutron/plugins/ml2/ml2_conf.ini as per the config i needed but it just didn’t work. Upon […]

Read More »

Recreate DFS Database

I use DFS alot for work, sometimes it just gets grumpy and needs to be kicked in the guts. Deleting the database isnt easy, becuase widnows keeps a pretty tight grib on anything in SystemVolumeInformation. Use this script to move the DFS folder and have the service create a fresh new database Hint – Look […]

Read More »

Setup Rabbit MQ

Enable webserver sudo rabbitmq-plugins enable rabbitmq_management New user rabbitmqctl add_user test test rabbitmqctl set_user_tags test administrator rabbitmqctl set_permissions -p / test “.*” “.*” “.*”

Read More »