19 Commits

Author SHA1 Message Date
Naveen Joy
2eba5302bb Install the python3 papi package
When stacking networking-vpp using python3, the python3 api package
must be installed.

Change-Id: I5828933ad368ecba220059af8a5d9776c19e552e
2020-02-14 01:11:33 +00:00
Onong Tayeng
98d27b2ef9 fix dangling double-quote
A dangling double-quote causes an empty VPP startup.conf
file to be created which leads to the eventual stack.sh failure.

Change-Id: Iace8adf66825bdbfd2cb605857db03aa6f7be65d
Closes-Bug: #1835919
2019-07-09 20:48:06 +05:30
Ian Wells
de64eff559 Fix devstack VPP options for 1904+
Change-Id: I3fa6ab51c8854087a14340d4abb10a6fe01bc4c2
2019-04-12 16:44:01 -07:00
Ian Wells
9ad99bb5e4 Update to point to packagecloud repository, deal with 19.04
nexus.fd.io is (a) deprecated and (b) seems to have empty Ubuntu release
files and doesn't work as expected, so it's time to change.

Also add changes required for minor package updates for 19.04
(specifically, the plugins moved and there's a pip requirement for the
API).

Change-Id: Ibd5af111713ea34c5cbceae92898dcee81890067
2019-03-25 15:17:03 -07:00
Ian Wells
09d4fed807 Make it possible to override VPP repo path
VPP repo paths are constructed, pointing to upstream repos, based on OS
and version requested.  Allow this to be redirected elsewhere.

Change-Id: Ied160581a8603ec6986d2c2bb7a117926793b3b3
2019-03-19 17:34:14 -07:00
Ian Wells
a651647b4a Bump VPP version to 17.10
Includes a number of changes to the devstack functionality
to work with a 17.10 forwarder and add capabilities.

Change-Id: I602317a8318bf1413d57b71dc809b0c72c52937c
2017-11-01 05:20:00 +11:00
Ian Wells
5beaa01797 Add configurability to etcd running
etcd3 is now available as a devstack service.  Do not install or
run etcd if devstack thinks it's going to (particularly important
since devstack doesn't use the distro-provided service).

Make running etcd command-line configurable, as it's perfectly
reasonable to use an existing etcd on another host or hosts.

Make cleaning etcd configurable, as in a multi-machine environment
you probably don't want devstack emptying out the etcd keys unless
it's also installing the DB afresh (which won't be true when there
are compute nodes or if there are multiple controllers).

Change-Id: Ia8e5c6e31843bb1ddf8102e208d734deb2706faa
Closes-Bug: 1707821
2017-08-07 16:10:03 +00:00
Prabhjot Singh Sethi
556f06cf00 Fix devstack installation
Issue:
------
Installer runs the vpp service automatically after
installation, failing to take correct startup.conf file
and fails to load plugin extensions, which are installed
after vpp was already started, causing vpp-agent to fail

Restarting the vpp service also doesnot help, as function
install_vpp tries to modify a commented out dpdk section
to append VPP_INT_PCI_DEV info causing vpp service so fail
parsing the config

Fix:
----
stop vpp service, if installer has started it by default
this will anyway be started later after providing the
relavant startup.conf file.

modify install_vpp to check if an uncommented version of
dpdk section is available or add the same before trying
to append VPP_INT_PCI_DEV info to it.

Change-Id: I3641190b83a8ed51b3bc0120276983018e5674e7
2017-07-28 22:32:00 +00:00
Shriram Chander
5b9f74e010 devstack/*: Updated vpp install for devstack environment
Plugin also creates a logical device in test environments.

Change-Id: I66dabe8ed58e15f77a80791ac867db73870e65c2
2017-04-25 00:40:36 -07:00
Ian Wells
c07b79e0d6 Add etcd certificate options when cleaning up
Change-Id: I2d3b373c9d219fc89be36369ef98bc555378e1fd
2017-04-23 09:08:15 +10:00
Shriram Chander
0aef954b2b devstack/functions: Ensuring the return value from clean_etcd is 0
If the key /networking-vpp is not present (ie, first install),
clean_etcd will return an error code of 4. This prevents any parent
processes (observed in stack.sh, for example) from continuing.

Change-Id: I2bef7445526dbe430f336c75104c2619b580a78a
2017-04-05 14:53:13 -07:00
Ian Wells
ff788392af Fix startup privilege setting so that it always runs on VPP config
Previously, it only ran if the PCI device was also set.

Change-Id: I17582d1b77c2e46b9905a6816f3ecd3ef38a2607
2017-03-27 19:55:28 +11:00
Ian Wells
6ea3bccd81 Remove privilege requirements for VPP connection from agent
Agent will still need privs for host bridge manipulations
and for this the standard sudo-helper mechanism should hold.

Change-Id: Ia61e4a80abaaccfeeaf82564823032b9a910fd3d
Closes-Bug: 1651309
2017-03-27 19:15:20 +11:00
Ian Wells
d6fe79d153 Remove stray "done" keyword from etcdctl fix
Change-Id: I54c9e277b8bbdef899a0535f809f6307c8d10ad7
2017-03-19 13:30:23 +11:00
Ian Wells
9e1447b708 Make etcd cleanup code simpler
Change-Id: Idbf56461b68259273e81dd249be3e2270a7cd501
2017-03-17 03:18:10 +00:00
Ian Wells
8b4f37dc37 Add cleanup of etcd (in case of previous runs) to devstack install
Change-Id: I9630e58551d2f56940fae844003e7405e3e852ce
2017-03-07 17:03:37 +00:00
Christophe Fontaine
0fec750381 Update vpp installer for devstack
Install plugins as part of the installer, as well as new package name for python api

Change-Id: I258b4b80cacfce09c390fef1b035b2463796906a
Signed-off-by: Christophe Fontaine <christophe.fontaine@qosmos.com>
2017-01-06 15:54:34 +01:00
Guo Ruijing
5f174def2d Add VPP branch configuration
vpp-python-api installation fails in master branch. To fix it, vpp branch
configuration is added and stable.1701 is set as default.

Change-Id: I777693a96f2479263eded27553891da7aaca03d2
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
2017-01-03 18:36:48 -05:00
Feng Pan
25d7478e14 Add environment setup to Devstack scripts
- Install etcd (for Centos7 and Ubuntu 16.04 only)
- Install vpp and vpp-python-api
- Make sure vpp and etcd are started
- Introduce new argument VPP_INT_PCI_DEV to configure VPP interface
  if vpp is to be installed as part of running stack.sh. This is mainly
  intended to be used for CI. VPP_INT_PCI_DEV is ignored if vpp is already
  installed.
- Add override-defaults for common settings so we don't need to
  set those variables in local.conf. With this patch, the only settings
  that must to be specified in local.conf should be MECH_VPP_PHYSNETLIST
- Make all flavors devstack creates use hugepage.
- Add option NR_HUGEPAGES to configure system hugepage
- Add option VPP_STARTUP_CONFIG to speficy custom VPP config file.

Change-Id: Ic6457e1c2306b6a000755f76d34a020de65c8d58
Signed-off-by: Feng Pan <fpan@redhat.com>
2016-12-13 18:10:42 +00:00