Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legacy deployments nixops list is broken #1461

Open
roberth opened this issue Aug 3, 2021 · 1 comment
Open

Legacy deployments nixops list is broken #1461

roberth opened this issue Aug 3, 2021 · 1 comment

Comments

@roberth
Copy link
Member

roberth commented Aug 3, 2021

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.

@roberth roberth changed the title Legacy deployment nixops list is broken Legacy deployments nixops list is broken Aug 3, 2021
@roberth
Copy link
Member Author

roberth commented Jul 6, 2022

Also nixops info --all: NixOS/nixpkgs#139532 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant