summaryrefslogtreecommitdiffstats
path: root/deploy
AgeCommit message (Collapse)AuthorFilesLines
2017-05-19Remove ovs-dpdk packageYifei Xue3-3/+0
JIRA: COMPASS-483 "openvswitch-switch-dpdk" is not useful for current scenarios and it will be incompatible with SFC scenarios. So we remove it in this patch for the preparation of SFC online. Change-Id: If48f63266101f0bc91faaab4ff330eac20e893c8 Signed-off-by: Yifei Xue <xueyifei@huawei.com>
2017-05-15Update moon role for moonv4QiLiang27-2847/+320
JIRA: - To deploy moon(master/slave) scenario configure moon role in DHA file like: - name: host4 roles: - moon To deploy moon master, export MOON_CFG env like below compass deploy: export MOON_CFG="master:flag=Disable,slave:flag=Enable,slave:name=slave1,slave:master_ip=master_ip" To deploy moon slave, export MOON_CFG env like below compass deploy: export MOON_CFG="master:flag=Enable,slave:flag=Disable,slave:name=slave1,slave:master_ip=master_ip" Change-Id: Ie300a85979af31634ab0660ccee1ee8b094110b5 Signed-off-by: QiLiang <liangqi1@huawei.com>
2017-04-14Fix memcached doesn't start issueQiLiang2-1/+19
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> (cherry picked from commit 5dfa77861d3d5d561dfa19edcc71363a2b91e96b)
2017-03-29Fix some opera related errorHarry Huang3-5/+11
1. echo a string to compass log to avoid deploy error bing concealed 2. judge return code of ./opera_launch.sh Change-Id: I7ac2bac9b600f289c01116e7f7777d1219a58eb2 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-03-27Revert "opera adapter fix2"Justin chi2-3/+1
* 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: Ifa57faed29e1055a35ab0e24b0026b520f395807 Signed-off-by: Justin chi <chigang@huawei.com>
2017-03-24opera adapter fix2Harry Huang2-1/+3
* 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>
2017-03-21Opera adapter fixHarry Huang2-6/+22
* 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> (cherry picked from commit b21d57081d4b705689cb6d7372e254818b84a760)
2017-03-20update opera fixHarry Huang1-56/+6
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> (cherry picked from commit b7fb5c062e0e806e34ebc53fe670f00f8417cd4a)
2017-03-18update opera related filesHarry Huang13-151/+103
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> (cherry picked from commit 524fea7f6eacfa6a102614b7fb4c66e1be1b8287)
2017-03-18Merge "onos 1.8 upgradation for danube" into stable/danubeJustin chi15-52/+594
2017-03-17onos 1.8 upgradation for danuberssaravana15-52/+594
Change-Id: I6242b9fc09749ca83f446ef5456eaad72f248012 Signed-off-by: rssaravana <saravanakumar.somaskandan@huawei.com> (cherry picked from commit 8da5888adfc919b20807f0783e1ae841fac4244e)
2017-03-17Add network_openo.yml in all virtual podsHarry Huang5-0/+456
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> (cherry picked from commit 36de0a04135b0932eab1e3a30d703a98aabc031d)
2017-03-08Upgrade tacker from mitaka to newtonYifei Xue11-91/+204
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>
2017-03-06add open-o scenarioHarry Huang7-0/+579
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>
2017-02-28Merge "Add License header for files without it"Justin chi120-362/+1038
2017-02-28Merge "add ntp for compass-core"Justin chi2-1/+2
2017-02-27Add License header for files without itchigang120-362/+1038
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>
2017-02-22Bug fix for odl l2Yifei Xue3-5/+2
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>
2017-02-21add ntp for compass-coreqiwei-li-huawei2-1/+2
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>
2017-02-20Upgrade OpenDaylight to Boron ( centos )Harry Huang9-32/+32
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>
2017-02-20FIX access database failedliyuenan3-14/+20
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>
2017-02-13Merge "FIX access database failed"Justin chi2-3/+4
2017-02-13FIX access database failedliyuenan2-3/+4
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>
2017-02-13Fix create stack failedliyuenan1-2/+17
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>
2017-02-10Merge "Ease to switch themes of Horizon"Justin chi2-7/+11
2017-02-09Upgrade OpenDaylight to Boron ( l3 scenario )Harry Huang8-80/+46
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>
2017-02-08Ease to switch themes of Horizonliyuenan2-7/+11
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>
2017-02-07Fix Aodh BugHarry Huang7-6/+92
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>
2017-02-04Congress support for NewtonHarry Huang16-23/+166
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>
2017-02-04Merge "Add opera support"Justin chi5-0/+317
2017-02-04Add opera supportHarry Huang5-0/+317
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>
2017-01-25New patch for orange-pod3 POD with indentation correction for network*.yml filesFrancois DESPRES10-0/+728
Change-Id: Ifa100d6e444c4190d8f15d980c4fd72f8b953a1d Signed-off-by: Francois DESPRES <francois.despres@orange.com>
2017-01-25Ansible Module substitute for Shell Commandsliyuenan13-167/+487
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>
2017-01-24Merge "Adjust make repo"Justin chi1-2/+2
2017-01-23Adjust make repoHarry Huang1-2/+2
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>
2017-01-20FIX access database failedliyuenan4-28/+15
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>
2017-01-18[compass] bugfix: it is noneffective to retry the network checkingmeimei1-2/+4
Change-Id: I97413575e1cac87da4ac99bc45e1c55777f38243 Signed-off-by: meimei <meimei@huawei.com>
2017-01-17Support ceilometer for Newton CentOSliyuenan6-47/+20
JIRA: COMPASS-518 The WSGIScriptAlias file should be "/var/www/cgi-bin/ceilometer/app". This file is copied from "/usr/lib/python2.7/site-packages/ceilometer/api/app.wsgi" in CentOS or "/usr/lib/python2.7/dist-packages/ceilometer/api/app.wsgi" in Ubuntu Change-Id: Idcc37b0ed6c1d4c6e39d821a02a6579c57b6f035 Signed-off-by: liyuenan <liyuenan@huawei.com>
2017-01-15Merge "Create openstack flavors"Justin chi2-0/+32
2017-01-14update intel pod8 configurationmeimei10-39/+39
the IPMI IP assignment and vlan of intel-pod8 have been changed Change-Id: Ia6f2880ab2388b031b79046c00e03bc918b957e1 Signed-off-by: meimei <meimei@huawei.com>
2017-01-14Deploy OpenStack Newton on CentOS hostsliyuenan34-57/+300
JIRA: COMPASS-518 Make Centos Newton ppa. Update host Centos version to 7.3. Support Centos Newton Deploy. Support Ceph Deploy. Change-Id: I6dd110cc10d425a9d590e1dcb5777ade5cce96aa Signed-off-by: liyuenan <liyuenan@huawei.com>
2017-01-14Remove some duplicate or useless filesliyuenan8-151/+0
JIRA: - Remove some templates because it is duplicated. Remove some repo files because master support newton only. Change-Id: I6651191c6edb2ef6ab5da109922a889a8cd58a78 Signed-off-by: liyuenan <liyuenan@huawei.com>
2017-01-14Create openstack flavorsHarry Huang2-0/+32
JIRA: COMPASS-519 Demand: Openstack Newton doesn't create flavors defaultly. But functest needs to run with flavors exist Solution: Add an ansible role to create flavors after openstack deployed Change-Id: Ib7ac56b3d42d9ddfcbefffc44ac92fa81342368a Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-01-13FIX kvm_cpu_num fetch bugQiLiang1-1/+1
If the compute node not support kvm virtualization, will get error: TASK: [nova-compute | get number of cpu support virtualization] ********* failed: [host-1] => {"changed": true, "cmd": "egrep -c '(vmx|svm)' /proc/cpuinfo", "delta": "0:00:00.054521", "end": "2017-01-11 10:46:12.093745", "rc": 1, "start": "2017-01-11 10:46:12.039224", "warnings": []} JIRA: - Change-Id: I773d6c703c23c8c0eb477e1d61eb0ca5366e6722 Signed-off-by: QiLiang <liangqi1@huawei.com>
2017-01-12Upgrade OpenDaylight to Boron ( l2 scenario )Harry Huang19-106/+50
JIRA: COMPASS-512 1. Use package distribution-karaf-0.5.0-Boron.tar.gz 2. Use package networking-odl-3.2.0.tar.gz 3. Set both neutron and odl as ovs manager Change-Id: I126ba21346afaaccf1f71a17a500146968bdb4eb Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-01-12FIX external net createliyuenan1-2/+2
JIRA: - The dictionary public_net_info in network.yml had changed to pass the yamllint: public_net_info: enable: True change to: public_net_info: enable: "True" Because of that, the public_net_info.enable in group_var/all had changed. 'public_net_info': {..., 'enable': True, ...} change to: 'public_net_info': {..., 'enable': 'True', ...} So the conditionals in roles/ext-network/tasks/main.yml should be changed, otherwise the ext-net can not be created. Change-Id: I7b4aeb1d0edec0ad77252849704bdf3055adfa5a Signed-off-by: liyuenan <liyuenan@huawei.com>
2017-01-12Merge "Fix multi-nics BM deploy network unreachable issue"Justin chi1-0/+7
2017-01-12FIX Ceph user errorliyuenan1-2/+3
The command of create ceph user for openstack is destroied in Yamllint patch. There is a error in the roles/ceph-openstack/tasks/ceph-openstack-pre.yml. It should not change a line between the quotations. JIRA: - Change-Id: I5347e8bfde129855c28cb5313b8367f4edb065ca Signed-off-by: liyuenan <liyuenan@huawei.com>
2017-01-10Fix multi-nics BM deploy network unreachable issueQiLiang1-0/+7
Configure OS_MGMT_NIC when openstack external network and mgmt network use different nics. Otherwise openstack mgmt is unreachabe from jumpserver, then compass cann't pass functest healthcheck. JIRA: - Change-Id: If156806d3b92933ac316f178d3eb2d0aaa9e1b4a Signed-off-by: QiLiang <liangqi1@huawei.com>
2017-01-05Fix instance can't get key bugHarry Huang3-3/+3
JIRA:COMPASS-517 modify metadata_agent.ini to support keystone api V3 Change-Id: If0a3a9f687cdb48af740ed6231e96e3e712755f4 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>