523 Commits

Author SHA1 Message Date
Adam Spiers
cb961597cc Fix shocco errors and warnings
A few Markdown-oriented issues were causing Docutils errors to
leak into the end-user docs on http://devstack.org

Change-Id: I51fa9698afb1bfb48596478d83bd1fdcd84ac52e
2013-10-24 15:43:05 +01:00
Jenkins
897f48a897 Merge "Add the doc build tools" 2013-10-23 12:52:35 +00:00
Dean Troyer
9b973670a6 Add the doc build tools
tools/build_docs.sh generates the devstack.org website from the static
pages and generated pages created by running shocco against a DevStack
checkout.

Note that while this is the complete auto page generation of the
devstack.org site, pushing the content back to GitHub is limited
to those with push access to the current repo.

Partial-bug 1235626

Change-Id: I61dc3d56e4a4832a9ddd1904dd8af65c15a17e50
2013-10-22 15:06:35 -05:00
Sean Dague
0b865a55f2 final bash8 files for the rest of devstack
With this devstack/master is bash8 clean, and ready for enforcement

Change-Id: I03fc89b401e6b7a23224d71472122c1bfa3ad0bd
2013-10-22 13:06:18 -04:00
Sean Dague
02d7fe13bb add support for heredoc folding of lines
this change in the parser allows for us to have heredocs folded
into logical lines.

Change-Id: I51ebe6cd7b89b5f7194e947896f20b6750e972e3
2013-10-22 13:05:48 -04:00
Jenkins
3072724207 Merge "XenAPI: Get pool default SR rather than "Local storage"" 2013-10-22 12:40:19 +00:00
Jenkins
1e76a02460 Merge "Fix bugs for installing docker, bug #1237581. -The change in install_docker.sh corrects a typo ('=' should be '-'). This typo resutls in 'unable to locate the packet' error when executing apt-get." 2013-10-22 12:40:12 +00:00
Jenkins
21178a1c74 Merge "detect failure of 'keystone token-get'" 2013-10-22 12:36:29 +00:00
DennyZhang
acb52e5db6 detect failure of 'keystone token-get'
When 'keystone token-get' fails, the caller can't detect the failure.
This cause troulbe shooting a bit complicated.

Change-Id: I3c58c5fd0e92a87e87546ea797904e08646a1097
Closes-Bug: #1238412
2013-10-20 10:01:52 -05:00
Bob Ball
105c6e8718 Create-stack-user script should have execute permissions
Currently running stack.sh as root advises you about this script, which is not
executable

Change-Id: I674af044b8f3c31bcc86be5c6552e8086453d5cd
2013-10-18 15:33:26 +01:00
Jenkins
2e2c20b6db Merge "Fix fixup_stuff.sh package permissions fix" 2013-10-16 21:22:13 +00:00
Jenkins
afcb049c7c Merge "Remove general assumption in get_packages()" 2013-10-16 21:13:51 +00:00
Dean Troyer
65f1af6dd3 Fix fixup_stuff.sh package permissions fix
There are a number of different attempts to fix this issue, specifcally on RHEL6.
None of them actually get it right.
* This does not upgrade an OS installed package because we trust them to not make
  these sorts of permissions mistakes. Also we do not have nor want to figure out the
  right version that the OpenStack projects will require.
* This specfically targets the upstream package versions as we do not know how
  later versions behave.

This should address the following reviews:
* https://review.openstack.org/#/c/50540/
* https://review.openstack.org/#/c/51233/ (1238707)
* https://review.openstack.org/#/c/51651/ (1239747)
* https://review.openstack.org/#/c/51843/
* https://review.openstack.org/#/c/51838/
* https://review.openstack.org/#/c/52148/ (1236941)

Change-Id: I99906451dc25654628187b383e8893cce0e276bf
2013-10-16 12:50:19 -05:00
Jenkins
20b247be21 Merge "add bash8 tool (like pep8, but way hackier)" 2013-10-15 14:54:07 +00:00
Sean Dague
4fb255cf41 add bash8 tool (like pep8, but way hackier)
unlike our python code, we have no automatic style checking for
bash. For the most part, it's not a big deal, but errant whitespace
or incorrect indenting is sometimes annoying to have to -1 people's
patches for. Instead of constantly picking it up in manual review
maybe we can do better.

This is an uber hacky script which could be used to do just that.

   ./tools/bash8.py file1 file2 file3 ...

And it will show issues found with the files at hand. Lightly
tested in the existing devstack tree, it exposes a few issues that
we might want to think about.

This should be python 3 compatible, and includes argparse to provide
a basic '-h' support to explain how the command should be run.

Change-Id: I5009fa5852595c2953a548e430e5e1ce06ae94e0
2013-10-14 16:18:39 -04:00
Jenkins
ffae1057ae Merge "xenapi: max out VCPU count" 2013-10-14 18:14:13 +00:00
Bob Ball
83dcf20460 XenAPI: Get pool default SR rather than "Local storage"
Match the nova default of using the Pool default SR as the storage for
VMs

Change-Id: I3b681ae7062ba0db3d9eab70b410b7d9658e37c9
2013-10-14 17:18:02 +01:00
Min Li
fdc9ae8b9e Fix bugs for installing docker, bug #1237581.
-The change in install_docker.sh corrects a typo ('=' should be '-').
   This typo resutls in 'unable to locate the packet' error when executing apt-get.

  -The second change is in hypervisor-docker fix the error for reporting
   docker is not installed when docker is actually set up. The original line
   missed the version part of the package name.

Change-Id: Ic48f45158cf84f89080f095d53c355e9f6969bfd
2013-10-14 11:26:49 -04:00
DennyZhang
3931573f2b mute useless console output, when run ./stack.sh
Run ./stack.sh will dump ~400 lines of information, because of
tar xvfz pip-*.tar.gz, and python setup.py install.

We'd better mute stdout for the two steps, to make console cleaner

Change-Id: Icf87947e020acb48d8cbe4cdcc1641f060e50f6d
2013-10-11 00:12:30 -05:00
Jenkins
a4664a2c07 Merge "XenAPI: Get the management network dynamically" 2013-10-08 15:00:55 +00:00
Attila Fazekas
46ea723868 install_pip script fails if pip was not installed
'set -o errexit' recently added to the pip installer script, which causes
the script fail when it does not able to find an already installed pip.

This change handles the situation when pip is not installed.

Change-Id: I18a42d13c4be6699db21ec5b6a095a88a199912d
2013-10-07 07:32:58 +02:00
Jenkins
8356b8dc4f Merge "Split the creation of $STACK_USER account out of stack.sh" 2013-10-05 14:02:49 +00:00
Dean Troyer
23f69d83e5 Split the creation of $STACK_USER account out of stack.sh
Automatically creating a new user account is not always the right course
of action when stack.sh is running as root.  Plus, the re-exec did not
work correctly in some cases.

* Create tools/create-stack-user.sh to set up a suitable user
  for running DevStack
* Abort stack.sh and unstack.sh if running as root and suggest creating a
  suitable user account.

Change-Id: I5d967c00c89f32e861449234ea8fe19261cd9ae3
2013-10-04 16:36:00 -05:00
Jenkins
1e087b9965 Merge "set errexit and xtrace in helper scripts" 2013-10-04 19:17:07 +00:00
Dean Troyer
ca5af8615e Remove general assumption in get_packages()
get_packages() always included 'general' as a default 'service' file.
Remove this assumption and add it explicitly to the primary package
installation call.  This allows get_package() to be used in other places
where 'general' is not desired to be included.

Change-Id: I1eed4386d073d6ae9534aedae32654208c6662e8
2013-10-04 13:33:10 -05:00
Mate Lakat
9f878cbe6d xenapi: max out VCPU count
Give as much VCPUs to the DevStack machine as possible. First asking
xenapi about its CPU count, and as a fallback, count the CPUs in dom0.
This should result in faster test runs.

Change-Id: I1ffb99ecd435f1d7eb5754fe9cd99f0e8ceae6dc
2013-10-04 09:56:24 +01:00
Jenkins
7255659a55 Merge "xenapi: increase default memory to 3G" 2013-10-03 21:10:28 +00:00
Mate Lakat
bfb880d547 xenapi: increase default memory to 3G
Devstack was swapping with 2G

Change-Id: I8fe77591cb0ca0f946028d7219b43d77eea3419f
2013-10-02 17:44:18 +01:00
Adam Spiers
c85ade7720 set errexit and xtrace in helper scripts
stack.sh invokes some helper scripts as separate processes, rather than
by source'ing them.  As with stack.sh itself, abort immediately on the
first error, so that errors don't compound and result in confusing error
messages.  If one of these helper scripts aborts, stack.sh itself will
also abort in the usual manner.

Due to the change in behaviour, tweak some mv invocations to ensure that
they don't trigger false failures.

As with stack.sh itself, also enable xtrace so we can see exactly what's
happening.  In particular this allows us to see the cause of any
premature termination due to a command failing whilst errexit is
enabled.

Change-Id: I7a55784c31e5395e29ab9bbe2bb112b83b9be693
2013-10-01 17:54:40 +01:00
Bob Ball
78ef1f3b2c XenAPI: Get the management network dynamically
xenbr0 is correct for most installations, but not all.  Notable xenserver-core
may use a differently named device.  Since we can auto detect this, remove the
config and do so.

Change-Id: I989f6ddd5ffb526ab350f263ef6fc402c596304a
2013-09-30 16:00:40 +01:00
Mate Lakat
53d6fa604d xenapi: set dhcp timeout on VM installation
Set the DHCP timeout to 120 seconds during virtual machine installation.
Some users failed to run devstack, due to a low DHCP timeout setting.
The default value is 60 seconds. This change sets the value to 120 secs,
that should give enough time for most people.

Change-Id: I15fde45ed0d005c1a8621134eee6c3c338b5be5d
2013-09-27 12:30:28 +01:00
Jenkins
0319ea5271 Merge "xenapi: Get rid of prompt settings" 2013-09-26 14:55:28 +00:00
Jenkins
b31daba802 Merge "Replace OpenStack LLC with OpenStack Foundation" 2013-09-25 20:58:34 +00:00
Mate Lakat
fb434b28d0 xenapi: Get rid of prompt settings
Remove the setting of prompt from prepare guest, keeping the scripts
smaller.

Change-Id: Ifb2b3aba07831e1552d6a1c6cd2081592c43ccf6
2013-09-24 15:58:37 +01:00
Jenkins
e802cc4514 Merge "docker: ensure socat is installed" 2013-09-23 17:02:54 +00:00
Jenkins
b3fd16a200 Merge "xenapi: Use C locale" 2013-09-23 17:02:52 +00:00
ZhiQiang Fan
7d56215837 Replace OpenStack LLC with OpenStack Foundation
Change-Id: I7642e7163b615798867881b012240164465c5e43
Fixes-Bug: #1214176
2013-09-20 02:20:35 +08:00
Mate Lakat
1ca490c049 xenapi: Use C locale
By exporting the LC_ALL=C we can get rid of localisation issues, as the
actual scripts are already assuming an english installation.

FIxes bug 1227527

Change-Id: Ieeebce4d53b09959146a970f3fb803201ac5ebdf
2013-09-19 10:03:36 +01:00
Russell Bryant
0f4f443159 docker: ensure socat is installed
install_docker.sh failed for me because socat wasn't installed.  Add it
to this script since it expects it to be there.

Change-Id: Ic55f5e38de1b38bdd37407b7bec533d4c3eff2a9
2013-09-17 17:15:25 -04:00
Aaron Rosen
1e4551db44 use method pip_install over sudo pip install so proxy settings work
Change-Id: I2f0c69a72ef73c317b707d99c65cab0fb590d158
2013-09-16 13:59:42 -07:00
Jenkins
7ab1f22c60 Merge "Stop doing special things with setuptools" 2013-09-13 11:27:59 +00:00
Chmouel Boudjnah
5917868e75 Use 1.4.1 of pip.
- This is where the option pip install --pre is.

Change-Id: I3f836a701f17a4fea888ec51da62e7137cf0e6db
2013-09-06 16:14:17 +02:00
Jenkins
72854cc567 Merge "xenapi: enable block device access for stack user" 2013-09-05 11:52:55 +00:00
Jenkins
1800a8a1eb Merge "xenapi: README.md and embedded localrc updates" 2013-09-04 18:07:59 +00:00
Jenkins
9e597ec22d Merge "xenapi: Set VM memory before starting it" 2013-09-04 18:06:41 +00:00
Jenkins
9e2ba92d7a Merge "xenapi: add username to vncviewer command" 2013-09-04 18:06:27 +00:00
Jenkins
12f5009c29 Merge "xenapi: Increase default OS domU memory to 2G" 2013-09-04 16:17:01 +00:00
Jenkins
58afc72983 Merge "Move RHEL6 hacks to tools/fixup_stuff.sh" 2013-09-03 20:04:44 +00:00
Mate Lakat
bbf5623774 xenapi: README.md and embedded localrc updates
This change updates the readme, so that it is easier to get started, and
reflects the actual behavior of DevStack.

Changes in README.md:
 - Link to xenserver download page
 - Remove neutron interface - it is no longer installed by devstack
 - Add appendix with
   - How to use a different ubuntu mirror
   - How to use a proxy for ubuntu
   - How to re-use the created VM
 - Remove run from snapshot section and "do cloudy stuff"

Changes in the Readme-embedded sample localrc:
 - Upload a vhd image and a uec image by default - easier to get started

Change-Id: I13bb8e59ff5367ff7623fe9aa273886a957f81a7
2013-08-31 13:36:19 +01:00
Mate Lakat
4728001d01 xenapi: Increase default OS domU memory to 2G
In XenServer scenarios, an additional domU is created to run OpenStack
services. This change is increasing the memory for that VM to speed up
test runs.

Change-Id: I322f4e4703e506620fa7e7456c4264ee0d050edc
2013-08-31 12:12:46 +01:00