Skip to content

Instantly share code, notes, and snippets.

@supermari0
supermari0 / keybase.md
Created May 21, 2019 17:30
keybase.md

Keybase proof

I hereby claim:

  • I am supermari0 on github.
  • I am supermari0 (https://keybase.io/supermari0) on keybase.
  • I have a public key whose fingerprint is AF50 28EE AA12 345B 04B7 C74A 3372 C037 E577 6B6D

To claim this, I am signing this object:

package main
import (
"fmt"
"golang.org/x/tour/tree"
)
// Walk walks the tree t sending all values
// from the tree to the channel ch
// (depth-first, in order)
// https://tour.golang.org/methods/23
package main
import (
"io"
"os"
"strings"
)
type rot13Reader struct {
1. configure IPA to use inspector with config options from https://github.com/openstack/ironic-python-agent/blob/master/ironic_python_agent/inspector.py#L55
2. check documentation to see if that config option is documented anywhere; if not file a bug http://docs.openstack.org/developer/ironic-inspector/index.html
3. verify that it's working
a. ssh tc@<agent ip>; chroot /opt/ironic-python-agent; python ...
b. set up ironic-inspector and see if it's working correctly http://docs.openstack.org/developer/ironic-inspector/index.html
@supermari0
supermari0 / gist:10220c3c13460d5a30f082b467fb5c54
Created October 7, 2016 18:57
deploy with custom ramdisk in devstack
1. go through local.conf and ironic.conf. Look for TODO and update appropriately
2. IRONIC_BUILD_DEPLOY_RAMDISK=true in local.conf
3. cd ~/ironic-python-agent
// change whatever settings you need to in order to enable SSH to ironic-python-agent
make tinyipa
// this will give you .vmlinuz for the kernal and some other ramdisk file
// put them somewhere ironic can access
3.
IRONIC_DEPLOY_RAMDISK=
IRONIC_DEPLOY_KERNEL=
--- import errors ---
Failed to import test module: ironic.tests.drivers.test_base
Traceback (most recent call last):
File "/root/ironic/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 456, in _find_test_path
module = self._get_module_from_name(name)
File "/root/ironic/.tox/py27/local/lib/python2.7/site-packages/unittest2/loader.py", line 395, in _get_module_from_name
__import__(name)
File "ironic/tests/drivers/test_base.py", line 27, in <module>
class FakeVendorInterface(driver_base.VendorInterface):
File "ironic/tests/drivers/test_base.py", line 39, in FakeVendorInterface
@supermari0
supermari0 / gist:9d8753639305c263b9e7
Last active August 29, 2015 14:25 — forked from naterh/gist:979632b0496967bac93d
grub2 compile automation
sudo apt-get update && sudo apt-get install git bison libopts25 libselinux1-dev autogen m4 autoconf help2man libopts25-dev flex libfont-freetype-perl automake autotools-dev libfreetype6-dev texinfo
// original had ia32_libs build_essential, probably deprecated
// also apt-get install make; probably packaged separately in ubuntu 14.04 or something
git clone git://git.savannah.gnu.org/grub.git
cd grub
./autogen.sh
./configure --target=i386 --program-prefix=""