You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a volume get deleted manually, it doesn't get marked as MISSING after check operation. Also if the volume was attached to an instance we get an obscure error when nixops try to attach it again using deploy. This is the minimal expression to reproduce it.
If we run a check operation, nixops notice that the volume is missing but it doesn't mark it as such
[nix-shell:~/git/nixops]$ nixops check -d volume_bug
Machines state:
+---------+--------+-----+-----------+----------+----------------+----------------------------------------+------------------------------------------------------------+
| Name | Exists | Up | Reachable | Disks OK | Load avg. | Units | Notes |
+---------+--------+-----+-----------+----------+----------------+----------------------------------------+------------------------------------------------------------+
| machine | Yes | Yes | Yes | No | 0.04 0.28 0.21 | proc-sys-fs-binfmt_misc.mount [failed] | volume ‘VOLUME_ID‘ not attached to ‘/dev/xvdf’ |
| | | | | | | | volume ‘VOLUME_ID’ no longer exists |
+---------+--------+-----+-----------+----------+----------------+----------------------------------------+------------------------------------------------------------+
Non machines resources state:
+--------------------+--------+
| Name | Exists |
+--------------------+--------+
| data_volume | Yes |
| my-key-pair | Yes |
| ssh-security-group | Yes |
+--------------------+--------+
And since the volume wasn't marked as deleted it won't be created in the next deploy operation. Leading to the following error.
[nix-shell:~/git/nixops]$ nixops deploy -d volume_bug --allow-recreate
machine...........> warning: device ‘/dev/xvdf’ was manually detached!
machine...........> warning: volume ‘VOLUME_ID’ has disappeared; will create an empty volume to replace it
error: 'NoneType' object has no attribute 'status'
Please note that I'm working on this, so please don't create a PR for it
The text was updated successfully, but these errors were encountered:
If a volume get deleted manually, it doesn't get marked as MISSING after
check
operation. Also if the volume was attached to an instance we get an obscure error when nixops try to attach it again usingdeploy
. This is the minimal expression to reproduce it.After deploying the network, delete the volume manually using
Don't forget to detach it before deleting
If we run a
check
operation, nixops notice that the volume is missing but it doesn't mark it as suchAnd since the volume wasn't marked as deleted it won't be created in the next deploy operation. Leading to the following error.
Please note that I'm working on this, so please don't create a PR for it
The text was updated successfully, but these errors were encountered: