1011 Commits

Author SHA1 Message Date
Sean Dague
b83c365cf5 clean up whitespace on stack.sh
Change-Id: If73435968cfbd0dd3cc519f0a30e02bec5fcb386
2013-10-22 13:02:29 -04:00
Jenkins
8d3beb673c Merge "Don't kill nova-bm-deploy-helper prematurally" 2013-10-22 15:56:46 +00:00
Jenkins
5ff07b9a8e Merge "Don't kill sar prematurally in devstack-gate" 2013-10-22 15:52:36 +00:00
Jenkins
e394ac37a9 Merge "Fix typos and thinkos in docs" 2013-10-22 13:20:31 +00:00
Jenkins
a2ad9bed50 Merge "Do not install pip when OFFLINE=True" 2013-10-22 13:05:51 +00:00
Jenkins
21178a1c74 Merge "detect failure of 'keystone token-get'" 2013-10-22 12:36:29 +00:00
Jenkins
4d23ff525e Merge "Install Ironic client" 2013-10-22 12:29:27 +00:00
Dean Troyer
b8dd27bf45 Fix typos and thinkos in docs
Updates for the new major features and some clarification

Partial-Bug: #1235626

Change-Id: If2da63e62a14894e498b4163b5052d9b2b2069ed
2013-10-21 11:20:42 -05: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
Mehdi Abaakouk
c01e6a789e Don't kill nova-bm-deploy-helper prematurally
This change ensure that 'nova-baremetal-deploy-helper' process is
not killed by stack.sh when USE_SCREEN=False

Change-Id: I84f6f3c3d09bf0cd0d4c5d94eb486a1f7d0b1d0f
2013-10-17 19:20:15 +02:00
Mehdi Abaakouk
a20c620c7d Don't kill sar prematurally in devstack-gate
This change ensure that 'sar' is not killed by stack.sh when USE_SCREEN=False

Fixes bug #1238482

Change-Id: Id354619a43c27eabbc57f61ba33be2a9493244aa
2013-10-17 19:20:15 +02:00
Arata Notsu
8b5d3cf3df Do not install pip when OFFLINE=True
install_pip.sh trys to fetch pip from the internet even if
OFFLINE=True. It causes stack.sh to fail if the environment
is actually disconnected from the internet. With this patch,
stack.sh skips install_pip.sh if OFFLINE=True.

Change-Id: Ica9e5cfa0a4ee684c05393896c2fd6ddbd9ccd06
Closes-Bug: 1240956
2013-10-17 21:44:42 +09:00
Dean Troyer
cdf3d76647 Add stack phases to extras.d handling
Add hooks to stack.sh, unstack.sh and clean.sh to call the extras.d
scripts at multiple points in stack.sh.  This allows these scripts to
perform installation and startup tasks at similar times as they would
if integrated into stack.sh.

extras.d/70-tempest.sh is present as an example of the structure
of these scripts.

See extras.d/README.md for more information.

Change-Id: Ic1fe522559b94d204d6c0319a2e3d23684c8d028
2013-10-15 16:13:47 -05:00
Roman Prykhodchenko
43e00660c3 Install Ironic client
Since python-ironicclient was published to github it's
reasonable to include it to the default Ironic set up.

Change-Id: Id1d0209959a3b482977b5e710c0885c714ad7e10
2013-10-15 17:03:15 +03:00
Jenkins
0bdd8eba70 Merge "Convert remaining hypervisors to plugin model" 2013-10-14 20:09:44 +00:00
Jenkins
c5a1b05eba Merge "Add meta-config via local.conf" 2013-10-14 17:49:26 +00:00
Dean Troyer
893e66360c Add meta-config via local.conf
This defines a new local.conf file that is designed to take the place of all
of the 'pass-through'[1] configuration options that have been defined in DevStack.

* new local.conf file can contain multiple config file settings to be
  merged in to existing project config files
* localrc can be embedded into local.conf and will auto-extract if
  localrc does not exist
* Adds functions get_meta_section(), get_meta_section_files(),
  merge_config_file() and merge_config_group()
* Adds EXTRA_OPTS, EXTRA_BAREMETAL_OPTS, Q_DHCP_EXTRA_DEFAULT_OPTS and
  Q_SRV_EXTRA_DEFAULT_OPTS to the deprecated warning list at the end of stack.sh

[1] Pass-through options are those that do not configure or change DevStack's behaviour
but simply set a value in a project config file.  This includes most of the EXTRA_XXX_OPTS
configuration variables.

Change-Id: I367cadc86116621e9574ac203aafdab483d810d3
2013-10-11 11:41:58 -05:00
Dean Troyer
8c032d1635 Convert remaining hypervisors to plugin model
Convert BareMetal, OpenVZ, PowerVM hnd libvirt ypervisor configurations
in Nova to the new plugin setup.

Change-Id: I47d744a2c9fdda0771f5b473ec3b26fb099f7439
2013-10-11 11:30:56 -05:00
Jenkins
67f7da2de2 Merge "Use the rdo havana repo with the RHEL family" 2013-10-08 21:37:18 +00:00
Jenkins
016511c5f1 Merge "XenServer hypervisor plugin" 2013-10-08 15:39:43 +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
Adam Spiers
5946b57bb2 Show where files are copied for sudo switch to stack user
The home directory for the 'stack' user defaults to /opt/stack, which is
not obvious to devstack newbies, and can also be overridden by exporting
a value for DEST.  Therefore it's friendlier to be explicit about the
location of this home directory, to which devstack is copied before
being run as the 'stack' user.

Change-Id: Ia1941a5f2f8cf86a06681e85da52b817a855b8ff
2013-10-01 17:51:41 +01:00
Jenkins
30de41de23 Merge "vSphere hypervisor plugin" 2013-09-29 11:39:59 +00:00
Attila Fazekas
dc0bd1a886 Use the rdo havana repo with the RHEL family
In devstack viewpoint there is not too much differences at the moment.
But using the grizzly named repo close to havana release, was strange to me.

Switching to the repo link which does not have a version like '-3'.

Change-Id: Ib421d50d19baeeeff264aa0cb9c105fffcf572f8
2013-09-28 11:42:35 +02:00
Jenkins
496273101e Merge "fix tee errors" 2013-09-26 18:04:38 +00:00
Dean Troyer
7b7bc9209a vSphere hypervisor plugin
Convert vSphere hypervisor configuration in Nova to the new plugin setup.

Change-Id: Ibf6f5918e6a8d8a7b7784dac832d806e993cff8f
2013-09-25 20:52:38 -05:00
Mate Lakat
de60f48ad9 fix tee errors
Do not specify /dev/fd3 directly, use >&3 instead. This change enables
to use stack.sh as an upstart script, and with VERBOSE=False, it will
print the expected messages.

Fixes bug 1230342

Change-Id: I6e3a81fd435e8c46d553bfdee08f8bf42d0f4387
2013-09-25 16:03:28 +01:00
Dean Troyer
f4bd16ac84 fake hypervisor plugin
Convert fake hypervisor configuration in Nova to the new plugin setup.

Change-Id: I8b1404ee97a2a65f0884efae642b98bb134cb2aa
2013-09-23 14:07:50 -05:00
Dean Troyer
9a532b8447 XenServer hypervisor plugin
Convert XenServer hypervisor configuration in Nova to the new plugin setup.

Change-Id: I8916560ca3f2dae8b8d8bcb60b7aa2eb5984cbcb
2013-09-23 13:49:59 -05:00
Jenkins
b305eeea1b Merge "Only run chmod/chown for local files" 2013-09-15 14:05:25 +00:00
Nikhil Manchanda
0cccad43aa Added Trove (Database as a Service).
- Added changes to stackrc for the Trove Repos.
- Added support to devstack for "install", "configure",
  "init", and "run"

implements blueprint:trove-devstack-integration

Change-Id: Ib3f6daad33e629f764a174b80762c808ce8588e2
2013-09-11 23:48:07 +00:00
Doug Hellmann
e700267e33 Only run chmod/chown for local files
When the /opt/stack directory is NFS mounted, chown to
the local user might not work. Create safe_chown and
safe_chmod functions that do nothing on NFS filesystems
to avoid spurrious errors.

Change-Id: Iaa68879e867a4426b1990d4d46164769177dc7cc
2013-09-10 15:15:58 -04:00
Jenkins
58afc72983 Merge "Move RHEL6 hacks to tools/fixup_stuff.sh" 2013-09-03 20:04:44 +00:00
Jenkins
630d03e77a Merge "Basic support of Ironic" 2013-09-03 16:19:06 +00:00
Dean Troyer
49ba22460b Move RHEL6 hacks to tools/fixup_stuff.sh
Change-Id: Ice983bc16379bc2bc25659c37cfc16b63fdfc34b
2013-08-30 15:20:59 -05:00
Dean Troyer
2aa2a89cdb Add support for Docker as Nova hypervisor
* Add basic support for hypervisor plugins in lib/nova_plugins
* Add lib/nova_plugins/hypervisor-docker to use Docker as a Nova
  hypervisor.
* Add tools/install_docker.sh to install the Docker daemon and
  registry container, download base image and import
