253 Commits

Author SHA1 Message Date
Pete Birley
728b3739cf Revert "Modify files related to overrides."
This reverts commit 0389b54578dc9efb670fcacb1097daf008d7cdcc.

Change-Id: I91f2c87f51978fe0a35143757c19fe789f7e0669
see: https://review.opendev.org/#/c/712959/1
2020-03-13 14:08:31 +00:00
songgongjun
0389b54578 Modify files related to overrides.
As the functions of overrides are upgraded,the
files that depend on the functions of overrides
need to be modified synchronously.This patch and
https://review.opendev.org/#/c/707788/ depend on
each other.

Story: 2007291
Task: 38753
Depends-on: https://review.opendev.org/#/c/707788/
Change-Id: I048c8fe73f8f85df465f2c829812b75be1e4f130
Signed-off-by: songgongjun <gongjun.song@intel.com>
2020-03-03 20:06:45 +08:00
Deepak Tiwari
a101959321 OVS-DPDK: support for VLAN underlay for tunnel traffic
For OVS-DPDK deployments, where tunnel interface is bound to DPDK, there
should be support to transport the tunnel traffic over a VLAN network.

Change-Id: I1e63c9a6eb03a3f78a8592244d7c4b4928164fa5
2020-02-26 08:42:38 +00:00
Gage Hugo
f9dbba7043 Revert "Revert "Keystone Authtoken Cache: allow universal secret key to be set""
This reverts commit 90d070390db08abf9da42a2bac54397112bbcd48.

Change-Id: I017c6e9676b872e1aab21f9dc8aa2f93db58d49f
2020-02-21 11:16:55 -06:00
Zuul
8c6269f719 Merge "Fix health-probe concurrency and timings" 2020-02-20 22:04:40 +00:00
Zuul
7d34ef85e9 Merge "Add network namespace cleanup" 2020-02-20 19:02:55 +00:00
Sangeet Gupta
414b10fab0 Fix health-probe concurrency and timings
Changed Nova and Neutron health-probe script to exit if previous
probe process is still running.
The health-probe has RPC call timeout of 60 seconds and has 2
retries. In worst case scenario the probe process can run a little
over 180 seconds. Changing the periodSeconds so that probe starts
after previous one is complete. Also changing timeoutSeconds value
a little to give little more extra time for the probe to finish.
Increasing the liveness probe periods as they are not do critical
which will reduce the resource usage for the probes.

Co-authored-by: Randeep Jalli <rj2083@att.com>

Change-Id: Ife1c381d663c1e271a5099bdc6d0dfefb00d8d73
2020-02-18 17:24:23 +00:00
Deepak Tiwari
09d6a3e68c Add neutron-ovs-cleanup to neutron charts
neutron-ovs-cleanup needs to be run at the startup once

Change-Id: I0160bb0377082026af4aa90413196ce65cfd23c9
2020-02-18 05:11:24 +00:00
Vasyl Saienko
90d070390d Revert "Keystone Authtoken Cache: allow universal secret key to be set"
This reverts commit 1c85fdc390e05eb578874e77fad9d4ec942da791.

Do not use randomly generated strings in configmaps as this leads to
whole helm release redeployment even no values are changed. The random
items have to be generated outside of helm chart and provided via
values.
Also previous behaviour didn't allow to use cache during rolling upgrade
as new pods were spawned with new key.

Change-Id: I423611b18fca0d65e2e721a9c6a0c3d8df0813d2
2020-02-12 11:18:06 +00:00
Hemachandra Reddy
62db99d1d1 Add network namespace cleanup
Removes stale DHCP and L3 namespaces. The cron runs once in 12 hours.

Network namespace cleanup is implemented as a daemonset as Kubernetes
does not have a cronjob that works like daemonset-cronjob.
Network namespace cleanup should run on all nodes where DHCP and L3
agents run.

Change-Id: I7525e493067669026e0d57889a3e3238a2bd1308
2020-02-11 05:01:36 +00:00
Hemachandra Reddy
f00777e57d Make sure requested mtu is set
The 'options' keyword for setting mtu in 'set interface' does not
set mtu and it seems to ignore/fail the request silently.

Change-Id: Icec98c5166611a8c538f93e6326cf7d20b545ecd
2020-01-28 18:28:25 +00:00
Roy Tang
fdce0e46d9 Add QOS support for neutron sriov
Change-Id: I5a1df5d7f6cf179e8cd26a288b5749340b8827dd
2020-01-27 14:36:49 +00:00
Tin Lam
def68865a2 Add functionality to specify FQDN
Patch set to allow for FQDN for neutron agents.

