Commit Graph

46 Commits

Author SHA1 Message Date
OpenDev Sysadmins e7bfe807b1 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:50:22 +00:00
Jenkins ff60fd2132 Merge "NFV workload" 2017-05-04 06:56:31 +00:00
yaohelan bdf7d9355a NFV workload
This workload accomplishes the following:
1. Pull OPNFV Opera code
2. Leverage Opera code to install OPEN-O, deploy Clearwater vIMS by
OPEN-O
3. Pull OPNFV Functest
4. Run the Functest vIMS test cases to ensure vIMS is working
5. Generate calling information

The previous patch[1] was merged by accident and it did not follow
community rule. Thus it was reverted by patch[2]. Resubmit the NFV
workload.

[1] https://review.openstack.org/#/c/439492/
[2] https://review.openstack.org/#/c/459557

Change-Id: I615acc5cc19a3ae71f3d8a5023b6fda6e29e7602
Signed-off-by: yaohelan <yaohelan@huawei.com>
2017-05-04 10:27:37 +08:00
Mark T. Voelker 36900e12cd Fix floating IP logic in destroy
There's a logic bug in the destroy action: ip_flag is assuming string
context when it should be assuming list context.  This causes ip_flag to
never get set to true and therefore floating IP's never get destroyed.
This can lead to floating IP exhaustion, particularly in environments
with a low number of allocatable floating IP's.

This patch corrects the problem by fixing the logic to check for a list
length of zero rather than an empty string.

Change-Id: I0205ac406e604365560360fc2953a5e90e1c9be3
Depends-On: Ifa9eeb9d761d9801cab580445e6c43c8cf1dfdaa
2017-05-03 13:30:22 +00:00
Tong Li f455064066 Added cockroachdb cluster setup across multiple clouds
This patch does the following:
1. Added the apps role so that k8s app deployment can be placed in the role
2. Added cockroachdb-init-pod deployment inthe post role since this has to
   be deployed first.
3. Added cockroachdb-pod deployment in the apps role
4. Allow this workload to stand up a standalone cockroachdb cluster or
   join in an existing cockroachdb cluster
5. Added the cockroachdb load generator container so that once the cluster
   is started, there will be some load generated.
6. Added a way to pre-allocating floating IP addresses so that the workload
   can use pre-allocated floating IPs for VMs.

Change-Id: Ifa9eeb9d761d9801cab580445e6c43c8cf1dfdaa
2017-05-03 03:01:56 +00:00
Jenkins 7ff610459e Merge "Revert "NFV workload"" 2017-05-03 02:54:29 +00:00
Jenkins 1c44b02a5b Merge "Rescan disk bus before using volume" 2017-04-26 13:38:56 +00:00
Jenkins 2cccab69ec Merge "Fix URL for installing OpenStack Shade" 2017-04-26 13:38:50 +00:00
Daniel Mellado 2605a7de60 Revert "NFV workload"
Revert until a proper agreement on merging has been done.
The previous NFV workload patch was merged without having a quorum on at least
2 cores and was self approved by a self-company core reviewer.

This reverts commit 436d97c672.

Change-Id: If915d7e958c3413851cd0d7dab344744dc5c3e6e
2017-04-25 09:38:44 +02:00
Jenkins 60dda3498f Merge "NFV workload" 2017-04-25 03:37:52 +00:00
yaohelan 436d97c672 NFV workload
This workload accomplishes the following:
1. Pull OPNFV Opera code
2. Leverage Opera code to install OPEN-O, deploy Clearwater vIMS by
OPEN-O
3. Pull OPNFV Functest
4. Run the Functest vIMS test cases to ensure vIMS is working
5. Generate calling information

Change-Id: I994503fcb52711fb6cd3222bd151be854665b21c
Signed-off-by: yaohelan <yaohelan@huawei.com>
2017-04-25 09:21:11 +08:00
Mark T. Voelker 1cc921cef4 Rescan disk bus before using volume
In the LAMP stack workload, we found that one issue for interoperability
between clouds was that in some combinations of
hypervisor/adapter/storage is is necessary to rescan the scsi bus of a
guest VM in order to detect a newly attached Cinder volume.[1] We
neglected to do that in the K8s workload, so this patch ammends the
Ansible play that formats the volume to scan the SCSI bus first.

Note that the LAMP workload was targetted toward one guest OS platform
(Ubuntu), and worked by installing the scsitools package and running the
rescan-scsi-bus script that it provides.  The K8s workload is different
in that it's currently targetted toward multiple guests including Ubuntu
and CoreOS [2]...the latter of which doesn't have a package manager.
Rather than build conditionals into the code to handle this, I've taken
a slightly simpler and more platform-agnostic approach in this patch by
simply looking in /sys/class/scsi_host to see what adapters are present
and then scanning each of them with an echo command.  This approach has
a few advantages: 1.) it works on guest OS's in which the name of the
package containing the rescan-scsi-tools script is different than on
Ubuntu, 2.) it works on guest OS's that don't have a package manager at
all, and 3.) since it doesn't require installing any additional
software, it is slightly faster and requires trivially less disk
footprint.

