Legacy deployments `nixops list` is broken
All my legacy deployments now show as roughly
+--------------------------------------+----------------------------------+-----------------+------------+------+
| UUID | Name | Description | # Machines | Type |
+--------------------------------------+----------------------------------+-----------------+------------+------+
| cbbf3d68-5c1c-11eb-896d-0242e85aa442 | (none) | todomvc Example | 1 | ec2 |
| dc750b2d-f446-11eb-8afa-9cb6d0c2f3a1 | (none) | todomvc Example | 1 | ec2 |
| 40324d8c-f72a-11ea-a4aa-02424b1d9237 | dummy | todomvc Example | 1 | |
| cc2f5657-6ea5-11ea-9890-0c9d92c574d5 | xxxxyyyyzz | todomvc Example | 1 | ec2 |
todomvc Example is the network I'm currently in ($PWD/flake.nix#nixopsConfiguration.default)
When I use an older nixopsUnstable from before state backends, I still get
+--------------------------------------+----------------------------------+-----------------+------------+------+
| UUID | Name | Description | # Machines | Type |
+--------------------------------------+----------------------------------+-----------------+------------+------+
| cbbf3d68-5c1c-11eb-896d-0242e85aa442 | (none) | todomvc Example | 0 | |
| dc750b2d-f446-11eb-8afa-9cb6d0c2f3a1 | (none) | todomvc Example | 0 | |
| 40324d8c-f72a-11ea-a4aa-02424b1d9237 | dummy | todomvc Example | 0 | |
| cc2f5657-6ea5-11ea-9890-0c9d92c574d5 | xxxxyyyyzz | todomvc Example | 7 | none |
So it seems that the state backend incorrectly sets the description for all networks. I also noticed that it evaluates the current network. # Machines seems to be derived from this, rather than the saved real world state. I'm glad that it doesn't seem to touch that vital state data, because the old version gets the machine counts right.
If you don't intend to support the legacy backend, I can understand and support that. In that case, perhaps some columns could be removed.
I don't think Type even made sense either. Should it be Types? I don't know; haven't done multi-cloud deployments. Anyway, Type is not as important.
Also nixops info --all: https://github.com/NixOS/nixpkgs/issues/139532#issuecomment-1175359781