Commit Graph

15 Commits

Author SHA1 Message Date
Corey Bryant 2541283a7f Add package-upgrade action
The package-upgrade action is similar to the openstack-upgrade action
except that it performs package upgrades within the current openstack
release. If a new openstack release is available, the package-upgrade
action will not perform any upgrades.

Sync common files from release-tools, with modifications specific
to this layer.

Change-Id: I4eaee81e05d44d9649c37d397672d263bc2a1025
2022-01-19 17:20:07 +00:00
Alex Kavanagh 8100de4b24 Ensure that Endpoints are discovered for openstack-upgrade
Charms that use the openstack-upgrade action have the option (by
default in charms.openstack) to re-render their configuration files
after the packages have been upgraded.  If that charm has interfaces
that are based on the charms.reactive Endpoint class, then they need to
be discovered by the charms.reactive framework so that they can be
'found' by the from_flag() function when constructing an adapters
instance for the render function in charms.openstack (and ultimately
charm-helpers as a context).,  This involves running the
hookenv._run_atstart() function.

Closes-Bug: #1908267
Change-Id: Idfeac39b6d9974bcbbe1891623ff09cc447d87bb
2020-12-17 12:19:18 +00:00
Ghanshyam Mann b3a0a21f8d [ussuri][goal] Updates for python 2.7 drop
OpenStack is dropping the py2.7 support in ussuri cycle.

charm repos need few updates on either py2 drop or updating
ussuri python template, tox.ini etc.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I6549595dff4219b831680624315e36e95fccf2d2
2020-03-24 17:17:05 +00:00
Camille Rodriguez c2b458ae14 Avoid pollution and false positives with tox.ini
- added mising test-requirements.txt file
- updated testenv build to build in a tmp folder outside of src
- removing sitepackages in tox.ini to avoid test env pollution
- skip_missing_interpreters in tox.ini set to False to avoid false
positives by skipping missing interpreters.

Change-Id: I7985b07bb215ad43403a3e581197d5e139b603ac
2019-08-28 14:57:58 -04:00
OpenDev Sysadmins 2c449e6cee OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:49:39 +00:00
Liam Young 9938f45e9f Support action managed upgrades
Add action for running OpenStack upgrades. This enables a service
to be upgraded one unit at a time.

Depends-On: I33947c474b70c5cd4722688567ba55370b805f65
Change-Id: Ic290ac6fecff0eb9d0efd3fc8ac3f6ea923ee268
2018-11-06 09:00:25 +00:00
Doug Hellmann 85c216c8a5 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I499030b8cc7747ef0169a69cef9927c5b50c1677
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:39:39 -04:00
Doug Hellmann cce6beaff6 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I69ddbf6261893ab87b56a73b44aa91a0049bbad3
Story: #2002586
Task: #24317
2018-09-11 13:15:37 -04:00
James Page 29f21f3e1e Add gitreview file for migration to openstack 2016-07-01 12:00:36 +01:00
James Page 095f04aba5 Add basic tox targets for pep8 and build test 2016-07-01 10:31:25 +01:00
James Page 0e4963b834 Add a README 2016-07-01 10:10:20 +01:00
James Page e2b805b981 Switch apache licensing method 2016-07-01 10:07:02 +01:00
James Page 1a43d4cdd4 Tidy docs on config options, drop surplus test files 2015-12-14 17:14:43 +00:00
Liam Young c2cee68744 Move logging options into base 2015-12-14 15:52:23 +00:00
Liam Young 3dc4b73c67 Initial commit 2015-12-14 12:34:06 +00:00