Commit Graph

68 Commits

Author SHA1 Message Date
Hongbin Lu 00ab075497 Remove external cluster store from docker config
Related-Bug: #2007142
Change-Id: I411086127cfaee20c17867adf779200e6e31a2ea
2023-12-19 05:00:31 +00:00
Hongbin Lu 693ffb903b Fix python path due to global virtual environment
Change-Id: Ibcd48c41f00cdac30654d5f90a9ee4b4c829ae85
2023-09-17 22:07:46 +00:00
Hongbin Lu 7fce4cd925 Fix tox4 error
tox.ini started failing with Tox4 which had some
incompatible changes.

Fixing tox.ini for tox4 changes.

The latest version of docker broke kuryr-libnetwork since
it removes external k/v support. We have to hardcode
to an older version of docker to workaround.

The CI failed to delete subnetpool since the subnet haven't
been deleted yet. This commit also fixed it.

Depends-On: https://review.opendev.org/c/openstack/devstack-plugin-container/+/875113
Change-Id: Id48bb7d92f2f5d9d08b44acf651dbba3bf2e924e
2023-02-25 05:32:45 +00:00
hongbin 3035d43c78 Revert "Fix the bindir path"
This reverts commit 9cc51ae2c8.

Reason for revert: it seems distutils has fixed the path so we revert our fix

Change-Id: Ibbe1bdc19dceb1e6fbbf467bfd44aa18f0a7cb78
2022-08-01 06:35:35 +00:00
Hongbin Lu 9cc51ae2c8 Fix the bindir path
It looks the bindir should be "/usr/local/libexec/kuryr" instead.

Closes-Bug: #1970217
Change-Id: I92cb41bf22e28cbbeb9e88699432dbfadef86107
2022-04-25 13:37:51 +00:00
gujin 910f2e72db Replace git.openstack.org URLs with opendev.org URLs
Thorough replacement of git.openstack.org URLs with their opendev.org counterparts.

Change-Id: Ia04c82127761ee818a37efe6cf9137987f8262f8
2020-05-17 04:38:56 +00:00
Hongbin Lu d9523c7afe Update docs and scripts for using python3
Python2 is deprecated so we need to switch to python3

Change-Id: Id9158df88f0b6ed0c071994bf0aa240063ac6761
2020-02-17 16:15:11 +00:00
Hongbin Lu b63cd9ae4d Fix ipv6 issue on devstack
Change-Id: I1450759319d82d3533d887e45d01b4185256786a
Story: #2005477
Task: #35942
2019-08-22 01:07:06 +00:00
Hongbin Lu 9f0eb320b2 Use openstackclient instead of neutronclient
The python-neutronclient is deprecated and under maintain.
All CLI users should switch to openstackclient instead.

Change-Id: I87e0b4501c198d7cccd5350424a01c6afb3a2836
2018-11-02 18:55:44 +00:00
Hongbin Lu a65ae5590c Clone Kuryr repository by TARGET_BRANCH
The variable $TARGET_BRANCH will be set by devstack. It will point
to the right branch that the devstack is based on. For example,
if the devstack is on a stable branch, TARGET_BRANCH will point to
that stable branch. Using this variable will save us the manual
effort to update the branch whenever we cut a release.

Change-Id: I45f93aa328c4e166d131d18c579651e4e96c3254
2018-07-17 02:18:58 +00:00
Hongbin Lu 450e29d1ce Cleanup the config file on ./clean.sh
When users unstack and clean on devstack, the old config files
should be removed to avoid potential issues. As a result, users
will get a fresh new install on the next ./stack.sh

Change-Id: Ifd89dd7528d63a5e92dc9f02e939810c8fa2a247
2018-07-15 15:33:25 +00:00
Hongbin Lu 17db307e27 Allow skip processing exposed ports
The endpoints 'network_driver_program_external_connectivity'
and 'network_driver_revoke_external_connectivity' will dynamically
create security group and security group rules to open the ports
exposed by the docker container. However, such processing invokes
too much neutron API calls thus significantly slowing down the
container start/stop. However, such processing is not mandatory
because users can manually configure the SGs to achieve the
equivalent.

