Commit Graph

26 Commits

Author SHA1 Message Date
Sean Dague dd010f6383 Add WSGI_MODE setting for target
This is needed because we're changing up some things in devstack, and
this ensures the pike defaults don't flip the deployment mode mid way
through an ocata upgrade.

Change-Id: I5aa1e3017365df120fa8c8ea676c63ddf99f21b4
2017-04-17 10:06:43 -04:00
Jenkins 9d374cb9fc Merge "upgrade oslo if required by libs_from_git" 2016-07-25 18:36:40 +00:00
Sean Dague 684b2ed7c2 upgrade oslo if required by libs_from_git
This allows the use of LIBS_FROM_GIT in upgrade testing which will
give you the latest versions of libs from branches on the target as
well as the base.

Change-Id: I33c3dcdada6f5ef7b042ab8c2217ae8eddc951e3
2016-07-20 12:44:18 -07:00
Swapnil Kulkarni (coolsvap) 41202d7756 Correct typos
Change-Id: Ib313bda04ffc003b498e10148ea8d3ff78c0e08f
2016-03-08 10:37:27 +05:30
Davanum Srinivas 388b582c3b Grenade should install prereqs on the new side
When we do an upgrade, there may be new rpms/debs that may be
needed. For example, Swift does not have liberasurecode1 in
stable/liberty as the older pyeclib downloads, compiles and
installs things it needs. However the newer pyeclib does not
and the devstack master has been updated to install newer
items needed by pyeclib in:
Idbc2ca3f677f1b8153ebf3a5912f4354525a55c7

So when we do an upgrade, we should run install_prereqs.sh
from the new devstack to lay down the new dependencies.

Change-Id: Ied844017732461661e3c24e2ce38b413c881bea9
2016-01-25 13:45:48 -05:00
Jenkins 148dc8546a Merge "Adding back the git clone requirements" 2015-11-12 15:39:43 +00:00
Yongfeng Du 92824b001d Adding back the git clone requirements
pip constrains is from requirements repo, but change in devstack
I42e981c8c5ce1b8a57b9f6cce213065c72d6af11a removed the requirements
clone from install_infra, causing the grenade "pip_install -U pbr" fail.
Make changes for grenade accordingly.

Change-Id: Ie228bd9399c5cc9341cc5503f02df90eb42d851f
Closes-bug: #1487259
2015-11-04 15:39:54 +08:00
Ian Wienand cc69365a5a Reduce duplicate imports of functions & stackrc
In devstack openrc -> stackrc -> functions

I think it's fair to say nobody is really thinking about idempotency
when they write these rc files; it's assumed they're sourced once
per-run.  I3ca4e576aa3fb8992c08ca44900a8c53dd4b4163 is an example of
this.

