RHOSP13- R5.0-214- SRIOV- agent is not coming up, issue while sourcing network-functions-vrouter in agent-functions.sh

Bug #1791237 reported by alok kumar
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R5.0
Fix Committed
High
alexey-mr
Trunk
Fix Committed
High
alexey-mr

Bug Description

For SRIOV setup, agent is not coming up.

Error seen in agent log:

2018-09-06 Thu 16:57:31:439.228 UTC overcloud-contrailsriov-0 [Thread 140200914274624, Pid 181]: Configuration error. eth_port not specified
2018-09-06 Thu 17:04:21:996.312 UTC overcloud-contrailsriov-0 [Thread 140392961833280, Pid 181]: Configuration error. eth_port not specified
2018-09-06 Thu 17:18:02:209.200 UTC overcloud-contrailsriov-0 [Thread 139716830382400, Pid 181]: Configuration error. eth_port not specified

docker logs 479049ab979b:

/agent-functions.sh: line 3: /network-functions-vrouter-vrouter: No such file or directory
INFO: agent started in vrouter mode
INFO: vhost0 is already up
INFO: Kernel version does not support the driver required for vrouter to vrouter encryption
/agent-functions.sh: line 151: get_iface_mac: command not found
/agent-functions.sh: line 173: get_iface_mac: command not found
ERROR: either phys nic or mac is empty: phys_int='vhost0' phys_int_mac=''

Issue seems to be in value of AGENT_MODE, which is set to 'vrouter' and corresponding file network-functions-vrouter-vrouter is not found.

agent-functions.sh:
    source /network-functions-vrouter-${AGENT_MODE}

as a workaround, removing "-${AGENT_MODE}" in agent-functions.sh and restarting docker worked fine for me.

setup Info:
undercloud hypervisor: 10.204.217.133
undercloud IP: 192.168.122.46

(undercloud) [stack@queensa ~]$ openstack server list
+--------------------------------------+--------------------------------+--------+------------------------+----------------+---------------------+
| ID | Name | Status | Networks | Image | Flavor |
+--------------------------------------+--------------------------------+--------+------------------------+----------------+---------------------+
| 25ce07e7-2744-4b7e-85c3-0dc3a2e1f462 | overcloud-contrailcontroller-1 | ACTIVE | ctlplane=192.168.24.17 | overcloud-full | contrail-controller |
| df7a05ee-39cc-4e7a-a1eb-46a7116a69ae | overcloud-contrailsriov-1 | ACTIVE | ctlplane=192.168.24.10 | overcloud-full | compute-sriov |
| a9e496c2-2f23-4deb-93eb-77fe4ca96751 | overcloud-contrailcontroller-0 | ACTIVE | ctlplane=192.168.24.11 | overcloud-full | contrail-controller |
| 0c8171eb-1c9d-407d-b634-a151c1e25965 | overcloud-contrailsriov-0 | ACTIVE | ctlplane=192.168.24.18 | overcloud-full | compute-sriov |
| 81411179-36fa-4d73-8e53-6cef8f30c5a6 | overcloud-controller-0 | ACTIVE | ctlplane=192.168.24.20 | overcloud-full | control |
| bfd01366-cb67-46c3-b4ce-2f50f810b441 | overcloud-controller-2 | ACTIVE | ctlplane=192.168.24.22 | overcloud-full | control |
| 47930b28-5a25-453b-a952-f5934ca3ae68 | overcloud-contrailsriov-2 | ACTIVE | ctlplane=192.168.24.15 | overcloud-full | compute-sriov |
| ab209461-6f94-42d1-8607-dd5b8f366714 | overcloud-contrailcontroller-2 | ACTIVE | ctlplane=192.168.24.14 | overcloud-full | contrail-controller |
| 3522c775-d1b5-4ca9-99e7-9d7f7f589e84 | overcloud-controller-1 | ACTIVE | ctlplane=192.168.24.16 | overcloud-full | control |
+--------------------------------------+--------------------------------+--------+------------------------+----------------+---------------------+

alok kumar (kalok)
description: updated
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] stable/queens

Review in progress for https://review.opencontrail.org/46210
Submitter: alexey-mr (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/46210
Committed: http://github.com/Juniper/contrail-tripleo-heat-templates/commit/3b3765a7afb3b1ea9d71e591c91731d8405113c1
Submitter: Zuul v3 CI (<email address hidden>)
Branch: stable/queens

commit 3b3765a7afb3b1ea9d71e591c91731d8405113c1
Author: alexey-mr <email address hidden>
Date: Fri Sep 14 17:32:57 2018 +0300

Fixed sriov in kernel mode

- in containers 'kernel' mode is used instead of vrouter
that leads to errors like 'missing network-functions-vrouter-vrouter'

- revert checks for dpdk: use wellknow word dpdk instead of
vrouter/kernel to define conditions like is_dpdk

Change-Id: Ic41ba975332b74555abd3d5a2ee280e439256cf1
Closes-Bug: #1791237

Alberto Pena (apena-s)
tags: added: ps-interest
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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