This patch make the processing of exposed ports configurable.
As a result, it can be disabled if users want a better performance.

Change-Id: I6d6d176512e6b30bb7372408aec1a7bac12335ab
2018-04-22 17:11:24 +00:00
Hongbin Lu f8ec5a0305 Enable etcd3 in controller node only
Change-Id: I38e2ea79ded8cb37e0618ca89d2affa532f2f0b6
2017-10-24 20:26:24 +00:00
Jenkins a0fa970669 Merge "Make capability_scope configurable in devstack" 2017-10-04 08:10:44 +00:00
Hongbin Lu c5684a803e Make capability_scope configurable in devstack
This allows us to tune the capability_scope of kuryr between 'local'
and 'global'.

Change-Id: I78e283cd4207f90e1a2164a0831712d574fb922c
2017-09-21 18:16:12 +00:00
Hongbin Lu d17c519497 Enable debug if ENABLE_DEBUG_LOG_LEVEL is set
Change-Id: I51baf6a2e36bacc8a43b9834144b640d88a9f121
2017-09-20 23:42:41 +00:00
Hongbin Lu a1e6ee131b Don't access etcd via localhost
If the etcd cluster is installed via devstack, it will refuse
connection from localhost. Need to use the IP address instead.

Change-Id: I6e6a0c0d8476a229ca66a528519f8759b50e6321
2017-09-05 10:31:56 -04:00
Hongbin Lu c0ce79bad9 Fix the command to start kuryr server
In before, devstack doesn't use a setuptool-generated script to run
kuryr server. The static script it uses doesn't work in python3
devstack because it still point to the python2 executable. This
commit fixed this issue.

Change-Id: Ib222bf2e84f4b06b0dc3981fc3554510658d4ef0
2017-08-04 04:11:09 +00:00
Hongbin Lu 302bac7917 Use devstack-provided etcd port
Devstack provides a variable for etcd port for now [1]. It is better
to use this variable instead of hard-coding the port.

[1] https://review.openstack.org/#/c/467714/

Change-Id: I0034d6e30dcf605e91d5609f2448aa1264a69c4f
2017-06-05 20:47:57 -04:00
Hongbin Lu 1ae715f885 Switch to devstack for installing etcd
ETCD is now a base service [1], which means it will be installed by
default in devstack. We don't need to re-install it in our devstack
plugin.

[1] https://review.openstack.org/#/c/445432/

Change-Id: Id8be0adb7b5d9c736b8acc680e9e72f82a225dec
2017-05-28 19:41:12 -04:00
Hongbin Lu a97a51877b Move to devstack-plugin-container
Change-Id: I03cc2f17af2db0c730556290644e7354c66fddb2
2017-05-06 13:01:40 -04:00
Liping Mao (limao) c07bae4a90 run_process with sudo in devstack will error
This error happens after the following devstack patch merged:
https://review.openstack.org/#/c/462678/

Change-Id: I1e4f647b8491a8d3c2e43cba6da48e5d7450c2d1
Closes-Bug: #1688679
2017-05-06 16:06:14 +08:00
Liping Mao (limao) 0dd2ad15af Kuryr-libnetwork Docker managed plugin
This patch add a script to create v2plugin rootfs.
1. use local unix socket for v2plugin
2. add config.json for v2plugin
3. Add scripts to build v2plugin rootfs
4. Update devstack to use v2plugin

Change-Id: I91d352a963840f33d1d2f9cea17ab6ac777d22bc
Related-Bug: #1668486
Partially-Implements: BP docker-v2plugin
2017-05-03 08:58:54 +08:00
Hongbin Lu a48e8dc239 Use absoluted path for command
Change-Id: I5d01040488326fdd085a04f240d14652ad013da8
2017-05-02 18:44:38 +00:00
Hongbin Lu 5c45b19273 Avoid running more than one etcd process
If both Fuxi and Kuryr-libnetwork are enabled in devstack, the script
will fail since etcd-server was spawned twice. This commit added a
check for existing etcd process and spawn one if not existed.

