rejoin-stack.sh would not specify screen session name which will lead
unstack.sh unable to kill the screen session started by rejoin-stack.sh
after hypervisor rebooted. So specify the session name if
rejoin-stack.sh need to start a new sreen session.
fixes bug 1182806
Change-Id: I68635887aa82fa63f3667e0f090ea2836eec7b68
It's being used in all of the core projects, so we should install it
at the start so we can ensure that we don't break everything all at
once.
Change-Id: I326d724264803e88315ee9e40f4634836baf6e0b
* Offline use of devstack previously required defining individual
repo overrides. This change maintains support for individual
overrides while adding the ability to override GIT_BASE.
Change-Id: I4ca8b8e69c0fb05a7c9cf2fd4643eac2f7643aa9
for files that don't start with a #! or end in .sh, the added tags
are nice for emacs users to automatically switch to the right mode.
Change-Id: If4b93e106191bc744ccad8420cef20e751cdf902
This patch changes the default network name/floating pool from nova
to pubic as the name public makes more sense than nova for a public
network.
Change-Id: I4153750c08d1510dbad3051681e8c142a79fe1a1
* Clean up interactive configuration
* Complete moving initialization of service-specific varialbes into the
service lib/* files.
* Cosmetic cleanups
Change-Id: Iea14359bd224dd5533201d4c7cb1437d5382c4d1
* USE_SCREEN defaults to True, set it to False to exec the services
directly via bash. SCREEN_DEV is still supported until the CI
scripts get updated.
* The extra logging file descriptors are properly closed in the child process
and stdout/stderr are redirected to the log files.
* The screen_rc() call is still present; this means that stack-screenrc will
have a complete record of what was started and rejoin-stack.sh may be able
to re-create the setup under screen.
* The python interpreter was unwilling to write to the log files without
unbufering stdout by using PYTHONUNBUFFERED. This feels hackish and should
be investigated further.
Change-Id: I012ed049f2c8b185a2e6929d73edc29e167bc21f
* Move shared volume configuration from stack.sh to stackrc
* Move Nova network and vnc/spice configuration settings from stack.sh
into lib/nova
* Rename NET_MAN to NETOWRK_MANAGER to match nova.conf attribute name
Change-Id: I9bd2955def553499aa832eda1f0959afe494206a
swift port selection is still really suboptimal. 6011 is often used
by ssh x-forwarding, so if you are sshed into the box with
x-forwarding, then one of the swift services doesn't start.
disable this until we figure out a better path to port selection.
Change-Id: I62b9f96f24118ddfc962715e55b34c05dbe03a1b
- Set by default SWIFT_REPLICAS to 1 since this is the most common use
case when using it in devstack.
- If we have swift_replicas to 1 launch the object container account and
proxy servers in foreground in screen.
- Allow any s- services if we have just 'swift' in service enabled
instead of having to specify all s- services to enable swift. This will be
removed in the future.
- Set object server starting at 6013 instead of 6010 to not conflict
with remote ssh x11 forwarding.
Change-Id: I890b6953b70283bfa0927fff0cf5e92f3c08455b
* The variables pointing to repositories were not using the GIT_BASE for
github.com
* Some repositories were missing the .git tail
Change-Id: I551179bed90c04682e8a22985241a4bddca23351
This reverts commit 5a5cbf7274a6a50bb766ec590cf885430ed5c5d0.
This breaks on a default openstack install on Ubuntu 12.10,
revert for now until this can be cleaned up to work out of the
box.
Change-Id: I185509cc30bd28e920cdab60fc92129949bd6b0d
- Set by default SWIFT_REPLICAS to 1 since this is the most common use
case when using it in devstack.
- If we have swift_replicas to 1 launch the object container account and
proxy servers in foreground in screen.
- Allow any s- services if we have just 'swift' in service enabled
instead of having to specify all s- services to enable swift. This will be
removed in the future.
Change-Id: I496f79e14f99bd7e9f2c7deee12a4b6e935c3a5b
Select a database by adding it to ENABLED_SERVICE like the other
services. This greatly simplifies using the lib/* functions in
places other than stack.sh
Backward-compatibility is maintained or now (into havana at least).
Change-Id: I967e44603b4d69d5d70e1a75a9938172ca434025
cirros 0.3.1 images have several significant improvements over 0.3.0, including:
* newer kernel (3.2.0-25.40)
* support for more filesystems (vfat, iso9660)
* support for configdrive (config-drive-v2) as a datasource
* acpi reboot/shutdown
* curl with https support (previously there was no way to get https urls)
Change-Id: Idd7bef0cebb941f77d1cead9dc990fa0b03ff46b
We have seen a number of failures in ci where a host is overloaded
and the 1.5 second sleep before stuffing data into screen is not
long enough. This means the service doesn't start and tests fail.
This change adds a config option to allow us to turn off the developer
friendly option to stuff text into the screen. When SCREEN_DEV is
set to False it will use a simple exec in screen instead of stuff.
This should be far more reliable because we don't have to wait
for bash to start.
Change-Id: I7f1b5dbf5329b23507cb767d54a2795be0d73e01
STACK_USER needs to be set for more than just stack.sh, there
was no real distinction for using DEFAULT_STACK_USER instead
of just setting STACK_USER directly in stackrc and allowing it
to be overridden in localrc.
Change-Id: I9e8d70db29bb421f1ce3dbf40a5ad299cc7ea785
Add a new service 'n-spice' which is off by default, but can
be enabled to turn on SPICE support in the Nova libvirt driver.
Also if neither n-novnc or n-xvnc are enabled, then disable
VNC support. This allows running in a SPICE only environment.
The spice-html5 repo will be checked out to support the Horizon
client integration
Change-Id: If74fad33a7b491450afd823758d35b06ebe72cb9
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
On many systems the requiretty sudoers option is turned on by default.
With "requiretty" option the sudo ensures the user have real tty access.
Just several "su" variant has an option for skipping the new session creation step.
Only one session can posses a tty, so after a "su -c" the sudo will not
work.
We will use sudo instead of su, when we create the stack account.
This change adds new variable the STACK_USER for
service username.
Change-Id: I1b3fbd903686884e74a5a22d82c0c0890e1be03c
heatclient was moved to the official openstack repo. Thanks Simon
Pasquier for the patch.
Change-Id: I561bf1ea11f1c74b5e75ab93170bd367ba36f90f
Fixes: bug #1096922
Ceilometer client CLI is helpful to develop ceilometer related code. Add
it to devstack also involve more developer to use it.
Change-Id: I4147e50c00cb520ec15d63a0c34524ba8cb6654f
Signed-off-by: Yunhong, Jiang <yunhong.jiang@intel.com>
Use bm_poseur to create VM and network bridge
so that, in the absence of physical hardware,
baremetal driver still has something to manipulate.
Change-Id: Id80ede13a35e4380f358b47f08d41ff98ea9d70f
New files for baremetal driver:
- lib/baremetal
- files/apts/baremetal
Adds two dependencies:
- google shell-in-a-box
- diskimage-builder
Enable by setting both:
VIRT_DRIVER=baremetal
ENABLED_SERVICES="$ENABLED_SERVICES,baremetal"
Change-Id: Ibf6fe1671a759a449c9eb0df47751d1b31ade591
* Adds lib/tls to create test CA/certs
* Start proxy if 'tls-proxy' is enabled
* Configure keystone service catalog for TLS
* Tear down proxy in unstack.sh
* Set auth protocol and ca-cert chain in openrc
* Add DATA_DIR to stackrc
This is the first in a series of patches to enable TLS support
for the service API endpoints.
Change-Id: Ia1c91dc8f1aaf94fbec9dc71da322559a83d14b6
turn on tempest by default, as that will provide the end users
with a testing environment to use with openstack out of the box.
Change-Id: I74160a25cfbc6325eea30c81df36e6acbb938bfd
* Set base default env vars in lib/quantum
* Rename common dirs to match devstack conventions
Q_CONF_FILE -> QUANTUM_CONF
QUANTUM_CLIENT_* -> QUANTUMCLIENT_*
Change-Id: I7a2a92b50ef953195f078ac62cb975f28892c05c
Main heat repo has now moved under the github openstack project
Note the old checkout will require removal to trigger stack.sh to
re-clone it from the new location
Change-Id: I4163e35cad7c319961d42f0c53a68ec6244508ed
Signed-off-by: Steven Hardy <shardy@redhat.com>
This reverts commit 6e3330967c5c7be73a8ffee3779c214768683c56
This is in fact useful to an admittedly small population. And if I had not been on vacation I'd have -2'd it...
Do not require every script that sources stackrc to also
source lib/databases.
* Move use_databases() to functions
* Set DATABASE_TYPE in stackrc
* Allow setting DATABASE_TYPE in localrc to work
(use_database() essentially just sets DATABASE_TYPE at this stage
so continuing to use it is equivalent)
* Validate DATABASE_TYPE in stack.sh.
* Change sudo to postgresql user to go through root to eliminate
password prompt
* fix use_database error condition
Change-Id: Ibb080c76e6cd7c6eebbb641a894d54b1dde78ca6