Commit Graph

36 Commits

Author SHA1 Message Date
ljhuang 5215643b47 Replace base64.decodestring with decodebytes
Base64.decodestring has been deprecated since 3.1 and removed
in python 3.9, Replace it with base64.decodebytes from python3.1[1].

[1]https://docs.python.org/3.9/library/base64.html?highlight=deprecated#base64.decodebytes

Change-Id: Ic5ae225d5cd8fefd70d3620518f19f16147135df
2022-08-22 18:14:13 +08:00
Michał Dulko afbc4d7bdc Update devstack-heat
This useful tool was outdated and written really clumsily. This commit
rewrites bash code to Python, adds options like peeking stack.sh logs,
deploying from a commit or branch and fixes deploying from a gerrit
change.

Change-Id: Icaa01d660b2cdf376d6f000230114986a454c4fb
2022-05-12 17:50:53 +02:00
Roman Dobosz bd8469b40b Change documentation for devstack deployment.
Reflect reality to the docs regarding devstack deployment.
Also, there were changes to refresh docs for vagrant, updated
Vagrantfile, and removed outdated Opendaylight docs.

Change-Id: Ic038967547ebf748c5b41ad598e8553c4a6bebad
2021-07-20 11:00:40 +02:00
Sunday Mgbogu 3918e87e40 Update container images used on the docs
With the new docker download rate limitation, we should update Kuryr-kubernetes documentation to move from celebdor/kuryr-demo container image to quay.io/kuryr/demo.

closes-bug: 1920022

Change-Id: I93bbe01c156bb3d77f9155d5db34be4bc2faa9fe
2021-04-01 07:45:12 +01:00
Tabitha 329fc5f5f8 [DOCS] Testing SCTP service support
Includes instructions for creating K8s services with SCTP
protocol and verifying Kuryr-kubernetes SCTP support.
To-do: Kuryr tempest tests.

Partially-Implements: blueprint sctp-support
Change-Id: I89590e5b04bb87936954bb46a4bb1a9a14540a00
2021-01-15 11:47:25 +01:00
Tabitha c2817aeb41 Updates vagrant README
The vagrant-devstack-Kuryr-Kubernetes 'Vagrant Options available' in
the README stated that the default VAGRANT_KURYR_VM_MEMORY is 4096,
this change updates it to 6144. And mentions that for a lighter
devstack installation ovn and ovn-octavia driver can be used.
This change also updates the url for atlas.

Change-Id: Idb20cc2c89043a2aaf13335aec44acced283baf4
Closes-Bug: 1901558
2020-10-27 15:55:20 +01:00
Maysa Macedo 642e030ca2 Fix the IPv6 enablement
This commit fixes the order of enabling the IPv6 support on DevStack.
Otherwise installation fails.

Change-Id: Ibfd23c108dd2d4718744099cb288cb063e679826
2020-10-14 17:25:38 +02:00
Maysa Macedo 8799fa9685 Fix installation with Vagrant
Current DevStack version does not support Ubuntu Xenial,
we should update the Vagrantfile to use Bionic instead.
Also, current DevStack requires IPv6 to be enabled on
the VM, let's make sure that is present.

Change-Id: I6fad390367476ed50cac38d84edee4387c2275f1
2020-10-12 21:15:30 +02:00
Kafilat Adeleke 78488bcf32 updates docs to "kubectl create deployment"
With the new default Kubernetes 1.18 version used by Kuryr,
the command "kubectl run" does not create a Kubernetes Deployment
anymore, but instead creates a Pod.
The Kuryr docs should get updated to still support a
Deployment creation with the command "kubectl create deployment"

Change-Id: I8df10e64d71cc224e08825987d538693df1719f3
Closes-Bug:  #1897391
2020-10-08 07:36:53 -07:00
Roman Dobosz ded6b6debc Removing six library.
Since we already migrated fully to Python3, it's time to also remove
bits needed for Python2. One of those libs is six.

Change-Id: Ib984d7b4b3c1048ed091c78986c634689a8ace8c
2020-02-28 14:45:46 +01:00
wangfaxin 018cbf8cac Update the community page.
Change-Id: Ia2d148a9506107b2378d6f1b3eaca988de50cc03
2019-12-13 18:08:14 +08:00
Roman Dobosz c3c270c752 Fix text blocks formatting
There are the cases, where text blocks in restructuredtext files are
exceeding text 79 column, or are formatted in weeird way. In this patch
it is fixed. Also couple of typos were tided up.

