diff options
Diffstat (limited to '0 inbox')
-rw-r--r-- | 0 inbox/2024-01-08.md | 16 | ||||
-rw-r--r-- | 0 inbox/2024-01-09.md | 24 | ||||
-rw-r--r-- | 0 inbox/2024-01-10.md | 5 | ||||
-rw-r--r-- | 0 inbox/2024-02-20.md | 12 | ||||
-rw-r--r-- | 0 inbox/2024-06-13.md | 2 | ||||
-rw-r--r-- | 0 inbox/2024-06-17.md | 10 | ||||
-rw-r--r-- | 0 inbox/2024-06-26.md | 0 | ||||
-rw-r--r-- | 0 inbox/Blkio errors.md | 14 | ||||
-rw-r--r-- | 0 inbox/ELF (files).md | 0 | ||||
-rw-r--r-- | 0 inbox/Group.ONE Backup Service.md | 6 | ||||
-rw-r--r-- | 0 inbox/Issues met TC oplossen.md | 25 | ||||
-rw-r--r-- | 0 inbox/Neutron DNS & Designate.md | 3 | ||||
-rw-r--r-- | 0 inbox/Nix Flakes.md | 21 | ||||
-rw-r--r-- | 0 inbox/Nixpkgs Overlays.md | 0 | ||||
-rw-r--r-- | 0 inbox/Nova Scheduler.md | 2 | ||||
-rw-r--r-- | 0 inbox/Ruby gems nixpkgs.md | 0 | ||||
-rw-r--r-- | 0 inbox/Shell.nix python.md | 15 | ||||
-rw-r--r-- | 0 inbox/Timings VPS.md | 4 | ||||
-rw-r--r-- | 0 inbox/Updates ansible ad-hoc.md | 19 | ||||
-rw-r--r-- | 0 inbox/Zoner Migration.md | 1 |
20 files changed, 179 insertions, 0 deletions
diff --git a/0 inbox/2024-01-08.md b/0 inbox/2024-01-08.md new file mode 100644 index 0000000..13eee22 --- /dev/null +++ b/0 inbox/2024-01-08.md @@ -0,0 +1,16 @@ +--- +tags: + - qemu + - qemu-guest-agent + - backups +--- +Got QEMU Guest agent working via booting a VM with an image after setting `hw_qemu_guest_agent='yes'` on that image. + +Put a script under `/etc/qemu/fsfreeze-hook.d/` with the executable flag set that echo's 'yo' when it is run. + +Tried Cinder backup: script not called +Tried Cinder snapshot: script not called +Tried Nova snapshot: script not called. + +--- +10.40 - 16.00
\ No newline at end of file diff --git a/0 inbox/2024-01-09.md b/0 inbox/2024-01-09.md new file mode 100644 index 0000000..e0d0937 --- /dev/null +++ b/0 inbox/2024-01-09.md @@ -0,0 +1,24 @@ +--- +tags: + - idea + - oslo_messaging + - tuning + - maintenance + - issue +--- +Had an idea to develop a tool to parse openstack release pages to see what's new from the CLI. + +Continued maintenance after making sure cold migrations do work on running VMs and make sure they are started again after migrating. + +Messaging timeouts occurred during maintenance. Found some settings to tune the neutron and nova oslo messaging library. +https://docs.mirantis.com/mcp/q4-18/mcp-deployment-guide/advanced-config/tune-rabbitmq-perf.html + +Learned about the HAProxy ansible module: +https://docs.ansible.com/ansible/latest/collections/community/general/haproxy_module.html + +We decided to add ansible playbooks for enabling and disabling services. So we can disable the neutron controller in haproxy before restarting it. This prevents an issue where it is being flooded with requests while starting up and causing it to process SSL requests before even having loaded the SSL certificates. + +Forgot that I had to visit the mortgage advisor at the end of the afternoon. + +--- +9.30 - 16.00 diff --git a/0 inbox/2024-01-10.md b/0 inbox/2024-01-10.md new file mode 100644 index 0000000..6a91cdb --- /dev/null +++ b/0 inbox/2024-01-10.md @@ -0,0 +1,5 @@ +Maintenance had been stopped due to an hanging apt-lock on n40 vps2 compute. Killed the hanging process and resumed maintenance. + + +--- +9.30
\ No newline at end of file diff --git a/0 inbox/2024-02-20.md b/0 inbox/2024-02-20.md new file mode 100644 index 0000000..2359685 --- /dev/null +++ b/0 inbox/2024-02-20.md @@ -0,0 +1,12 @@ +Building an OpenStack service. + +**Things to look into** +- Tox (testing I think) +- Project structure +- Conventions +- Deployment considerations +- https://opendev.org/openstack/requirements/ + +**Tox** +https://tox.wiki/en/4.13.0/ +Test automation and standardization.
\ No newline at end of file diff --git a/0 inbox/2024-06-13.md b/0 inbox/2024-06-13.md new file mode 100644 index 0000000..61a16ac --- /dev/null +++ b/0 inbox/2024-06-13.md @@ -0,0 +1,2 @@ +Tests: +-
\ No newline at end of file diff --git a/0 inbox/2024-06-17.md b/0 inbox/2024-06-17.md new file mode 100644 index 0000000..144e133 --- /dev/null +++ b/0 inbox/2024-06-17.md @@ -0,0 +1,10 @@ +Investigated the last remaining error with a missing reply queue which was the likely suspect of some alerts of compute service down etc. After some digging in Kibana i noticed a compute node that was logging MessagingTimeouts. I restarted the compute service on this node and it seems to have resolved the errors. + +Both system test in CPH8 and LEJ1 were failing. CPH8 likely due to me restarting neutron-server earlier that morning in an attempt to fix the reply queue error. +LEJ1 had been failing since 14th of June. My guess is due to some maintenance related issue. Both system tests are running smoothly again after cleaning up their artifacts. + +Meanwhile, maintenance on VPS1-LEJ1 is still on-going and causing headaches. Another password refresh of the access node caused a migration to fail during post-cleanup and I had to set the host and node of the instance to the correct node directly via MySQL. I should apply Rutgers' suggestion of saving some variables in the OS_\* env vars, rather sooner than later. + +Tested retention backups being scheduled, and deployed it to prod. + +Investigate whether we can listen for notifications by Nova so that we can listen for server deletions and remove them from periodic backups. There should be no need to delete backups for the server, as the retention policy will have them deleted after a while.
\ No newline at end of file diff --git a/0 inbox/2024-06-26.md b/0 inbox/2024-06-26.md new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/0 inbox/2024-06-26.md diff --git a/0 inbox/Blkio errors.md b/0 inbox/Blkio errors.md new file mode 100644 index 0000000..2b666a3 --- /dev/null +++ b/0 inbox/Blkio errors.md @@ -0,0 +1,14 @@ +Dmesg is spewing blkio errors + +Find out which device: e.g dm-4, then: +``` +sudo virsh list --all --name | while read dom; do sudo virsh dumpxml $dom | grep dm-4 && echo $dom; done +``` +To find which domain +After which: +``` +sudo virsh dumpxml $domain +``` +to find the hostname + +reboot it hard.
\ No newline at end of file diff --git a/0 inbox/ELF (files).md b/0 inbox/ELF (files).md new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/0 inbox/ELF (files).md diff --git a/0 inbox/Group.ONE Backup Service.md b/0 inbox/Group.ONE Backup Service.md new file mode 100644 index 0000000..ebb2c92 --- /dev/null +++ b/0 inbox/Group.ONE Backup Service.md @@ -0,0 +1,6 @@ +# Ubiquitous language +**Project** The customer or tenant that owns the servers, backups and periodic backups. +**Server** Is the subject of a backup or periodic backup. It has one or more disks assigned. +**Disk** Can either be a local storage disk or shared storage volume. It is attached to a server and can be referenced by its name. +**Backup** Is a snapshot in time of a server. It can be used to restore a server to how it was exactly at that moment in time. +**PeriodicBackup** Is a group of servers that will be backed up periodically.
\ No newline at end of file diff --git a/0 inbox/Issues met TC oplossen.md b/0 inbox/Issues met TC oplossen.md new file mode 100644 index 0000000..4ad3bf8 --- /dev/null +++ b/0 inbox/Issues met TC oplossen.md @@ -0,0 +1,25 @@ +Probleem: referenties in ovs naar devices die niet meer bestaan. Hij probeert vervolgens een nieuw device aan te maken met een qdisc op zo'n niet bestaande device. + +``` +sudo grep -r 'could not open network device' /var/log/openvswitch/ | grep -oi 'tap[a-z0-9\-]*' | uniq > ports_no_device +``` +``` +sudo ip l l | grep ports_no_device | grep -oi 'tap[a-z0-9\-]*' > ports_with_device +``` +``` +for P in $(cat ports_no_device | grep -v -f ports_with_device); do sudo ovs-vsctl del-port $P; done +``` +``` +sudo systemctl restart ovn-controller +``` + + +Rutger versie: +``` +sudo grep 'could not open network device' /var/log/openvswitch/ovs-vswitchd.log | grep -oi 'tap[a-z0-9\-]*' | sort | uniq | while read dev; do ip l l $dev || sudo ovs-vsctl del-port $dev; done; sudo systemctl restart ovn-controller +``` + + +Dus: ovs-vsctl del-port is nice. + +Niet vergeten ovn-controller te herstarten. diff --git a/0 inbox/Neutron DNS & Designate.md b/0 inbox/Neutron DNS & Designate.md new file mode 100644 index 0000000..48785ab --- /dev/null +++ b/0 inbox/Neutron DNS & Designate.md @@ -0,0 +1,3 @@ +https://docs.openstack.org/neutron/latest/admin/config-dns-int.html#config-dns-int + +Lijkt er op dat dns_domain overruled kan worden op port niveau.
\ No newline at end of file diff --git a/0 inbox/Nix Flakes.md b/0 inbox/Nix Flakes.md new file mode 100644 index 0000000..cb7f69b --- /dev/null +++ b/0 inbox/Nix Flakes.md @@ -0,0 +1,21 @@ +#nix + +Nix flakes are source trees containing a file `flake.nix` at their root. The file `flake.nix` provides a standardized way to provide [[Zettelkast/Index/Nix]] artifacts. It's like a package manager for [[Zettelkast/Index/Nix]]. A flake can be dependent on other Flakes and it's possible to pin dependencies to exact revisions by using a `flake.lock` file. + +Nix flake evaluation is hermetic, meaning that it produces the same result wherever it's built.k + +The feature can be enabled in `~/.config/nix/nix.conf`: + +``` +experimental-features = nix-command flakes +``` + +To initialize in a repo: `nix flake init`. + +In flakes dependencies have to be specified explicitly and MUST be locked to specific versions therefore it's no longer allowed to use the nixpkgs found in `NIX_PATH` by referencing it like `<nixpkgs>`. + +Output of a Flake is an arbitrary [[Zettelkast/Index/Nix]] value such as a package, [[NixOS]] module or library function. +Commands `nix build` and `nix shell` will build the output `packages.<system>.default` unless we specify another output, for example: `nix shell .#checks.aarch64-linux.build`. + +--- +[Flakes Wiki](https://nixos.wiki/wiki/Flakes)
\ No newline at end of file diff --git a/0 inbox/Nixpkgs Overlays.md b/0 inbox/Nixpkgs Overlays.md new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/0 inbox/Nixpkgs Overlays.md diff --git a/0 inbox/Nova Scheduler.md b/0 inbox/Nova Scheduler.md new file mode 100644 index 0000000..1f58400 --- /dev/null +++ b/0 inbox/Nova Scheduler.md @@ -0,0 +1,2 @@ +Applies Filters to filters compute hosts that are not usable until a list remains of usable compute hosts. +Filters have different costs, thus it's a good idea to put lightweight filters first as to reduce the load on the heavyweight ones.
\ No newline at end of file diff --git a/0 inbox/Ruby gems nixpkgs.md b/0 inbox/Ruby gems nixpkgs.md new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/0 inbox/Ruby gems nixpkgs.md diff --git a/0 inbox/Shell.nix python.md b/0 inbox/Shell.nix python.md new file mode 100644 index 0000000..7dabd4d --- /dev/null +++ b/0 inbox/Shell.nix python.md @@ -0,0 +1,15 @@ +https://nixos.org/manual/nixpkgs/stable/#python + +```nix +{ pkgs ? import <nixpkgs> {}}: + +pkgs.mkShell { + packages = [ pkgs.virtualenv ]; +} +``` + +```nix +with import <nixpkgs> {}; +( +let my_toolz = python311.pkgs.buildPythonPackage rec { pname = "toolz"; version = "0.10.0"; pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-CP3V73yWSArRHBLUct4hrNMjWZlvaaUlkpm1QP66RWA="; }; nativeBuildInputs = [ python311.pkgs.setuptools python311.pkgs.wheel ]; # has no tests doCheck = false; meta = { homepage = "https://github.com/pytoolz/toolz/"; description = "List processing tools and functional utilities"; # [...] }; }; in python311.withPackages (ps: with ps; [ numpy my_toolz ]) ).env +```
\ No newline at end of file diff --git a/0 inbox/Timings VPS.md b/0 inbox/Timings VPS.md new file mode 100644 index 0000000..51857df --- /dev/null +++ b/0 inbox/Timings VPS.md @@ -0,0 +1,4 @@ +10 VPS: avg ms over 100 reqs: 225 ms +20 VPS: first request: 247 ms. avg ms over 100 reqs: 203 ms +50 VPS: first request: 259 ms. avg ms over 100 reqs: 220 ms +101 VPS: first request: 264 ms. avg ms over 100 reqs: 221 ms diff --git a/0 inbox/Updates ansible ad-hoc.md b/0 inbox/Updates ansible ad-hoc.md new file mode 100644 index 0000000..2b8514c --- /dev/null +++ b/0 inbox/Updates ansible ad-hoc.md @@ -0,0 +1,19 @@ +update apt cache: +``` +ansible <pattern> -m ansible.builtin.apt -a "update_cache=true cache_valid_time=3600" +``` + +update packages: +``` +ansible <pattern> -m ansible.builtin.apt -a "name=* state=latest" +``` + +run puppet: +``` +ansible <pattern> -a "/opt/puppetlabs/bin/puppet agent --test" +``` + +reboot: +``` +ansible <pattern> -m ansible.builtin.reboot -f 1 +``` diff --git a/0 inbox/Zoner Migration.md b/0 inbox/Zoner Migration.md new file mode 100644 index 0000000..dc61370 --- /dev/null +++ b/0 inbox/Zoner Migration.md @@ -0,0 +1 @@ +* Kernel installation
\ No newline at end of file |