Commit Graph

15 Commits

Author SHA1 Message Date
yazansalti 856a94cba0 Fixing typos in the README file
Found some typos in the README file and this commit is to fix them.

Change-Id: Iba31cab4dbf8a8ff348dafcefdffca1ba244d7fe
2022-04-22 08:41:41 +02:00
James Troup 10627ee5f9 Update chat system.
Change-Id: I77320000915bfdd65c5f6b306a8df99d3624fbc4
2021-09-25 01:17:16 +01:00
cloud-padawan 1fe4e411cf component: Removed extra e from Openstack title
Change-Id: I71b58e0caa21cf915b60577ecd5ef0a2fda582eb
2019-04-04 11:55:26 -04:00
inspurericzhang 106434ef4e [Trivial Fix] Remove the repetition words
Although it is trivial mistakes, it affects reading.

Change-Id: I55778284c989ec1db6c33f34973bb01a00edea19
2019-01-07 11:31:12 +08:00
melissaml 2b8d66466d fix typos in documentation and codes
Change-Id: I962036afb1a1e59142ae673c54d32f249bad2280
2018-05-24 15:14:39 +08:00
Guoqiang Ding 389d928ba5 Fix the misspelling of "configuration"
Change-Id: I6e861167dc1b02d823d82b5d688b873f75b49518
2017-12-21 21:14:18 +08:00
Alex Kavanagh 1e3095124e Change assess_status() method to be deferred and run once.
This change makes the assess_status() method to be deferred until the
end of the hook execution.  This is to ensure that the (expensive)
assess_status() functionality is only run once, even though it may be
called multiple times from reactive handlers that need to update the
status on the charm.

This uses the hookenv.atexit() function to queue an function that calls
_assess_status() on the charm singleton after all the reactive handlers
have run.  If no handler calls the assess_status() method then the
_assess_status() 'real' method won't be called for that hook invocation.

Change-Id: I5d405446761a646585dfa1c446009e4374c01000
2017-05-12 16:53:06 +01:00
Jenkins a996530d41 Merge "charms.openstack charms don't open ports" 2016-12-14 15:52:47 +00:00
Alex Kavanagh 85424086df charms.openstack charms don't open ports
This patchset adds a new method to the OpenStackCharm() class called
'update_api_ports()' which, by default, uses the api_ports static member
of the same class to expose the ports using the Juju 'open_port' and
'close-port' commands. This method will open any ports that aren't
already open and close any ports that shouldn't be open according to the
Juju 'opened-ports' command.

The 'api_ports' static member can be overriden by providing a simple
list (or other iterable) to the method call.

By default, the default 'install' method on the OpenStackCharm() class
now calls update_api_ports() after it has installed the packages.  This
is normally what a charm would want to do: install the software, which
usually results in it starting, and then expose its ports. In order to
disable the default behaviour, it is necessary to completely override
the default install() method.  This is intentional, as the charm should
normally expose its api_ports.

Also, the update_api_ports() is called from the (new) update_charm()
method which can be accessed using a defaults 'update-charm'.  This is
so that ports can be changed when a charm is upgraded.

Change-Id: I4c61179cc6217f4407340a9205619c04b35661a9
Closes-Bug: 1646089
2016-12-14 15:32:36 +00:00
Flavio Percoco 7430e988e7 Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

https://gist.github.com/c913b86e456955742619d7edf0fe57af

Change-Id: I63c3a9aaaec2d08c2f582b9eec93bbe0a3c4bd00
2016-11-25 19:26:47 +01:00
Liam Young ccc49ef5ac Support charm upgrades to new OS release
An OpenStack principle charm has an 'openstack-origin' configruation option.
This is used to setup the package source for a charm. If a user updates this
option to point at a package repository then the charm can be configured to
automatically upgrade. This patch adds support for this upgrade scenario.

Change-Id: I3a967b8a8f27e9fd1dd5ab0e5e9e110132308d42
2016-07-15 09:37:44 +00:00
James Page a70b14b97f Drop travis configuration, update for gerrit
All unit and linting is run pre-commit in OpenStack git/gerrit;
drop travis CI configuration and associate build status message
in README.

Add .gitreview file for OpenStack gerrit.

Change-Id: I4be4e268e2781aafa0caab73cb130f25ef307c50
2016-06-28 10:52:30 +01:00
Alex Kavanagh ea6d6007f2 Fix typo in README.md 2016-06-10 15:36:28 +00:00
Alex Kavanagh b9eb56712d Add README.md documentation for how to use the module
This provides a summary/description of how to use the charms_openstack
module and the classes therein.  In particular it highlights the use of
the key features and how to incorporate them into the derived charm
class.
2016-06-10 14:21:43 +00:00
James Page 8c163ef1b4 Add basic README 2016-05-26 16:47:06 +01:00