summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-openstackclient
diff options
context:
space:
mode:
authorJeremy Fleischman <jeremyfleischman@gmail.com>2025-10-31 10:45:12 -0700
committerJeremy Fleischman <jeremyfleischman@gmail.com>2025-12-03 09:46:49 -0800
commit2a50c1a693456fc11149598ebc24abdcc5776028 (patch)
treec71a5e139f7a56adb3304b1d3f60617b44ed5a1a /pkgs/development/python-modules/python-openstackclient
parenta377fb9518f4e1a24482d147233129df0d94dd96 (diff)
nixos/test-driver: stop blackholing `vde_switch` stderr
The code seems to have been ported from the old Perl code. It worked, but had some smells: 1. It swallowed all `stderr` into a pipe we never read. In addition to making things difficult to debug, it could potentially result in `vde_switch` hanging if it gets blocked trying to write to a pipe that's full. Solution: just let `vde_switch` inherit our `stderr`. 2. If `vde_switch` failed to start, we just logged a warning and continued on. Now we crash. 3. We allocated a PTY to communicate with `vde_switch`'s management REPL. This was unnecessary: non-TTY stdin/stdout works fine. 4. There was an old TODO here about not blocking forever trying to read `vde_switch`'s stdout. I've addressed that by using `select` with a timeout. NOTE: this does change the API surface area of the `VLan` class a bit: there's no longer a `fd` attribute that points at a PTY master. I did an unscientific grep through `nixos/tests` and couldn't find references to `vlan[0-9].fd` nor `vlans[...].fd`.
Diffstat (limited to 'pkgs/development/python-modules/python-openstackclient')
0 files changed, 0 insertions, 0 deletions