aboutsummaryrefslogtreecommitdiffstats
path: root/deploy
AgeCommit message (Collapse)AuthorFilesLines
2017-08-18support the noha scenariowutianwei19-6/+1090
1. add parameter to install keepalived when only one controller 2. change the osa code to start keepalived and haproxy 3. add the noha DHA files 4. fix the setup ovs bug 5. fix the pod1 public vip Change-Id: I19f4e78b9ca834ae3d454e1c8058728ece055f69 Signed-off-by: wutianwei <wutianwei1@huawei.com>
2017-08-15Merge "Make the storage use ceph"Justin chi9-0/+161
2017-08-15Make the storage use cephwutianwei9-0/+161
1. ceph.yml define which host install ceph-mon and ceph-osd 2. user_ceph.yml define variables of ceph and cinder backend 3. user_variables_ceph.yml.j2 define variables of ceph for user Change-Id: Iafea998f4603eb4b5c15a26f2387e6cb04c35d4c Signed-off-by: wutianwei <wutianwei1@huawei.com>
2017-08-14fix loss of group vars definitionchigang1-1/+7
JIRA:- TASK [moon : configure moon.conf for moon slave] fatal: [host5]: FAILED! => {"failed": true, "msg": "'moon_slave_name' is undefined"} https://build.opnfv.org/ci/job/compass-deploy-virtual-daily-master/3311/console Change-Id: Ic6211ef7017e0ed794718f1705ba566af370ea49 Signed-off-by: chigang <chigang@huawei.com>
2017-08-14Modify moon networkHarry Huang4-8/+8
1. modify interface file for moon according to new network structure 2. modify some ips for pods running master Change-Id: Idfca20c8e101222d27847fcac4f12ba21a1b5a67 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-08-11Adapt network.yml to OpenStack AnsibleHarry Huang22-245/+337
JIRA:COMPASS-557 1. modify sys_intf_mappings and ip_settings in network.yml to synchronize with OSA network. networks compass build will be mgmt, external, tenant, storage. 2. modify compass_conf to support new netwok.yml 3. fix some hard coding when transfer ip parameters 4. support heterogeneous network Change-Id: Ib4a8af1f96a40e6456242e3dc2b456e0c8c17c2e Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-08-09Merge "Create endpoint in different region"Justin chi1-1/+2
2017-08-04fix bugs for functest and moon baremetalwutianwei1-6/+0
1. functest change the judgement condition, the DOMAIN_NAME need use Default instead of default 2. making the eth0 down and up to change the route in baremetal deploy Change-Id: I7dacf59cdd0c4db396b2db8b0a5fdd7003829391 Signed-off-by: wutianwei <wutianwei1@huawei.com>
2017-07-31Fix OS install bugHarry Huang1-1/+1
There is a missing indent in the judgement code block for OS installation complete which cause OS installation complete only affected by the state of host1 Change-Id: I5d470aef93b65ca77d290e596a4fefd62a82517b Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-07-29Merge "Switch to compass4nfv docker repo"Justin chi1-1/+1
2017-07-29Switch to compass4nfv docker repoHarry Huang1-1/+1
Dynamic inventory support for compass4nfv/compass-tasks-osa is ready, switch docker repo. Change-Id: I9ad5cd1cc860dd649cf43c6d5f1ea1e7c39e20fc Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-07-29enalbe pass-through cpumode for virtual deploymentchigang1-0/+1
JIRA:- For KVM scenario, each host should set cpumode pass-through, otherwise instances will fail to launch. Change-Id: If58dca1ad590203f6e8de36e44c242252350ad19 Signed-off-by: chigang <chigang@huawei.com>
2017-07-29Correct the DHA name of SFC scenarioYifei Xue2-0/+0
The DHA name of SFC scenario in compass4nfv repo is " os-odl_l3-sfc-ha.yml". However, the scenario name on CI master is "os-odl-sfc-ha.yml". So CI failed when read DHA file. THis patch is proposed to fix this problem. Change-Id: Icb8db6c6c023a794bdd803d0365d719a853dc712 Signed-off-by: Yifei Xue <xueyifei@huawei.com>
2017-07-28Add ODL SFC supportYifei Xue4-6/+136
Add SFC support for Ocata and Carbon. 1. Add ovs-nsh package for sfc scenario 2. Add sfc configuration and tasks 3. Add sfc DHA files Change-Id: Icf8f20220a2c5ac38a5b92d3ca0e24cbb0e89a52 Signed-off-by: Yifei Xue <xueyifei@huawei.com>
2017-07-28Merge "Change "Default" to "default" in openrc"Justin chi1-0/+6
2017-07-28Merge "Add moonv4 into Compass4nfv"Justin chi11-28/+105
2017-07-28Change "Default" to "default" in openrcwutianwei1-0/+6
when OS_USER_DOMAIN_NAME and OS_PROJECT_DOMAIN_NAME is Default in openrc, it will cause some issue in functest. Change-Id: I39a7a3712ac2311076c45caed70c0c4c2036b561 Signed-off-by: wutianwei <wutianwei1@huawei.com>
2017-07-28Add moonv4 into Compass4nfvchigang11-28/+105
JIRA:- 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: I21c0186a029c508d390c69112b43510d9c5b9c5c Signed-off-by: chigang <chigang@huawei.com>
2017-07-26Merge "Update notes when OpenStack installaion complete"Justin chi1-14/+4
2017-07-26Fix plugin switchHarry Huang1-0/+7
Add plugin switch in group_vars/all which missed when upgrade to dynamic inventory Change-Id: I71927bce552dca89bc6182abc9f721d5222f2be6 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-07-26Update notes when OpenStack installaion completechigang1-14/+4
JIRA:- Change-Id: Ie007baa4bbfb3f6860101b0e720315047c497c0d Signed-off-by: chigang <chigang@huawei.com>
2017-07-25Merge "Functest needs huawei virtual5 to test alpine"Justin chi4-0/+405
2017-07-24Dynamic InventoryHarry Huang9-128/+130
JIRA: COMPASS-556 1. using dynamic ansible inventory 2. modify Class AnsibleInstaller in compass-tasks 3. modify compass conf to support this behavior 4. specify docker image in /deploy/conf/compass.conf 5. remove clusterhost status update in playbook_done.py Change-Id: I04079547c8b251571ae4e5b165d3bf425b8913b7 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-07-21Functest needs huawei virtual5 to test alpinewutianwei4-0/+405
They want to use jenkins to trigger the build. So it need to add the huawei-virtual5 network*.yml Change-Id: Icb8d5d8f574fbbc4674ab1c61a0e3c0c3325f2d4 Signed-off-by: wutianwei <wutianwei1@huawei.com>
2017-07-21Adjust the plugins directory structureYifei Xue3-22/+1
JIRA:- Since there may be multiple roles in one plugin, so add a level of roles to the directory. Move the copy operation of ODL from configure_osa to a new setup-opendaylgiht role. Add excute_order in the plugin description of ODL. Change-Id: I905fb84b11df201dc1436ec888f511e251bba89c Signed-off-by: Yifei Xue <xueyifei@huawei.com> Signed-off-by: chigang <chigang@huawei.com>
2017-07-20Change the BMC password of PODwutianwei39-195/+195
For security, we change the password to Opnfv@pod Change-Id: I647af6db65c89fb0feee7936a3747abbab735ab7 Signed-off-by: wutianwei <wutianwei1@huawei.com>
2017-07-19Add real time kvm feature from kvmfornfv projectdavidjchou5-0/+129
JIRA: COMPASS-549 1. Add rt_kvm plugin and os-nosdn-kvm-ha scenario in vm_enviroment 2. Add rt_kvm in compass4nfv playbook 3. Disable kernel update in KVM scenarios Signed-off-by: davidjchou <david.j.chou@intel.com> Change-Id: Ie164fe7ea28ebcb1e41299e92dc51b8ec16310eb Signed-off-by: chigang <chigang@huawei.com>
2017-07-14Merge "change the public endpoint protocol with https"Justin chi5-40/+20
2017-07-14Merge "fix some error in functest"Justin chi11-2/+194
2017-07-14Merge "Modify deploy/client.py"Justin chi1-1/+4
2017-07-14change the public endpoint protocol with httpswutianwei5-40/+20
Fetch the os_cacerts for funtest replace the internalURL with publicURL Change-Id: Iff4fe2c998f3b5e723e826cf27e8901208988785 Signed-off-by: wutianwei <wutianwei1@huawei.com>
2017-07-13Merge "Add deployment timeout to 300 mins"Justin chi2-2/+2
2017-07-13Merge "Fix bug the controller node when baremetal deploy"Justin chi4-3/+8
2017-07-13Modify deploy/client.pyhuangxiangyu1-1/+4
Bug: 1. when ansible_print process encounter runtime error e.g. ansible.log doesn't exist, whole client.py process stucks. 2. cobbler status encounters error when deploy timeout happens. Solution: 1. add ansible_print process alive check in function get_installing_progress to exit parent process when child process encounter runtime error. 2. remove unnecessary code in calling cobbler status which cause error. Change-Id: Ie04d45fd612e7273a6d584e3efb69e1506cdd0f9 Signed-off-by: huangxiangyu <huangxiangyu5@huawei.com>
2017-07-13Add deployment timeout to 300 minschigang2-2/+2
JIRA:- Deployment timeout in Intel POD, so add more timeout. Reduce it when offline deployment support. Change-Id: I244033ceb6d32ef1e3966716be9303c58c662d80 Signed-off-by: chigang <chigang@huawei.com>
2017-07-12Fix bug the controller node when baremetal deploywutianwei4-3/+8
We need to flush the handle to restart network, before checking network. improve the message when failed Change-Id: If38198c62b4bf81d38b294264db30514998fe086 Signed-off-by: wutianwei <wutianwei1@huawei.com>
2017-07-12fix some error in functestwutianwei11-2/+194
1. Remove the --share when create network to fix the error in tempest network visibility 2. create the cinder-volums to fix issue in test volumes Change-Id: I8bf7197ac33271eb6856e542da114249b79a391d Signed-off-by: wutianwei <wutianwei1@huawei.com>
2017-07-11Fix docker-composeHarry Huang1-1/+2
Add sudo when install docker-compose Change-Id: I7025919889d543c860bf49bbbaf9665030437160 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-07-11Utilize yaml.safe_loadlhinds7-9/+9
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>
2017-07-10Upgrade ODL from boron to carbonYifei Xue3-0/+28
JIRA: - Change-Id: I031444d1094af646ae39a9c0c3fbfc30548e6ee4 Signed-off-by: Yifei Xue <xueyifei@huawei.com>
2017-07-10Add opendaylight switchHarry Huang14-1/+50
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>
2017-07-06fetch openrc for functestwutianwei17-6/+187
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>
2017-07-04Fix keepalived ping addresschigang24-6/+7
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>
2017-07-03Remove obsoleted codechigang393-18655/+0
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>
2017-07-03Fix DNS flushchigang10-30/+21
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>
2017-06-30Change the apt sourcewutianwei7-42/+42
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>
2017-06-30Merge "setup ovs create network flavor"Justin chi12-16/+284
2017-06-30setup ovs create network flavorwutianwei12-16/+284
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>
2017-06-29Fix python pkg issueHarry Huang1-10/+10
1 add install pyyaml in build process 2 fix python pkg version Change-Id: Icb40bd52aa6cd22874894047561acb9211abfa22 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-06-27Support Centos7wutianwei24-93/+531
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>