1
0
Fork 0
Commit Graph

792 Commits (ef3d7b89e0eaa00ecc3dd248cbafb440c1df3143)

Author SHA1 Message Date
q3k ef3d7b89e0 dc/hbj11/flasher: fix manufacturer name
Apparently, at least parts of the M610 (eg. iDRAC) attempt to index
exact bytes from the FRU EEPROM instead of parsing it, and thus were
parsing our FRU's manufacturer/product name wrong. This fixes that.

Change-Id: I18d62ea79df7b7bf30cec3251da2c32d25b73507
2021-03-25 18:55:34 +00:00
q3k d73dc0e253 Merge "cluster/k0: add dns crdb user" 2021-03-25 18:22:07 +00:00
q3k aa131447e5 Merge "cluster/crdb: make init job 'idempotent'" 2021-03-25 17:43:14 +00:00
q3k 1632aaee04 dc/hbj11: link to public WebI2C instance
Change-Id: I0d7092314dcc9aed488e1ffdf3d51566848e3fff
2021-03-23 15:54:17 +00:00
q3k 56c262f2b6 devtools/hackdoc: serve JS with correct mimetype
This allows us to serve rich content from hackdoc, eg. hbj11's
webflaser.

Change-Id: Ife83888d864db0b2eddf3a50b0129be0172aad8a
2021-03-23 15:50:51 +00:00
ar a025e63263 Add bazel error log to .gitignore
Change-Id: I73212500b9a812141b54e2664aa112a3a408061c
2021-03-21 22:25:09 +01:00
q3k f4d02581f6 doc/codelabs: fix typo in checking-out.md
Change-Id: I9729d984974a930630b51657ce5f345fd0f512f7
2021-03-21 14:16:34 +01:00
q3k 9305e31725 doc/codelabs/: fix broken commands in your-first-change
Change-Id: I7b3f35eb71d72f2a44fb12ec3a441404ea607b8c
2021-03-21 14:13:18 +01:00
q3k 2fd9019f15 doc/codelabs: add getting-started/checking-out
Change-Id: I64d6be74194a902601fd2ff6121b7232353ec8ed
2021-03-21 14:05:48 +01:00
q3k 162fcc328d Merge "devtools/gerrit: backport reviewiers column fix to 3.3.2" 2021-03-18 19:54:47 +00:00
q3k 146c99e58e devtools/gerrit: backport reviewiers column fix to 3.3.2
Gerrit 3.3.1 seems to have introduced a bug which makes the reviewers
column in the dashboard entry: https://bugs.chromium.org/p/gerrit/issues/detail?id=13899

This adds an override of gerrit.war to our Docker containers. The .war
is pulled over HTTP. It has been manually built by q3k from a source
checkout. The details on how this was done are in the WORKSPACE
http_file archive.

Once 3.3.3 lands we should get rid of it.

Change-Id: I8b64103cb87d8b185ff35165695a18cb19fea523
2021-03-18 19:51:33 +00:00
q3k 5d2a70ac92 bgpwtf/machines: add netboot.xyz to bootstrap
This allows us to selectively boot some DC machines into netboot.xyz for
testing.

Change-Id: I5713b220ee986c3584fc68efaa7540bbe99680ba
2021-03-18 19:22:41 +00:00
q3k a0332a75a0 ops/machines: pin edge01.waw to its current version of nixpkgs
Stopgap until we finish b/3, need to deploy some changes on it without
rebooting into newer nixpkgs.

Change-Id: Ic2690dfcb398a419338961c8fcbc7e604298977a
2021-03-18 19:22:41 +00:00
q3k bf266c6aaf cluster/k0: add dns crdb user
In preparation for running PowerDNS on k0.

Change-Id: I853c7465a6a32d02628fa6cfdeb445eb9937b3be
2021-03-17 21:49:00 +00:00
q3k 3b8935378a cluster/crdb: make init job 'idempotent'
This enables its redeployment with a newer crdb image.

Change-Id: If039992674f401af53738c80d22cc2ca2818fe00
2021-03-17 21:48:30 +00:00
q3k 64de7afe32 cluster/kube/k0: fix syntax errors
This happened in 793ca1b3 and slipped past review.

Change-Id: Ie31f0e1ec03d6e4545d6683b21f528550bf4ef9f
2021-03-17 21:47:51 +00:00
q3k 408d544898 devtools/gerrit: attempt to deploy theme
This doesn't entirely work, as we need to use PolyGerrit 3 compatible
theme injection.

Change-Id: I13305a4774028bdb92c1449ddb461b59ce8ae82f
2021-03-17 21:17:04 +00:00
q3k ee3c90cbf0 Merge changes Iac1fdee4,I73a5beaf
* changes:
  gerrit: bump to 3.3.2
  WORKSPACE: bump rules_docker
