the comments in here were largely about oneric, which we don't
support any more. service is installed in a precise environment,
and will support debian and the upcoming transition to systemd
better, so use that instead.
Change-Id: If15493549a8c93a7387df9b3bba31443aed46995
Check that function calls look like ^function foo {$ in bash8, and fix
all existing failures of that check. Add a note to HACKING.rst
Change-Id: Ic19eecb39e0b20273d1bcd551a42fe400d54e938
RHEL6 doesn't support this flag so the restart fails. Not exactly
sure why it is required, seems unchagned from the initial
commit 67787e6b4c6f31388cbee6d83b67371b31c443d4
(found running stack.sh with -e per [1])
[1] https://review.openstack.org/#/c/71996/
Change-Id: Ib34c3663409d7b96b932286cb5a6974e940075d3
migrated most keystoneclient commands from the following libs:
ceilometer
cinder
ironic
keystone
marconi
neutron
nova
savanna
swift
trove
Also need to set and unset openstackclient specific environment
variables from stack.sh
Change-Id: I725f30bc08e1df5a4c5770576c19ad1ddaeb843a
The devstack/lib/cinder file has a number of third party
driver config options hard-coded in it. Rather than add
yet another if driver== statement here let's use plugin
files and do something similar to what's already
in place for nova_hypervisors and neutron plugins.
This works the same way folks were implementing their
drivers already, the key is to use a CINDER_DRIVER
variable in your localrc file that matches the name
of the lib/cinder_plugin file to use.
The existing third party driver entries that were
in lib/cinder have been migrated to cooresponding
plugin files.
Change-Id: I4ee51ea542d5aa63879afd5297311a9df727c57f
This converts the special cases in the is_service_enabled() function to call
individual functions declared by the projects. This allows projects that
are not in the DevStack repo and called via the extras.d plugin to handle
an equivalent service alias.
* Ceilometer
* Cinder
* Glance
* Neutron
* Nova
* Swift
TODO: remove the tests from is_service_enabled() after a transition period
Patch Set 2: Rebased
Change-Id: Ic78be433f93a9dd5f46be548bdbd4c984e0da6e7
cinder_rootwrap support in devstack handled a number of now-abandoned
use cases:
- no $CINDER_DIR/etc/cinder/rootwrap.d (old-style rootwrap)
- using oslo-rootwrap instead of cinder-rootwrap (abandoned experiment)
This change removes unused code paths and aligns
configure_cinder_rootwrap() with configure_nova_rootwrap().
Change-Id: I387808dae0e064cc9c894c74ab78e86124f08dd2
The list of services that Tempest used to set its 'service_available'
config values was hard-coded. To be plugin-friendly have each
service (project) add its name to the TEMPEST_SERVICES variable
and use that for setting the 'service_avilable' values.
Change-Id: I208efd7fd0798b18ac2e6353ee70b773e84a2683
* Clean out data, log and state dirs
* Include lib/apache to clear is_apache_enabled_service not found error
* Clean errors removing tgt config files
* Clean errors removing VG backing file in lib/cinder
Change-Id: I33dfde17eb8daaaed7f7e76337fe6a8085a266bf
* Save PID when using screen in screen_it()
* Add screen_stop()
* Call out service stop_*() in unstack.sh functions so screen_stop()
can do its thing
Closes-bug: 1183449
Change-Id: Iac84231cfda960c4197de5b6e8ba6eb19225169a
Separate out Cinder's rootwrap configuration so that it can be called
from Grenade's upgrade scripts. This follows the same model as Nova uses
with configure_nova_rootwrap() which can be called from Grenade to
refresh rootwrap config.
Change-Id: Id808abc2b5754443362b3de4b3453e305d3720f3
Due to the fact that keystone will not allow services with
duplicated names, cinder and nova services names were
changed
Closes-Bug: #1259425
Change-Id: I988aef477b418a289426e02e5e108aa57dd1076b
The version of the authentication url is set to v1.0 for some
projects by default. We can make it configurable via the parameter
"$IDENTITY_API_VERSION".
Closes-Bug: #1253539
Change-Id: I6640e345d1317b1308403c95b13f8a998320241b
Make lib/cinder support both cinder-rootwrap (current case) and
oslo-rootwrap (future case) to handle the Cinder transition towards
oslo-rootwrap usage peacefully.
Related blueprint:
https://blueprints.launchpad.net/cinder/+spec/cinder-oslo-rootwrap
Change-Id: I663986304bd74cb6d72d51c553540fb5f9db1d1d
Cinder currently only applies the volume_clear setting from the DEFAULT
section of cinder.conf if you're using a single backend.
The Cinder team has determined this is a 'wishlist' item to propagate
volume_clear to each backend, but it does impact usability and
performance.
To improve the performance of running Tempest with multi-backends in the
gate, workaround the bug in devstack.
Related-Bug: #1255593
Change-Id: Ia0ff5422f53eeda9a3ac4336eefec3b9bdea6da2
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
Quite easily one ends up calling ./stack.sh in an environment that,
albeit being user "stack" (for example), doesn't quite meet the
expectations of devstack. The errors that follow can be rather hard to
track down, as the dependency on `USER` is not mentioned.
To remedy this situation, this commit
- uses STACK_USER instead of USER and
- mentions that dependency in the script headers of lib/*
Change-Id: If4cdc39b922ea64b4c0893a0e695ec06349fccc5
Address miscellaneous issues with Markdown formatting in comments which
are consumed by shocco when generating the online documentation.
Change-Id: I953075cdbddbf1f119c6c7e35f039e2e54b79078
This patch allow to use nfs as cinder driver.
To use it, in the localrc we can now set
CINDER_DRIVER=nfs
CINDER_NFS_SERVERPATH=172.16.0.50:/export_cinder
The nfs-server is not setup by devstack.
Change-Id: I8e240d00b58f272d04ab2c0922c551b1f7266260
Updates lib/cinder so that we use the application config file (cinder.conf)
instead of the Cinder api-paste.ini config file.
Related-Bug #1240753
Change-Id: I6636d33ee522757145ac97fc354324a8b9379700
Now oslo code include new lockutils. According this code
if lock_path is not set in configuration file, will be
raised Error message.
So for updating lockutils in cinder project is needed
lock_path definition in configuration file.
Change-Id: I413f0a2ccec0f9d9e06acaa8cc06c41206d9dcc2
Bug 1214616
This patch adds colors to on-screen Neutron log output in the same way nova,
cinder, and heat engine do.
To this aim, colorized logging configuration has been moved to ./functions.
The reason for this refactoring is that these instruction are the same or
very similar for each project, with the only exception of the target
configuration file.
Change-Id: Idf0d1b842bb9ab046c9ef826de1dfc55b3f1df9d
Then cinder installed in multinode environment with more than one interface,
it's better to use CINDER_SERVICE_HOST option for cinder ip address.
Change-Id: I775b70407379d9c97696f536f5f89cecb33657be
Update keystone cli by changing parameter options (user_id, role_id and tenant_id)
to use '-' rather than '_' in the method user_role_add and consequently the method
user_role_remove without maintain backward compatibility because these are deprecated.
python-keystoneclient - Bug #1150434
Change-Id: Ia5113718eb050cf7dba443b8d0caf3bdaa1730f0
The review https://review.openstack.org/#/c/41600 was update to
have a 'vmware' prefix for all of the VMware cinder settings. These
were previously in a 'vmware' section and now they are in the
'DEFAULT' section.
Change-Id: I8eadfb0f64914d3b0667760aff651415df48f627
Add bash completion rules to the /etc/bash_completion.d from the
cinder, neutron, keystone, nova and nova-manage.
This is very fast operation and makes the cli usage easier.
Change-Id: Icdcdaf55d58efaaa1afe25fd55f088bf7dc8b3f1
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
Support both SQL and templated keystone backend. This will add an
additional endpoint to go with v1.
Change-Id: I19168d55c2ffad2b1cd668b6c1341dc8e49e9c1f
Add an ability to ask keystone about users and groups
through keystoneclient in cinder.
blueprint volume-acl
Change-Id: Ice261e9709833d057722b4f13c404df54e10b204
There are cases where the timing between the start up
for cinder-volume and cinder-scheduler service can result
in a race where the scheduler doesn't know about the volume-service
until the next periodic update.
This change does attempts to do an easy fix by swapping the start
order of the cinder services to ensure that the scheduler will be
able to receive the volume service capabilities update.
Fixes bug: 1189595
Change-Id: I8f477ddc04c15c04493f7ce6863e08e1de8f0128
The default volume backing size is ~10G now.
Changing the comment to be more future-proof by including
the shell variable name.
Change-Id: I27879b240f3f8348fa069853de18e47871ce00d2
Cinder clones are slightly larger due to some extra metadata. RHEL6
will not allow auto-extending of LV's without this, leading to clones
giving hard-to-track disk I/O errors.
See https://bugzilla.redhat.com/show_bug.cgi?id=975052
Change-Id: I09a5e061a9665c5310383f9f9eb281bfdc8e416d