Skip to content

Instantly share code, notes, and snippets.

Avatar

Alasdair Lumsden alaslums

View GitHub Profile
View cephfs-crash-kubernetes.txt
OS: Ubuntu 18.04
Env: Kubernetes v1.17.0 + Rook
When attempting to create a snapshot via "mkdir .snap/mysnap" on a cephfs filesystem, the below crash is seen.
This appears to be fixed in newer kernels, installing "apt-get install --install-recommends linux-virtual-hwe-18.04" to get a newer kernel (5.3.0-28-generic) fixes this.
[ 172.166869] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
[ 172.170657] IP: ceph_get_snap_realm+0x1c/0x90 [ceph]
[ 172.173225] PGD 0 P4D 0
View JunOS QFX boot issue
Juniper QFX5100-48t boot problem
So, we have a QFX5100-48t that randomly doesn't want to boot the junos guest. I couldn't find ANY posts on google about this so I thought I'd dump a gist.
What I could see was a stack trace in the Linux kernel boot:
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
------------[ cut here ]------------
View kstat-ipfilter.patch
diff --git a/usr/src/uts/common/inet/ipf/solaris.c b/usr/src/uts/common/inet/ipf/solaris.c
index c541f4d..1d391dd 100644
--- a/usr/src/uts/common/inet/ipf/solaris.c
+++ b/usr/src/uts/common/inet/ipf/solaris.c
@@ -7,6 +7,7 @@
* Use is subject to license terms.
*
* Copyright (c) 2014, Joyent, Inc. All rights reserved.
+ * Copyright (c) 2018, Alasdair Lumsden. All rights reserved.
*/
View kstat-netstack.patch
diff --git a/usr/src/uts/common/inet/ip/icmp.c b/usr/src/uts/common/inet/ip/icmp.c
index a4abdbd..68a8759 100644
--- a/usr/src/uts/common/inet/ip/icmp.c
+++ b/usr/src/uts/common/inet/ip/icmp.c
@@ -22,6 +22,7 @@
* Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013 by Delphix. All rights reserved.
* Copyright 2014, OmniTI Computer Consulting, Inc. All rights reserved.
+ * Copyright (c) 2018, Alasdair Lumsden. All rights reserved.
*/
@alaslums
alaslums / gist:3d959db398091d0aed736947e9681a8a
Created Jun 29, 2018
Fix makedev package on Ubuntu 14.04 for Joyent SmartOS LX zones
View gist:3d959db398091d0aed736947e9681a8a
Unfortunately the Ubuntu makedev package fails to detect it's in a container environment on SmartOS LX zones, resulting in errors of the form:
# apt-get install nano
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nano
0 upgraded, 1 newly installed, 0 to remove and 141 not upgraded.
1 not fully installed or removed.