Some users may not want *_image_location operations to be
restricted to role:admin so this patch allows that to be
configurable and sets the default to be False since
enabling this by default is breaking RBD COW clones in
Nova for non-admin users (and anywhere else that relies
on that information).
Change-Id: I8c293d6036bc1d6104dab5458f6915968459a09e
Closes-Bug: #1786144
Refactor configuration for mitaka onwards, where the
authentication details for swift storage are in a new
glance-swift.conf configuration file.
Update for Keystone v3 support as required for
queens or later, where the v2 API has been dropped.
Closes-Bug: 1752027
Depends-On: Ie6e2733f34de10a4d34b18dbf1fd9ba623af0e18
Change-Id: Ibcc36ca22d72d310921f840e6081608be1fbc7e1
Switch to use the VolumeAPIContext for determining the endpoint
which is used for communicating with the Cinder volume API.
Change-Id: I15c326caf5561463fc25ee879cee0ed7b8dfd09e
Related-Bug: #1733566
Drop support for deployment from Git repositories, as deprecated
in the 17.02 charm release. This feature is unmaintained and has
no known users.
Change-Id: Ic9a74991973863b2cf61fc5368bbe3664af90ef4
Remove postgresql DB support; This feature is untested as part
of the charms, is not in use and was deprecated as part of
the 1708 charms release.
Change-Id: Ia197a37cbfe9c11538f272437d95cfc836768cc9
This patch will cause /etc/glance/policy.json to
be updated so that *_image_location rules are
set to role:admin so that only admins can see
that info. On first update the original values are
stored on the local kvstore in case they need to
be retrieved for later restoring or comparison.
Closes-Bug: #1699565
Change-Id: Id6198d534af95013af47c0c1292ac65c79470af4
volumev2 api is deprecated for >= Pike so select
volumev3 for internal endpoint when using >= Pike.
Also moved cinder_catalog_info config to
[glance_store] section which should have been done
a long time ago.
Change-Id: Ia9c002199d939ba20c029b70d2eb3c6b6cdc51a6
Partial-Bug: #1733566
The disk_format option was hardcoded and the container_format option
was unset. This change exposes both to the user allowing the admin
to restrict what formats are uploaded.
Closes-Bug# 1570875
Change-Id: I19fdc75b30863e997affb2dc90b0dd3bd19c9d27
- sync charmhelpers with fix-alpha helpers
- fix up code where the alpha comparisons are done
Change-Id: I6851849b8107e59e9e6ff529348c7b183d36266b
Related-Bug: #1659575
With the release of 4.2.0 of keystonemiddleware using the
in-process token cache is no longer recommended. It is recommended
that a memcache backend to store tokens is used instead,
This installs and configures memcache and configures glance
to use memcache for token caching.
http://docs.openstack.org/releasenotes/keystonemiddleware/mitaka.html#id2
Change-Id: If1a95fbd4e5771eaad937573dd4ee28750080218
Juju 2.0 provides support for display of the version of
an application deployed by a charm in juju status.
Insert the os_application_version_set function into the
existing assess_status function - this gets called after
all hook executions, and periodically after that, so any
changes in package versions due to normal system updates
will also be reflected in the status output.
This review also includes a resync of charm-helpers to
pickup hookenv and contrib.openstack support for this
feature.
Change-Id: I059d03fd0ae0c445b5822b3e48476e54b839689d
This changeset allows to change default store to cinder
and define additional key/values for glance-api.conf file.
Some cinder backends could require additional changes
in service and additional changes in the OS.
Same functionality implemented in cinder charm via storage-backend interface.
Change-Id: Ia9c78df7e9a1ccb0d9ca2121dd01e5832186bf19
Glance charm allows to store images in file, ceph, swift.
This changeset adds support for storage of images in Cinder
for OpenStack Mitaka or later.
Required dependencies are installed on relation to Cinder
(inline with Ceph integration).
This feature is dependent on resolution of some packaging
issues in the glance-store package (see Related-Bug).
Related-Bug: 1609733
Change-Id: Ib9d9f28e040b7b2eebb3f5d0ee9ff0773292bdcc
All contributions to this charm where made under Canonical
copyright; switch to Apache-2.0 license as agreed so we
can move forward with official project status.
Change-Id: I929c0635f3e7c7545d654e33194a751d197c3ca5
openstack-origin-git currently only supports YAML that specifies
the git repositories to deploy from.
This adds support for default openstack-origin-git values. The
default values supported are: icehouse, kilo, liberty, mitaka,
and master. For example: openstack-origin-git=master.
Change-Id: I17eebbe81053233c60687acf453b17109110993f
It's useful for service related to glance to know when it thinks
that its ready to start accepting requests, so that images can
be uploaded into Glance by other services in the cloud.
Add a 'glance-api-ready' flag to the image-service relation and
set status based on required interfaces being complete.
Change-Id: I28eba6f5fbc009b3c1e07a1180a85ddd17939404
Partial-Bug: 1528390
systemd is used instead of upstart by default since Ubuntu 15.10
(Wily). This adds systemd init file support for glance services
that are deployed from source.
Change-Id: I4117e9cbe5a30ed19ef2976d4e7160b82c09d4d3
This change fixes the obvious race for a status_set() between
check_optional_interfaces() and assess_status() as the later calls the former
which calls status_set(), returns the status, which is then potentially set
again by the assess_status() function. This cleans up the code so that only a
single status_set() is performed when calling assess_status().
Change-Id: I06efbcaade8f0c99b5931104e6887d24cb10e35a
Related-Bug:#1588462
Openstack mostly defaults to using public endpoints for
internal communication between services. This patch adds
a new option use-internal-endpoints which, if set to True,
will configure services to use internal endpoints where
possible.
Closes-Bug: 1456876
Change-Id: I76129d4def671c5a5001cf15d9ff629a94a450e0
Adds improved pause and resume unit to the charm such tha the
charm stays paused during maintenance operations.
Sync latest version of charm-helpers for maintenance mode.
Change-Id: I6e793744709b65c89afb6f0fc460f9d96755bf82
The glance-api-paste.ini and glance-registry-paste.ini configuration
files provided as part of the glance packages should be used; drop
charm templates and associated code paths.
This was required in early OpenStack versions where keystone auth
credentials where rendered into the paste ini file.
Existing deployments will go through a upgrade step to replace the
previously provided paste files from the charm with those provided
by the glance-api and glance-registry packages.
Change-Id: I016b8cb7823b98e8dffa91b3b427ed88a7b619bc
Implemented new is_paused() and assess_status() functions, and changed
the pause and resume actions to use them. Changed existing and added new
tests to verify functionality. Note changed any of the other status_set()
functions.