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

Deleting multiple ephemeral instances only removes the first #12401

Closed
simondeziel opened this issue Oct 17, 2023 · 1 comment · Fixed by #12403
Closed

Deleting multiple ephemeral instances only removes the first #12401

simondeziel opened this issue Oct 17, 2023 · 1 comment · Fixed by #12403
Assignees

Comments

@simondeziel
Copy link
Member

How to reproduce:

$ lxc launch --ephemeral ubuntu:22.04 foo1
Creating foo1
Starting foo1
$ lxc launch --ephemeral ubuntu:22.04 foo2
Creating foo2
Starting foo2
$ lxc list foo
+------+---------+---------------------+-----------------------------------------------+-----------------------+-----------+
| NAME |  STATE  |        IPV4         |                     IPV6                      |         TYPE          | SNAPSHOTS |
+------+---------+---------------------+-----------------------------------------------+-----------------------+-----------+
| foo1 | RUNNING | 10.76.66.80 (eth0)  | fd42:b2a9:e8fd:1156:216:3eff:fe54:e684 (eth0) | CONTAINER (EPHEMERAL) | 1         |
+------+---------+---------------------+-----------------------------------------------+-----------------------+-----------+
| foo2 | RUNNING | 10.76.66.125 (eth0) | fd42:b2a9:e8fd:1156:216:3eff:feb7:cb8d (eth0) | CONTAINER (EPHEMERAL) | 1         |
+------+---------+---------------------+-----------------------------------------------+-----------------------+-----------+

$ lxc delete -f foo1 foo2
$ echo $?
0

$ lxc list foo
+------+---------+---------------------+-----------------------------------------------+-----------------------+-----------+
| NAME |  STATE  |        IPV4         |                     IPV6                      |         TYPE          | SNAPSHOTS |
+------+---------+---------------------+-----------------------------------------------+-----------------------+-----------+
| foo2 | RUNNING | 10.76.66.125 (eth0) | fd42:b2a9:e8fd:1156:216:3eff:feb7:cb8d (eth0) | CONTAINER (EPHEMERAL) | 1         |
+------+---------+---------------------+-----------------------------------------------+-----------------------+-----------+

Note: only ephemeral instances are affected.

Version information:

$ snap list lxd
Name  Version      Rev    Tracking     Publisher   Notes
lxd   git-0eed2a3  26051  latest/edge  canonical✓  -
@gabrielmougard
Copy link
Contributor

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

Successfully merging a pull request may close this issue.

2 participants