2021-03-17 20:46:26 +00:00
q3k 25c53fc048 hswaw/oodviewer: fix links from index
Change-Id: I98a9c96d0971a922264bd37175bed882b6b702d8
2021-03-16 20:35:32 +00:00
q3k 7871502f26 Merge "shell.nix: add binutils and gcc" 2021-03-12 11:37:25 +00:00
q3k cf1ec27fd5 Merge "cluster/kube: limit OSDs in ceph-waw3 to 8GB RAM" 2021-03-12 10:03:13 +00:00
q3k dd692217c1 gerrit: bump to 3.3.2
Deployed to prod.

Change-Id: Iac1fdee4ec22e6a6d92ff31ab5535a43cfbcffb1
2021-03-11 23:31:28 +00:00
q3k 7849e8a2af WORKSPACE: bump rules_docker
This fixes a bazel_tools incompatibility with Bazel 3.x.

Change-Id: I73a5beafe03b1d8e68a1fee794961146a2f10c52
2021-03-11 23:30:52 +00:00
q3k dce10bae86 shell.nix: add binutils and gcc
Fixes b.hswaw.net/33

Change-Id: Iadeb4157f4271ad684b6c2603d734cb0c098238d
2021-03-11 23:17:21 +00:00
q3k 5e695e8f9b hswaw/oodviewer: init
This brings oodviewer into k0.

oodviewer started as a py2/flask script running on q3k's personal infra,
which is now being turned down.

This is a rewrite of that script into similarly mediocre Go, conforming
to the exact same mediocre JSON API and spartan HTML interface.

This also deploys it into k0 in the oodviewer-prod namespace. It's
already running, but the 'oodviewer.q3k.me' TTL has to expire before it
begins handling traffic.

Change-Id: Ieef1b0f8f0c60e6fa5dbe7701e0a07a4257f99ce
2021-03-07 16:57:02 +01:00
q3k be3adb9e09 hswaw/oodviewer: fix OWNERS
Change-Id: I9229323b411a387b05b93519408a270127183d1f
2021-03-07 14:47:10 +00:00
q3k 51f0b9aa1c hswaw/oodviewer: OWNERS
Change-Id: I2b7708be962b6465cf640be4e27b6443af136213
2021-03-07 14:45:20 +00:00
q3k 793ca1b3b2 cluster/kube: limit OSDs in ceph-waw3 to 8GB RAM
Each OSD is connected to a 6TB drive, and with the good ol' 1TB storage
-> 1GB RAM rule of thumb for OSDs, we end up with 6GB. Or, to round up,
8GB.

I'm doing this because over the past few weeks OSDs in ceph-waw3 have
been using a _ton_ of RAM. This will probably not prevent that (and
instead they wil OOM more often :/), but it at will prevent us from
wasting resources (k0 started migrating pods to other nodes, and running
full nodes like that without an underlying request makes for a terrible
draining experience).

We need to get to the bottom of why this is happening in the first
place, though. Did this happen as we moved to containerd?

Followup: b.hswaw.net/29

Already deployed to production.

Change-Id: I98df63763c35017eb77595db7b9f2cce71756ed1
2021-03-07 00:09:58 +00:00
q3k 3ba5c1b591 *: docs pass
Change-Id: I87ca80d3f7728ed407071468ac233e6ad4574929
2021-03-06 22:21:28 +00:00
q3k c0d9ea081f hackdoc: deploy
Change-Id: I2d1661212f906cc431a47a372b2e52a6be2e07f4
2021-03-06 22:21:28 +00:00
q3k 7dda1b51ce Merge "hackdoc: link to cs instead of gitweb" 2021-03-06 22:17:34 +00:00
q3k d774a7153b Merge "hackdoc: when redirecting, skip ref if default" 2021-03-06 22:17:26 +00:00
q3k a5691b54cc Merge "games/valheim: allow patryk@ and palid@ to administer valheim namespace" 2021-03-06 22:17:05 +00:00
q3k bc0d3cb227 hackdoc: link to cs instead of gitweb
Change-Id: Ifca7a63517bceffe7ccc0452474d9d16626486de
2021-03-06 22:16:54 +00:00
q3k 81262ff202 hackdoc: when redirecting, skip ref if default
Change-Id: Ie1680500ede673c407c9c8f4bbbe6b7f6a41b422
2021-03-06 22:16:54 +00:00
q3k 62ba93eae1 Merge "dc/hbj11: init with flasher" 2021-03-06 20:26:44 +00:00
q3k 819813600d dc/hbj11: init with flasher
This brings in the flashing infrastructure for HBJ11 (bluepill&web).

Change-Id: I480855689f849c24712d58a0ccbce6e91c34f8bd
2021-03-06 20:25:08 +00:00
q3k b4de3f26f2 games/valheim: always update on startup
This has already been deployed to prod.

