Russ Allbery: Review: The Thrilling Adventures of Lovelace and Babbage
| Publisher: | Pantheon |
| Copyright: | 2015 |
| ISBN: | 0-307-90827-5 |
| Format: | Hardcover |
| Pages: | 317 |
| Publisher: | Pantheon |
| Copyright: | 2015 |
| ISBN: | 0-307-90827-5 |
| Format: | Hardcover |
| Pages: | 317 |
A few weeks ago, I was offered the opportunity to give a guest talk in the
Romanian Association for Better Software.
RABS is a group of people interested in improving the trade, and regularly hold
events where invited speakers give presentations on a wide array of topics. The
speakers are usually pretty high-profile, so this is quite a responsibility! To
make things more interesting, much of the target audience works on enterprise
software, under Windows platforms. Definitely outside my comfort zone!
Considering all this, we decided the topic was going to be about Site
Reliability Engineering (SRE), concentrating on some aspects of it which I
believe could be useful independently of the kind of company you are working
for.
I finally gave the talk last Monday, and the audience seemed to enjoy it, so I am going to post here my notes, hopefully some other people will like it too.
[..] engineering that emphasizes dependability in the life-cycle management of a product.This is, historically, a branch of engineering that made possible to build devices that will work as expected even when their components were inherently unreliable. It focused on improving component reliability, establishing minimum requirements and expectations, and a heavy usage of statistics to predict failures and understand underlying problems. SRE started as a concept at Google about 12 years ago, when Ben Treynor joined the company and created the SRE team from a group of 7 production engineers. There is no good definition of what Site Reliability Engineering means; while the term and some of its ideas are clearly inspired in the more traditional RE, he defines SRE with these words1:
Fundamentally, it's what happens when you ask a software engineer to design an operations function.
A new release rfoaas is now on CRAN following up on the recent upstream release 0.1.8 of FOAAS.
The rfoaas package provides an interface for R to the most excellent FOAAS service--which provides a modern, scalable and RESTful web service for the frequent need to tell someone to f$#@ off.
Release 0.1.8 brings over a handfull new access points relative to the previous release 0.1.6: bday(), family_(), shutup(), zayn(), dalton(), dosomething(), retard(), and thumbs(). One of these may make a fine addition for beloved post-test comments in testthat:
R> library(rfoaas)
R> dosomething("Fix", "function", "testthat")
[1] "Fix the fucking function! - testthat"
R>
We did not make a release following version 0.1.7 of FOAAS: my testing revealed somewhat less consistent results for the language / i18n filter added in 0.1.6. So I filed issue ticket #95, but as it still lingers unanswered, I consider this feature to be unsupported for now; the tests for the language filter were disabled for now as well.
As usual, CRANberries provides a diff to the previous CRAN release. Questions, comments etc should go to the GitHub issue tracker.
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. Please report excessive re-aggregation in third-party for-profit settings.
| Series: | Vows and Honor #2 |
| Publisher: | DAW |
| Copyright: | January 1989 |
| ISBN: | 0-88677-454-3 |
| Format: | Mass market |
| Pages: | 318 |
The 12 member nations of the Trans-Pacific Partnership pact have
agreed to prohibit demands that companies reveal software source
code*, a step that appears aimed at curbing efforts by China to
gain access to this sensitive information, The Yomiuri Shimbun
has learned.
Source code is the confidential information for software and is
a blueprint embedded in many commonly used products, such as
vehicles, mobile phones and home appliances. Source code is
usually tightly guarded because it conatins commands that make
using the software easier.
China requires foreign companies operating there to hand over
source code, a move that has sparked sharp criticism from many
countries. Observers believe the decision by TPP participants
to ban demands to reveal this code is intended to restrain
China's move.
The TPP's electronic commerce chapter in principle prohibits the
12 member nations from demanding access to source code for
mass-produced software. According to the Economy, Trade and
Industry Ministry, the Japan-Mongolia economic partnership
agreement signed in February contains a stipulation banning
demands for such information, but there are very few other
examples around the world.
Japan, the United States and other nations that are home to many
information technology companies want to make the stipulation
effectively a global standard, and they are considering whether
to incorporate such a condition in economic partnership
agreements that will be inked in the future.
Source code is an important corporate secret for development
firms.
*Source code A software program written in a language a computer
understands. As well as containing expert details about the
unique functions of the product, the software is essential for
fixing glitches and making improvements. Hackers have attempted
to access source code because gaining this information would make
it easier to create viruses that could exploit any software
defects. In the software business, it is rarely made public, as
it is considered a corporate secret.
The Norwegian Bokm l version will be available for purchase in a
few days. I also plan to publish a French version in a few weeks or
months, depending on the amount of people with knowledge of French to
join the translation project. So far there is only one active
person, but the French book is almost completely translated but
need some proof reading.
The book is also available in PDF, ePub and MOBI formats from
my
github project page. Note the ePub and MOBI versions have some
formatting problems I believe is due to bugs in the docbook tool
dbtoepub (Debian BTS issues
#795842
and
#796871),
but I have not taken the time to investigate. I recommend the PDF and
ePub version for now, as they seem to show up fine in the viewers I
have available.
After the translation to Norwegian Bokm l was complete, I was able
to secure some sponsoring from
the NUUG Foundation to
print the book. This is the reason their logo is located on the back
cover. I am very grateful for their contribution, and will use it to
give a copy of the Norwegian edition to members of the Norwegian
Parliament and other decision makers here in Norway.
Following up on Then and Now ...
In quiet moments at ICFP last August, I finished teaching
Propellor to generate disk images. With an emphasis on doing a
whole lot with very little new code and extreme amount of code reuse.
For example, let's make a disk image with nethack on it. First,
we need to define a chroot. Disk image creation reuses propellor's chroot
support, described back in propelling containers. Any propellor
properties can be assigned to the chroot, so it's easy to describe
the system we want.
nethackChroot :: FilePath -> Chroot
nethackChroot d = Chroot.debootstrapped (System (Debian Stable) "amd64") mempty d
& Apt.installed ["linux-image-amd64"]
& Apt.installed ["nethack-console"]
& accountFor gamer
& gamer hasInsecurePassword "hello"
& gamer hasLoginShell "/usr/games/nethack"
where gamer = User "gamer"
nethackImage :: RevertableProperty
nethackImage = imageBuilt "/srv/images/nethack.img" nethackChroot
MSDOS (grubBooted PC)
[ partition EXT2 mountedAt "/boot"
setFlag BootFlag
, partition EXT4 mountedAt "/"
addFreeSpace MegaBytes 100
, swapPartition (MegaBytes 256)
]
addFreeSpace and setSize. Other functions like setFlag and
extended can further adjust the partitions. I think that worked out
rather well; the partition specification is compact and avoids unecessary
hardcoded sizes, while providing plenty of control.
By the end of ICFP, I had Propellor building complete disk images,
but no boot loader installed on them.
leech --
leech = host "leech.kitenet.net"
& os (System (Debian (Stable "jessie")) "armel")
& Apt.installed ["linux-image-kirkwood", "ppp", "screen", "iftop"]
& privContent "/etc/ppp/peers/provider"
& privContent "/etc/ppp/pap-secrets"
& Ppp.onBoot
& hasPassword (User "root")
& Ssh.installed
hostProperties leech and reused to create a disk image with
the same properties as the host!
So, when my dialup gateway gets struck by lightning again, I could
use this to build a disk image for its replacement:
import qualified Propellor.Property.Hardware.SheevaPlug as SheevaPlug
laptop = host "darkstar.kitenet.net"
& SheevaPlug.diskImage "/srv/images/leech.img" (MegaBytes 2000)
(& propertyList "has all of leech's properties"
(hostProperties leech))
| Publisher: | Houghton Mifflin Harcourt |
| Copyright: | 2014 |
| ISBN: | 0-544-27299-4 |
| Format: | Hardcover |
| Pages: | 295 |
Making it as easy as possible to make calls to other people and to receive calls from other people for somebody who chooses only to use genuinely Free Software, open standards, a free choice of service providers and a credible standard of privacy.If you agree with this or if you feel you can propose a more precise statement, please come and share your thoughts on the Free RTC email list. The value of a mission statement should not be underestimated. With the right mission statement, it should be possible to envision what the future will look like if we succeed and also if we don't. With the vision of success in mind, it should be easier for developers and the wider free software community to identify the steps that must be taken to make progress.
At DebConf14 in Portland, Oregon, USA, next year s DebConf team presented
their conference plans and announced the conference dates:
DebConf15 will take place from 15
to 22 August 2015 in Heidelberg, Germany. On the Open Weekend on 15/16
August, we invite members of the public to participate in our wide offering of
content and events, before we dive into the more technical part of the
conference during following week. DebConf15 will also be preceeded by DebCamp,
a time and place for teams to gather for intensive collaboration.
A set of slides
from a quick show-case during the DebConf14 closing ceremony provide a quick overview of
what you can expect next year. For more in-depth information, we invite you to watch the
video recording of the full session, in which the team provides detailed information on the preparations so far,
location and transportation to the venue at Heidelberg, the
different rooms and areas at the Youth Hostel (for accommodation,
hacking, talks, and social activities), details about the infrastructure
that are being worked on, and the plans around the conference schedule.
We invite everyone to join us in organising this conference. There are
different areas where your help could be very valuable, and we are always looking
forward to your ideas. Have a look at
our wiki page, join our
IRC channels and subscribe to our mailing lists.
We are also contacting
potential sponsors from all around the globe. If you know any organisation
that could be interested, please consider handing them our sponsorship
brochure or contact the fundraising
team with any leads.
Let s work together, as every year, on making the best DebConf ever!
(Unfortunately, I don't even dare hoping to run a decent operating system like Debian on those devices, if only because of the exotic chipsets that require all sorts of nasty hacks to run...)The machine is a SmartRG SR630n (specs). I am linking to third party site, because the SmartRG site doesn't seem to know about their own product (!). I paid extra for this device to get one that would do both Wifi and VoIP, so i could replace two machines: my current Soekris net5501 router and a Cisco ATA 186 phone adapter that seems to mysteriously defy the challenges of time. (I don't remember when I got that thing, but it's at least from 2006.) Unfortunately, it seems that SmartRG are running a custom, proprietary Linux distribution. According to my ISP,
init is a complete rewrite
that reads an XML config file (and indeed it's the format of the
backup files) and does the configuration through a shared memory
scheme (!?). According to DSL reports, the device seems to be
running a Broadcom 63168 SOC (system on a chip) that is
unsupported in Linux. There are some efforts to write drivers for
those from scratch, but they have been basically stalled for years
now.
Here are more details on the sucker:
/dev/mtdblock0 with ncSee this other good explanation of Stinger.Which means this machine is now yet another closed box sitting on the internet without firmware upgrades, totally handicapped. I will probably end up selling it back for another machine that has OpenWRT support for their VDSL modems. But there are very few such machines, and with a lot of those, VDSL support is often marked as "spotty" or "in progress". Some machines are supported but are basically impossible to find. There's the Draytek modems are also interesting because, apparently, some models run OpenWRT out of the box too, which is a huge benefit. This is because they use the more open Lantiq SOC. Which are probably not going to support Stinger lines. Still, there are some very interesting projects out there... The Omnia is one I am definitely interested in right now. I really like their approach... But then they don't have a VDSL chipset in there (I asked for one, actually). And the connectors are only mini-PCIe, which makes it impossible to connect a VDSL PCI card into it. I could find a single VDSL2 PCI card online, and it could be supported, but only the annex B is available, not the annex A, and it seems the network is using "annex A" according to the ADSL stats i had in 2015-05-28-anarcat-back-again. With such a card, I could use my existing Soekris net5501 router, slam a DSL card into it, and just use the SmartRG as a dumb wifi router/phone adapter. Then it will remain to see how supported are those VDSL cards in FreeBSD (they provide Linux source code, so that's cool). And of course, all this assumes the card works with the "Stinger" mode, which is probably not the case anyways. Besides, I have VDSL2 here, not the lowly ADSL2+. By the way, Soekris keeps on pushing new interesting products out: their net6501, with 2 extra Gig-E cards could be a really interesting high-end switch, all working with free software tools. A friend has a SmartRG 505n modem, which looks quite similar, except without the ATA connectors. And those modems are the ones that Teksavvy recommends ("You may use a Cellpipe 7130 or Sagemcom F@ST 2864 in lieu of our SmartRG SR505N for our DSL 15/10, DSL 25 or DSL 50 services."). Furthermore, Teksavvy provides a firmware update for the 505n - again, no idea if it works with the 630n. Of course, the 505n doesn't run OpenWRT either. So, long story short, again I got screwed by my ISP: I thought i would get a pretty hackable device, "running Linux" that my ISP said over the phone. I got weeks of downtime, no refund, and while i got a better line (more reliable, higher bandwidth), my costs doubled. And I have yet another computing device to worry about: instead of simplifying and reducing waste, I actually just added crap on top of my already cluttered desk. Next time, maybe I'll tell you about how my ISP overbilled me, broke IPv6 and drops large packets to the floor. I haven't had a response from them in months now... hopefully they will either answer and fix all of this (doubtful) or I'll switch to some other provider, probably Teksavvy. Many thanks to the numerous people in the DSL reports Teksavvy forum that have amazing expertise. They are even building a map of Bell COs... Thanks also to Taggart for helping me figure out how the firmware images work and encouraging me to figure out how my machine works overall.
Note: all the information shared here is presented in the spirit of the fair use conditions of copyright law.
| Series: | Vows and Honor #1 |
| Publisher: | DAW |
| Copyright: | July 1988 |
| ISBN: | 0-88677-414-4 |
| Format: | Mass market |
| Pages: | 302 |
rrs@learner:/var/tmp/Debian-Build/Result$ systemd-run -p BlockIOWeight=10 find / Running as unit run-23805.service. 2015-10-20 / 21:37:44
rrs@learner:/var/tmp/Debian-Build/Result$ systemctl status -l run-23805.service
run-23805.service - /usr/bin/find /
Loaded: loaded
Drop-In: /run/systemd/system/run-23805.service.d
50-BlockIOWeight.conf, 50-Description.conf, 50-ExecStart.conf
Active: active (running) since Tue 2015-10-20 21:37:44 CEST; 6s ago
Main PID: 23814 (find)
Memory: 12.2M
CPU: 502ms
CGroup: /system.slice/run-23805.service
23814 /usr/bin/find /
Oct 20 21:37:45 learner find[23814]: /proc/3/net/raw6
Oct 20 21:37:45 learner find[23814]: /proc/3/net/snmp
Oct 20 21:37:45 learner find[23814]: /proc/3/net/stat
Oct 20 21:37:45 learner find[23814]: /proc/3/net/stat/rt_cache
Oct 20 21:37:45 learner find[23814]: /proc/3/net/stat/arp_cache
Oct 20 21:37:45 learner find[23814]: /proc/3/net/stat/ndisc_cache
Oct 20 21:37:45 learner find[23814]: /proc/3/net/stat/ip_conntrack
Oct 20 21:37:45 learner find[23814]: /proc/3/net/stat/nf_conntrack
Oct 20 21:37:45 learner find[23814]: /proc/3/net/tcp6
Oct 20 21:37:45 learner find[23814]: /proc/3/net/udp6
2015-10-20 / 21:37:51 rrs@learner:/var/tmp/Debian-Build/Result$ ls /sys/fs/cgroup/memory/rrs_customCG/ cgroup.clone_children memory.kmem.tcp.limit_in_bytes memory.numa_stat cgroup.event_control memory.kmem.tcp.max_usage_in_bytes memory.oom_control cgroup.procs memory.kmem.tcp.usage_in_bytes memory.pressure_level digikam/ memory.kmem.usage_in_bytes memory.soft_limit_in_bytes memory.failcnt memory.limit_in_bytes memory.stat memory.force_empty memory.max_usage_in_bytes memory.swappiness memory.kmem.failcnt memory.memsw.failcnt memory.usage_in_bytes memory.kmem.limit_in_bytes memory.memsw.limit_in_bytes memory.use_hierarchy memory.kmem.max_usage_in_bytes memory.memsw.max_usage_in_bytes notify_on_release memory.kmem.slabinfo memory.memsw.usage_in_bytes tasks memory.kmem.tcp.failcnt memory.move_charge_at_immigrate 2015-10-20 / 21:45:38 rrs@learner:/var/tmp/Debian-Build/Result$ ls /sys/fs/cgroup/memory/rrs_customCG/digikam/ cgroup.clone_children memory.kmem.tcp.max_usage_in_bytes memory.oom_control cgroup.event_control memory.kmem.tcp.usage_in_bytes memory.pressure_level cgroup.procs memory.kmem.usage_in_bytes memory.soft_limit_in_bytes memory.failcnt memory.limit_in_bytes memory.stat memory.force_empty memory.max_usage_in_bytes memory.swappiness memory.kmem.failcnt memory.memsw.failcnt memory.usage_in_bytes memory.kmem.limit_in_bytes memory.memsw.limit_in_bytes memory.use_hierarchy memory.kmem.max_usage_in_bytes memory.memsw.max_usage_in_bytes notify_on_release memory.kmem.slabinfo memory.memsw.usage_in_bytes tasks memory.kmem.tcp.failcnt memory.move_charge_at_immigrate memory.kmem.tcp.limit_in_bytes memory.numa_stat 2015-10-20 / 21:45:53
rrs@learner:/var/tmp/Debian-Build/Result$ cat /sys/fs/cgroup/cpu/rrs_customCG/cpu.shares 1024 2015-10-20 / 21:48:44 rrs@learner:/var/tmp/Debian-Build/Result$ cat /sys/fs/cgroup/cpu/rrs_customCG/digikam/cpu.shares 512 2015-10-20 / 21:49:05
rrs@learner:/var/tmp/Debian-Build/Result$ cat /sys/fs/cgroup/memory/rrs_customCG/memory.limit_in_bytes 9223372036854771712 2015-10-20 / 22:20:14 rrs@learner:/var/tmp/Debian-Build/Result$ cat /sys/fs/cgroup/memory/rrs_customCG/digikam/memory.limit_in_bytes 2764369920 2015-10-20 / 22:20:27
rrs@learner:/var/tmp/Debian-Build/Result$ cat /sys/fs/cgroup/blkio/rrs_customCG/blkio.weight 500 2015-10-20 / 21:51:43 rrs@learner:/var/tmp/Debian-Build/Result$ cat /sys/fs/cgroup/blkio/rrs_customCG/digikam/blkio.weight 10 2015-10-20 / 21:51:50
top - 21:54:38 up 1 day, 6:46, 1 user, load average: 7.22, 7.51, 7.37
Tasks: 299 total, 1 running, 298 sleeping, 0 stopped, 0 zombie
%Cpu0 : 7.1 us, 3.0 sy, 1.0 ni, 11.1 id, 77.8 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu1 : 6.0 us, 4.0 sy, 2.0 ni, 49.0 id, 39.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu2 : 5.0 us, 2.0 sy, 0.0 ni, 24.8 id, 68.3 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu3 : 5.9 us, 5.0 sy, 0.0 ni, 21.8 id, 67.3 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 7908.926 total, 96.449 free, 4634.922 used, 3177.555 buff/cache
MiB Swap: 8579.996 total, 3454.746 free, 5125.250 used. 2753.324 avail Mem
PID to signal/kill [default pid = 8879]
PID PPID nTH USER PR NI S %CPU %MEM TIME+ COMMAND UID
8879 8868 18 rrs 20 0 S 8.2 31.2 37:44.64 digikam 1000
10255 9960 4 rrs 39 19 S 1.0 0.8 19:47.73 tracker-miner-f 1000
10157 9960 7 rrs 20 0 S 0.5 3.0 32:29.76 gnome-shell 1000
7 2 1 root 20 0 S 0.2 0:53.48 rcu_sched 0
401 1 1 root 20 0 S 0.2 1.3 0:54.93 systemd-journal 0
10269 9937 4 rrs 20 0 S 0.2 0.4 2:34.50 gnome-terminal- 1000
15316 1 14 rrs 20 0 S 0.2 3.7 30:05.96 evolution 1000
23777 2 1 root 20 0 S 0.2 0:05.73 kworker/u16:0 0
23814 1 1 root 20 0 D 0.2 0.0 0:02.00 find 0
24049 2 1 root 20 0 S 0.2 0:01.29 kworker/u16:3 0
24052 2 1 root 20 0 S 0.2 0:02.94 kworker/u16:4 0
1 0 1 root 20 0 S 0.1 0:18.24 systemd 0
What happened in the reproducible
builds effort this week:
Toolchain fixes
py3versions to list versions in a consistent order. Issue reported by Santiago Vila with a tentative patch by Chris Lamb. Sadly, it appears the problem is not entirely solved.Pod::Man. This would complement or replace the previously implemented POD_MAN_DATE environment variable in a more generic way.
Niko Tyni proposed a fix to prevent mtime variation in directories due to debhelper usage of cp --parents -p.
Packages fixed
The following 119 packages became reproducible due to changes in their
build dependencies:
aac-tactics,
aafigure,
apgdiff,
bin-prot,
boxbackup,
calendar,
camlmix,
cconv,
cdist,
cl-asdf,
cli-common,
cluster-glue,
cppo,
cvs,
esdl,
ess,
faucc,
fauhdlc,
fbcat,
flex-old,
freetennis,
ftgl,
gap,
ghc,
git-cola,
globus-authz-callout-error,
globus-authz,
globus-callout,
globus-common,
globus-ftp-client,
globus-ftp-control,
globus-gass-cache,
globus-gass-copy,
globus-gass-transfer,
globus-gram-client,
globus-gram-job-manager-callout-error,
globus-gram-protocol,
globus-gridmap-callout-error,
globus-gsi-callback,
globus-gsi-cert-utils,
globus-gsi-credential,
globus-gsi-openssl-error,
globus-gsi-proxy-core,
globus-gsi-proxy-ssl,
globus-gsi-sysconfig,
globus-gss-assist,
globus-gssapi-error,
globus-gssapi-gsi,
globus-net-manager,
globus-openssl-module,
globus-rsl,
globus-scheduler-event-generator,
globus-xio-gridftp-driver,
globus-xio-gsi-driver,
globus-xio,
gnome-control-center,
grml2usb,
grub,
guilt,
hgview,
htmlcxx,
hwloc,
imms,
kde-l10n,
keystone,
kimwitu++,
kimwitu-doc,
kmod,
krb5,
laby,
ledger,
libcrypto++,
libopendbx,
libsyncml,
libwps,
lprng-doc,
madwimax,
maria,
mediawiki-math,
menhir,
misery,
monotone-viz,
morse,
mpfr4,
obus,
ocaml-csv,
ocaml-reins,
ocamldsort,
ocp-indent,
openscenegraph,
opensp,
optcomp,
opus,
otags,
pa-bench,
pa-ounit,
pa-test,
parmap,
pcaputils,
perl-cross-debian,
prooftree,
pyfits,
pywavelets,
pywbem,
rpy,
signify,
siscone,
swtchart,
tipa,
typerep,
tyxml,
unison2.32.52,
unison2.40.102,
unison,
uuidm,
variantslib,
zipios++,
zlibc,
zope-maildrophost.
The following packages became reproducible after getting fixed:
reproducible.debian.net).PPPort_xs.PL. Forwarded upstream.amd64 packages has been lowered from 14 to 7 days, thanks to the increase of hardware resources sponsored by ProfitBricks last week. (h01ger)
diffoscope development
diffoscope version 37 has been released on October 15th. It adds support for two new file formats (CBFS images and Debian .dsc files). After proposing the required changes to TLSH, fuzzy hashes are now computed incrementally. This will avoid reading entire files in memory which caused problems for large packages.
New tests have been added for the command-line interface. More character encoding issues have been fixed. Malformed md5sums will now be compared as binary files instead of making diffoscope crash amongst several other minor fixes.
Version 38 was released two days later to fix the versioned dependency on python3-tlsh.
strip-nondeterminism development
strip-nondeterminism version 0.013-1 has been uploaded to the archive. It fixes an issue with nonconformant PNG files with trailing garbage reported by Roland Rosenfeld.
disorderfs development
disorderfs version 0.4.1-1 is a stop-gap release that will disable lock propagation, unless --share-locks=yes is specified, as it still is affected by unidentified issues.
Documentation update
Lunar has been busy creating a proper website for reproducible-builds.org that would be a common location for news, documentation, and tools for all free software projects working on reproducible builds. It's not yet ready to be published, but it's surely getting there.
Package reviews
103 reviews have been removed, 394 added and 29 updated this week.
72 FTBFS issues were reported by Chris West and Niko Tyni.
New issues: random_order_in_static_libraries, random_order_in_md5sums.
So, since several years I've had a second gpg key, 4096R/6AABE354. Several
of you have already signed it, and I've been using it in Debian for some
time already, but I've not announced it more widely yet, and I occasionally
still get mail encrypted to the old key (which remains valid and usable,
but it's 1024R).
Of course, I've also made a formal
transition statement:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
OpenPGP Key Transition Statement for Simon Richter
I have created a new OpenPGP key and will be transitioning away from
my old key. The old key has not been compromised and will continue to
be valid for some time, but I prefer all future correspondence to be
encrypted to the new key, and will be making signatures with the new
key going forward.
I would like this new key to be re-integrated into the web of trust.
This message is signed by both keys to certify the transition. My new
and old keys are signed by each other. If you have signed my old key,
I would appreciate signatures on my new key as well, provided that
your signing policy permits that without re-authenticating me.
The old key, which I am transitioning away from, is:
pub 1024D/5706A4B4 2002-02-26
Key fingerprint = 040E B5F7 84F1 4FBC CEAD ADC6 18A0 CC8D 5706 A4B4
The new key, to which I am transitioning, is:
pub 4096R/6AABE354 2009-11-19
Key fingerprint = 9C43 2534 95E4 DCA8 3794 5F5B EBF6 7A84 6AAB E354
The entire key may be downloaded from: http://www.simonrichter.eu/simon.asc
To fetch the full new key from a public key server using GnuPG, run:
gpg --keyserver keys.gnupg.net --recv-key 6AABE354
If you already know my old key, you can now verify that the new key is
signed by the old one:
gpg --check-sigs 6AABE354
If you are satisfied that you've got the right key, and the User IDs
match what you expect, I would appreciate it if you would sign my key:
gpg --sign-key 6AABE354
You can upload your signatures to a public keyserver directly:
gpg --keyserver keys.gnupg.net --send-key 6AABE354
Or email sr@simonrichter.eu (possibly encrypted) the output from:
gpg --armor --export 6AABE354
If you'd like any further verification or have any questions about the
transition please contact me directly.
To verify the integrity of this statement:
wget -q -O- http://www.simonrichter.eu/key-transition-2015-03-09.txt gpg --verify
Simon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBAgAGBQJU/bbEAAoJEH69OHuwmQgRWOIH/AogHxhhVO5Tp5FFGpBFwljf
NzKTPBExMhZ/8trAzYybOWFv3Bx4AGdWkYfDnxP6oxQJOXVq4KL6ZcPPuIZuZ6fZ
bu0XHdPMU89u0TymR/WJENRCOcydRBe/lZs+zdJbKQtEZ+on4uNXxHpUiZPi1xxM
ggSdVBKn2PlCBcYih40S9Oo/rM9uBmYcFavX7JMouBSzgX78cVoIcY6zPRmHoq4k
TkGKfvHeSu+wbzWRmDwu/PFHRA4TKNvR6oeO+Et1yk454zjrHMXineBILRvvMCIA
t54pV6n+XzOUmtXcKnkIGltK+ZaJSV6am0swtx84RaevVXrknIQE8NvlA4MNgguI
nAQBAQIABgUCVP23tAAKCRDSx966V9+/u3j4BACVHifAcO86jAc5dn+4OkFZFhV1
l3MKIolL+E7Q7Ox+vJunGJJuGnOnazUK+64yDGZ2JxNJ4QNWD1FOs/Ng2gm82Vin
ArBtyp1ZGWUa+349X+1qarUQF9qAaUXDZjFp5Hzh/o6KC4t3eECxcb41og3LUTQD
VuG2KWNXYBe5P5ak9Q==
=o61r
-----END PGP SIGNATURE-----
I've been doing a little bit of dynamically typed programming in Haskell,
to improve Propellor's Info type. The result is kind of
interesting in a scary way.
Info started out as a big record type, containing all the different sorts
of metadata that Propellor needed to keep track of. Host IP addresses, DNS
entries, ssh public keys, docker image configuration parameters... This got
quite out of hand. Info needed to have its hands in everything,
even types that should have been private to their module.
To fix that, recent versions of Propellor let a single
Info contain many different types of values. Look at it one way and
it contains DNS entries; look at it another way and it contains ssh public
keys, etc.
As an migr from lands where you can never know what type of value is in
a $foo until you look, this was a scary prospect at first, but I found
it's possible to have the benefits of dynamic types and the safety of
static types too.
The key to doing it is Data.Dynamic. Thanks to Joachim Breitner for
suggesting I could use it here. What I arrived at is this type (slightly
simplified):
newtype Info = Info [Dynamic]
deriving (Monoid)
mempty
and use this function:
addInfo :: (IsInfo v, Monoid v) => Info -> v -> Info
addInfo (Info l) v = Info (toDyn v : l)
IsInfo type class. That prevents the foot shooting associated with
dynamic types, by only allowing use of types that make sense as Info.
Otherwise arbitrary Strings etc could be passed to addInfo by accident, and
all get concated together, and that would be a total dynamic programming
mess.
Anything you can add into an Info, you can get back out:
getInfo :: (IsInfo v, Monoid v) => Info -> v
getInfo (Info l) = mconcat (mapMaybe fromDynamic (reverse l))
mempty.
Crucially, IsInfo is an open type class. Any module in Propellor
can make a new data type and make it an instance of IsInfo, and then that
new data type can be stored in the Info of a Property, and any Host that
uses the Property will have that added to its Info, available for later
introspection.
propellor once and have it update the
configuration of an entire network of hosts.
There can be whole chains of controllers controlling other controllers etc.
The problem is, what if host foo has the property controllerFor bar
and host bar has the property controllerFor foo? I want to avoid
a loop of foo running Propellor on bar, running Propellor on foo, ...
To detect such loops, each Host's Info should contain a list of the
Hosts it's controlling. Which is not hard to accomplish:
newtype Controlling = Controlled [Host]
deriving (Typeable, Monoid)
isControlledBy :: Host -> Controlling -> Bool
h isControlledBy (Controlled hs) = any (== hostName h) (map hostName hs)
instance IsInfo Controlling where
propigateInfo _ = True
mkControllingInfo :: Host -> Info
mkControllingInfo controlled = addInfo mempty (Controlled [controlled])
getControlledBy :: Host -> Controlling
getControlledBy = getInfo . hostInfo
isControllerLoop :: Host -> Host -> Bool
isControllerLoop controller controlled = go S.empty controlled
where
go checked h
controller isControlledBy c = True
-- avoid checking loops that have been checked before
hostName h S.member checked = False
otherwise = any (go (S.insert (hostName h) checked)) l
where
c@(Controlled l) = getControlledBy h
addInfo combine together values in the list that have the same type;
as it is the list can get long. And, to show Info, the best I could do was
this:
instance Show Info where
show (Info l) = "Info " ++ show (map dynTypeRep l)
getInfo can be used to get any
particular type of value:
*Main> hostInfo kite
Info [InfoVal System,PrivInfo,PrivInfo,Controlling,DnsInfo,DnsInfo,DnsInfo,AliasesInfo, ...
*Main> getInfo (hostInfo kite) :: AliasesInfo
AliasesInfo (fromList ["downloads.kitenet.net","git.joeyh.name","imap.kitenet.net","nntp.olduse.net" ...
And finally, I keep trying to think of a better name than "Info".
Power_On_Hours: 64380; I probably got it
after it had a few months of uptime). I believe it was the longest
running harddrive I've ever used (for the record: Seagate
Barracuda 7200.10, ST3250310AS).
The reason I delayed upgrade for a long time was twofold: first, at
the same provider I couldn't get a similar SLA for the same amount of
money. I could get better hardware, but with worse SLA and
options. This is easily solvable, of course, by just finding a
different provider.
The other issue was that I never bothered to setup proper
configuration management for the host; after all, it was only supposed
to run Apache with ikiwiki and some other trivial small other
things. The truth was that over time it started pilling up more and
more "small things" so actually changing the host is expensive.
As the age of the server neared 7 years, I thought to combine upgrade
from Wheezy to Jessie with a HW upgrade. Managed to find a different
provider that had my desired SLA and HW configuration, got the server
and the only thing left was to do the migration.
Previous OS upgrades were simple as they were on the same host;
i.e. rely on Debian's reliable upgrade and nothing else to, eventually
adjust slightly some configs. With a cross-host upgrade (I couldn't
just copy the old OS since it was also a 32-to-64 bit change) it's
much worse: since there's no previous installation, I had to manually
check and port the old configuration for each individual service. This
got very tedious, and I realised I have to make it somehow better.
"Proper" configuration management aside, I thought that I need proper
monitoring first. I already had (for a long while actually) graphing
via Munin, but no actual monitoring. Since the host only had few
services, this was again supposed to be easy - same mistake again.
The problem is that once you have any monitoring system setup, it's
very easy to actually add "just one more" host or service to it. First
it was only the external box, then it was my firewall, then it was the
rest of my home network. Then it was the cloud services that I use for
example, checking whether my domain registrar's nameservers still are
authoritative for my domain or whether the expiration date it still
far in the future. And so on
In the end, what was in previous iterations (e.g. Squeeze to Wheezy
upgrade) a half-weekend job only, spread out over many weekends
(interleaved with other activities, not fully working on it). I had to
keep the old machine running for a month more in order to make sure
everything was up and running, and I ended up with 80 services
monitored across multiple systems; the migrated machine itself has
almost half of these. Some of these are light items (e.g. a checking
that a single vhost responds) other are aggregates. I still need to
add some more checks though, especially more complex (end-to-end)
ones.
The lesson I learned in all this is that, with or without
configuration management in place, having monitoring makes it much
easier do to host or service moves, as you know much better when
everything is done whether it's "done-done" or just "almost done".
The question that remains though: with 80 services for a home network
plus external systems (personal use); I'm not sure if I'm doing things
right (monitor the stuff I need) or wrong (do I really need these many
things)?
Next.