* Configure Nova to use docker plugin
* Add docker exercise and skip unsupported ones

Nova blueprint: new-hypervisor-docker

Change-Id: I9e7065b562dce2ce853def583ab1165886612227
2013-08-28 22:36:48 -05:00
Roman Prykhodchenko
ce696b60d7 Basic support of Ironic
Ironic is an OpenStack project than brings a
separate service for baremetal provisioning.
Currently Ironic is in incubation but it needs
to have basic support in devstack to provide
automatic deployment testing.

Change-Id: Ide65a1379fa207a6c8b2c7d9a4f9c874b10fd9ba
2013-08-22 12:30:51 +03:00
Jenkins
4f9d040fce Merge "Allow disabling of debug logging" 2013-08-13 17:24:53 +00:00
Jenkins
af9a6cfb23 Merge "Force $DEST to have wider permissions" 2013-08-13 02:08:04 +00:00
Ben Nemec
039979424b Allow disabling of debug logging
I find that enabling the debug log level often causes me to miss
important error messages due to the sheer volume of information
logged.  This change allows configuration of the debug option
in a number of the projects so it can be disabled globally
without having to make one-off changes after each re-stack.

Note that this does not apply to Keystone or Swift right now.
They use a different method to configure their logging level and
I'm not as familiar with them so I didn't want to mess with their
settings.

Change-Id: I185d496543d245a644854c8a37f3359377cb978c
2013-08-12 15:01:39 -05:00
Dean Troyer
9acc12a392 More Python package fixes
* Add tools/fixup_stuff.sh to fix prettytable and httplib2 install
  with pip 1.4+
* Cache downloads properly in tools/install_pip.sh

Change-Id: I482590cb91f7a10c1436bc9015afd572ac1cc73e
2013-08-10 16:44:17 -07:00
Bob Ball
376b631660 Force $DEST to have wider permissions
This is particularly useful in the case where we create the
home directory above and the permissions are too strict.

Other users, such as the apache user, need read/execute for this
directory.

Change-Id: I908d993dbcd863b482030afcc04e5e7b9f4cffa1
2013-08-10 14:49:10 +01:00
Jenkins
b690a8f00e Merge "Add tools/install_pip.sh" 2013-08-08 21:23:27 +00:00
Dean Troyer
62d1d698a0 Add tools/install_pip.sh
Install a known working recent version of pip that handles installation
dependencies more correctly than before.  Extract to a separate script
so it can be used apart from stack.sh.

* Install distro setuptools if it not already present
* Install pip from source tarball as get-pip.py proved to be unreliable
* Remove python-distribute and python-pip from all prereq files,
  move python-setuptools to 'general'
* Remove the earlier unfubar_setuptppls() call that attenpted to fix this
* Only update requirements.txt when no changes in repo

Tested on Precise, F18 and CentOS6.
* Fedora and RHEL allow pip to install packages ON TOP OF RPM-installed
  packages.  THIS IS BROKEN.  And is one reason we have to be so picky
  about order and so forth.

Change-Id: Ibb4b42119dc2e51577c77bbbbffb110863e5324d
2013-08-07 20:28:56 -05:00
Jenkins
48ceda667d Merge "Don't uninstall packages when on xenserver" 2013-08-06 20:11:27 +00:00
Jenkins
aa9274fe08 Merge "Run Neutron migrations after creating schema" 2013-08-06 17:14:10 +00:00
Monty Taylor
985debe5ce Don't uninstall packages when on xenserver
It turns out our fix for package madness breaks when running on
xenserver. Put in a simple exclusion for that case until we figure out a
more total and systemic solution to everyone's problems.

Change-Id: I491917015337f83206937c53949a62aa63f4679f
2013-08-06 11:45:07 -03:00
Salvatore Orlando
dd64988ff4 Run Neutron migrations after creating schema
Partial-Bug 1207402

This patch executes Neutron DB migrations (based on alembic)
before starting the Neutron services, similar to what happens
for most of other openstack projects managed by devstack.
This will ensure devstack always creates correctly version-stamped
Neutron databases.

Change-Id: Ia941c426a1563bcc4cb5eae64ea30c0bf7677220
2013-08-06 02:42:08 -07:00
Sean Dague
6c84463071 Update projects to global requirements before setup
We've agreed that we should be using global requirements, so
force projects to be updated to global requirements before we
test them.

Co-Authored-With: Monty Taylor <mordred@inaugust.com>

Change-Id: I0652f639673e600fd7508a9869ec85f8d5ce4518
2013-08-05 16:22:32 -04:00
Jenkins
74af8ed00f Merge "enable apache2 server as front end for swift" 2013-08-02 12:24:11 +00:00