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

Different network devices when using network attach and network attach-profile #870

Closed
fcavro opened this issue May 14, 2024 · 0 comments
Closed
Assignees
Labels
Bug Confirmed to be a bug Easy Good for new contributors
Milestone

Comments

@fcavro
Copy link

fcavro commented May 14, 2024

Required information

  • Distribution: Arch Linux
  • Distribution version: rolling
  • The output of "incus info" or if that fails:
    • Kernel version: 6.8.9-arch1-2
    • Incus version: 6.1

Issue description

Attaching instances to a network results in a different network device configuration compared to attaching profiles to it.

After attaching an instance to a network, the network device looks like this:

devices:
  eth1:
    name: eth1
    network: testbr0
    type: nic

But when attaching a profile to the network, the network device of the profile (or of an instance using the profile) looks like this:

devices:
  eth1:
    name: eth1
    nictype: bridged
    parent: testbr0
    type: nic

I would've expected, that the profile's network device is configured via the network name (like when attaching an instance) and not via an explicitly bridged interface.

Is this intentional behavior?

Steps to reproduce

  1. incus network create testbr0
  2. incus network create testbr1
  3. incus profile create testprofile
  4. incus launch images:debian/12 testinstance -p default -p testprofile
  5. incus network attach-profile testbr0 testprofile viaprofile eth1
  6. incus network attach testbr1 testinstance viainstance eth2
  7. incus config show --expanded testinstance
    [...]
    viainstance:
      name: eth2
      network: testbr1
      type: nic
    viaprofile:
      name: eth1
      nictype: bridged
      parent: testbr0
      type: nic
    [...]
@stgraber stgraber added Bug Confirmed to be a bug Easy Good for new contributors labels May 15, 2024
@stgraber stgraber added this to the incus-6.2 milestone May 15, 2024
@stgraber stgraber self-assigned this May 22, 2024
stgraber added a commit to stgraber/incus that referenced this issue May 22, 2024
Closes lxc#870

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
stgraber added a commit to stgraber/incus that referenced this issue May 22, 2024
Closes lxc#870

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
stgraber added a commit to stgraber/incus that referenced this issue May 23, 2024
Closes lxc#870

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
stgraber added a commit to stgraber/incus that referenced this issue May 23, 2024
Closes lxc#870

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
stgraber added a commit to stgraber/incus that referenced this issue May 23, 2024
Closes lxc#870

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
stgraber added a commit to stgraber/incus that referenced this issue May 23, 2024
Closes lxc#870

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
@hallyn hallyn closed this as completed in 197edb1 May 23, 2024
stgraber added a commit that referenced this issue May 27, 2024
Closes #870

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed to be a bug Easy Good for new contributors
Development

No branches or pull requests

2 participants