Skip to content

Instantly share code, notes, and snippets.

View felskrone's full-sized avatar

Volker Schwicking felskrone

View GitHub Profile
@felskrone
felskrone / gist:6e10861721a8f5471834be1c4e3c2275
Last active April 18, 2018 09:45
Megacli fails to query controller
Hi all,
after our latest kernel-update from 4.6. to 4.14.14 we are having trouble getting data out of our LSI-raid-controllers
using the megacli-binary.
For every execution of the megacli-binary a line shows up in the kern.log
###
[547216.425556] megaraid_sas 0000:03:00.0: Failed to alloc kernel SGL buffer for IOCTL
###
@felskrone
felskrone / gist:a33ab3e496dd588445121163f4c01c50
Created April 18, 2018 09:32
MegaCli fails to query LSI-controller
Hi all,
after our latest kernel-update from 4.6. to 4.14.14 we are having trouble getting data out of our LSI-raid-controllers using the megacli-binary.
For every execution of the megacli-binary a line shows up in the kern.log
###
[547216.425556] megaraid_sas 0000:03:00.0: Failed to alloc kernel SGL buffer for IOCTL
###
$ mount
/dev/xvda4 on /data type xfs (rw,nosuid,nodev,noatime,attr2,inode64,sunit=512,swidth=5120,prjquota)
$ xfs_quota -x -c "enable -p" /data/
XFS_QUOTAON: File exists
$ cat /etc/projects
13005008:/data/cust13005008
$ xfs_quota -x -c 'project -s 13005008' /data
XEN-Kernel options
###
$ zcat /proc/config.gz | grep XEN
CONFIG_XEN=y
CONFIG_XEN_PV=y
CONFIG_XEN_PV_SMP=y
CONFIG_XEN_DOM0=y
CONFIG_XEN_PVHVM=y
CONFIG_XEN_PVHVM_SMP=y
CONFIG_XEN_512GB=y
master01:~# kubectl get pods
NAME READY STATUS RESTARTS AGE
busybox 1/1 Running 0 8m
master01:~# kubectl exec -ti busybox busybox ls
Error from server: error dialing backend: x509: certificate is valid for w02, not worker02
worker02:~# docker exec -ti 519947dc3f44 busybox ls
bin dev etc home proc root sys tmp usr var
{% if not 'proftpd.regen_all' in __salt__ %}
sync_modules:
module.run:
- name: saltutil.sync_modules
{% endif %}
https://user:password@foreman.domain.com/api/v2/hosts?utf8=%E2%9C%93&search=name+~+xserver*+and+%28not+has+last_report+or+last_report+%3C+%226+hours+ago%22%29&per_page=30000
{
"error": {"message":"Unable to authenticate user "}
}
Once i login to foreman with the user from above, the API starts working again.
{
"total": 15387,
12 URL = 'https://foreman02.domain.de/api/hosts/host.domain.de
...
19 data = requests.put(URL,
20 auth=HTTPBasicAuth(USER, PASSWORD),
21 cert=(CERT, KEY),
22 headers=headers,
23 json={"host": {"host_parameters_attributes": {"name":"state", "value":"inactive" }}}
24 )
result:
file_client: local
environment: base
file_roots:
base:
- /vagrant/git/saltmaster_srv_salt
- /vagrant/git/saltmaster_srv_salt/formulas
- /vagrant/git/saltmaster_configs
- /vagrant/git/saltmaster_configs_generated
Master Minion
======= ======
pubkey-Master pubkey-Minion
privkey-Master privkey-Minion
AES-key Master
SETUP PHASE