bond interfaces being excluded by sunbeam during deployment

Bug #2048678 reported by Andre Ruiz
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Snap
New
Undecided
Unassigned

Bug Description

I'm installing sunbeam on a machine that has two physical interfaces bonded via LACP resulting in an interface bond0, that has the management IP.

On top of that bond, I created two VLANs, that are meant to be the API and the Provider networks for sunbeam, and they are bond0.1001 and bond0.1002.

During sunbeam installation, it tries to filter the list of interfaces to be able to find unused/free interfaces to offer as the interface for OVN, but it seems to be excluding too much, leaving the list empty and causing an error.

Revision history for this message
Andre Ruiz (andre-ruiz) wrote :

The error:

14:43:09,645 sunbeam.utils DEBUG Skipping lo it is virtual
14:43:09,645 sunbeam.utils DEBUG Skipping enp1s0f0 it is part of a bond
14:43:09,646 sunbeam.utils DEBUG Skipping enp1s0f1 it is part of a bond
14:43:09,646 sunbeam.utils DEBUG Skipping bond0 it is part of a bond
14:43:09,646 sunbeam.utils DEBUG Skipping bond0.1001 it is part of a bond
14:43:09,647 sunbeam.utils DEBUG Skipping bond0.1002 it is part of a bond
14:43:09,655 sunbeam.utils DEBUG Skipping ovs-system it is virtual
14:43:09,656 sunbeam.utils DEBUG Skipping br-int it is virtual
14:43:09,656 sunbeam.utils DEBUG Skipping br-ex it is virtual
14:43:09,656 sunbeam.utils DEBUG Skipping vxlan.calico it is virtual
14:43:09,657 sunbeam.utils DEBUG Skipping genev_sys_6081 it is virtual
14:43:09,657 sunbeam.utils DEBUG 17
Traceback (most recent call last):
  File "/snap/openstack/324/lib/python3.10/site-packages/sunbeam/utils.py", line 274, in __call__
    return self.main(*args, **kwargs)
  File "/snap/openstack/324/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/snap/openstack/324/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/snap/openstack/324/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/snap/openstack/324/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/snap/openstack/324/lib/python3.10/site-packages/sunbeam/commands/configure.py", line 792, in configure
    run_plan(plan, console)
  File "/snap/openstack/324/lib/python3.10/site-packages/sunbeam/jobs/common.py", line 245, in run_plan
    step.prompt(console)
  File "/snap/openstack/324/lib/python3.10/site-packages/sunbeam/commands/configure.py", line 684, in prompt
    self.nic = self.prompt_for_nic()
  File "/snap/openstack/324/lib/python3.10/site-packages/sunbeam/commands/configure.py", line 642, in prompt_for_nic
    nic = ext_net_bank.nic.ask()
  File "/snap/openstack/324/lib/python3.10/site-packages/sunbeam/jobs/questions.py", line 153, in ask
    self.answer = self.question_function(
  File "/snap/openstack/324/lib/python3.10/site-packages/rich/prompt.py", line 141, in ask
    return _prompt(default=default, stream=stream)
  File "/snap/openstack/324/lib/python3.10/site-packages/sunbeam/commands/configure.py", line 95, in __call__
    self.choices = utils.get_free_nics(include_configured=False)
  File "/snap/openstack/324/lib/python3.10/site-packages/sunbeam/utils.py", line 221, in get_free_nics
    macs = get_nic_macs(nic)
  File "/snap/openstack/324/lib/python3.10/site-packages/sunbeam/utils.py", line 188, in get_nic_macs
    return sorted([a["addr"] for a in addrs[netifaces.AF_LINK]])
KeyError: 17
14:43:09,659 sunbeam.utils WARNING An unexpected error has occurred. Please run 'sunbeam inspect' to generate an inspection report.
14:43:09,659 sunbeam.utils ERROR Error: 17

Revision history for this message
Andre Ruiz (andre-ruiz) wrote :

The interfaces bond0, bond0.1001 and bond0.1002 should not be excluded, IMO.

Revision history for this message
Andre Ruiz (andre-ruiz) wrote :

(Note: I excluded a bunch of calico/k8s interfaces from the output for clarity).

Revision history for this message
James Page (james-page) wrote :

bond interfaces should not be excluded - I'm using one in my test lab successfully does not have any VLAN interfaces which might be the cause of it being excluded.

Revision history for this message
Andre Ruiz (andre-ruiz) wrote :

Attaching a log of the networking config.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.