summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles
AgeCommit message (Collapse)AuthorFilesLines
2017-01-15Merge "Create openstack flavors"Justin chi1-0/+26
2017-01-14Deploy OpenStack Newton on CentOS hostsliyuenan25-41/+196
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 filesliyuenan4-66/+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 Huang1-0/+26
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-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-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>
2017-01-05Yamllint testliyuenan194-4474/+872
JIRA: COMPASS-516 Change-Id: I482ce9bc86f4f963258c5b8823e0b00e83556eef Signed-off-by: liyuenan <liyuenan@huawei.com>
2016-12-26Update ansible versionliyuenan60-111/+165
JIRA: COMPASS-511 Change-Id: Id0e83c65a08c9f9036b5d3a597b905e8a7bde6e8 Signed-off-by: liyuenan <liyuenan@huawei.com>
2016-12-20master only support newtonliyuenan150-626/+8191
JIRA: COMPASS-513 Remove other roles and ppa, master only support newton. Change-Id: I47ddb16baa25902c3e05cc7f9d0d6430f5dc7e00 Signed-off-by: liyuenan <liyuenan@huawei.com>
2016-12-10Support compute node expansion with ceph-osdQiLiang5-5/+53
JIRA: COMPASS-481 - Use public_vip to fetch ceph related conf from controller nodes. - Add ceph-uuid for libvirt store and fetch for expansion. Change-Id: I9e93183ac108bd959a1226546fbb89706e3004c9 Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-11-28Fix some xenial baremetal deploy bugsliyuenan1-3/+3
1. Fix pip upgrade 2. Fix apache conf file JIRA: COMPASS-489 Change-Id: I2d45114b559298898ab354f884ced74fc9fc7abf Signed-off-by: liyuenan <liyuenan@huawei.com>
2016-11-26Merge "update pip and split pip source"Justin chi1-0/+3
2016-11-25Fix the wait_for modulesliyuenan1-1/+1
After restart the service, service's port should be polled rather than haproxy. JIRA: COMPASS-491 Change-Id: I52165e9673b997883109fbf93a93b360a25dabba Signed-off-by: liyuenan <liyuenan@huawei.com>
2016-11-25update pip and split pip sourceHarry Huang1-0/+3
JIRA: COMPASS-506 update pip to 9.0.1 in ansible common adjust pip download source to http://10.1.0.12/pip-openstack Change-Id: I043d199faf57342f89e46bc9d90229ed40c510f0 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
2016-11-15Repair Flake8's warnings & errorsKingPoo6-32/+31
Change-Id: I67e71bc37c0464a0714e1e59b3402973786e4aa6 Signed-off-by: KingPoo <haojingbo@huawei.com>
2016-11-09autopep8 make py files more standardKingPoo8-40/+97
Change-Id: Ibaa74a1f508b28548668e764d1860393caa356d4 Signed-off-by: KingPoo <haojingbo@huawei.com>
2016-11-09Update the API version for Openstack Newtonliyuenan2-2/+2
Use the "keystone-manage bootstrap" command to instead of admin_token. Because the admin_token is treated as a "shared secret" that can be used to bootstrap Keystone through the API. This "token" does not represent a user (it has no identity), and carries no explicit authorization (it effectively bypasses most authorization checks). Use the API v3 to instead of API v2.0. Identity API v3 was established to introduce namespacing for users and projects by using "domains" as a higher-level container for more flexible identity management and fixed a security issue in the v2.0 API (bearer tokens appearing in URLs). JIRA: COMPASS-491 Change-Id: I56182c14b761728c3492b9dd2b05c3b57aa5f35f Signed-off-by: liyuenan <liyuenan@huawei.com>
2016-10-31code refactoring: opendaylight for removing repeatedly fileschenshuai@huawei.com2-6/+2
JIRA: COMPASS-500 Change-Id: Ic3378804550f529e2ca438f2a3f84f3ffc09ef8f Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
2016-10-31code refactoring: opendaylightchenshuai27-452/+520
JIRA: COMPASS-500 Change-Id: I205f1fb1f31219517f6e2408fa43c8679a1cc0a6 Signed-off-by: chenshuai <chenshuai@huawei.com> Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
2016-10-28Fix glance images dir mount issue on centos/rhelQiLiang1-1/+2
JIRA: - The directory /var/lib/glance/images is not created on centos/rhel system, create it before fs mount. Change-Id: Iec070ad834d6a6206f11923088a73a8dcfe173f9 Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-10-21Merge "Make openstack dashboard theme configurable"Justin chi1-1/+1
2016-10-21Make openstack dashboard theme configurableQiLiang1-1/+1
Use flag ENABLE_UBUNTU_THEME to configure enable or disable ubuntu dashboard theme. Set default to use ubuntu theme. JIRA: - Change-Id: I454c69b0290084c244979bb86c733a03721481cb Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-10-20Bug fix for jdk8 installation-2Yifei Xue1-0/+1
JIRA: COMPASS-492 Change-Id: I3a83b1a0bc2a98fc45c082bd06492b913b7a3a81 Signed-off-by: Yifei Xue <xueyifei@huawei.com>
2016-10-16Merge "Add recovery scripts"Justin chi10-1/+93
2016-10-16Merge "Bug fix for jdk8 installation"Justin chi4-2/+8
2016-10-15Add recovery scriptsQiLiang10-1/+93
- add recovery shell scripts - add boot-recovery role to stop services during system boot which could cause boot pending - configure nfs mount in /etc/fstab cause system boot pending, so mount nfs during ansible-playbook run. - kill mysqld before mysql recovery, running mysqld may cause mysql recover failure JIRA: COMPASS-474 Change-Id: I0f6f0ee935fbe3fbbe28a451a02decfb01a6165b Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-10-12Move all the tar packages in compass4nfv repo to deploy ISOYifei Xue5-8/+25
JIRA: COMPASS-493 Change-Id: I64c87b50fd88bf193a502568986f560fc2a144f6 Signed-off-by: Yifei Xue <xueyifei@huawei.com>
2016-10-11Bug fix for jdk8 installationYifei Xue4-2/+8
JIRA: COMPASS-492 Change-Id: I17e41f7c32652454ff9ff4e788833c6502b5b9e6 Signed-off-by: Yifei Xue <xueyifei@huawei.com>
2016-09-28Merge "Edit the ansible for expansion"Justin chi2-1/+78
2016-09-21Remove unsed files in open-contrail roleQiLiang7-354/+0
JIRA: - Change-Id: Idfb53a9705f206266c01be6d586e57e15280a1bc Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-09-18Edit the ansible for expansionliyuenan2-1/+78
JIRA:COMPASS-481 Change-Id: Iefaea65312317d430f0f7be91787bc48423310a9 Signed-off-by: liyuenan <liyuenan@huawei.com>
2016-09-14Add network connectivity checkQiLiang2-0/+70
JIRA: COMPASS-485 Change-Id: I3ca177118dec362ca2350c746519b83889ec3f83 Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-09-12set prevent_arp_spoofing to False when disable secgroupQiLiang1-0/+3
JIRA: - Change-Id: Idcfedf9fc48f4626ea93bcee1e4a11f69663a869 Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-09-08Merge "Bug fix for tacker installation"shuai chen1-0/+29
2016-09-07Restart mysql in centos-no-ha scenarioQiLiang1-0/+18
JIRA: COMPASS-482 Change-Id: Id26a0acbe9b725e236021a4b324960eef02b48eb Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-08-31bugfix: disable dlux in ODL for Centos due to conflict with ovs-openstackchenshuai@huawei.com3-1/+70
JIRA: COMPASS-477 Change-Id: If9f1de6bcfde94cbb2cc3777d6ef0de78ba5ef31 Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
2016-08-30bugfix:enable metadata in DHCP for odl l3chenshuai@huawei.com1-1/+3
JIRA: COMPASS-476 Change-Id: Ie9734c6b8304a40fbb24e9f6230801c00289d36f Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
2016-08-30Bug fix for tacker installationYifei Xue1-0/+29
JIRA: COMPASS-430 Change-Id: I622b092dac3d77d4094cc470b8eeb9b0628d83e9 Signed-off-by: Yifei Xue <xueyifei@huawei.com>
2016-08-29Add heat user domain configurationQiLiang5-0/+70
FIX Rally heat create_update_delete_stack test case failure for Liberty Ubuntu JIRA: COMPASS-454 Change-Id: Id4538f9caa5b619d66ab8fe97c63b10688ffe104 Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-08-28Add controller and compute recovery rolesQiLiang10-0/+188
After all hosts system restart, login to the compass-core, change directory /var/ansible/run/<openstack-cluster> and execute below command: ansible-playbook \ -i inventories/inventory.yml HA-ansible-multinodes.yml \ -t recovery \ -e "RECOVERY_ENV=True" JIRA: COMPASS-474 Change-Id: I2ed80550c043b14643382609c48d724019cc1cfb Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-08-20Merge "disable odl l3 for Centos"chenshuai@huawei.com1-1/+7
2016-08-20add default demo passwordQiLiang1-1/+1
Change-Id: I6e1b8e9420b086b998054547e1a7db1032d33164 Signed-off-by: QiLiang <liangqi1@huawei.com>
2016-08-19disable odl l3 for Centoschenshuai@huawei.com1-1/+7
JIRA: COMPASS-480 Change-Id: I0ab98d2a268c251c171551e2a63eafdfb3c6d1fc Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
2016-08-15rename region name to be unifiedMatthewLi8-16/+16
JIRA: COMPASS-457 nova region name should be unified. compass use regionOne original, however, upstream usually use RegionOne, this is caused by clerical error. Now the OCL and sfc/tacker use RegionOne by not knowing the compass clerical error. so all should be changed to RegionOne. Change-Id: I8bc280cca036afffe09d0a3bcebc940deaa490b5 Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
2016-08-11bugfix for odl l3chenshuai@huawei.com2-0/+18
JIRA: COMPASS-473 Change-Id: I09cff641e8485f266dead4522e07b855c01ea1de Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
2016-08-11disable neutron-l3-agent for odl-l3chenshuai2-1/+14
JIRA: COMPASS-471 Change-Id: I80d0ad6d95bb81d7a2592dd2c3a2051ac362494f Signed-off-by: chenshuai <chenshuai@huawei.com>
2016-07-28Workaround for openstack api access random failureQiLiang1-11/+0
JIRA: COMPASS-446 Change-Id: I312368ca2fc07fcd07a916a2e6f979086f658dba Signed-off-by: QiLiang <liangqi1@huawei.com>