aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles
AgeCommit message (Collapse)AuthorFilesLines
2018-06-20Add workaround for horizon image upload issueHarry Huang1-0/+17
Change-Id: I1ddf4d4c8c57c26d6948c69a60507f35f25e57ff Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2018-04-09Fix pip version to 9.0.1Harry Huang1-0/+7
JIRA: COMPASS-593 OpenStack Ansible install latest pip on each contoller node and the latest pip (currently 10.0.0b1) doesn't support empty package list to be passed into it. Add a user config file to fix pip version Change-Id: Ic625053ec41356fdf3a8bf89a666ca6574d78fd9 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2018-03-31Install PBR to ensure we're not breaking buildswutianwei1-0/+6
Change-Id: Icd423f469debc4d54b759445f642805c06683bcd Signed-off-by: wutianwei <wutianwei1@huawei.com>
2018-02-24Bug fix for chronyYifei Xue1-0/+16
JIRA: - OSA doesn't install chrony on compute nodes. This patch is proposed to install chrony on compute nodes. Change-Id: If2564f331e47beb97ef7e98e42cb4f848c28ba7f Signed-off-by: Yifei Xue <xueyifei@huawei.com>
2018-01-24Fix subnet create fail when disable ext-netHarry Huang1-0/+1
JIRA: COMPASS-575 Add missing condition check for subnet create task. Change-Id: Ibd25a7e7e4edd40be6b0f14bb8bffb828a65f648 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com> (cherry picked from commit b096febb727a7cb9c6b72418c422b3affe106134)
2017-12-29Bug fix for offline deployment of euphrates branchYifei Xue1-1/+4
JIRA: - For offline deployment, there is no need to fix the pandas and python-ldap version. Change-Id: I30fa1f2af8ad13e115c0078c4f33102936bdd71d Signed-off-by: Yifei Xue <xueyifei@huawei.com>
2017-12-07Merge "Enable tacker horizon" into stable/euphratesHU Xinhui4-4/+52
2017-12-05Fix the python-ldap versionwutianwei1-0/+6
when python-ldap is newest version, there are some issues in dependence Change-Id: I29f30900733cdd87d922b17da0f7c551b7cbdc90 Signed-off-by: wutianwei <wutianwei1@huawei.com> (cherry picked from commit db18432af86badcac4d12066f0c2379b7857a165)
2017-12-04Enable tacker horizonYifei Xue4-4/+52
JIRA: - 1 - Enable tacker horizon 2 - Open SFC extension on compute nodes Change-Id: I7d6ea0db78dc529e3d7f8bd1a44a3c0de76aac22 Signed-off-by: Yifei Xue <xueyifei@huawei.com>
2017-11-21Install networking-sfc for non odl-sfc scenariosYifei Xue4-0/+94
JIRA: - Currently we only install networking-sfc for odl-sfc scenario, however someone may use native neutron sfc functionality.So we propose this patch to add installation of networking-sfc for non odl scenarios. Change-Id: I4527387626f0c14fb6af135c511d0fd783b8f624 Signed-off-by: Yifei Xue <xueyifei@huawei.com> (cherry picked from commit 989d936c05c4f841efa383676473d2c6cc2cfba5)
2017-11-13Config dpdk and ovsHarry Huang3-27/+32
switch dpdk interface driver and bring up corresponding ovs bridges. Change-Id: I07bd9b332978482507711cfbd8ad29802a8b1a8c Signed-off-by: Harry Huang <huangxiangyu5@huawei.com> (cherry picked from commit 849d51833bdb16e8f04370270cd3e082ad9db928)
2017-10-31Update requirements_absolute_requirements.txtYifei Xue1-0/+6
JIRA: - For offline deployment, some packages' versions need to be upgraded and add the version limitation of tacker and tacker client. Change-Id: I8b55fe270998c716df8791f1909ea4f4ab654a6c Signed-off-by: Yifei Xue <xueyifei@huawei.com> (cherry picked from commit 2b48cb8ce734459ccfe4c106d0c398d7e55c972f)
2017-10-31add tacker supportYifei Xue4-0/+25
JIRA: - Add tacker support in compass euphrates. Upsteam OSA currently doesn't support tacker in Ocata. But OPNFV needs to use tacker in SFC scenario. So we refactor os_tacker of Pike to satisfy OpenStack Ocata. Change-Id: I40bb90949d8cd3b9db166527b0d85ff42ad5cdb9 Signed-off-by: Yifei Xue <xueyifei@huawei.com> (cherry picked from commit d0886a8dcf47ef0d27a0b7960dd152596f0a3a88)
2017-10-29Merge "bugfix" into stable/euphratesJustin chi3-63/+89
2017-10-28fix ceph reboot issuewutianwei1-0/+7
When storage nodes reboot or shutdown, the partitions of loop device will lose. We add the command partprobe -s {{loopdevice}} to rc.local, it will reload the partitions, when boot up the storage nodes. Change-Id: I31dfca953aa254fa516421a494318b01cd39675c Signed-off-by: wutianwei <wutianwei1@huawei.com>
2017-10-28bugfixwutianwei3-63/+89
When not define ceph role in DHA, there are somes issue on config-osa. This patch add the judgement to check the parameter define or not. Change-Id: If221fd3d02c87fc60f545b44f94043f38e34d283 Signed-off-by: wutianwei <wutianwei1@huawei.com> (cherry picked from commit 660b8bfbb0546322f35f8c7f54d62e1bf5d5dd95)
2017-10-18Fix ceilometer issuewutianwei3-0/+88
OSA don't maintain the ceilometer component. We change the OSA code to make ceilometer work. 1. create ceilometer database 2. change the ceilometer policy 3. change the ceilometer config 4. change the OS_AUTH_TYPE in openrc Change-Id: I2d8630a0c50f5c6bd1e86171cae1fa8f9934334b Signed-off-by: wutianwei <wutianwei1@huawei.com> (cherry picked from commit f55635085312ab2c367d1ae37d0979874b2a7d82)
2017-10-16Ascertain the pandas versionwutianwei3-0/+27
the 0.21.0rc1 version of pandas will block the gnocchi install, so we use 0.20.3. we replace the pandas package in repo Change-Id: Ic8d9fa3a691b64a0783034ffbf0d958427e30d16 Signed-off-by: wutianwei <wutianwei1@huawei.com> (cherry picked from commit 05aafa14c76537222fac2f93fc6ab7bec741cff5)
2017-10-13Modefy configuration for refstack_defcorewutianwei1-3/+5
1. set the log level debug to true 2. add oslo_middleware enable_proxy_headers_parsing: True in cinder.conf Change-Id: I555345ab2e1ea2ff0b56f0b9279ed7141bde2282 Signed-off-by: wutianwei <wutianwei1@huawei.com> (cherry picked from commit b3aec6773447e8ab0b532723b08fd76ebddf9d8c)
2017-09-07from controller node fetch os_certwutianwei1-0/+11
Change-Id: I2d1cbc6948d2cea1ccb852ed23033d5ddc6393e4 Signed-off-by: wutianwei <wutianwei1@huawei.com>
2017-09-01Support multiple physnet mappingHarry Huang19-308/+362
JIRA: COMPASS-559 1. support multiple mapping in provider_net_mappings of network.yml and create corresponding ovs bridges 2. support seperate config in sys_intf_mappings of network.yml 3. remove linux bridges in compute nodes for ovs port binding convenience 4. support openstack vlan tenant network 5. modify odl and odl_sfc roles to use configurable provider mapping 6. remove some hard coding Change-Id: Ib57484ce60d029f89c647fd5baf2c7af37c85d0b Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2017-08-31Support offline deployment for nosdn no feature scenarioYifei Xue12-1/+797
JIRA: - Add a repo docker which includes ubuntu PPA and python packages used for offline deployment. Change-Id: Iad9b0df7f33f5a7ab974c5deffb408fc93b3f3ad Signed-off-by: Yifei Xue <xueyifei@huawei.com>
2017-08-18support the noha scenariowutianwei3-5/+28
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-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-11Adapt network.yml to OpenStack AnsibleHarry Huang7-82/+121
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-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-28Add ODL SFC supportYifei Xue1-6/+0
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-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-24Dynamic InventoryHarry Huang1-0/+15
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-21Adjust the plugins directory structureYifei Xue2-22/+0
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-19Add real time kvm feature from kvmfornfv projectdavidjchou1-0/+7
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 chi10-2/+193
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 "Fix bug the controller node when baremetal deploy"Justin chi4-3/+8
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 functestwutianwei10-2/+193
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-10Upgrade ODL from boron to carbonYifei Xue3-0/+28
JIRA: - Change-Id: I031444d1094af646ae39a9c0c3fbfc30548e6ee4 Signed-off-by: Yifei Xue <xueyifei@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 addresschigang22-0/+3
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 flushchigang7-24/+18
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 sourcewutianwei5-42/+40
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-30setup ovs create network flavorwutianwei11-12/+276
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-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>
2017-06-26Fix config-compute handlerHarry Huang2-68/+2
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>
2017-06-20fix baremetal deployhuangxiangyu1-6/+0
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>
2017-06-09support Containerized compass-corehuangxiangyu20-0/+829
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>
2017-05-04Merge "Fix vlan network can't deploy instance"Justin chi4-4/+4
2017-04-24tempest test case failed in Functest smokeYifei Xue5-21/+29
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>