Change-Id: I02896bd7d12d89630b0465365e08a8980738184d
2021-02-25 13:23:44 +01:00
q3k 2371ca9073 games/valheim: allow patryk@ and palid@ to administer valheim namespace
This will create the following:

    apiVersion: rbac.authorization.k8s.io/v1beta1
    kind: RoleBinding
    metadata:
      annotations: {}
      labels:
        name: sso-admins
      name: sso:admins
      namespace: valheim
    roleRef:
      apiGroup: rbac.authorization.k8s.io
      kind: ClusterRole
      name: system:admin-namespace
    subjects:
    - apiGroup: rbac.authorization.k8s.io
      kind: User
      name: patryk@hackerspace.pl
    - apiGroup: rbac.authorization.k8s.io
      kind: User
      name: palid@hackerspace.pl

It's not enough to allow palid to use kubecfg (as we use a secretstore
secret in this jsonnet), but at least to manually restart the server via
kubectl, which is needed to update the game.

Change-Id: I6cb42ca87c9a78bbe34957f2c5e23acd2efe3423
2021-02-25 12:08:10 +01:00
q3k a715a02ad0 games/valheim: add patryk and palid to OWNERS
Change-Id: I15b08d17a5cb9c3a4f6d22d5780872df8f94c427
2021-02-24 00:16:42 +01:00
q3k 34d39cc8ed games/valheim: init
This creates a valheim game server, using a public image but slightly
nerfing it to be able to run it unprivileged.

We also deploy our first server. The password is Well Known To Those
Versed In Hackerspace Lore.

Change-Id: Ic24262a3b02d3c17d2f00aa2967e240ea4eee7fb
2021-02-23 23:13:40 +00:00
q3k c97461e844 shell.nix: actually add
This should've been merged in with cr/704. Whoops.

Change-Id: I1fe18a74462e8bdc0350c5ba26b51261b76c7ae1
2021-02-17 19:30:51 +00:00
q3k 0d26fc9780 cluster: disable nginx/acme
These are unused.

Change-Id: I2a428dabd0a27c060c595f5e0843d7d8d8e26dcd
2021-02-15 22:14:41 +01:00
q3k 765e369255 cluster: replace docker with containerd
This removes Docker and docker-shim from our production kubernetes, and
moves over to containerd/CRI. Docker support within Kubernetes was
always slightly shitty, and with 1.20 the integration was dropped
entirely. CRI/Containerd/runc is pretty much the new standard.

Change-Id: I98c89d5433f221b5fe766fcbef261fd72db530fe
2021-02-15 22:14:15 +01:00
q3k 4b613303b1 RFC: *: move away from rules_nixpkgs
This is an attempt to see how well we do without rules_nixpkgs.

rules_nixpkgs has the following problems:

 - complicates our build system significantly (generated external
   repository indirection for picking local/nix python and go)
 - creates builds that cannot run on production (as they are tainted by
   /nix/store libraries)
 - is not a full solution to the bazel hermeticity problem anyway, and
   we'll have to tackle that some other way (eg. by introducing proper
   C++ cross-compilation toolchains and building everything from C,
   including Python and Go)

Instead of rules_nixpkgs, we ship a shell.nix file, so NixOS users can
just:

  jane@hacker:~/hscloud $ nix-shell
  hscloud-build-chrootenv:jane@hacker:~/hscloud$ prodaccess

This shell.nix is in a way nicer, as it immediately gives you all tools
needed to access production straight away.

Change-Id: Ieceb5ae0fb4d32e87301e5c99416379cedc900c5
2021-02-15 22:11:35 +01:00
q3k 55cc9ab177 third_party: bump minecraft deps
Change-Id: Ib03669eef2f535ecf6711618b960f3058337fda5
2021-02-15 22:11:00 +01:00
q3k 747c0fcd88 django leftovers yeet
Change-Id: I8999152a630c3c8dcf56f7c0e80a0ee5474e9236
2021-02-15 22:11:00 +01:00
q3k 4842705406 cluster/nix: integrate with readtree
This unifies nixpkgs with the one defined in //default.nix and makes it
possible to use readTree to build the provisioners:

   nix-build -A cluster.nix.provision

   result/bin/provision

Change-Id: I68dd70b9c8869c7c0b59f5007981eac03667b862
2021-02-14 14:46:07 +00:00
q3k 2df7685b46 devtools/gerrit: remove tools/eclipse, which breaks global build
Change-Id: Ie7e8faa6c80a0a4b75bd0bae7da225c4f607ce18
2021-02-14 14:45:37 +00:00
q3k 495cdaf7d5 personal/q3k: yeet djtest
We don't care about Django anymore, and we don't want/have uwsgi.

Change-Id: I42860ce3d046ba253085dcd6b09d2d67ce4abbbb
2021-02-14 14:45:20 +00:00