Change-Id: I78c20cbb45c74e817d60582439acc7b01b577a83
2019-11-13 11:39:10 +01:00
Roman Dobosz e32d796ac7 Fix inconsistency in headlines format.
There are several restructuredtext files, which don't follow guide for
document contribution. Also made a rule for having additional line
between section body and folowing section headline.

Change-Id: I2dfe9aea36299e3986acb16b1805a4dc0cd952d2
2019-11-13 11:39:10 +01:00
Ilya Maximets 8442d47f5a Add PodResources gRPC API updating guide
Change-Id: I6af8eb8790f0bdafa5ffcaa4465b9cad6bfec50f
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
2019-08-02 17:50:32 +03:00
Michał Dulko 6b58a1b58e Replace git.openstack.org with opendev.org in URLs
Change-Id: I1909cf75595fd9da7dfb1481478756711e9bb06c
2019-06-26 17:57:01 +02:00
Michał Dulko 7cc187806b Change Pod annotations format to o.vo
With start of multi-vif support we've merged a new format of Pods
annotations i.e. dictionary with interface names as keys and VIF o.vo's
as values. This is inflexible, as we don't get versioning of the
dictionary.

This commit switches that dictionary to oslo.versionedobject of
following structure:

 PodState
   - default_vif: VIFBase
   - additional_vifs: {
       '<ifname>': VIFBase,
       ...
       '<ifname>': VIFBase,
   }

This should help us if we ever decide to change this format.

Related-Bug: 1782366

Depends-On: Ied6b5883cf4bfe6a499813c65b49257de040c4b5
Change-Id: I5bce85029f9edfed56ca216f465226b9bcc0d21b
2018-08-01 15:30:42 +02:00
Itzik Brown 18e37d5e13 Using interface name in kubectl plugin
In Rocky we've changed format of Pod annotations.
Adding the new format in kubectl plugin

Change-Id: I8933d331b15ccb7b0fa33b796537b26112bf8cf0
2018-07-22 08:29:02 +03:00
Daniel Mellado 6f097561e5 Add regenerate controller pod script
When developing using containerized mode, you'd need to go over the
steps on [1] quite a few times. This script just automates the process
for ease of development.

[1] https://docs.openstack.org/kuryr-kubernetes/latest/installation/devstack/containerized.html

Change-Id: I034b1d79941e1f986dd7c4991c7c971bb202bf75
2018-07-11 10:33:21 -04:00
Antoni Segura Puimedon e1580c5310 Vagrant: Document the increased Octavia reqs
The default vagrant values are insufficient for running Octavia
amphorae. This patch addresses it in documentation.

Change-Id: If0147adb39793b4601f7b00bec34aa9d593ecbc4
Closes-Bug: 1708173
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
2018-04-10 14:01:02 +00:00
Antoni Segura Puimedon cfa3d1121b
devstack-heat: Make parameters overridable
Up until now, if you wanted to change the defaults in the parameters,
you had to go and edit the hot/parameters.yml file. This was
inconvenient because it would then show up in git diff and prevent git
review from normal operation. This patch makes it so that now you can
pass the parameters just like if it was the openstack-cli. For example:

    ./devstack-heat stack \
        --parameter \
        "public_net=fbf9bcc6-cbaa-4c24-8d56-8010915a6494" \
        --parameter \
        "image=CentOS-7-x86_64-GenericCloud-1801-01"

Change-Id: Icf4fb124d03f56c8cf383971c5161520a1734d94
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
2018-03-08 01:32:07 +01:00
Antoni Segura Puimedon c2b81a2adf
devstack-heat: Do not clone the entire kuryr-k8s
If no github token is used, we resort to cloning. The more patches kuryr
has, the longer it takes. That is, unless we limit the cloning depth,
then it will only be the size of the latest snapshot.

Change-Id: I765be71937f1bf20b99c503a4193ed3de4e71ef2
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
2018-03-08 00:34:55 +01:00
Antoni Segura Puimedon 3a70b0b803
kubectl plugin kuryrvif
This plugin prints out nice information about the pods in the current
namespace. It also supports setting a selector and formatting for the
output.

Implements: blueprint kubectl-plugin
Change-Id: Id2afa262aa602765e1abf7fdd6ecda593b642ce0
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
2018-02-07 15:11:20 +01:00
Luis Tomas Bolivar 3de89337f7 Add list and show pool commands to Pool Manager
This patch add the support to get the current status of the pools.
It can list the existing pools and their number of available
subports, as well as to show the ids of the ports associated to
a given pool.

