vswitch::dpdk fails with error - undefined method `chomp' for nil:NilClass"

Bug #1789408 reported by Saravanan KR on 2018-08-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
High
Saravanan KR

Bug Description

OVS-DPDK deployment fails with below error:
--------------------------------------------------------------
        "+ /usr/bin/puppet apply --summarize --detailed-exitcodes --color=false --logdest syslog --logdest console --modulepath=/etc/puppet/modules:/usr/share/openstack-puppet/modules --tags file,file_line,concat,augeas,cron,neutron_plugin_ml2,neutron_config,neutron_agent_ovs,neutron_plugin_ml2 /etc/config.pp",
        "PMD: net_mlx5: cannot load glue library: libibverbs.so.1: cannot open shared object file: No such file or directory",
        "PMD: net_mlx5: cannot initialize PMD due to missing run-time dependency on rdma-core libraries (libibverbs, libmlx5)",
        "PMD: net_mlx4: cannot load glue library: libibverbs.so.1: cannot open shared object file: No such file or directory",
        "PMD: net_mlx4: cannot initialize PMD due to missing run-time dependency on rdma-core libraries (libibverbs, libmlx4)",
        "Warning: This method is deprecated, please use match expressions with Stdlib::Compat::Array instead. They are described at https://docs.puppet.com/puppet/latest/reference/lang_data_type.html#match-expressions. at [\"/etc/puppet/modules/neutron/manifests/init.pp\", 486]:[\"/etc/puppet/modules/tripleo/manifests/profile/base/neutron/plugins/ml2.pp\", 53]",
        " with Stdlib::Compat::Hash. There is further documentation for validate_legacy function in the README. at [\"/etc/puppet/modules/neutron/manifests/config.pp\", 136]:[\"/etc/puppet/modules/tripleo/manifests/profile/base/neutron.pp\", 141]",
        " with Stdlib::Compat::Array. There is further documentation for validate_legacy function in the README. at [\"/etc/puppet/modules/neutron/manifests/agents/ml2/ovs.pp\", 208]:[\"/etc/puppet/modules/tripleo/manifests/profile/base/neutron/ovs.pp\", 59]",
        "Error: Failed to apply catalog: undefined method `chomp' for nil:NilClass",
--------------------------------------------------------------

Saravanan KR (skramaja) wrote :

This is because of new set of warnings while running the ovs-vsctl commands inside the docker-puppet container.

----------------------------------------------------------------------
()[root@04d99ac56f4f /]# ovs-vsctl list Open_vSwitch .
PMD: net_mlx5: cannot load glue library: libibverbs.so.1: cannot open shared object file: No such file or directory
PMD: net_mlx5: cannot initialize PMD due to missing run-time dependency on rdma-core libraries (libibverbs, libmlx5)
PMD: net_mlx4: cannot load glue library: libibverbs.so.1: cannot open shared object file: No such file or directory
PMD: net_mlx4: cannot initialize PMD due to missing run-time dependency on rdma-core libraries (libibverbs, libmlx4)
_uuid : e632af5d-7792-47e9-9d6e-a39aa95b6ce1
bridges : [d4cc3f21-cc37-4936-9d68-2039028697e4]
cur_cfg : 3
datapath_types : [netdev, system]
db_version : "7.16.1"
dpdk_initialized : true
dpdk_version : "DPDK 17.11.0"
external_ids : {hostname="overcloud-computeovsdpdk-0", rundir="/var/run/openvswitch", system-id="e1e29969-6168-427b-90b4-0b806ee99f73"}
iface_types : [dpdk, dpdkr, dpdkvhostuser, dpdkvhostuserclient, erspan, geneve, gre, internal, "ip6erspan", "ip6gre", lisp, patch, stt, system, tap, vxlan]
manager_options : []
next_cfg : 3
other_config : {dpdk-extra="-n 4", dpdk-init="true", dpdk-lcore-mask="30003", dpdk-socket-mem="1024,1024", pmd-cpu-mask="c000c"}
ovs_version : "2.10.0"
ssl : []
statistics : {}
system_type : rhel
system_version : "7.5"
----------------------------------------------------------------------

Changed in tripleo:
importance: Undecided → High
milestone: none → rocky-rc2
assignee: nobody → Saravanan KR (skramaja)
status: New → Triaged
Saravanan KR (skramaja) wrote :

1) mount /usr/lib64 directory for the docker-puppet container
2) add a check in puppet-vswitch vs_config provider to ignore the unmatched lines

Fix proposed to branch: master
Review: https://review.openstack.org/597115

Changed in tripleo:
status: Triaged → In Progress
Saravanan KR (skramaja) wrote :

Related puppet-vswitch patch to ensure it doesn't happen with other warnings - https://review.openstack.org/#/c/597112/

Changed in tripleo:
milestone: rocky-rc2 → stein-1
tags: added: rocky-backport-potential

Change abandoned by Saravanan KR (<email address hidden>) on branch: master
Review: https://review.openstack.org/597115
Reason: Actual issue fixed with puppet-vswitch, so this workaround is not priority, adding relevant libs package to the container image can been looked in to as a proper solution.

Saravanan KR (skramaja) wrote :

Actual issue fixed with puppet-vswitch, so THT workaround (of mounting libs directory) is not required, adding relevant libs package to the container image can been looked in to as a proper solution.

Changed in tripleo:
milestone: stein-1 → stein-2
Changed in tripleo:
milestone: stein-2 → stein-3
Saravanan KR (skramaja) on 2019-02-13
Changed in tripleo:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers