compass4nfv.git
7 years agoFix docker-compose 41/36941/2
Harry Huang [Wed, 5 Jul 2017 03:09:54 +0000 (11:09 +0800)]
Fix docker-compose

Add sudo when install docker-compose

Change-Id: I7025919889d543c860bf49bbbaf9665030437160
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
7 years agoUtilize yaml.safe_load 93/37093/2
lhinds [Sat, 8 Jul 2017 15:51:27 +0000 (16:51 +0100)]
Utilize yaml.safe_load

The patch changes instances of yaml.load with yaml.safe_load
which is more secure at blocking arbitrary code execution.

The following blog has a decent explaination:

https://www.kevinlondon.com/2015/08/15/dangerous-python-functions-pt2.html

Change-Id: I8201baab6cb31ab31228eca83134f87a57c2f5d2
Signed-off-by: lhinds <lhinds@redhat.com>
7 years agoBug fix for physnet name in ODL 23/37123/1
Yifei Xue [Mon, 10 Jul 2017 15:10:14 +0000 (23:10 +0800)]
Bug fix for physnet name in ODL

The physnet name used in ODL should be the same the one used in
those none odl scenarios.

Change-Id: I5afc9196d8365b649eb088f29bac4f94d9d12d16
Signed-off-by: Yifei Xue <xueyifei@huawei.com>
7 years agoUpgrade ODL from boron to carbon 87/36187/15
Yifei Xue [Mon, 19 Jun 2017 11:22:11 +0000 (19:22 +0800)]
Upgrade ODL from boron to carbon

JIRA: -

Change-Id: I031444d1094af646ae39a9c0c3fbfc30548e6ee4
Signed-off-by: Yifei Xue <xueyifei@huawei.com>
7 years agoAdd opendaylight switch 85/37085/2
Harry Huang [Sat, 8 Jul 2017 09:00:31 +0000 (17:00 +0800)]
Add opendaylight switch

Add key plugins in DHA file and declare opendaylight
as a plugin in odl scenario.

Change-Id: Iefc07b691d5052a9980d8c87f23a9f82be61ed6e
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
7 years agoChange docker repo in build 37/36937/2
Harry Huang [Wed, 5 Jul 2017 02:59:42 +0000 (10:59 +0800)]
Change docker repo in build

1. change docker repo to compass4nfv
2. change compass-docker-compose github to Compass4NFV

Change-Id: I81803ec3123c681e023f6e38456f431c6fc2e346
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
7 years agofetch openrc for functest 05/36905/10
wutianwei [Tue, 4 Jul 2017 09:46:39 +0000 (17:46 +0800)]
fetch openrc for functest

We use openstack-ansible to deploy the openstack,
the position of openrc is different from the before.
change the apt source when use local apt repository

Change-Id: I1c5492b294a8645f452868c9cf2fec2e0802f823
Signed-off-by: wutianwei <wutianwei1@huawei.com>
7 years agoMerge "add plugins template"
Justin chi [Tue, 4 Jul 2017 11:34:51 +0000 (11:34 +0000)]
Merge "add plugins template"

7 years agoadd plugins template 89/36489/11
chigang [Sat, 24 Jun 2017 06:13:53 +0000 (14:13 +0800)]
add plugins template

JIRA: -

add a plugin template for compass4nfv

Change-Id: Iec767a7fab43617633238f9c5e326896dd6ce82e
Signed-off-by: chigang <chigang@huawei.com>
7 years agoFix keepalived ping address 83/36883/1
chigang [Tue, 4 Jul 2017 05:21:12 +0000 (13:21 +0800)]
Fix keepalived ping address

JIRA:-

Replace OSA default address with  ntp_server address.
OSA will use it to check internet connection.
Rename some roles that make users confused.

Change-Id: I4dd7e242e427e5bc3a611450a3bc436e44a8fefe
Signed-off-by: chigang <chigang@huawei.com>
7 years agoRemove obsoleted code 99/36799/3
chigang [Fri, 30 Jun 2017 12:24:25 +0000 (20:24 +0800)]
Remove obsoleted code

JIRA:-

use OpenStack-ansible deploy openstack, so remove obsoleted code.
Some of the enhanced features will be added in later versions

Change-Id: Ie92b92b5de234a7d7d03b578b0bc15fd0218b3b3
Signed-off-by: chigang <chigang@huawei.com>
7 years agoFix DNS flush 49/36849/4
chigang [Mon, 3 Jul 2017 06:40:34 +0000 (14:40 +0800)]
Fix DNS flush

JIRA:-

It doesn't need to config DNS in ansible roles, just need to
set NAMESERVERS variable

Change-Id: I37a70b32c766c1fad7afa5289ffbbc27b956b2d5
Signed-off-by: chigang <chigang@huawei.com>
7 years agoChange the apt source 39/36639/7
wutianwei [Wed, 28 Jun 2017 06:19:02 +0000 (14:19 +0800)]
Change the apt source

1. change the apt sorce from http://hk.archive.ubuntu.com
to http://archive.ubuntu.com
2. if setup host failed, destroy the failed lxc. then retry to setup.
3. fix the dns-nameserver bug

Change-Id: Ic609c75b50496e2174ab09425bce45a0ec2c09c0
Signed-off-by: wutianwei <wutianwei1@huawei.com>
Signed-off-by: chigang <chigang@huawei.com>
7 years agoMerge "setup ovs create network flavor"
Justin chi [Fri, 30 Jun 2017 07:01:48 +0000 (07:01 +0000)]
Merge "setup ovs create network flavor"

7 years agosetup ovs create network flavor 93/36693/4
wutianwei [Tue, 27 Jun 2017 11:49:07 +0000 (19:49 +0800)]
setup ovs create network flavor

1. replace the linuxbridge with openvswitch
2. create the network and flavors
3. fix the haproxy when public endpoint using http

Change-Id: I6fe93d0c4d5305e5dcab8d2e6c628eb5fa23ab56
Signed-off-by: wutianwei <wutianwei1@huawei.com>
7 years agoFix python pkg issue 89/36689/1
Harry Huang [Thu, 29 Jun 2017 03:36:44 +0000 (11:36 +0800)]
Fix python pkg issue

1 add install pyyaml in build process
2 fix python pkg version

Change-Id: Icb40bd52aa6cd22874894047561acb9211abfa22
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
8 years agoSupport Centos7 83/36283/5
wutianwei [Wed, 21 Jun 2017 03:02:26 +0000 (11:02 +0800)]
Support Centos7

1. install the yum packages
2. add the ifcfg scripts to adapt Centos7
3. change MaxSession to 100
4. if setup-host failed, retry to run the failed container

Change-Id: I57589d38f6af1677cb889875c85d6b8bac5c80d0
Signed-off-by: wutianwei <wutianwei1@huawei.com>
8 years agoFix config-compute handler 57/36457/1
Harry Huang [Mon, 26 Jun 2017 02:21:17 +0000 (10:21 +0800)]
Fix config-compute handler

The network restart handler comes at the end
of all tasks which cause pkg install task be
executed when network is not ready. Flush this
handler right after configure network tasks.

Change-Id: I98b9f6f0f2ec0b79632188a481673529a1b522bb
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
8 years agoMerge "replace build.conf with yaml"
Justin chi [Sun, 25 Jun 2017 09:18:54 +0000 (09:18 +0000)]
Merge "replace build.conf with yaml"

8 years agoreplace build.conf with yaml 39/36439/9
chigang [Sat, 24 Jun 2017 07:33:23 +0000 (15:33 +0800)]
replace build.conf with yaml

JIRA: -

use build.yaml as config file
from Euphrates openstack deb/rpm/pip packages download from compass
repo containers, not from compass.iso. so delete these packages from
build.cfg

Change-Id: Id254852ece0d738b3ec543efe68216206bd7daf2
Signed-off-by: chigang <chigang@huawei.com>
8 years agoInstall network pkgs during OS installation 43/36443/1
Harry Huang [Sat, 24 Jun 2017 08:05:44 +0000 (16:05 +0800)]
Install network pkgs during OS installation

Before network is setup, host can't access to internet.
Install bridge-utils, ifenslave and vlan when cobbler
managing OS installation so when network restart all pkgs
needed is ready.

Change-Id: Idaa880ed0abfb50f417d67fe55e964992a185c80
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
8 years agofix baremetal deploy 11/36211/1
huangxiangyu [Tue, 20 Jun 2017 03:36:18 +0000 (11:36 +0800)]
fix baremetal deploy

1. delete package part when external network is not ready
2. modify some vm_environment ip to adapt with containerized
   compass4nfv code

Change-Id: I9d777675e7ca9d6f9b12a885df8677b2446e6917
Signed-off-by: huangxiangyu <huangxiangyu5@huawei.com>
8 years agoMerge "support Containerized compass-core"
Justin chi [Fri, 9 Jun 2017 07:26:19 +0000 (07:26 +0000)]
Merge "support Containerized compass-core"

8 years agosupport Containerized compass-core 43/34943/25
huangxiangyu [Thu, 18 May 2017 07:38:25 +0000 (15:38 +0800)]
support Containerized compass-core

JIRA: COMPASS-534

1. rm compass vm and add ansible to bring up 5 compass
   containers
2. use tar package instead of compass.iso which contains
   compass docker images, OS ISO, PPA, pip packages.
3. modify client.py to communicate with containerized
   compass-core
4. modify cobbler files and ansible callback files
   to adapt with containerized compass-core
5. upgrade openstack version to ocata
6. use the openstack-ansible to deploy openstack
7. virtual deploy external use nat

Change-Id: Ifa2a3f5b8c7c32224ac4276fd3d4cc2b0d270a26
Signed-off-by: huangxiangyu <huangxiangyu5@huawei.com>
8 years agoFIX compass-core vm panic issue 57/34757/1
QiLiang [Mon, 15 May 2017 09:21:04 +0000 (17:21 +0800)]
FIX compass-core vm panic issue

JIRA: -

Update compass-core vm cpu mode in libvirt xml to let
compass-core vm support most instruction set that host support.

Change-Id: I654672f441c18e0da87509d3c492ceae2bf9ba95
Signed-off-by: QiLiang <liangqi1@huawei.com>
8 years agoMerge "huawei-pod6 added to sandbox CI so, all config files are added for huawei...
Justin chi [Mon, 8 May 2017 11:49:10 +0000 (11:49 +0000)]
Merge "huawei-pod6 added to sandbox CI so, all config files are added for huawei-pod6"

8 years agoMerge "Fix vlan network can't deploy instance"
Justin chi [Thu, 4 May 2017 06:35:39 +0000 (06:35 +0000)]
Merge "Fix vlan network can't deploy instance"

8 years agohuawei-pod6 added to sandbox CI 47/34047/1
Thaj [Tue, 2 May 2017 11:30:54 +0000 (13:30 +0200)]
huawei-pod6 added to sandbox CI
so, all config files are added for huawei-pod6

Change-Id: Ic11ca7de4787a67e52ac75784f760347bcb42315
Signed-off-by: Thaj <Thajudheen.rajak@huawei.com>
8 years agotempest test case failed in Functest smoke 85/33685/3
Yifei Xue [Mon, 24 Apr 2017 03:22:40 +0000 (11:22 +0800)]
tempest test case failed in Functest smoke

JIRA: COMPASS-545

1. LVMISCSIDriver has been removed but LVMVolumeDriver is what actually exists.
Updating the LVM driver name in cinder.conf will solve this.

2. Add tgt to cinder-volume's service list

3. Add section of ceph in cinder.conf for cinder backend

4. Add enable_backends in cinder.conf

Change-Id: I477d2b17ce9e10871a7b96c1a98a49506b36a6ef
Signed-off-by: Yifei Xue <xueyifei@huawei.com>
8 years agoMerge "Change the default packages url from compass http server to opnfv artifacts"
Justin chi [Tue, 18 Apr 2017 11:25:10 +0000 (11:25 +0000)]
Merge "Change the default packages url from compass http server to opnfv artifacts"

8 years agoMerge "Up br-external after its creation"
Justin chi [Fri, 14 Apr 2017 03:10:53 +0000 (03:10 +0000)]
Merge "Up br-external after its creation"

8 years agoMerge "Fix memcached doesn't start issue"
Justin chi [Fri, 14 Apr 2017 03:10:17 +0000 (03:10 +0000)]
Merge "Fix memcached doesn't start issue"

8 years agoChange the default packages url from compass http server to opnfv artifacts 63/33263/2
Yifei Xue [Tue, 11 Apr 2017 13:06:20 +0000 (21:06 +0800)]
Change the default packages url from compass http server to opnfv artifacts

JIRA: COMPASS-544

Currently compass4nfv uses compass http server to store those packages used in
building ISO. This is not propriate in OPNFV community. So we push all the packages
into opnfv artifacts repo and change the package url used in compass to opnfv
artifacts repo url.

Change-Id: I9661f2d893767e18c037ba9de5f54933f48ce466
Signed-off-by: Yifei Xue <xueyifei@huawei.com>
8 years agoUp br-external after its creation 93/32993/1
QiLiang [Wed, 5 Apr 2017 08:32:18 +0000 (01:32 -0700)]
Up br-external after its creation

JIRA: -

On a clean env run compass4nfv deploy script will cause the jumpserver
network unreachable. This patch fix this issue.

Change-Id: Ib04762c5cf745ab40adcf05497d518e6d86ad97c
Signed-off-by: QiLiang <liangqi1@huawei.com>
8 years agoMerge "change the package url"
Justin chi [Wed, 5 Apr 2017 07:24:37 +0000 (07:24 +0000)]
Merge "change the package url"

8 years agoFix vlan network can't deploy instance 63/32863/1
huangxiangyu [Sat, 1 Apr 2017 09:06:54 +0000 (17:06 +0800)]
Fix vlan network can't deploy instance

JIRA: COMPASS-533

Bug:
When a vlan network is created and bind to a physical network,
the instances launched on this network will fail to get ip
address from openstack dhcp server.

Solution:
Set enable_isolated_metadata to True in dhcp_agent.in

Change-Id: I97cf8684d1ec9beeaa30e0ffa290150046ebcab1
Signed-off-by: huangxiangyu <huangxiangyu5@huawei.com>
8 years agoUpdate release notes for Danube release 15/32415/2
Justin chi [Thu, 30 Mar 2017 08:45:03 +0000 (16:45 +0800)]
Update release notes for Danube release

JIRA: -

  1. Add known issues and workaroud instructions
  2. Update Danube release date

Change-Id: I6058dcf7db478d680999f451f5959ec4f998036f
Signed-off-by: Justin chi <chigang@huawei.com>
Signed-off-by: chigang <chigang@huawei.com>
8 years agoFix memcached doesn't start issue 31/31831/4
QiLiang [Mon, 27 Mar 2017 02:32:20 +0000 (10:32 +0800)]
Fix memcached doesn't start issue

JIRA: -

Sometimes memcached does not start after installation finished,
which will cause issues like openstack dashboard open instance
console failure.

This patch add memcached restart notify during package installation
and add memcached to cron service-status-check task's config file:
/opt/service

Change-Id: I625899348fb447875fcca7beedb619b5490ce567
Signed-off-by: QiLiang <liangqi1@huawei.com>
8 years agoMerge "opera adapter fix2"
Justin chi [Mon, 27 Mar 2017 13:27:54 +0000 (13:27 +0000)]
Merge "opera adapter fix2"

8 years agoMerge "FIX access database failed"
Justin chi [Mon, 27 Mar 2017 10:18:37 +0000 (10:18 +0000)]
Merge "FIX access database failed"

8 years agoMerge "Support bond created"
Justin chi [Mon, 27 Mar 2017 10:15:49 +0000 (10:15 +0000)]
Merge "Support bond created"

8 years agoMerge "Fix preseed MAC address fetch method"
Justin chi [Mon, 27 Mar 2017 10:15:22 +0000 (10:15 +0000)]
Merge "Fix preseed MAC address fetch method"

8 years agoMerge "Support compute node restart on CentOS"
Justin chi [Mon, 27 Mar 2017 10:15:03 +0000 (10:15 +0000)]
Merge "Support compute node restart on CentOS"

8 years agoopera adapter fix2 09/31509/4
Harry Huang [Thu, 23 Mar 2017 07:52:09 +0000 (15:52 +0800)]
opera adapter fix2

* opera_adapter need sshpass which may cause deploy
fail
* compass log redirection is the last command which
always return 0 and thus cover deploy error

1. add installation of sshpass in prepare.sh
2. echo a string at the end of deploy/launch.sh into
log file to judge if deployment is complete
3. fix typing error in util/check_valid.py

Change-Id: Ic4bca50b2c316bf46cace45b9b3317ef9452a0ba
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
8 years agochange the package url 25/31825/1
wutianwei [Mon, 27 Mar 2017 01:16:31 +0000 (09:16 +0800)]
change the package url

We moved the master package repository from <http://205.177.226.237:9999>
to <http://205.177.226.237:9999/master>. When we build the master ISO,
we need download the package from new URL.
Add md5 checksum after downloading package.

Change-Id: Ia6d8a217569e6e8dc676b1290e583348a7b9c347
Signed-off-by: wutianwei <wutianwei1@huawei.com>
8 years ago[compass-docs] correct some minor mistake 73/31673/1
meimei [Fri, 24 Mar 2017 09:22:16 +0000 (17:22 +0800)]
[compass-docs] correct some minor mistake

Change-Id: I0e065552cbcaeffde83daeac9d1c27445f6cfcbb
Signed-off-by: meimei <meimei@huawei.com>
8 years agoSupport compute node restart on CentOS 49/31649/3
liyuenan [Fri, 24 Mar 2017 03:03:57 +0000 (11:03 +0800)]
Support compute node restart on CentOS

JIRA: -

Openvswitch service in Ubuntu named openvswitch-switch, but it named
openvswitch in CentOS.

Change-Id: I2a4d3d0ae0a646971696bae798b623da059a3781
Signed-off-by: liyuenan <liyuenan@huawei.com>
8 years agoOpera adapter fix 1 65/31365/4
Harry Huang [Wed, 22 Mar 2017 10:45:54 +0000 (18:45 +0800)]
Opera adapter fix 1

After adding sudo opera_adapter can't get $COMPASS_DIR
and still has the issue returning 0 when launch opera
fail.

Changing the way opera_adapter gets $COMPASS_DIR and
add judgement inside opera_adapter to get opera launch
error.

Change-Id: I59d0d496f47b38e474de3dfc1277877dbe8ed840
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
8 years agoOpera adapter fix 27/31127/2
Harry Huang [Tue, 21 Mar 2017 03:31:56 +0000 (11:31 +0800)]
Opera adapter fix

* CI return 0 when opera_adapter fails which cover the error.
* opera_adapter runs with no sudo will fail when generate ssh
key.
* opera_adapter.py use simple ip replacement for openrc file
will lead to error when openrc file changed in compass.

1. add judgement to tell if opera_adapter fails
2. add sudo when run opera_adapter
3. pass data in openrc files to opera openrc instead of ip
rewriting

Change-Id: I681717947746b768791529975a5b0d2a23c6069a
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
8 years agoupdate opera fix 69/30969/2
Harry Huang [Mon, 20 Mar 2017 01:35:29 +0000 (09:35 +0800)]
update opera fix

opera codes has been updated and network_openo.yml is modified
according to new opera net config. open-o related keys in
deploy/compass_conf/package_metadata/openstack.conf should be
modified as well

Change-Id: I55f8ed3dedcbfd30a3f01b70c958258199f600e6
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
8 years agoMerge "update opera related files"
Justin chi [Fri, 17 Mar 2017 10:44:25 +0000 (10:44 +0000)]
Merge "update opera related files"

8 years agoAdd ONOS scenario to daily master 89/30789/1
Yifei Xue [Fri, 17 Mar 2017 06:40:02 +0000 (14:40 +0800)]
Add ONOS scenario to daily master

Currently ONOS scenario only runs when OpenStack version is set to Mitaka.
This patch is going to change daily ONOS scenario to run with OpenStack Newton.

Change-Id: I6595d23778bb50772531e1419d2c7b7b72988967
Signed-off-by: Yifei Xue <xueyifei@huawei.com>
8 years agoupdate opera related files 37/30337/4
Harry Huang [Mon, 13 Mar 2017 12:22:47 +0000 (20:22 +0800)]
update opera related files

1. update opera_adapter.py to sync new opera config
2. modify all os-nosdn-openo-ha.yml, add open-o version
   and vnf type
3. modify all network_openo.yml, using only one external
   ip and assign open-o docker ips

Change-Id: Iadcba8cc2fc17ddf32dfea9fe52c471a6bfadde8
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
8 years agoMerge "onos 1.8 upgradation for danube"
Justin chi [Thu, 16 Mar 2017 12:32:11 +0000 (12:32 +0000)]
Merge "onos 1.8 upgradation for danube"

8 years agoFix preseed MAC address fetch method 19/30619/1
QiLiang [Thu, 16 Mar 2017 02:07:45 +0000 (10:07 +0800)]
Fix preseed MAC address fetch method

JIRA: -

e.g.:

root@host1:~# ip link show eth4
6: eth4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether ec:38:8f:79:fa:5c brd ff:ff:ff:ff:ff:ff
root@host1:~# echo $(echo $@ | cut -d' ' -f17)
ec:38:8f:79:fa:5c

root@host4:~# ip link show eth4
6: eth4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop portid 0100000000000000000000000000003000 state DOWN mode DEFAULT group default qlen 1000
    link/ether e0:36:76:d2:34:73 brd ff:ff:ff:ff:ff:ff
root@host4:~# echo $(echo $@ | cut -d' ' -f17)
1000
root@host4:~# echo $(echo $@ | cut -d' ' -f19)
e0:36:76:d2:34:73

Change-Id: I916c19807da724e9ba471376f81f3c763b9340d5
Signed-off-by: QiLiang <liangqi1@huawei.com>
8 years agoonos 1.8 upgradation for danube 33/28933/30
rssaravana [Fri, 17 Feb 2017 11:14:25 +0000 (16:44 +0530)]
onos 1.8 upgradation for danube

Change-Id: I6242b9fc09749ca83f446ef5456eaad72f248012
Signed-off-by: rssaravana <saravanakumar.somaskandan@huawei.com>
8 years agoMerge "Adding Labels"
Justin chi [Tue, 14 Mar 2017 08:15:50 +0000 (08:15 +0000)]
Merge "Adding Labels"

8 years agoSupport bond created 91/30391/1
liyuenan [Tue, 14 Mar 2017 07:55:08 +0000 (15:55 +0800)]
Support bond created

JIRA: -

You can add bond according to deploy/conf/network_cfg.yaml.

Change-Id: I70f2f03581cf763dbaf7a8a47bdbd46b66620fcb
Signed-off-by: liyuenan <liyuenan@huawei.com>
8 years agoMerge "Add vm live migration support"
Justin chi [Tue, 14 Mar 2017 07:41:27 +0000 (07:41 +0000)]
Merge "Add vm live migration support"

8 years agoAdd vm live migration support 79/30379/1
QiLiang [Tue, 14 Mar 2017 04:54:52 +0000 (12:54 +0800)]
Add vm live migration support

JIRA: -

Add libvirtd configure to support vm live migration.

Test cmd:

    nova live-migration <vm-id> <dest-host-name>

Change-Id: Ic7f47f1e13a7cd84a2d1c67089fedf76662bf412
Signed-off-by: QiLiang <liangqi1@huawei.com>
8 years agoMerge "Add deploy log to file"
Justin chi [Tue, 14 Mar 2017 03:49:12 +0000 (03:49 +0000)]
Merge "Add deploy log to file"

8 years agoAdd deploy log to file 37/30237/1
QiLiang [Fri, 10 Mar 2017 09:08:46 +0000 (17:08 +0800)]
Add deploy log to file

JIRA: -

The default log file path is: work/deploy/log/compass-deploy.log

Change-Id: I6f8ebb028d169a0da88f2a588e4563db4f2f1f76
Signed-off-by: QiLiang <liangqi1@huawei.com>
8 years agoAdd network_openo.yml in all virtual pods 41/30141/2
Harry Huang [Thu, 9 Mar 2017 08:59:35 +0000 (16:59 +0800)]
Add network_openo.yml in all virtual pods

add network_openo.yml to adapt with open-o scenario in:
1. huawei-virtual1
2. huawei-virtual2
3. huawei-virtual3
4. huawei-virtual4
5. huawei-virtual7

Change-Id: I96046470ddb05f8f613489db35f4a6b623a5cf4c
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
8 years agoFIX access database failed 53/30153/1
liyuenan [Thu, 9 Mar 2017 11:21:25 +0000 (19:21 +0800)]
FIX access database failed

JIRA: COMPASS-521

Use a hard value to set number of workers for Openstack API
service. This way only fix E9000 failed temporarily. Database need
to update in a late patch.

Change-Id: Ie03f6a758e1e458567054470962b5be4f6ee630e
Signed-off-by: liyuenan <liyuenan@huawei.com>
8 years agoUpgrade tacker from mitaka to newton 47/29547/3
Yifei Xue [Wed, 1 Mar 2017 08:39:43 +0000 (16:39 +0800)]
Upgrade tacker from mitaka to newton

JIRA: COMPASS-528

Add tacker package making scripts into repo/pip/ directory.
Compass will install tacker using pip in this release.
Upgrade tacker role including tasks, templates and vars.
Modify the installation method from using source code to using whl package.

Change-Id: Iead323c7b46d8d1df084ed868d0e01bc1b0f7e55
Signed-off-by: Yifei Xue <xueyifei@huawei.com>
8 years agoMerge "add open-o scenario"
Justin chi [Wed, 8 Mar 2017 04:42:27 +0000 (04:42 +0000)]
Merge "add open-o scenario"

8 years agoAdding Labels 25/29925/2
ShubhamRathi [Tue, 7 Mar 2017 11:31:11 +0000 (17:01 +0530)]
Adding Labels

Labels serve as anchors/ refs when referenced from other documents
This patch adds labels to docs/*/*/index.rst

Change-Id: I66414622edcb73d22142d03d55c2040c3ff70d68
Signed-off-by: ShubhamRathi <shubhamiiitbackup@gmail.com>
8 years agoadd open-o scenario 19/29819/2
Harry Huang [Mon, 6 Mar 2017 02:00:18 +0000 (10:00 +0800)]
add open-o scenario

add os-nosdn-openo-ha.yml and network_openo.yml in:
1. huawei-pod1
2. huawei-pod2
3. intel-pod8

Change-Id: I89ad426c1e3006bf2ef218cd9b55d97e53aa8721
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
8 years agoMerge "Development documentations update"
Justin chi [Fri, 3 Mar 2017 10:10:21 +0000 (10:10 +0000)]
Merge "Development documentations update"

8 years agoMerge "Add License header for files without it"
Justin chi [Tue, 28 Feb 2017 12:38:28 +0000 (12:38 +0000)]
Merge "Add License header for files without it"

8 years agoMerge "add ntp for compass-core"
Justin chi [Tue, 28 Feb 2017 10:51:48 +0000 (10:51 +0000)]
Merge "add ntp for compass-core"

8 years agoDevelopment documentations update 01/29401/8
Yifei Xue [Mon, 27 Feb 2017 01:16:46 +0000 (09:16 +0800)]
Development documentations update

JIRA: DOCS-165

Add the document for feature integration which introduces how
to integrate a feature into compass4nfv including creating a role,
making repo and building a feature included ISO.

Change-Id: I8ea70a298cbf079ed30e318ce2cfc4b803218434
Signed-off-by: Yifei Xue <xueyifei@huawei.com>
8 years agoAdd License header for files without it 85/28885/6
chigang [Fri, 17 Feb 2017 02:37:01 +0000 (10:37 +0800)]
Add License header for files without it

JIRA: -

use the first author's company for license holder
use the latest year for license year
add license for yml,c,cpp,shell,python,java.
don't add license for template files such as config and j2
patch for auto add license:
https://github.com/Justin-chi/Lab/blob/master/add_license.sh
delete the files with the Eclipse License

Change-Id: I4f17da4ebb36a074c0b6722a2a4154e6c235d4bb
Signed-off-by: chigang <chigang@huawei.com>
8 years agoMerge "Bug fix for odl l2"
Justin chi [Mon, 27 Feb 2017 06:11:28 +0000 (06:11 +0000)]
Merge "Bug fix for odl l2"

8 years agoMerge "Update deploy.sh"
Justin chi [Mon, 27 Feb 2017 06:09:13 +0000 (06:09 +0000)]
Merge "Update deploy.sh"

8 years agoUpdate deploy.sh 91/29191/1
liyuenan [Wed, 22 Feb 2017 03:27:07 +0000 (11:27 +0800)]
Update deploy.sh

JIRA: -

Remove some environment variables in deploy.sh, such as EXPANSION
DEPLOY_COMPASS DEPLOY_HOST DEPLOY_RECOVERY. Those environment
variables's instructions can be found in installation guide document.

Change-Id: I1a7a2e1ad48d7488793ef80742bad1dab47b4270
Signed-off-by: liyuenan <liyuenan@huawei.com>
8 years agoBug fix for odl l2 89/29189/2
Yifei Xue [Wed, 22 Feb 2017 03:24:11 +0000 (11:24 +0800)]
Bug fix for odl l2

JIRA: COMPASS-512

1. Correct the script of unarchiving odl package for rerunnable
2. Delete the useless code in the script of installing networking-odl
3. Correct the variable "odl_pip" in vars/main.yml

Change-Id: I5488dd4caedcbda735de24fd594207d66310e828
Signed-off-by: Yifei Xue <xueyifei@huawei.com>
8 years agoInstallation and release documentations update 89/24789/17
Qingyu Wang [Mon, 21 Nov 2016 23:52:31 +0000 (15:52 -0800)]
Installation and release documentations update

JIRA: DOCS-165

update document for Danube release according to new doc guide;
https://wiki.opnfv.org/display/DOC/Documentation+Guide
add network topology for virtual and bm deployment;
add a section for network_cfg.yaml configuration;
add feature section, listing supported openstack version and features
update installation for deployment and expansion.

Change-Id: If43d94554bebc78bbd56cdf889c8c34dda926218
Signed-off-by: Qingyu <qingyuwang33@gmail.com>
Signed-off-by: Justin <chigang@huawei.com>
8 years agoadd ntp for compass-core 57/28657/2
qiwei-li-huawei [Fri, 10 Feb 2017 07:48:38 +0000 (15:48 +0800)]
add ntp for compass-core

JIRA: COMPASS-514

add ntp for compass-core and set up timezone, make timezone
in compass-core same as where hosts' are
To set timezone of both compass-core and hosts, edit
    /deploy/conf/compass.conf
    TIMEZONE: Asia/Shanghai

Change-Id: If60623dbff793e56e65c32f80addc5e1d956f3e1
Signed-off-by: qiwei-li-huawei <qiwei.li@huawei.com>
8 years agoUpgrade OpenDaylight to Boron ( centos ) 83/28783/5
Harry Huang [Thu, 16 Feb 2017 06:57:39 +0000 (14:57 +0800)]
Upgrade OpenDaylight to Boron ( centos )

JIRA: COMPASS-512

1. Install requirements of networking-odl
2. Adjust order of removing neutron l3 agent
3. Modify file head

Change-Id: I27869821dc2f534500ec96b48df7a52ce27b58d8
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
8 years agoMerge "FIX access database failed"
Justin chi [Mon, 20 Feb 2017 11:34:43 +0000 (11:34 +0000)]
Merge "FIX access database failed"

8 years agoFIX access database failed 67/28767/4
liyuenan [Thu, 16 Feb 2017 01:08:52 +0000 (09:08 +0800)]
FIX access database failed

JIRA: COMPASS-521

Use a dynamic value to set number of workers for Openstack API
service when the number of cpu more than 4.

Change-Id: Ic6482cfad9b5eba8fad9e56ea1a33f65e8c71001
Signed-off-by: liyuenan <liyuenan@huawei.com>
8 years agoupdate info for PTL election 65/28665/1
Justin-chi [Wed, 15 Feb 2017 02:06:20 +0000 (10:06 +0800)]
update info for PTL election

JIRA: -
update info for new PTL election.
add irc channel information.

Change-Id: I7da3e8b40fa90b0f70fc477be9577d6da29a22f6
Signed-off-by: Justin chi <chigang@huawei.com>
8 years agoMerge "FIX access database failed"
Justin chi [Mon, 13 Feb 2017 12:00:05 +0000 (12:00 +0000)]
Merge "FIX access database failed"

8 years agoFIX access database failed 99/28399/2
liyuenan [Fri, 10 Feb 2017 01:37:26 +0000 (09:37 +0800)]
FIX access database failed

JIRA: COMPASS-521

Nova compute use osapi_compute and metadata api. Both of their worker
processes should be limited, otherwise mysql would not deal with those
processes.

Change-Id: Ib00b4731369c1c677639c9437ab83887550db572
Signed-off-by: liyuenan <liyuenan@huawei.com>
8 years agoFix create stack failed 95/28495/3
liyuenan [Sun, 12 Feb 2017 09:26:28 +0000 (17:26 +0800)]
Fix create stack failed

JIRA: COMPASS-523

Heat needs grant heat admin role and create a menber role, otherwise
functest smoke test will failed when create stack by heat.

Change-Id: I925b473861bf82becf119bfd490c38732814c336
Signed-off-by: liyuenan <liyuenan@huawei.com>
8 years agoMerge "Ease to switch themes of Horizon"
Justin chi [Fri, 10 Feb 2017 07:21:33 +0000 (07:21 +0000)]
Merge "Ease to switch themes of Horizon"

8 years agoUpdate shade version to avoid the conflict 81/28081/4
liyuenan [Mon, 6 Feb 2017 02:05:49 +0000 (10:05 +0800)]
Update shade version to avoid the conflict

JIRA: COMPASS-520

Shade and python-openstackclient both depends on python client libraries
for OpenStack.If install one from pip and one from yum or apt, then there
can be weird conflicts between the two sets of libraries. Update shade
packages to resolve this problem.

Change-Id: Icfd82d2818abfcf5061133fa6670b23daac9fb5b
Signed-off-by: liyuenan <liyuenan@huawei.com>
8 years agoUpgrade OpenDaylight to Boron ( l3 scenario ) 43/27543/6
Harry Huang [Wed, 25 Jan 2017 12:54:29 +0000 (20:54 +0800)]
Upgrade OpenDaylight to Boron ( l3 scenario )

JIRA: COMPASS-512

1. Use package distribution-karaf-0.5.2-Boron.tar.gz
2. Add configuring ACL
3. Remove neutron-l3 agent in odl_cluster role
4. Fix ODL l2 metadata problem

Change-Id: Ib14cdf3539deeeb91ebfec0450a9e7f0228f7741
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
8 years agoEase to switch themes of Horizon 99/28099/2
liyuenan [Mon, 6 Feb 2017 09:12:50 +0000 (17:12 +0800)]
Ease to switch themes of Horizon

JIRA: -

Default Horizon theme is ubuntu. If you want to use openstack theme,
you can run `export ENABLE_UBUNTU_THEME=False` before deploy.

And if you want to change theme after you installed openstack, you need
to run this commands:
  1. access compass VM, password is root
      `ssh root@192.168.200.2`
  2. change path:
      `cd /var/ansible/run/openstack_newton-opnfv2`
  3. Edit the `group_vars/all` file, change `enable_ubuntu_theme` var:
      `enable_ubuntu_theme: False`
     if `enable_ubuntu_theme: True`, the Horizon theme is ubuntu, otherwise
     the Horizon theme is openstack.
  4. run ansible playbook:
       `ansible-playbook -i inventories/inventory.yml HA-ansible-multinodes.yml
        -t horizon_theme`

Change-Id: I5465107228af32a482879c8a058899494f33e2d0
Signed-off-by: liyuenan <liyuenan@huawei.com>
8 years agoFix Aodh Bug 21/28221/2
Harry Huang [Tue, 7 Feb 2017 10:48:49 +0000 (18:48 +0800)]
Fix Aodh Bug

JIRA: COMPASS-522

Bug:
Connection error happens when using aodh command.
Curl aodh-api also returns empty reply.

Solution:
Use apache to be aodh api server. Disable aodh-api
service. Delete aodh-api restart in ext-network role
to avoid aodh-api start again.

Change-Id: I04a4af38325bcbe4a0b86ec3d3beb7c9f3abd73b
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
8 years agoCongress support for Newton 61/27361/7
Harry Huang [Mon, 23 Jan 2017 07:38:52 +0000 (15:38 +0800)]
Congress support for Newton

Modification:
  1.Add congress support in deploy/compass_conf
  2.Optimize congress role to be more independant.
    Separate congress role into install, keystone,
    database, start.
  3.Support both ubuntu and centos

Change-Id: I1c9a458addd84133652fb7c0563bc287d161d129
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
8 years agoMerge "Add opera support"
Justin chi [Sat, 4 Feb 2017 06:26:03 +0000 (06:26 +0000)]
Merge "Add opera support"

8 years agoAdd opera support 75/27075/9
Harry Huang [Tue, 17 Jan 2017 06:45:57 +0000 (14:45 +0800)]
Add opera support

JIRA: COMPASS-504
JIRA: OPERA-1

Function:
  support open-o deployment by calling opera project.
  open-o deployment will start at the end of normal
  compass4nfv deployment.

Changes:
  1. add scenario and network yaml for opera
  2. add opera_adapter.py for calling opera

Attention:
  The git URL for opera will change after opera patch
  OPERA-2 is meraged. This patch should be modifed
  before meraged.

Change-Id: Id0afcece920c4107bb23f42b460c46eec3ca97e6
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
8 years agoNew patch for orange-pod3 POD with indentation correction for network*.yml files 37/27537/2
Francois DESPRES [Wed, 25 Jan 2017 09:59:31 +0000 (10:59 +0100)]
New patch for orange-pod3 POD with indentation correction for network*.yml files

Change-Id: Ifa100d6e444c4190d8f15d980c4fd72f8b953a1d
Signed-off-by: Francois DESPRES <francois.despres@orange.com>
8 years agoAnsible Module substitute for Shell Commands 63/27163/9
liyuenan [Wed, 18 Jan 2017 10:05:27 +0000 (18:05 +0800)]
Ansible Module substitute for Shell Commands

JIRA: COMPASS-520

After update ansible version to v3, keystone_user module only support v2 API.
So we use Shell Commands now, but it will failed with high probability.
Those Shell Commands should be instead by ansible modules to manage Identity users,
projects or some other work like crate networks.

Change-Id: I63d38b4a811a9c063ac4404da72787f594411b53
Signed-off-by: liyuenan <liyuenan@huawei.com>
8 years agoMerge "Adjust make repo"
Justin chi [Tue, 24 Jan 2017 08:50:35 +0000 (08:50 +0000)]
Merge "Adjust make repo"

8 years agoAdjust make repo 57/27157/5
Harry Huang [Wed, 18 Jan 2017 08:47:25 +0000 (16:47 +0800)]
Adjust make repo

Demand:
  1.Compass4nfv master code only support one OPNFV version
    now, no need to keep previous version's repo scripts
  2.Currently java packages are in /var/www/package/onos
    directory which is unreasonable
  3.repo.conf has a lot of download URL which can turn into
    pip requirements

Modification:
  1.Remove previous version's directory in compass4nfv/repo
  2.Only leave java and odl in compass4nfv/repo/features.
    Other features can be added when they are ready
  3.Seperate URLs in repo.conf into compass-core and openstack
    pip requirements. Therefore pip.tar.gz only contains pip
    packages for compass-core and pip-openstack.tar.gz only
    contains pip packages for openstack
  3.Move java packages into /var/www/package/java directory
  4.Add make pip wheel package function to support congress
  5.Use ODL package distribution-karaf-0.5.0-Boron.tar.gz
  6.Use python package netwoking-odl-3.2.0

Change-Id: Ifa818e7630ac4435e3bdb7756b83f80f50c24a76
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
8 years agoFIX access database failed 67/27267/1
liyuenan [Fri, 20 Jan 2017 05:15:00 +0000 (13:15 +0800)]
FIX access database failed

JIRA: COMPASS-521

Number of separate API worker processes for service. The default is calculated by
the number of CPUs available for best performance. But some pods have many CPUs,
so that some service API worker processes is too many to access database.
For example, huawei-pod2 has 47 CPUs, nova-api has 98 processes, cinder-api has
50 processes and heat-api has 33 processes, when aodh want to initialize the database,
mysql can not deal with this processes.

Change-Id: I00513883ff55cc28cd676c3085615aaac36eb744
Signed-off-by: liyuenan <liyuenan@huawei.com>
8 years ago[compass] bugfix: it is noneffective to retry the network checking 25/27125/2
meimei [Wed, 18 Jan 2017 01:34:22 +0000 (09:34 +0800)]
[compass] bugfix: it is noneffective to retry the network checking

Change-Id: I97413575e1cac87da4ac99bc45e1c55777f38243
Signed-off-by: meimei <meimei@huawei.com>