35 Commits

Author SHA1 Message Date
Jenkins
1b3a7cf0ae Merge "Add stackube proxy" 2017-07-23 14:23:06 +00:00
Harry Zhang
8456f51d7f Add auto network when tenant is added
Move tenant to default system ns

Delete auto network when tenant is deleted

Implements: blueprint cni-controller

Change-Id: I886d9ee4892297461c7a1d2eb02570c8c14bd581
2017-07-21 17:12:11 +08:00
Pengfei Ni
b9bf13f065 Add stackube proxy
- Adds stackube proxy which listens on endpoints, services and
  namespaces, creates load balancer rules for clusterIP service
- Switch to govendor for managing vendors
- Add hack scripts for verifying govet and gofmt

Change-Id: I8594c16d294f46ae0d3dec6dae6fa491e7891b8b
Implements: blueprint stackube-proxy
2017-07-20 16:21:59 +08:00
Jenkins
c72fe929db Merge "Containerize cni network plugin" 2017-07-20 03:24:17 +00:00
mozhulee
6b699689f3 Containerize cni network plugin
including
* build cni plugin image
* deploy via kubernetes daemonsets

Change-Id: I9f8c3239aa91c77bfec38728151eeeee5084c20d
Implements: blueprint containerize-cni
Signed-off-by: mozhuli <21621232@zju.edu.cn>
2017-07-20 10:37:44 +08:00
Harry Zhang
a0de58d447 Refactor tenant client
Deal with tenantID provided case

Change-Id: Ia01028d21fe258a97175fcc8ce103cc82df37291
2017-07-20 09:57:24 +08:00
Harry Zhang
e2f1a14c1d Fix system namespace
Create tenant and network for 3 namespaces:
default, kube-system, kube-public

They will share "default" tenant and "kube-default-default-network"

Change-Id: I4cb195d544a5a8d6d3fdd356a3a89582daaafdbf
Implements: blueprint 	auth-controller
2017-07-17 14:43:22 +08:00
Pengfei Ni
69dc3b3a6b Add CNI network plugin
This PR adds CNI network plugin to stackube.

Usage:

1. CNI network config

{
    "cniVersion": "0.3.1",
    "name": "net",
    "type": "kubestack",
    "kubestack-config": "/etc/kubestack.conf"
}

2. /etc/kubestack.conf

[Global]
auth-url=https://192.168.0.3/identity_admin/v2.0
username=admin
password=password
tenant-name=admin
region=RegionOne
ext-net-id=550370a3-4fc2-4494-919d-cae33f5b3de8
[Plugin]
plugin-name=ovs
integration-bridge=br-int

3. Put stackube command to /opt/cni/bin

Change-Id: I3a666aa2b0b90ef5d8e2f065ddda0deb6d0fcd94
Implements: blueprint cni-plugin
Signed-off-by: Pengfei Ni <feiskyer@gmail.com>
Signed-off-by: mozhuli <21621232@zju.edu.cn>
2017-07-10 16:07:46 +08:00
Pengfei Ni
7bb760620f Rework auth controller
This PR reworks auth controller to use informer framework.
It also fix the problem of tenant and user not created.

Change-Id: I017032f2eb4d83440319729d9f1fb13351f4d72b
Closes-Bug: 1702841
Signed-off-by: Pengfei Ni <feiskyer@gmail.com>
2017-07-07 15:44:11 +08:00
Harry Zhang
f52aae3420 Update network TPR to CRD
Use CRD for tenant

Fix install doc

Change-Id: I721e144bb7380d8391608de175a8ab2cb011ddfa
2017-07-06 09:45:23 +08:00
mozhulee
13db93fe2d Add deleteNamespace process when tenant deleted
Change-Id: I3089577cf7a6518317ee23704346d489371901ca
Signed-off-by: mozhuli <21621232@zju.edu.cn>
2017-06-30 17:19:29 +08:00
Jenkins
03b3963e38 Merge "Optimize flags and logs." 2017-06-30 07:16:10 +00:00
mozhulee
0137840fb6 Update openstack client
Update including
* Fix DeleteAllUsersOnTenant method can't list specific tenant's users
* Enhance err extracl of delete tenant

Change-Id: I4a54397c8f9c07f945efbd514b0a68f741e199e0
Signed-off-by: mozhuli <21621232@zju.edu.cn>
2017-06-30 14:28:58 +08:00
Pengfei Ni
7d90e0b1f4 Optimize flags and logs.
Usage of ./stackube-controller:
      --alsologtostderr                  log to standard error as well as files
      --cloudconfig string               path to stackube config file (default "/etc/stackube.conf")
      --kubeconfig string                path to kubernetes admin config file (default "/etc/kubernetes/admin.conf")
      --log-backtrace-at traceLocation   when logging hits line file:N, emit a stack trace (default :0)
      --log-dir string                   If non-empty, write log files in this directory
      --log-flush-frequency duration     Maximum number of seconds between log flushes (default 5s)
      --logtostderr                      log to standard error instead of files (default true)
      --stderrthreshold severity         logs at or above this threshold go to stderr (default 2)
  -v, --v Level                          log level for V logs
      --vmodule moduleSpec               comma-separated list of pattern=N settings for file-filtered logging