Reduce some of the duplicate imports here by just importing the
top-level (either openrc if that's wanted, or stackrc)

Change-Id: I6fbae12f950a03afab39f341132746d3db9f788c
2015-08-07 10:10:29 +10:00
Chris Dent 74b9b6d917 Remove redudant sourcing of stackrc
Commit 2f0fd969ff added another
sourcing of stackrc in a cleaner place but did not remove the one
that followed a few lines later.

Change-Id: I4ddbdc5f3fec38f317e9b7cf5fa5ed6e29bfa134
2015-06-28 14:15:27 +00:00
Jenkins 202bc11ad5 Merge "Source target functions before calling build_wheels" 2015-06-24 17:02:47 +00:00
Robert Collins 23be267630 Update a misguided comment about pbr and newness.
Change-Id: Id65c7d0ba332d89cfca3a4f9671877e52b990f32
2015-06-23 09:41:48 +12:00
Joe Gordon 2f0fd969ff Source target functions before calling build_wheels
Otherwise we get the error:
  build_wheels.sh: line 61: pip_install: command not found

Since the grenade functions do not have pip_install

Change-Id: I8b0ad682203f77f68a03b9b7f56624df6d15ac50
2015-05-13 11:25:48 -07:00
Dean Troyer 78c87114a4 Install additional pacakges into venvs
Populate ADDITIONAL_VENV_PACKAGES on target side so venvs get
the packages they need.

Depends-On: I9cf298b936fd10c95e2ce5f51aab0d49d4b7f37f
Change-Id: Icc324fe6b0a8464027a624f9773030d08ca7c176
2015-04-22 13:40:30 -07:00
Sean Dague 0e9e26834c consolidate all target setup into prep-target
There were a remarkable number of scripts that we ran during the
target setup phase, that all boiled down to very small
activities.

 - upgrade-devstack - copied 1 file
 - upgrade-infra - cloned gr
 - upgrade-oslo - actually *did nothing* (now that we install
   libraries from pypi)

Consolidating them all into a unified prep-target makes understanding
what's happening on the target setup simpler.

Change-Id: I0a1a41714fd9749857ccfc0825414f331f44ec2a
2015-04-11 13:13:33 -04:00
Sean Dague 6bb23b443f refactor to remove functions-common
This refactor's the grenade code to remove the copy/pasted
functions-common from devstack and instead use the functions from
TARGET_DEVSTACK. In order to accomplish this we need to refactor when
the devstack trees are pulled, so that we always pull both the base
and target devstack trees *extremely* early.

We also need to include a small number of functions (mostly related to
git) in grenade to be able to bootstrap these trees. This is done in
the inc/bootstrap tree.

There are some slightly unrelated function moves into inc/upgrade to
consolidate all the upgrade functions which were scattered through the
codebase for clarity. inc/* will be the contract library interfaces
out of grenade (mirroring devstack).

To do this grenaderc has to be split between variables which can be
set without devstack functions, and variables we compute later. These
later variables will be moved into project specific directories based
on the plugin plan.

Change-Id: I1a2d1a1fed7858c4f3b51a19be2d12cc2d260a24
2015-04-08 07:24:39 -04:00
Dean Troyer bfa23e401b Prepare for Services in virtual env
* Build a wheel cache for the target environment
* Change the target ervice etups to use the new virtual-env
  interface stack_service_install(): keystone, glance, cinder, nova,
  swift, ironic, ceilometer

Change-Id: I1c0bf73d30ec138f2a8321b656c664770be571a7
2015-02-25 10:21:21 -06:00
Dean Troyer 11c51c3f68 Use DevStack functions in upgrade scripts
* Source target DevStack's functions in upgrade scripts to match what the
  project config functions expect.
* Source target DevStack's lib/tls in upgrade scripts that source
  target's lib/keystone (is_ssl_enabled_service())

Change-Id: Iab78d1efb7e40a3a67408f6e9a071723a3e931ff
2014-03-03 08:15:02 -06:00
Joe Gordon da7fb5d7c5 Remove stop nova processes from upgrade-nova
stop-base already stop services, so don't need to do it again in
upgrade-nova. This is needed So we can keep the old nova-compute up for
rolling upgrade testing. Instead of killing the entire screen process
kill all the services inside of it.

stop-base is the preferred place to manage the stop logic, because it
has access to the base devstack's stop-* commands.

Change-Id: Ifa2b6305f1f6bbe41407ca12a0f3cbc99b09f301
2014-02-24 13:31:22 -08:00
Dean Troyer 185e57abe1 Combine localrc files
Use the Grenade devstack.localrc.* files as the 'default' for DevStack
by pre-pending them to the devstack-vm-gate.sh generated localrc.

devstack.localrc is now appended to the combined DevStack localrc
to still allow it to be the final config.  Normally this will be empty.

Change-Id: I18cb963c4baeeeb447bcb1436521100f1372882a
2013-04-05 10:45:28 -05:00
Dean Troyer 808786defa Use common data dir
Paths get stuffed in the database so rather than rewrite them
just leave the data in-place for both versions.  This is how
real upgrades are likely to be done anyway...

Change-Id: I3610d93227b54d4c2f5c832478e7d23afe1bd173
2013-03-26 17:40:04 -05:00
Dean Troyer 67cf5cecc6 sudo rsync in pre-ptarget 2013-02-20 10:59:11 -06:00
Dean Troyer 14dce86817 Upgrade scripts:
* cinder
* nova

* add stop-base to replace <base>/devstack/unstack.sh
2013-02-18 12:27:51 -06:00
Dean Troyer 460413c259 fix image cache dir 2013-02-01 13:31:32 -06:00
Dean Troyer 3c12c2bb14 Setup fixes
* fix base localrc
* set up target logging
2013-01-28 14:57:04 -06:00
Dean Troyer 7ce882cc8c General cleanup:
* Move *_RUN_EXERCISES after localrc
* Fix images cache dirs
* Save cinder database
2013-01-24 16:35:48 -06:00
Dean Troyer ab24c172bd Change terms
* 'start', 'work' -> 'base'
* 'final', 'trunk' -> 'target'
2013-01-23 15:50:42 -06:00