Change-Id: Idde7ba35e940de59e0def35507ce2506cad672ed
Signed-off-by: Tin Lam <tin@irrational.io>
2020-01-09 16:10:37 -06:00
Roy Tang
97ac0575ba Update neutron ovs agent for ovs-dpdk
This ps update neutron ovs agent to support properly:
- setting mtu on dpdk bond and nic interface port
- setting vhost-iommu-support on dpdk bond and nic interface port
- setting n_txq values on dpdk bond and nic interface port

Change-Id: I422fa21a622642ecb7c49914fef04073e4f984bc
2019-12-13 10:37:10 -06:00
Prateek Dodda
bea5c63d4d Implement Security Context for Neutron
Implement container security context for the following Nova resources:
 - Neutron metadata_agent
 - Neutron ovs_agent

Change-Id: If8246450f8ebd62a0c5999f832ec59796355ee78
2019-11-26 20:32:28 +00:00
Zuul
3784a3fe2f Merge "Fix readiness probe of neutron-ovs-agent for OVS<2.10.0" 2019-10-29 16:06:46 +00:00
Sphicas, Phil (ps3910)
e83f50633d neutron-ovs-agent-init: remove neutron-sanity-check
This change removes neutron-sanity-check from neutron-ovs-agent-init.
Proper dependencies now exist, as outlined in the original issue [0],
and the check is no longer required.

[0] https://github.com/att-comdev/openstack-helm/issues/88#issuecomment-270829530]

Depends-On: https://review.opendev.org/691035/
Change-Id: I6f8849ea519da76ac5289e86dbc7beb57cc9baba
Related-Bug: #1842517
2019-10-24 14:49:09 -07:00
Georg Kunz
dddbf37c0e Fix readiness probe of neutron-ovs-agent for OVS<2.10.0
A recently introduced readiness probe for neutron-ovs-agent makes use of
an OVSDB table entry 'dpdk_initialized' which does not exist in OVS
versions preceeding v2.10.0. This patch changes the readiness probe to
exit successfully if this table entry does not exit. Thereby it does not
give any guarantees for older versions of OVS, but at least allows the
readiness probe to pass.

Change-Id: Ic77c6bdd60730c1a7c5e55fdb4afc6db938f0ddb
2019-10-21 16:16:21 +02:00
Deepak Tiwari
adee9c4fe4 Include additional filters_path in rootwrap.conf
Neutron plugins (for ex. TaaS) using their own rootwrap filters install
those filter files in /var/lib/openstack/etc/neutron/rootwrap.d directory.
Therefore this path should be added to neutron values.conf file to let
these plugins function correctly.

Change-Id: Ia76153b50e2e22cb606b8c0f811119b3f71217d2
2019-10-19 16:00:56 +00:00
Zuul
083ae1d515 Merge "Remove need to configure VF during DPDK deployment" 2019-10-16 12:48:04 +00:00
Zuul
db2637fb20 Merge "Ensure python scripts are py3 compatible" 2019-10-14 16:45:04 +00:00
Zuul
399d355d46 Merge "Octavia: add octavia chart and deployment scripts" 2019-10-14 13:53:34 +00:00
Tin Lam
938a1deb03 Ensure python scripts are py3 compatible
This patch set is one of many to migrate existing code/script to be
python-3 compatible as python-2 is sunsetting in January of 2020.

Change-Id: I337069203a3273e9aba6a37294ee3c25e5b4870a
Signed-off-by: Tin Lam <tin@irrational.io>
2019-10-10 23:10:03 +00:00
Zuul
34aed6f20c Merge "Fix psutil inconsistencies" 2019-10-10 14:51:52 +00:00
Rihab Banday
05bff26162 Remove need to configure VF during DPDK deployment
The current configuration expects VF & bonding info by default. This patch
set removes the need to configure them for every deployment.

Change-Id: Id546c113b2d3c42591a0326ee8cd442cccc73578
2019-10-09 11:39:27 +02:00
Zuul
76a14a0cc6 Merge "Add readiness checks to ovs agent" 2019-10-08 14:50:46 +00:00
Hemachandra Reddy
3ba23f7ab0 Fix psutil inconsistencies
Python psutil library has not been consistent in behavior
a. gives trucated process names at times
b. the truncated names sometimes contain path to Python instead
of the program name Python runs

