Activity log for bug #1558427

Date Who What changed Old value New value Message
2016-03-17 08:22:48 Artem Panchenko bug added bug
2016-03-17 08:25:33 Artem Panchenko fuel: importance Undecided High
2016-03-17 08:35:17 Bogdan Dobrelya tags feature-sr-iov team-network feature-sr-iov l23network team-network
2016-03-17 08:35:47 Bogdan Dobrelya fuel: status New Confirmed
2016-03-17 09:01:50 Artem Panchenko description Fuel version info (9.0 liberty): http://paste.openstack.org/show/490838/ Re-deployment fails on 'sriov_iommu_check' task, because 'netconfig' doesn't configure NICs with enabled SR-IOV properly: root@node-2:~# echo 63 > /sys/class/net/enp1s0f0/device/sriov_numvfs root@node-2:~# echo 63 > /sys/class/net/enp1s0f1/device/sriov_numvfs root@node-2:~# ruby /etc/puppet/modules/osnailyfacter/modular/netconfig/sriov_iommu_check.rb OK: SR-IOV and IOMMU are properly configured for enp1s0f0 interface OK: SR-IOV and IOMMU are properly configured for enp1s0f1 interface root@node-2:~# root@node-2:~# puppet apply -d /etc/puppet/modules/osnailyfacter/modular/netconfig/netconfig.pp &> /tmp/puppet.log root@node-2:~# echo $? 0 root@node-2:~# cat /sys/class/net/enp1s0f0/device/sriov_numvfs /sys/class/net/enp1s0f1/device/sriov_numvfs 0 0 root@node-2:~# ifdown enp1s0f1 root@node-2:~# ifup enp1s0f1 root@node-2:~# cat /sys/class/net/enp1s0f1/device/sriov_numvfs 63 I added some debug logs to '/etc/puppet/modules/l23network/lib/puppet/provider/l2_port/sriov.rb' and got this: root@node-2:~# grep -E 'Setting numvfs for|Value of numvfs for' /tmp/puppet.log Debug: L2_port[enp1s0f0](provider=sriov): Value of numvfs for 'enp1s0f0' is different '63' != '0' Debug: L2_port[enp1s0f0](provider=sriov): Setting numvfs for 'enp1s0f0' to '0' Debug: L2_port[enp1s0f0](provider=sriov): Setting numvfs for 'enp1s0f0' to '0' Debug: L2_port[enp1s0f1](provider=sriov): Value of numvfs for 'enp1s0f1' is different '63' != '0' Debug: L2_port[enp1s0f1](provider=sriov): Setting numvfs for 'enp1s0f1' to '0' Debug: L2_port[enp1s0f1](provider=sriov): Setting numvfs for 'enp1s0f1' to '0' If I set 'sriov_numvfs' to 0 for all SR-IOV NICs and run netconfig.pp again then VFs are configured properly, because the following code isn't executed: https://github.com/openstack/fuel-library/blob/master/deployment/puppet/l23network/lib/puppet/provider/l2_port/sriov.rb#L23-L24 https://github.com/openstack/fuel-library/blob/master/deployment/puppet/l23network/lib/puppet/provider/l2_port/sriov.rb#L28-L30 Steps to reproduce: 1. Create cluster with VLAN segmentation 2. Add 1 controller node and 1 compute node with NICs which support SR-IOV 3. Enable SR-IOV on some compute's NICs, set VFs number to max value (sriov_numvfs == sriov_totalvfs) 4. Deploy environment 5. SSH to compute and run 'puppet apply /etc/puppet/modules/osnailyfacter/modular/netconfig/netconfig.pp' Expected result: sriov_numvfs value for SR-IOV enabled NICs isn't changed Actual result: sriov_numvfs is set to 0 for all SR-IOV enabled NICs Fuel version info (9.0 liberty): http://paste.openstack.org/show/490838/ Re-deployment fails on 'sriov_iommu_check' task, because 'netconfig' doesn't configure NICs with enabled SR-IOV properly: root@node-2:~# echo 63 > /sys/class/net/enp1s0f0/device/sriov_numvfs root@node-2:~# echo 63 > /sys/class/net/enp1s0f1/device/sriov_numvfs root@node-2:~# ruby /etc/puppet/modules/osnailyfacter/modular/netconfig/sriov_iommu_check.rb OK: SR-IOV and IOMMU are properly configured for enp1s0f0 interface OK: SR-IOV and IOMMU are properly configured for enp1s0f1 interface root@node-2:~# root@node-2:~# puppet apply -d /etc/puppet/modules/osnailyfacter/modular/netconfig/netconfig.pp &> /tmp/puppet.log root@node-2:~# echo $? 0 root@node-2:~# cat /sys/class/net/enp1s0f0/device/sriov_numvfs /sys/class/net/enp1s0f1/device/sriov_numvfs 0 0 root@node-2:~# ifdown enp1s0f1 root@node-2:~# ifup enp1s0f1 root@node-2:~# cat /sys/class/net/enp1s0f1/device/sriov_numvfs 63 I added some debug logs to '/etc/puppet/modules/l23network/lib/puppet/provider/l2_port/sriov.rb' and got this: root@node-2:~# grep -E 'Setting numvfs for|Value of numvfs for' /tmp/puppet.log Debug: L2_port[enp1s0f0](provider=sriov): Value of numvfs for 'enp1s0f0' is different '63' != '0' Debug: L2_port[enp1s0f0](provider=sriov): Setting numvfs for 'enp1s0f0' to '0' Debug: L2_port[enp1s0f0](provider=sriov): Setting numvfs for 'enp1s0f0' to '0' Debug: L2_port[enp1s0f1](provider=sriov): Value of numvfs for 'enp1s0f1' is different '63' != '0' Debug: L2_port[enp1s0f1](provider=sriov): Setting numvfs for 'enp1s0f1' to '0' Debug: L2_port[enp1s0f1](provider=sriov): Setting numvfs for 'enp1s0f1' to '0' If I set 'sriov_numvfs' to 0 for all SR-IOV NICs and run netconfig.pp again then VFs are configured properly, because the following code isn't executed: https://github.com/openstack/fuel-library/blob/master/deployment/puppet/l23network/lib/puppet/provider/l2_port/sriov.rb#L23-L24 https://github.com/openstack/fuel-library/blob/master/deployment/puppet/l23network/lib/puppet/provider/l2_port/sriov.rb#L28-L30 Steps to reproduce: 1. Create cluster with VLAN segmentation 2. Add 1 controller node and 1 compute node with NICs which support SR-IOV 3. Enable SR-IOV on some compute's NICs, set VFs number to max value (sriov_numvfs == sriov_totalvfs) 4. Deploy environment 5. SSH to compute and run 'puppet apply /etc/puppet/modules/osnailyfacter/modular/netconfig/netconfig.pp' Expected result: sriov_numvfs value for SR-IOV enabled NICs isn't changed Actual result: sriov_numvfs is set to 0 for all SR-IOV enabled NICs Diagnostic snapshot: https://drive.google.com/file/d/0BzaZINLQ8-xkUEo2Ym5YOWJwdDQ/view?usp=sharing
2016-03-17 10:04:57 Dmitry Bilunov marked as duplicate 1557322
2016-03-17 10:17:16 Atsuko Ito removed duplicate marker 1557322
2016-03-17 10:23:22 Atsuko Ito fuel: assignee Fuel Library Team (fuel-library) Vladimir Eremin (yottatsa)
2016-03-17 11:24:00 OpenStack Infra fuel: status Confirmed In Progress
2016-03-17 13:10:35 Atsuko Ito tags feature-sr-iov l23network team-network area-library feature-sr-iov l23network team-network
2016-03-17 19:18:24 OpenStack Infra fuel: status In Progress Fix Committed
2016-05-24 13:48:11 Artem Panchenko fuel: status Fix Committed Fix Released