Closes-Bug: #1683852
Change-Id: Iecef71df1c0b58db62c20462932ba179c91a1695
2017-04-18 12:36:58 -04:00
Janonymous 1e3d164a71 Tls support configurations
Change-Id: If16d60d03629734a3abe0393a967e8458653f3ff
Partially-implements: bp tls-support
2017-01-27 05:22:25 +03:00
Hongbin Lu 0e5b420584 Fix the check of docker installation
In before, we checked docker installation by:

  $ rpm -q docker-engine

However, this doesn't work for all cases in fedora 24.
* If docker was installed by "sudo dnf install docker-engine", the
  package will be named as "docker". Therefore, it should be checked
  by "rpm -q docker".
* If docker was installed by devstack (by using
  https://get.docker.com/), the package will be named as
  "docker-engine". Therefore, it should be checked by
  "rpm -q docker-engine".

This commit added check for "docker" as well.

Closes-Bug: #1647459
Change-Id: If89d8b62ffa542f0491f43d42a119741882eb3cd
2016-12-06 21:19:13 +00:00
Liping Mao b7f8f23440 Build docker busybox image locally
Change-Id: I521962daca113202b52221cb53d93c0cad8f2d6f
Closes-bug: #1633435
2016-11-27 22:50:03 +08:00
Liping Mao 398e1d3e13 Enable neutron qos in default vagrant devstack local.conf.sample
neutron qos feature will be used in follow up patches, so enable
this feature in vagrant by default. Neutron qos feature also need
to be enable in CI job in project-config later.

Change-Id: I8d9123c01ab187b34474ff38dd85ed567e658d92
Partially-implements: bp kuryr-libnetwork-qos
2016-11-14 21:52:18 +08:00
Liping Mao 68edfeacdc use kuryr-lib master code by default in kuryr-libnetwork vagrant
Currently, devstack will install kuryr-lib 0.1.0 for
kuryr-libnetwork. But we still need to check if kuryr-libnetwork
can work with kuryr-lib master code. This patch introduce
LIBS_FROM_GIT to let devstack install latest kuryr-lib code.
And let kuryr-libnetwork use kuryr-lib master code by default
in vagrant.

Change-Id: Id05dab5bd6a4aa2efe5f6991e9fd5fc38c1cf91b
Partially-implements: bp cross-project-ci
Closes-bug: #1630971
2016-11-02 16:20:07 +08:00
Antoni Segura Puimedon f01aee545c devstack: use admin role
The last devstack patch introduced usage of the service project and a
Kuryr user, however, it was with the services role, while Kuryr needs
the 'admin' role.

Closes-bug: #1625482
Change-Id: If517f77c7aec3fad81af101ccc174167f16ae37b
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
2016-09-20 07:30:42 +00:00
Antoni Segura Puimedon 70f9f46bff
devstack: Make docker also listen to its socket
In order to have Docker easily usable for the fullstack testing, we made
it listen to the port 2375. This had an unintended and very bothering
side effect in forcing cli usage to have to pass '-H :2375' to every
signle docker command.

It was driving me crazy, so this should make both the normal cli usage
and the fullstack usage work without hassle.

Change-Id: I0d6162937e018664516de406197ca0a464b4ee71
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
2016-09-15 12:00:59 +02:00
Jenkins 7f0c77be8b Merge "Update bindir path relative to distro distutils" 2016-09-14 08:04:13 +00:00
Jenkins dcc8816d84 Merge "auth: Add keystonev3 support" 2016-09-14 08:04:05 +00:00
Janonymous e27c794967 Update bindir path relative to distro distutils
Change-Id: I685205f67162b637d6deb19b9b1a19b7361a08fd
Co-Authored-By: Antoni Segura Puimedon <antonisp@celebdor.com>
2016-09-13 13:56:42 +00:00
Antoni Segura Puimedon d1353b38ae
auth: Add keystonev3 support
In order to integrate with Kolla and to support newer deployments that
have only keystonev3 enabled, we leverage keystoneauth1.

I want to thank Fawad for taking a stab at fixing this earlier.

Depends-On: Ia56b22963f5a2130a722403a14ee1a233ac6cff9
Closes-bug: #1622302
Change-Id: Id57420ef94ea9bd71b6581c4cdc24697465a3445
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
Co-authored-by: Liping Mao <limao@cisco.com>
2016-09-13 08:18:53 +02:00
Jenkins 92b4afc101 Merge "Update plugin loading for devstack" 2016-09-08 09:03:47 +00:00
Janonymous ca40ced2f8 Update plugin loading for devstack
Closes-Bug: #1621306
Change-Id: Ieeed2af7433e44da926fad27c7bf1535a939f526
2016-09-08 13:29:26 +05:30
Antoni Segura Puimedon 7d2133d250
tools: config_file_generation
With the advent of this tool. Generating the config for local usage and
packaging will be much simpler.

Closes-bug: #1619252
Change-Id: I95f8f0ec76fb8a75153f6dac12c6ec1d2f485e8b
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
2016-09-01 13:33:31 +02:00
Jenkins 88881e3016 Merge "Remove etcd directory in uninstall" 2016-08-30 15:49:50 +00:00
Liping Mao 72e389903a kuryr-server process does not start up with devstack
Change-Id: I8d6f2f05e616ca7c2526891877fbfd43312d43df
Closes-bug: #1618104
2016-08-30 16:54:35 +08:00
Dongcan Ye eb3f8af812 Remove etcd directory in uninstall
When we install kuryr-libnetwork, there may be some exception
in install etcd data store, like network timeout, IO error.
Then we may met file exists error reinstall.

We can clean up the etcd directory in unstack script.

Change-Id: I77dd701dcda7866b2d09dd9b334a64df21f5762c
Closes-Bug: #1611187
2016-08-09 11:42:31 +08:00
Janonymous 4a5cc8bf8e Kuryr Devstack installation has incorrect path in plugin
Change-Id: I417bfd12f364d3d63678d79719cabe73e73b8286
2016-08-02 10:07:56 +05:30
vikaschoudhary16 1335bfa6a3 Fix devstack installation for kuryr-libnetwork
Change-Id: Iafc88db02a4cb019a978c5183f4393b70a78f9bb
Closes-bug: #1604781
2016-07-27 15:41:12 +05:30
Liping Mao ad75de7ea4 The kuryr default port has changed from 2377/2375 to 23750, we also need
to change it in all file.

Closed-Bug: #1603777

Change-Id: Ia7f55e64c3c6d7d988a5e698ada0a1406e920d65
2016-07-17 22:47:17 +08:00
Liping Mao be4832cde3 Kuryr did not detect neutron tag plugin in devstack
Change-Id: I70dc32fd16a0daeb01896daca89f14cfdc2804a1
Closes-Bug: #1587522
2016-06-06 16:47:06 +08:00
Salvatore Orlando d32f09ffb6 Do not attempt to re-install docker, regardless of its running status
Commit c96032ecc1 changed the devstack
plugin to avoid reinstalling docker if the service was running.
However, there are a few meaningful cases where the service is not
running but the package is however installed and the user does not
want devstack to reinstall it.

This patch uses the distro package manager to find whether
docker-engine is insstalled already, rather than systemd or init.d.
The docker installation script will take care of cases where docker
was manually installed from binaries.

Change-Id: I6f66fdd3c35739486a6453b484eab81dfb4a9545
2016-05-23 16:43:02 -07:00
Christophe Sauthier 711d5bcfe2 Enable the change of docker-engine and etcd listen TCP port in devstack
Change-Id: I2671cecbe3705fedd47a927fbb58274a7110e1fe
Closes-Bug: bug/1527975
2016-05-03 14:43:57 +02:00
Jenkins bc885f2bf4 Merge "Only install docker in case it is not installed" 2016-05-02 15:28:38 +00:00
Frederick F. Kautz IV 07dca2a49b Activate libnetwork plugin with .spec instead of .json
Docker 1.11.0 fails to activate libnetwork plugins specified with .json files.
Using .spec files still works. Adding a .spec file and configuring devstack to
work around the bug.

Change-Id: I041a5e9a526c2e63c92f3d01411afda8b7beb601
Closes-Bug: #1572369
Signed-off-by: Frederick F. Kautz IV <fkautz@redhat.com>
2016-04-21 18:15:56 -07:00