Change-Id: I2dfa762c3e076c7e41b49b4f27c3868bed03eba8
Signed-off-by: Pengfei Ni <feiskyer@gmail.com>
2017-06-30 14:07:26 +08:00
Harry Zhang
76ef989737 Use trp to handle network
Change-Id: I1ff5c2d858d4f68a98867ef845887200b9561af0
2017-06-28 19:22:08 +08:00
Jenkins
a68cb327eb Merge "Update gophercloud vendor" 2017-06-24 09:55:09 +00:00
Jenkins
8b58d5efdd Merge "Update vendor" 2017-06-24 09:53:04 +00:00
mozhulee
cd6644e04d Update gophercloud vendor
Update including
* Fix tenants users v2.0 URL in Ocata version of openstack
* Support password option of create user in identity v2
* Add ListUsers by tenantID method in identity v2

Change-Id: Ie2e34d9196907fab5048e468d9ddfbf7e4c6d78e
Signed-off-by: mozhuli <21621232@zju.edu.cn>
2017-06-24 16:19:20 +08:00
mozhulee
4ff66bd27b Update vendor
This PR update github.com/gophercloud/gophercloud vendor
and delete extra vendor

Change-Id: I073d7fe5211b0b2321266ece545e0c4b1fc07b0d
Signed-off-by: mozhuli <21621232@zju.edu.cn>
2017-06-24 16:09:36 +08:00
Pengfei Ni
01460635d9 Add developer guide
This commit adds the developer guide for stackube.

Change-Id: If32602d93929f9452e447959265b21335d13f622
Signed-off-by: Pengfei Ni <feiskyer@gmail.com>
2017-06-23 16:01:53 +08:00
mozhulee
b95dd6a380 Add framework of auth-controller
Change-Id: Ifa8cc0e4abb798c63c9d4ac9297e3e32443125e4
Implements: blueprint auth-controller-framework
Signed-off-by: mozhuli <21621232@zju.edu.cn>
2017-06-22 18:16:27 +08:00
Harry Zhang
f3545f50a4 Update vendor and makefile
Change-Id: I25bd3edf05652c1215eba4d98a965bee310c99f8
2017-06-09 13:18:01 +08:00
Pengfei Ni
0ff4a00a71 Add links of documentation.
Add a link of stackube documentation in README.

Change-Id: Ib06f2c729ddf5f41f0cf26e1872b36bd39741eb1
Signed-off-by: Pengfei Ni <feiskyer@gmail.com>
2017-06-08 20:25:07 +08:00
Pengfei Ni
69c1e4013c Add initial network and tenant spec
Change-Id: Ia1e2d52c73539a45d294b7403c9290882c5d42d0
Implements: blueprint tenant-spec
2017-06-01 15:07:55 +08:00
Pengfei Ni
291127f0d1 Add devstack plugin for stackube
The plugin install components including

* OpenStack Keystone, Neutron and Cinder with Ceph backend
* Kubernetes with frakti container runtime
* Kubernetes auth via keystone

Implements: blueprint kubernetes-deploy
Change-Id: Ib2ad60b71bc51bdedaefd7014c83ed7ba56414e3
Signed-off-by: Pengfei Ni <feiskyer@gmail.com>
2017-05-31 13:48:26 +08:00
Harry Zhang
d26f5b2692 Add architecture png
Change-Id: I0e32e276bc16893536fc8b064f36a2f2467a7022
2017-05-26 16:07:13 +08:00
Jenkins
6988e85254 Merge "Fix document building" 2017-05-24 07:41:50 +00:00
Pengfei Ni
882164d1af Fix document building
Closes-Bug: 1692828
Change-Id: I0090c63da6db325717f717a7e1df95a09e5e4b16
2017-05-24 15:22:46 +08:00
Pengfei Ni
9ed25888d7 Add README for stackube.
This PR adds README for stackube project.

Change-Id: I51845a4bbf1fb06f8a577e640366c6e883fff6b0
2017-05-24 02:26:52 +00:00
Harry Zhang
614454ac2a Fix doc format and makefile
Change-Id: I18bc88400db4f23e7529bd33f567023f51df8a80
2017-05-22 20:21:01 +08:00
Harry Zhang
9c4bf12a25 Add scope doc
Change-Id: I6b454dc45778fb666a25463f4d44ee3ccddbd649
Signed-off-by: Harry Zhang <harryz@hyper.sh>
2017-05-22 16:41:19 +08:00
Jenkins
6f270819a9 Merge "Add LICENSE" 2017-05-19 06:17:30 +00:00
Pengfei Ni
f9ab09feb5 Add LICENSE
Change-Id: Iadc803a099097f2f836099a0f80427de61c543aa
Depends-On: I04c25e8bde1bcb6c17b12284b67eb3e9953d94fe
Signed-off-by: Pengfei Ni <feiskyer@gmail.com>
2017-05-19 09:24:13 +08:00
Pengfei Ni
28ee83e1ea Add initial makefile and tools
This is for aligning with Golang CTI proposed proposed in
https://review.openstack.org/410355.

Change-Id: I04c25e8bde1bcb6c17b12284b67eb3e9953d94fe
Signed-off-by: Pengfei Ni <feiskyer@gmail.com>
2017-05-19 09:22:32 +08:00
OpenStack Project Creator
2a793d4df3 Added .gitreview 2017-05-17 11:18:32 +00:00