784 Commits

Author SHA1 Message Date
Gonéri Le Bouder
394c11c721 horizon: drop nodejs dependency
since commit a0739c9423a4c559b45af96fa4cdb30539dcdbd7, horizon use
a pure Python alternative to nodejs

Change-Id: I231b453e42c303c3cc29e8bea4d7b935fecdccd2
2013-11-14 10:28:51 +01:00
Dean Troyer
c04ddbe868 Robustify shocco install and config
* shocco has some non-optional prereqs, make sure they are present if
shocco is being installed
* set the path to installed shocco correctly
* add the working dir to .gitignore

Change-Id: If786ea9e28d3595775f7b86d2fe760dff8047f49
2013-11-06 21:46:20 -06:00
Attila Fazekas
237225dd39 Fixing space issues between " and ]
When we are using '[' aka. ``test`` , before the closing ']'
we need to use a space.

Otherwise the commands return with '2' so the "expression" will be a constant
false.

Change-Id: I673762e802c28335e03390b6608cf6bbee6aaba6
2013-11-06 15:41:04 +01:00
Jenkins
7890b4ea08 Merge "Removed docker version requirement" 2013-10-31 14:22:37 +00:00
Jenkins
8e285072c9 Merge "Fix shocco errors and warnings" 2013-10-31 14:18:32 +00:00
Mate Lakat
8787e0fd0c xenapi: always reset JeOS's network
If the JeOS template contained an exotic network configuration, the VM
prep step might fail. This patch resets the networking of the VM before
starting it.

Fixes bug 1245607

Change-Id: I921f1fdd0709d7a7760c4bb165e32f3898098bff
2013-10-28 18:19:17 +00:00
Sam Alba
5a77d03add Removed docker version requirement
Change-Id: I9f04db46706bf6453def09ca1e22e0db918d811b
Closes-Bug: #1237581
2013-10-24 12:27:10 -07:00
Adam Spiers
4b2c5ed209 only clone docs from gh-pages branch if they aren't there
Allow the caller of this script to decide which commit
from the gh-pages branch should be used to build the docs.
This also avoid excessive repeated git clones during development.

Change-Id: I3e58eef0ac03b15903c06d5632c0eb41413db02c
2013-10-24 17:40:13 +01:00
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
DennyZhang
23178a997a add assertions for blind grep
blind grep is error-prone.
Add assertions for errors we can not handle

Change-Id: Ibe19085545ecc848498506e8b8ee14e71825b273
2013-10-22 17:12:18 -05: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
Mate Lakat
da481d0d0a xenapi: display IP and DevStack result on console
The devstack setup service can update /etc/issue, displaying the status
of the installation and the VM's management IP. With this change, after
the devstack service finsihed, the login prompt will look like this:

OpenStack VM - Installed by DevStack
  Management IP:   10.219.3.108
  Devstack run:    SUCCEEDED

DevStackOSDomU login:

This helps people to log in to their system.

Change-Id: Idd6bbd5faf9ced5618cd3e95191bfc3b89473fa2
2013-09-26 14:06:07 +01:00
Jenkins
b31daba802 Merge "Replace OpenStack LLC with OpenStack Foundation" 2013-09-25 20:58:34 +00:00
Mate Lakat
93f3b8693a xenapi: enable user interaction with stack.sh
In XenServer, devstack runs inside a virtual machine. This makes it hard
for the user to interact with stack.sh should a parameter be missing.
This change will create an upstart job (devstack) that runs
stack.sh with console enabled so user can interact with it by running
vncviewer or using XenCenter.

Logging the output is also disabled, stamp files are used instead to
detect the script run status in case install_os_domU.sh is used.

As run.sh.log is removed, standard devstack logging should be used.

The change also removes the environment settings from run.sh, as they
are not needed, they should be specified in localrc. This way user
cannot get different experiences by using unstack.sh/stack.sh or run.sh

Also a proper unstack.sh is called instead of killing screen in run.sh

Change-Id: I7eb12bd74746cc7a1db3aa9fd68ece645a50001d
2013-09-25 14:54:20 +01: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