[1] https://review.openstack.org/#/c/383923/
[2] CentOS support is coming too:
https://review.openstack.org/#/c/457199/

Change-Id: Ie7204a23bc7a7d1da9a8cc60e684fc987159a41a
2017-04-21 14:08:55 -04:00
yaohelan c58a9ae41c Improved the doc by following latest comments
Change-Id: I1e88d3602614397a53438f20bfc4d284fe049df8
Signed-off-by: yaohelan <yaohelan@huawei.com>
2017-04-21 15:46:58 +08:00
Jenkins f3eccb7fcc Merge "Add k8s tox environment" 2017-04-18 15:19:55 +00:00
Jenkins 2402b89a04 Merge "Trivial typo fix in playbook" 2017-04-17 10:27:54 +00:00
Tong Li f8bc95c532 Making pre-allocation floating IP working for the workload
The current workload does not the new servers using the pre-allocated
IPs, in some situation, it will be hard to getting floating IPs.
This patch will allow a runner to pre-allocating some IPs, then assign
IPs to the server they like.

Change-Id: I992edb95d5d641983908f38340bb8ed546fc72aa
2017-04-13 13:30:58 -04:00
Tong Li 77439ae873 Added command to wait for cloud-init to be done
If using ubuntu image, cloud-init has to finish before other apt
command can be performed. This patch added logic to make sure
that cloud-init get finished before proceed with other tasks.
This patch also contains changes to make the seeding docker images
more generic so that any docker image can be included in a tar.gz
file, the images in the file will be docker loaded onto each worker
node

Change-Id: I505cdb791673dc978bc21b73f7ad672172340a9d
2017-04-12 20:55:39 +00:00
Victoria Martinez de la Cruz 4178a1cddf Add k8s tox environment
This change adds ansible k8s tox environment

Change-Id: Ib8310e134eaa92b6e7f06f7d4515b965d7e4afcd
2017-04-12 20:20:21 +00:00
Daniel Mellado c78191609a Trivial typo fix in playbook
Change-Id: I1262d4fb9cdc0f495e4acd71b3c565ce217ee36f
2017-04-11 11:43:42 +00:00
Tong Li a58bab3adf Rework the lampstack workload to enable provision parallel
Change-Id: Ic5047a1fd0e9d158f33f86ab013a445aa334da2a
2017-04-11 11:09:17 +00:00
Mohammed Naser 6439632f63
Fix URL for installing OpenStack Shade
Change-Id: I99b3a84a0cb0064f734704c6f1d484af93132045
2017-04-07 08:52:50 -04:00
Tong Li 791fbe78d1 Correct few doc problems and the description of security group
Change-Id: I22f908494e825fd89f1292c1de24b5e54e64d0c2
2017-03-28 09:10:45 -04:00
Jenkins a25de91b6e Merge "Kubernetes workload" 2017-03-22 14:55:01 +00:00
Tong Li 2c89e57bc5 Kubernetes workload
This workload accomplishes the following:

 1. Provision 3 nodes or the number of nodes configured by stack_size
 2. Create security group
 3. Add security rules to allow ping, ssh, and kubernetes ports
 4. Install common software onto each node such as docker
 5. Download all the required software onto the master node
 6. Setup the master node with kube-apiserver, kube-controller-manager
    and kube-scheduler and configur each kubernetes services on the
    master node
 7. Download software for worker node from the master node.
 8. Setup flanneld, docker, kubelet and kube-proxy on each work node.
 9. Install kubernetes dashboard and dns services.
 10. Install cockroachdb.

Change-Id: I3f7ec234aaa72dd6b2542e53e7eae2673ef7b408
2017-03-21 15:09:36 -04:00
Jenkins 3e4d4e892d Merge "Fixed a typo in the readme" 2017-03-16 23:13:15 +00:00
Kurt Taylor 62362e6f95 Fixed a typo in the readme
NVF changed to NFV

Change-Id: Ifdb7f240d0fe00070d671c6814051837128c7e90
2017-03-16 15:20:05 -05:00
Jenkins 02900269b2 Merge "Fix format 'of docker client install' in dockerswarm's README.md " 2017-03-13 15:07:45 +00:00
Jenkins cdc47de271 Merge "Fix some issues when executing workload 'dockerswarm'." 2017-03-08 13:48:25 +00:00
Daniel Mellado d8237529d9 Add lampstack tox environment
This commits adds ansible lampstack tox environment, as well as ansible
and shade to requirements.txt file.
:
Change-Id: I1028847971b9f336d5d7b411de92b2b08486c3e2
2017-03-02 14:18:10 +01:00
KongWei dc98b9004d Fix format 'of docker client install' in dockerswarm's README.md
The doc in github shows:
'apt-get update apt-get -y install docker.io ln -sf /usr/bin/docker.io /usr/local/bin/docker'
in one line.
I think it should be displayed as 'ssh-keygen -t rsa ...'

Change-Id: Ia579709d4f1eab8d09788d9aa2a3b753cc3ff6d8
2017-02-23 08:02:55 +00:00
ericxiett ed8c406fe3 Fix some issues when executing workload 'dockerswarm'.
* Disable checking for `scp`, add '-o StrictHostKeyChecking=no';
* Add the process that waiting for ssh connection OK of nodes.

Change-Id: Iec6d0c0a51219c42072d26b0920a1263200c2909
Closes-Bug: #1664790
2017-02-23 08:51:17 +08:00
Jenkins 0db0e2b3f3 Merge "NFV workload to test OpenStack interoperability" 2017-02-21 20:21:03 +00:00
yaohelan 561e7ed68b NFV workload to test OpenStack interoperability
Change-Id: I5532d978d6ceac732ea5da9ff3c4abcf67905793
Signed-off-by: yaohelan <yaohelan@huawei.com>
2017-02-21 03:23:58 -05:00
Jenkins 634e7a72f9 Merge "Add wordpress root access flag" 2017-02-15 14:08:37 +00:00
taozhengming 5d93cf890b Add wordpress root access flag
When a cloud image only has root user, deploy wordpress will fail
without the flag since wordpress by default does not allow root user
to deploy artifacts. Adding this flag will allow root and non root
users to be used to deploy wordpress

Change-Id: Icf0a62bdfc5db5d0e14752908477288516143eb9
2017-02-09 09:59:17 +08:00
Daniel Mellado fa360ae63c Add specs to documentation
This commit adds a spec folder within documentation. This would be
moved under its own project if it starts growing big enough.

Change-Id: I54b8402b35ff72577f1b949d9a081752cb08a13b
2017-02-08 17:43:02 +01:00
Jenkins 88360008f0 Merge "Add Overview Section For lessonslearnt document" 2017-02-01 14:02:42 +00:00
zhipengh e1fd115b59 Add Overview Section For lessonslearnt document
Change-Id: I37f324353e59426ddf1e223327a72c63ec87efe5
2017-02-01 21:10:32 +08:00
Lukas Kubin 87552b91be Change lookup method to correctly load Jinja2 templates.
This should resolve two problems:

* Ansible cannot find `userdata.j2` due to incorrect path used
* Allow the template to be actually rendered as template instead of
  being loaded as plain file without evaluation

There's another solution - simple move of `/roles/apply/templates/`
to `/roles/apply/files/templates/`. I have favored this one though
to make it possible to use Jinja2 expressions in the template file,
which I believe was the original creator's idea.

Change-Id: I268e4967597508e15d7de76051e097a43a0bfeac
2017-01-21 20:53:50 +00:00
Quan Tian b642525efe Fix typo in lampstack README
Change-Id: I7e2c02d6e501203d66d310fb26a371c819863afd
2017-01-17 01:57:38 +00:00
Tong Li d09502f4f8 Fix the following issues
1. mysql 5.6+ configuration
2. noting supporting ubuntu 16.xx
3. different platform code mixing
4. tags so that you can run selected tasks by role
5. uses openstack superuser theme and posts
6. haproxy used old configuration format

Closes-Bug #1654240
Closes-Bug #1649949

Change-Id: Ibbde92ed4fc18f85d004d54f00d3547c3df8fcc4
2017-01-06 14:00:43 -05:00
Tong Li bdaa492657 Added lessons learnt document
The lessions learnt document has been created on etherpad, this
patch took all the content from that document, edited, reformatted,
and also added more few items I learnt from my own experiences of
developing these workload scripts.

Change-Id: I3ab9cacd6369c3cbcfc912707a9e844ae7c4fc2d
2016-12-12 15:05:19 -05:00
Tong Li 4e8f7cb7e2 missed files in vars directory in lampstack
Change-Id: I3baa63a87b159e2844cb65fc68ae403d20fc233f
2016-12-09 10:34:04 -05:00
Tong Li c2d9031536 move both ansible and terraform existing workloads to this repository
Change-Id: Ie1091cb4c5bbefa7da8f3d095be33860a56432cc
2016-12-05 11:13:50 -05:00
Tong Li 40a1cc422b Interop-workloads new repository seeding
Change-Id: Ic7eba4f04d6a7032511c648fe833badaa4bb6973
2016-12-02 12:03:10 -05:00
OpenStack Project Creator da38e9a9aa Added .gitreview 2016-11-24 21:55:37 +00:00