Skip to content

SRIOV with Bond + VLAN using vrouter fails RHOSP 13 deployment during NIC provisioning. #18

Description

@linusali

RHOSP 13 Deployment with Contrail + Bond + VLAN and SRIOV fails with the following error message during the NIC provisioning by os-net-config on the host.

[2019/06/06 03:16:57 AM] [INFO] running ifup on interface: vlan500
[2019/06/06 03:16:57 AM] [ERROR] Failure(s) occurred when applying configuration
[2019/06/06 03:16:57 AM] [ERROR] stdout: ERROR     : [/sbin/ifup] PHYSDEV should be set for device vlan500
, stderr:
Traceback (most recent call last):
  File "/bin/os-net-config", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/os_net_config/cli.py", line 308, in main
    activate=not opts.no_activate)
  File "/usr/lib/python2.7/site-packages/os_net_config/impl_ifcfg.py", line 1518, in apply
    raise os_net_config.ConfigurationError(message)
os_net_config.ConfigurationError: Failure(s) occurred when applying configuration

I think the best solution to this is to add PHYSDEV to the list of lines not commented by network-functions-vrouter in the following line. Though I don't know if that will cause any regressions.

sed -r "/(DEVICE|TYPE|ONBOOT|MACADDR|HWADDR|BONDING|SLAVE|VLAN|MTU)/! s/^[^#].*/#commented_by_contrail& /" contrail.org.ifcfg-${phys_int} > ifcfg-${phys_int}.tmp

Please note that if I use a bond or a physical interface directly with vhost0 then there is no issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions