784 Commits

Author SHA1 Message Date
Jenkins
98abadd44f Merge "Docker install script fails to install docker registry" 2014-02-12 23:28:16 +00:00
Sahid Orentino Ferdjaoui
1814e671d3 Fix bug "Invalid OpenStack Nova credentials." on the gate
During the process, when create_userrc.sh tries to creates
certificates and sourcable rc, it assumes that all users have
the same password.

Change-Id: Ifb57a43aad439ffe041e98465719a8a8eceae544
Closes-Bug: #1260723
2014-02-12 17:36:35 +01:00
tanlin
2b69f23625 Rename Openstack to OpenStack
Change-Id: I78ac040e926ef8040ee674b6fea3223a8ab4ae99
2014-02-12 17:52:17 +08:00
Jenkins
2276437fa0 Merge "remove build_tempest" 2014-02-11 20:30:49 +00:00
Jenkins
b4b9146de2 Merge "XenAPI: Fix new useage of trueorfalse" 2014-02-11 17:12:49 +00:00
Sean Dague
bc76f748eb remove build_tempest
we haven't actually used this script in about a year, in favor of
the actual in tree lib/tempest.

Change-Id: I9d78b395846ebe833a38ba50edae226040cd7f45
2014-02-10 21:11:04 -05:00
Daniel Kuffner
d1cd0c6648 Docker install script fails to install docker registry
The tools/docker/install_docker.sh script fails during the
installation/setup of the docker registry.
The problem is that the used environment variables are wrong.

REGISTRY_IMAGE > DOCKER_REGISTRY_IMAGE
REGISTRY_IMAGE_NAME > DOCKER_REGISTRY_IMAGE_NAME

Change-Id: I16f051abe5c426f295c69d518b49c1b9a7b4cc94
2014-02-08 12:43:23 +01:00
Shane Wang
5ed43bf82a Fix misspellings in devstack
Fix misspellings detected by:
 * pip install misspellings
 * git ls-files | grep -v locale | misspellings -f -

Change-Id: I19726438d15cd27b813504aac530e7e53c4def12
Closes-Bug: #1257295
2014-02-08 08:49:18 +08:00
Mate Lakat
d15c8a0824 Move install responsibilities to domU
As we are moving forward to test XenAPI in the gate, it is necessary to
move dom0 related modifications to be performed from domU. For this
purpose, a new user is created, and that user should be used to talk to
dom0 from domU. This change creates that user, makes it possible for
dom0 to log in to domU with that account, and configure that account to
be able to talk down to dom0.

Also move several steps to the nova xenserver plugin:
 - dom0 plugin installation
 - create kernels and images directory
 - install console rotate script
 - configure a cron to execute console rotate script

Configuration changes:
    A new configuration option, DOMZERO_USER has been created, that
    specifies a user account that is configured to be able to do
    passwordless ssh to dom0.

Change-Id: If9de0b297a67b7cdb5de78d8dd0e8b2ca578b601
2014-02-05 13:48:35 +00:00
Chmouel Boudjnah
86a8e97679 Add while/until to the for/do rule
Like 'for/do' check that the while/until operator are on
the same line with the do.

Fixes some pep8 error along the way.

Change-Id: I440afe60691263365bf35310bf4212d94f30c339
2014-02-05 07:52:54 +01:00
Sean Dague
16dd8b3ed9 introduce if/then & for/do rules
we mostly have a consistent style on if/then & for/do in devstack,
except when we don't. This attempts to build a set of rules to
enforce this.

Because there are times when lines are legitimately long, and there
is a continuation, this starts off ignoring if and for loops with
continuations. But for short versions, we should enforce this.

Changes to make devstack pass are included. The fact that the
cleanup patch was so small is pretty solid reason that this is
actually the style we've all agreed to.

Part of a git stash from hong kong that I finally cleaned up.

Change-Id: I6376d7afd59cc5ebba9ed69e5ee784a3d5934a10
2014-02-05 07:52:54 +01:00
Sean Dague
0656e12d68 add ability to ignore rules in bash8
Change-Id: Ia6472f4bb251bf3e9846e08e30b2f9ea30ea1c03
2014-02-04 05:32:04 +09:00
Jenkins
792490b68b Merge "Pull docker images from global registry" 2014-02-03 18:51:25 +00:00
Bob Ball
c643ebb26d XenAPI: Fix new useage of trueorfalse
* Ensure that Xen setup scripts will continue to function when unset
  variables are used in stackrc
* Ensure that the generic functions are sourced in all places that xenrc
  (which sources stackrc) is sourced.

Change-Id: I54eba20733c2e149621b74a1387f0bef14fca12e
2014-02-03 09:08:54 +00:00
Sean Dague
6114a518de fix sar reporting in the gate
the sar filter made an assumption of time display including an
AM/PM... which isn't true in all environments. Hence the blank
sysstat screen in the gate runs of late.

This fixes that, and displays the first line which includes header
version to make sure we are functioning.

Change-Id: I537e0bf2127efaf337c4792bc23d938145c8990d
2014-01-31 08:21:24 -05:00
Eric Windisch
2dac885e6c Pull docker images from global registry
The global docker registry is where images are
being built and uploaded. It's effectively docker's
version of, say, 'pip'. The static tarballs are
not only an extra maintenance burden as they're outside
the standard build and publishing process, but are presently
outside the scope of an open development / release
process as well.

While this process does cause some trouble with
network-independence for CI purposes, the fetching
is still done from install-docker.sh; Additionally,
this driver is not currently tested via the community CI effort.

Change-Id: I3ee6bfee9c273cd3aabe1e00a1d1a8856a466189
2014-01-31 01:39:03 -05:00
Sean Dague
d8416d7c1c allow for upgrade of the precise kernel
we are getting kernel crashes in the OpenStack gate, to test
getting around this we'd like devstack to be able to upgrade
the precise kernel to the latest lts backported kernel.

default to off

Change-Id: I5d47aa8d15b1b1c0386a13b65022f6b8108c5c49
2014-01-27 16:08:03 -05:00
Jenkins
fd52f0ea99 Merge "Updates for tools/info.sh" 2014-01-26 13:36:41 +00:00
Jenkins
448637e817 Merge "Workaround missing zip snapshot" 2014-01-25 18:38:11 +00:00
Jenkins
75f56df665 Merge "Fix xenapi functions' tests" 2014-01-25 18:37:56 +00:00
Sean Dague
a0a23311c3 updated sar options to collect more data
in order to have better data on the load state of the test nodes
we should track things beyond just cpu time. Add in load time,
process creation rates, and io rates during the tests.

also add a sar filter that makes it report on one line

reading sar input with multiple flags is somewhat problematic,
because it's tons of interspersed headers. So build something with
does a pivot filter to make it possible to get this all on one
line.

Change-Id: I8f085cedda65dfc37ad530eb97ba1fc5577314c3
2014-01-16 17:17:07 -05:00
Dean Troyer
d2bcbea5f9 Updates for tools/info.sh
* Handle local.conf localrc section
* remove blank lines
* rather than removing password lines, just remove the password itself to at
  least show which password vars have been set

Change-Id: Ieca9baaf03e53b23e336944ad0ed2581c9bee460
2014-01-13 14:26:13 -06:00
Sean Dague
2bb483d32e clean up ubuntu versions
oneiric is long dead, remove references to it whenever possible
(one more subtle issue in cinder should be a seperate patch). This
includes removing the oneiric only tool build_uec.sh.

also remove the bulk of references to quantal, which is 8 months
out of support. note: raring only has support for the rest of the
month.

Change-Id: Ib17502be7572af76dc95560615221b48b970a547
2014-01-11 19:13:47 -05:00
Mate Lakat
2781f3bfc3 Workaround missing zip snapshot
At the moment, xenserver installation depends on github snapshots.
Unfortunately, git.openstack.org does not have that capability. This
fix includes:

 - Exit with error code, if a download fails
 - create proper urls, even if they are using the git protocol
 - set git base to github - so we are able to do snapshots

Fixes bug: 1259905

Change-Id: I8d0cf8bf8abb16ee0a4b138a6719409c75e7a146
2014-01-07 10:20:37 +00:00
Mate Lakat
085abd8eb7 Fix xenapi functions' tests
The tests got outdated, this fix makes the tests pass again.

Change-Id: Iadddfbf34bf79ba455811645e766c2f3d0fcca84
2014-01-07 10:20:37 +00:00
Jenkins
161f1d70ee Merge "XenAPI: Fix bug with Xen ext4-using guests" 2014-01-02 18:08:19 +00:00
Jenkins
62c0cfa5d9 Merge "Mute false alarm when installing docker" 2014-01-01 13:28:24 +00:00
Bob Ball
60fcfb5c91 XenAPI: Fix bug with Xen ext4-using guests
Ubuntu saucy is using ext4, which means it hits a barrier
bug with certain versions of Xen, leading to a read only
filesystem.

This is bug https://bugs.launchpad.net/ubuntu/+source/linux/+bug/824089

Change-Id: I9a72b203d473dc555324d44ad7c240c80dccda15
2013-12-23 17:23:47 +00:00
Jenkins
bc22aeb4bc Merge "XenAPI: Update DomU to Ubuntu Saucy" 2013-12-21 12:26:47 +00:00
KIYOHIRO ADACHI
a515a70e2b Fixed check method of $USE_GET_PIP
'[[ -n "$USE_GET_PIP" ]]' always TRUE
because $USE_GET_PIP is '0' or '1'.

Change-Id: I73c4c6befe2126882ef21991b2a3fe712b2ac388
Closes-Bug: #1259824
2013-12-11 16:14:00 +09:00
Jenkins
39807f4616 Merge "XenAPI: Increase DomU's memory" 2013-12-10 15:24:06 +00:00
Jenkins
c2fb94453d Merge "xenapi: display IP and DevStack result on console" 2013-12-09 14:28:29 +00:00
Bob Ball
57bf097e5a XenAPI: Increase DomU's memory
Devstack has been increasing in complexity, and if we use too
much of our memory it can lead to fragmentation which in turn
causes a DomU error and a failure of random tests.

Change-Id: Ide9cc84625caed4e35a64a47ee1e92a6cd567651
2013-12-09 14:15:19 +00:00
sbauza
a49422e33e Fix install_get_pip in order to work behind a proxy
Proxy envvars are not passed to pip when sudo, we need to export
them.

Change-Id: I67622f5ea8ecb948006e032bdc395ecf36914146
Closes-Bug: #1258155
2013-12-05 14:56:14 +01:00
Jenkins
e9ca36b3d9 Merge "xenapi: enable user interaction with stack.sh" 2013-12-05 02:30:36 +00:00
Jenkins
02ef0dbfb0 Merge "add assertions for blind grep" 2013-12-05 00:19:49 +00:00
Bob Ball
9a48a351fb XenAPI: Update DomU to Ubuntu Saucy
Driven by a race condition in LVM being hit in the tempest
tests.  This is a locking race between a file lock and a
semaphore which is fixed in 2.02.96-5.

Change-Id: I8a8c215c90a0602288292ffd06b7694d2db6219e
2013-12-04 23:13:57 +00:00
Jenkins
bddaf0afb6 Merge "Allow deploying keystone with SSL certificates" 2013-12-04 05:36:40 +00:00
Jenkins
8097838ab1 Merge "Switch the base URL to git.openstack.org" 2013-12-02 19:04:08 +00:00
Jenkins
386ef1f8ce Merge "Allow overriding USE_GET_PIP via env vars" 2013-11-26 18:48:49 +00:00
Jamie Lennox
bd24a8d0f8 Allow deploying keystone with SSL certificates
Allow providing certificates through environment variables to be used
for keystone, and provide the basis for doing this for other services.
It cannot be used in conjunction with tls-proxy as the service provides
it's own encrypted endpoint.

Impletmenting: blueprint devstack-https
Change-Id: I8cf4c9c8c8a6911ae56ebcd14600a9d24cca99a0
2013-11-25 22:27:51 +00:00
Jenkins
99da4af55e Merge "Robustify shocco install and config" 2013-11-25 19:35:54 +00:00
Monty Taylor
480309eea5 Allow overriding USE_GET_PIP via env vars
devstack-gate wants to pre-cache and then use get-pip, but we can't
throw the flag currently. Make the flag default settable via env vars.

Change-Id: I661b52670b6ce494666cbdd611e4eee6b96c8321
Partial-Bug: #1254275
2013-11-25 10:20:04 -05:00
Attila Fazekas
3a82319ad7 fixup_stuff prettytable min version
The minimum prettytable version is changed from 0.6 to 0.7
 in the global requirements.

If the system has an older prettytable version the fixup_stuff does not
takes effect in time, because at fixup time the system has the old
version.

Ensure the fixup installs the minimum required version in time.

Change-Id: If1737dacb25db73b68e707953d05576ad8a97da7
2013-11-24 19:21:06 +01:00
Jenkins
f39ecfd41b Merge "horizon: drop nodejs dependency" 2013-11-22 14:41:37 +00:00
Jenkins
dbb5b6cd8c Merge "xenapi: enable user to specify FLAT_NETWORK_BRIDGE" 2013-11-22 13:40:04 +00:00
Jenkins
1fdcbe1d01 Merge "only clone docs from gh-pages branch if they aren't there" 2013-11-22 12:31:59 +00:00
DennyZhang
ca1b85283b Mute false alarm when installing docker
In install_docker.sh, we will restart docker service, then connect
to /var/run/docker.sock with retry mechanism.

At the first contacting with /var/run/docker.sock, when docker
service is not ready, it may complain some error.

Mute this false alarm.

Change-Id: If00a18d2e3ddee951662e272d47ae84215f16ad2
Closes-Bug: #1252087
2013-11-17 15:44:40 -06:00
Steve Kowalik
047cac56e1 Switch the base URL to git.openstack.org
The git repositories on github for openstack are mirrors of the primary
repositories, which are hosted on git.openstack.org, so switch as much
as I can to using the primary, rather than the github mirror.

Change-Id: Idcfda49a691582055256b830c61e098f4a271339
2013-11-16 20:11:35 +11:00
Mate Lakat
2b8814d0ec xenapi: enable user to specify FLAT_NETWORK_BRIDGE
install_os_domU.sh failed, if the FLAT_NETWORK_BRIDGE is found in
localrc. As nova looks up the network by either name-label or bridge
name, it makes sense to enable the user to specify this parameter. As an
example, if the user wants to use name-labels to specify networks, and
those name-labels could be used in domU to create bridges:

VM_BRIDGE_OR_NET_NAME="osvmnet"
FLAT_NETWORK_BRIDGE="osvmnet"

In this case, the domU will know only about a name label, so it could be
decoupled from which xapi bridges used.

This change also adds some fixes (missing double quotes).

Change-Id: I045e367ef441be20c4e8cb8af3c1149392db796b
2013-11-14 11:27:39 +00:00