36 Commits

Author SHA1 Message Date
Nir Magnezi
662485e2d2 Update devstack plugin and examples
The devstack plugin should only use the openstackclient to
interact with OpenStack services via CLI.

This patch fixes both the devstack plugin and the examples.

Task: 5678
Task: 5680
Task: 5698
Story: 2001183

Change-Id: Id30ab0484edb350f0a424a0fc90c381357614b8e
2017-11-26 23:20:33 +02:00
Vu Cong Tuan
b2d5604203 Remove SCREEN_LOGDIR from devstack
SCREEN_LOGDIR has already been deprecated [1]
[1] https://review.openstack.org/#/c/499186

Change-Id: I0f2100008cb866da99e117cab6b41c872e2e8b73
2017-10-05 17:08:57 +07:00
Jenkins
dac945260d Merge "Change default vagrant box to xenial64(16.04)" 2017-06-29 00:51:13 +00:00
ckji
79a7698bfd Fix nova secgroup-add-rule which is unavailable
Nova secgroup-add-rule is not available anymore.
Change it to 'openstack security group rule create'.

Change-Id: I43befb0635ea4f8978b0d863722599cff3863a03
2017-06-28 15:17:04 +08:00
ckji
a7256e15ed Change default vagrant box to xenial64(16.04)
Because current devstack don't support ubuntu 14.04. Change default
vagrant box from trusty64 to xenial64.

See:
https://docs.openstack.org/developer/devstack/#install-linux

Change-Id: Id49167e6d60babcc6145c0f4cbd5b15231d12c88
2017-06-28 11:29:49 +08:00
Nir Magnezi
15feef13c3 Remove nova cert from devstack examples
As a followup to I2c78a0c6599b92040146cf9f0042cff8fd2509c3, the nova
cert service should be removed from the devstack local.conf examples.

Without this fix, stacking will fail is USE_SCREEN=True

Change-Id: Ifb7fc1e423abf6f1509a0724e45b352fdb908def
2017-05-23 00:02:33 +03:00
ckji
3251ee0598 Fix typo
s/bellow/below

Change-Id: I119fa3acbea1dbe152d0f28f06593022cb1c9435
2017-03-14 17:55:39 +08:00
Nir Magnezi
2f5e3b4db8 Add placement services to devstack example files
As a followup to I273c3c8299ee329bed425f3e7cd4b583ed1187a4, adding
nova placement services which are mandatory starting Ocata.

Change-Id: I74adfd6aa3bc0cb1061427ef6d66fc8d3c20d776
2017-02-01 15:53:44 +02:00
Miguel Angel Ajo
d537aed6dc Fix nova image-list which is unavailable
In Newton nova call to image-list was deprecated and
it's not available anymore.

I've switched the cli call to openstack image list which
does the job perfectly.

Change-Id: I2091328998d8b5fbf383f3d32b2d3c0cc24ca618
2016-10-04 11:15:53 +00:00
Miguel Angel Ajo
50fd8be1fd Insert haproxy in front of all the o-api endpoints
The main octavia node will need the OCTAVIA_NODES setting
in the following format to setup the octavia API haproxy
in front of all of them.

OCTAVIA_NODES=main:<ip-address>,second:<ip-address>

Change-Id: I4a88dae4aa47c508559fd7464f127a23b089af2a
2016-07-09 11:33:35 +00:00
Miguel Angel Ajo
b47fcb2834 Allow deploying secondary worker and API nodes
This commit introduces a new parameter "OCTAVIA_NODE", which
is standalone by default. Only the main (for ha) or standalone
nodes create resources like accounts, the management network,
images, etc.

We also introduce a multinode vagrant configuration.

A follow up patch will introduce an haproxy in front of the octavia
API endpoints.

Change-Id: I835ee7e0e925232b55f3c14eeed98aeb0f0ce463
2016-07-09 11:33:08 +00:00
Jenkins
7cc0bfb9fc Merge "Use the local /vagrant dir for copying the config and support scripts" 2016-05-25 05:59:17 +00:00
Miguel Angel Ajo
4a96ad96c4 Add env variables for memory and vcpu in the Vagrantfile
Now we can do:

 	VM_CPUS=4 VM_MEMORY=6000 vagrant up

And this will spawn an instance with 4 VCPUs, 6GB of RAM, and devstack
+ octavia deployed.

This allows for better adjustment of resources and capabilities, based
on the type of development or test we inted to perform.

Change-Id: I3f22a43a1a4cf4af907222fd46c015d8a5c269be
2016-05-24 22:39:41 +02:00
Jenkins
4fe4cd3297 Merge "Add libvirt provider support" 2016-05-24 18:36:44 +00:00
Miguel Angel Ajo
c71e6f8a7c Add libvirt provider support
Add libvirt provider support, the image, although non ubuntu official,
is built by an openstack contributor (apuimedo

It can be used with:
   vagrant plugin install vagrant-libvirt
   vagrant up --provider libvirt

You can fix the provider in your system by adding to /etc/profile
   export VAGRANT_DEFAULT_PROVIDER=libvirt

And enable kvm nested virtualization by:
   sudo rmmod kvm-intel
   sudo sh \
    -c "echo 'options kvm-intel nested=y' >> /etc/modprobe.d/dist.conf"
   sudo modprobe kvm-intel

Change-Id: I604523e6bc247edee480e881db4e66f3df039af3
2016-05-24 05:10:41 +00:00
Miguel Angel Ajo
8db658b02b Make sure ~/.ssh/known_hosts exists before calling ssh-keygen -R
Our vagrant file makes use of ssh-keygen -R to remove any old key
related to an IP address from known_hosts.

But ssh-keygen fails and makes the local.sh exit with failure
(error 2) if the ~/.ssh/known_hosts file does not exist.

Change-Id: I404e79ca644c6c15f51a0f3db6695cc5a895b238
2016-05-23 11:55:29 +00:00
Miguel Angel Ajo
32f48f144c Use the local /vagrant dir for copying the config and support scripts
Vagrant rsyncs or mounts by default the directory containing the Vagrantfile
under /vagrant inside the instance.

With this change, it's possible to modify local scripts and redeploy,
eliminating the build dependency on the remote git server.

Change-Id: Ibb016a8c433644c18c033c66bd3a3cc9571af9f4
2016-05-23 11:55:23 +00:00
Miguel Angel Ajo
ad166aa2b1 Wait for loadbalancer to be ready instead of sleeping
This makes the creation of resources in the sample Vagrant
configuration less dependent on the host resources or hypervisor
execution time.

Before this, the local.sh was randomnly failing at any of it's steps
in my environment.

Change-Id: Ie3795a1f9244b46f5b6469107ad1d03f087a64ed
2016-05-19 11:44:21 -04:00
Doug Fish
3dd502925e Add neutron-lbaas-dashboard to local.conf sample
The local.conf example includes setting up Horizon. It should include
setting up the lbaas-dashboard as well.

Change-Id: I44073aea3f1769dc1211967baa629bb6d2f1323d
2016-03-23 15:02:17 +00:00
Jenkins
7eecc178ae Merge "Fix local.sh script for Keystone authentication" 2016-03-22 18:31:31 +00:00
Bharath M
cb18799fb2 Fix local.sh script for Keystone authentication
Fixing the keystone token issue due to the different
keystone version env variables

Change-Id: I6a60502f7b8369755f69a231a81032d04cf518ab
Closes-Bug: #1559223
2016-03-18 10:01:52 -07:00
Lingxian Kong
f3cab49c17 Exit local.sh immediately when error occurs
Change-Id: I64e7eef111f400440a27fef0ededf3e0d371fd19
Closes-Bug: #1558904
2016-03-18 16:52:17 +13:00
Jenkins
2b373f6dfc Merge "Remove swift related content in the sample local.conf" 2016-03-06 03:32:18 +00:00
Jenkins
a46599118a Merge "Use "--pub-key" instead of "--pub_key"" 2016-03-05 19:39:51 +00:00
chen-li
5844f9494b Remove swift related content in the sample local.conf
Swift is not default enabled by devsatck, and it is not used
by Octavia by default too. The content in the sample local.conf
is useless.

Change-Id: Ie3accb5c1be455f0212fbc07d4f5c26a55529b3c
2016-03-04 23:52:13 +08:00
chen-li
c5c50827ee Use "--pub-key" instead of "--pub_key"
Option "--pub_key" is deprecated and will be removed in novaclient 3.3.0.

Change-Id: Iaa6b12cbc3418dce40f689fb4812670784ea3018
2016-03-04 23:43:20 +08:00
Peng Zhi Xiong
05b3f7dce7 Fixed make sure to get IPv4 value by awk in sample local.sh file
Since the end user may enable IPv6. the nova-show command will
display network information format randomly. this fix will make
sure always get IPv4 value to avoid error in rest steps

Closes-bug: #1549091
Change-Id: I69e1fbb6f625e3a9491ee9e69263ed578c03610f
2016-02-19 18:44:52 -08:00
Michael Johnson
158bb0d91a Make sample web server close connections
The sample web server, using nc, currently does not close the
connection after serving the content.  This can cause clients to
hang waiting for the connection to close after the content has been
served.  This patch includes the content length in the response
so that the connection will close.

Change-Id: I9443157f1edd8ed7e90599df73f5a48f16c955f1
2016-01-26 20:40:45 +00:00
Adam Harwell
9fc9eeaf03 Make Barbican the default certificate manager
Local certificate manager is broken and should probably be removed,
since the effort was never taken to make it functional (adding
additional fields for taking raw certificate data in the API).
Barbican should be the default as it is the functional option.

Also taking this opportunity to clean up the config and local.conf
defaults to match reality.

Change-Id: Icf1e89838b761e7d2926c8eb7532404b4c2f19dd
2016-01-14 16:19:54 -06:00
Mark Vanderwiel
5b4e4d88b2 chmod +x on local.sh to allow it to be executed by stack.sh
Allow sample local.sh to be found and run by stack.sh

Change-Id: Ic12f7376a01553e9cb0a5172af572cef59a5d6f3
2015-11-06 15:36:03 +00:00
Jenkins
20318ec576 Merge "Fix the shebang line and permission of webserver.sh" 2015-09-10 23:48:29 +00:00
Yoshihide Matsumoto
345b430275 Update the cirros version in devstack samples
The cirros version in local.sh and in local.conf are mismatched,
which causes the nova boot error in devstack.
This patch updates both cirros version to the latest version 0.3.4.

Change-Id: I5cb828914dfd127ac64628520498d38c1a157f46
2015-09-10 18:39:39 +09:00
Yoshihide Matsumoto
a7cfdd2bc9 Fix the shebang line and permission of webserver.sh
The cirros doesn't have /bin/ash and /bin/bash.
We should use /bin/sh instead of /bin/ash, and give execute permissions.

Change-Id: I9efa49174377566943f685c345e181ca38ee031e
2015-09-09 18:55:42 +09:00
minwang
16ba783391 Add webserver in octavia/devstack/samples
Needs to add this file so vagrant script can run.

Change-Id: Iba28a75a9ba201d2a22594d9cb8ab7d4014360f7
2015-06-25 15:59:06 -07:00
Michael Johnson
e6cb590fdd Updates for repo rename stackforge->openstack
Updated files to use openstack instead of stackforge
Updated devstack samples to not point to old references

Change-Id: I501d76173475bb1619006819d971493854fdd15c
2015-06-13 00:20:11 +00:00
Al Miller
4ac7376c2f Add devstack plugin for octavia
Co-Authored-By: Phillip Toohill <phillip.toohill@rackspace.com>

Change-Id: I9f8c87cd39ef59db71fe3a93b09f905f71dd2feb
2015-05-06 15:31:45 -07:00