Implements: blueprint kuryr-manager-cli-tool
Change-Id: I9332ffa259c4651b69c788985e5bbd1f98cb38cc
2017-10-10 10:36:10 +00:00
Luis Tomas Bolivar 38697ddbeb Add Pool Manager to handle subports
This patch introduces a ports pool manager that runs as an http server
thread belonging to the VIF handler. This Manager handles the requests
to populate and/or empty given subport pools so that they can be easily
managed.

It also includes a client and documentation to test/use the new functionality.

Implements: blueprint kuryr-manager-cli-tool
Change-Id: I495c0ca3ed997ab9da1763d8a3e60bbf7ac618b9
2017-10-10 08:10:14 +00:00
Janonymous 956445a872 Removing detected Keystone Port in vagrant kury_rc
Updating Vagrant environment to use correct url

Closes-bug: #1698731
Change-Id: I6fd8545e4888971c50a98b919548d79497a6848c
2017-06-19 05:03:40 +00:00
Jenkins 5a884b4b4d Merge "devstack-heat: refactor and improve" 2017-06-14 14:34:43 +00:00
chenlx 6ecc908129 Use https links for documentation
Use https instead of http to ensure the safety.

Change-Id: I42c5cc28828eceae10bb814036ae697e33803a4d
2017-06-12 23:05:25 +08:00
Antoni Segura Puimedon afd8e93f09
devstack-heat: refactor and improve
In order to add more options, let's do a refactor and improve the code a
bit. One of the improvements is that it now waits for the stack not to
be in progress anymore before proceeding to show the stack outputs.

Change-Id: I68b64260d0a4b368d0427c5b231c44ea9ec55079
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
2017-06-08 12:45:27 +02:00
Antoni Segura Puimedon cb7bec573e
contrib: Add devstack-heat
Devstack heat is a convenience set of heat templates and cli to get
devstack deployments without hassles when you already have access to an
OpenStack cloud.

Change-Id: I2de8d12b2e8c805a86d03311857ca9be41ff0c75
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
2017-05-29 15:36:43 +02:00
Guo Ruijing d9c8d23fdc Fix vagrant ssh issue for virtualbox bento
Add workaroud for virtualbox bento to fix vagrant ssh timeout issue.

Change-Id: I9dd7d32948b807d00619397dd01bf8cccff46ba3
2017-04-04 16:21:35 -04:00
Frederick F. Kautz IV c52cfd02af Switching vagrant boxes to bento provider.
Change-Id: Iedf9855a0f0c9ea496cf6f6ad256666bacd2afac
Implements: blueprint vagrant-kuryr-k8s
2017-03-30 05:30:20 +00:00
Jenkins 4ef6b4ad5a Merge "update rc files" 2017-03-27 15:05:34 +00:00
Guo Ruijing 69207f8e2b update rc files
fix openstack cli issue due to wrong rc files after vagrant up

Change-Id: Ib3f279948279f035e2a910c0b19c46dd445e047d
2017-03-22 08:12:56 +08:00
Janonymous e3b58ccdae Adding Ubuntu 16.04 Box for parallels
Change-Id: Idaefacd7f16a2f001ef05a64a643e8c4d0b1c479
2017-03-20 04:59:37 +00:00
Frederick F. Kautz IV a980668a9b Adding vagrant configs to kuryr-kubernetes
Implements: blueprint vagrant-kuryr-k8s
Change-Id: I33667d158cd43b2c86264a5267af9fb997c42868
2017-03-15 09:37:59 -07:00
Antoni Segura Puimedon b267a108e3
testing: add offline testing container for CI
This patch adds the necessary code for building a container that can be
used for our CI functional and fullstack testing needs. The only
requirement for building is a working docker engine and the OS to have
access to a packaging mirror (which CI is supposed to have even when
internet connectivity is limited).

In order to build, simply move to 'contrib/testing/container' and run:

    ./build.sh

To try it out locally, just do:

    docker build -t kuryr/testing_container .
    docker run --rm -p 8000:8000 kuryr/testing_container

And from another terminal:

    curl 0:8000

Change-Id: Id94ad2d7567f9e5d60fce25d29c8c3d4a391aabc
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
2017-01-04 11:38:09 +01:00