Change-Id: I99b77a4c28761a2187e59be4e562d5893ef3caa9
2019-10-07 21:43:15 +00:00
hagun.kim
aac8345c4c Octavia: add octavia chart and deployment scripts
This PS adds octavia chart and its deployment scripts.

Blueprint name : openstack-helm-octavia

- Deployments : api, worker, housekeeping
- Daemonset : health-manager
- health-manager daemonset creates o-hm device on each controller node.
- This is for multi node deployment.
- 180-create-resource-for-octavia.sh : Create openstack resources
    (network, sec groups, flavor, keypair, image for development)
- 190-create-octavia-certs.sh : Create certificates to use Octavia
    (the certs is passed into pod using secret and volume for development)
- 200-octavia.sh : Deploy Octavia chart

Note: This chart doesn't include amphora image itself and its build.

Change-Id: I0bb7dfc7c15d77287c05a8542347e19fc269aba4
Signed-off-by: hagun.kim <hagun.kim@samsung.com>
2019-10-07 17:46:47 +09:00
Zuul
f2360f485d Merge "Remove explicit call to py2" 2019-09-27 10:48:32 +00:00
Pete Birley
adfc3fb772 Neutron: Ensure test project purge targets correct project
This PS updates the test project purge script to target specificly
the desired project by its id.

Change-Id: I54bfaa7727fdad781bdecc31251c1fe53f912c18
Signed-off-by: Pete Birley <pete@port.direct>
2019-09-26 13:30:33 -05:00
Pete Birley
b1f8446e5b Neutron: Update force purge of test project to be less aggressive
This PS updates the os purge of the test project to be an optional
operator driven choice, as they will also need to ensure
the project is unique to neutron testing.

Additionally this updates the purge image to be driven by the
charts values.yaml, as with every other image in OSH.

Change-Id: I46807f7c4922a1b411386641eddbd8957ab56f05
Signed-off-by: Pete Birley <pete@port.direct>
2019-09-26 13:05:30 -05:00
Zuul
b4d673a90e Merge "[neutron] Support baremetal mechanism driver" 2019-09-26 14:22:10 +00:00
Zuul
5f18893ec6 Merge "[neutron] Handle ML2 mechanism drivers" 2019-09-26 14:13:55 +00:00
rajesh.kudaka
fa92e365f5 Add readiness checks to ovs agent
This commit adds readiness checks to neutron ovs agent
to check if the ovs and dpdk configurations are working
without errors.

Change-Id: I48277bdbd91ec8121e5fec300aeb646a80a65d29
2019-09-25 04:51:16 -05:00
ad620p
f830186c45 Support for Neutron Helm test cleanup and reset for abnormal failures
Rally usually cleans up all its resources in normal executions - normal
test success cases and normal test failure cases. But the generic cleanup
does not work well for out of the system failures like process
interruptions, pod failures, disaster cleanup etc.
This is a known issue in rally-openstack. -
"Current generic mechanism is nice but it doesn't work enough well in real life.
And in cases of existing users, persistence context
and disaster cleanups it doesn't work well."

Hence, if we shall face above such issues, it is becoming impossible
to run "helm test neutron" again because of the stale data
and different quota limits mentioned in the values.yaml.
Hence we need to purge the stale data from the "test"
project as well as reset the quota limit for such scenarios.

For the normal executions, this patch has to do nothing,
but for unexpected failures, this patch will purge the stale data
from test project and reset the quota as defined in
values.yaml for the next run.

Change-Id: I3f6851582e2ac1aa1d375fcd13c07f4f57f45dc8
2019-09-25 09:50:52 +00:00
Michael Polenchuk
88575904c0 [neutron] Handle ML2 mechanism drivers
* add l2pop driver only if vxlan mode is enabled
* use network:backend list as drivers source

Change-Id: If513c2664d465f53ff3756c27ecab0fc519f6a50
2019-09-24 13:41:23 +04:00
Michael Polenchuk
97ecab8174 [neutron] Support baremetal mechanism driver
Change-Id: Ida1ed36c88c1e6e8f8a6f8de5c93fc7002e4454b
2019-09-24 12:55:04 +04:00
Tin Lam
4817d1de28 Remove explicit call to py2
Python 2 is sunsetting in Jan 2020. We should not be finding python 2
explicitly. This patch removes those calls.

Change-Id: Ie6c9ad77097e662393c5fdd26490ebef25bdc3de
Signed-off-by: Tin Lam <tin@irrational.io>
2019-09-20 13:46:23 +00:00
Zuul
b10c25f2d6 Merge "[neutron] Support the external dns driver" 2019-09-13 18:57:49 +00:00
Zuul
23bff8bd62 Merge "[neutron] Add write access to state_path (/var/lib/neutron)" 2019-09-13 18:46:07 +00:00
Michael Polenchuk
37f3f14bb1 [neutron] Support the external dns driver
Change-Id: I1c7e31be45d31a724911c7e12c2607a15093941b
2019-09-11 09:16:25 +04:00
Deepak Tiwari
21af1acde9 Additional OVS-DPDK configs including bonding support
Enhance the Neutron charts to support configuration parameters for
following additional configurations for deploying OVS with DPDK:-

1. Bonding support
2. Jumbo Frame support
3. Number of Rx Queue and Rx and Tx Queue sizes

Change-Id: I4ee7c8465825cf7d66d175446c4145a8a26b6381
2019-09-10 14:21:26 -05:00
Zuul
a4f84ad8fb Merge "Extending Neutron chart with support for OVS DPDK" 2019-09-10 17:16:25 +00:00
Deepak Tiwari
2dd42c52f7 neutron-sriov-agent: mount host sys-fs path in container
Several sriov drivers (i.e. TaaS, Trunking) require the write permissions
to files in /sys/class/net/ and /sys/devices.

This patchset mounts the host's above mentioned sys-fs folders for the
neutron-sriov-agent container.

Change-Id: I87f51d1ad46bb272beb9401f2b428c81c3dc6f69
2019-09-06 08:24:02 -05:00
Georg Kunz
1f8933da46 Extending Neutron chart with support for OVS DPDK
Extending the Neutron with configuration parameters and scripts for
deploying OVS with DPDK support enabled. The new functionality takes
care of binding NICs to DPDK and adding those to OVS bridges of type
'netdev'.

Co-Authored-By: Rihab Banday <rihab.banday@ericsson.com>

Change-Id: I9932123986a0b723d7523136940d325bcfde983d
2019-09-04 16:19:07 +02:00
Oleg Bondarev
1dcdebe140 [neutron] Add write access to state_path (/var/lib/neutron)
Change-Id: Idfcd1622fcb8d37356d9bfb11bbb2cd0f35a1bf5
2019-08-23 12:30:16 +04:00
Zuul
5b8d18c021 Merge "Fix iptables locking in L3 neutron container" 2019-07-16 12:03:36 +00:00
Manuel Buil
94cd5a9935 Fix iptables locking in L3 neutron container
The L3 neutron agent uses the -W flag when adding new iptable rules.
That flag verifies if the lock is free to avoid race conditions. The
lock is normally /run/xtables.lock.

In iptables <1.6.2, if the file does not exist, iptables ignores the
lock and silently continues. Starting with 1.6.2, that behaviour changed
and if the file does not exist, iptables fails:

https://git.netfilter.org/iptables/commit/?id=80d8bfaac9e2430d710084a10ec78e68bd61e6ec

Leap 15.0 is using iptables 1.6.2 whereas Ubuntu Bionic uses 1.6.1.
That is why Ubuntu compute-kit gates where working whereas openSUSE
compute-kit gate was not

This patch fixes the gate problem by mounting /run/xtables.lock

Change-Id: Ia9c648cdf95c9824b34f40a6d9ed538a2cad5154
Signed-off-by: Manuel Buil <mbuil@suse.com>
2019-07-15 14:03:12 +02:00
Michael Polenchuk
0e01e058a1 [neutron] Bring in bgpvpn/bagpipe support
BGP-MPLS VPN extension allows attachment of Neutron networks and/or
routers to VPNs built in carrier provided WANs using these standard
protocols.

Change-Id: Ib0ec8cb22e9c113d4be1c992d895b565db5e30b0
2019-07-10 16:23:01 +04:00
Sphicas, Phil (ps3910)
07bc6cf5c8 Neutron: remove readiness probe from init container
Remove the readiness probe from the neutron-sriov-agent-init init
container of the neutron-sriov-agent DaemonSet, and use the probe
template for the neutron-sriov-agent container.

Change-Id: Iaa1fbca0b2d5ba1b0c15b82b6e8927c2b7be9f52
2019-07-06 21:30:34 -07:00