Commit Graph

107 Commits

Author SHA1 Message Date
Ghanshyam Mann 17c5f0c939 Retire openstack-chef: remove repo content
OpenStack-chef project is retiring
- https://review.opendev.org/c/openstack/governance/+/905279

this commit remove the content of this project repo

Depends-On: https://review.opendev.org/c/openstack/project-config/+/909134
Change-Id: I7a2655cab7bc4caad707f5f98174aae0b659fd4f
2024-02-17 20:51:02 -08:00
Lance Albertson d911425d0a Chef 17 support
- Require Chef >= 16.0
- Remove bind from Berksfile
- Update copyright years
- Enabled unified_mode

Depends-On: https://review.opendev.org/c/openstack/cookbook-openstack-identity/+/814051
Change-Id: I849792383efdcced72e399788ca849c102b8d510
Signed-off-by: Lance Albertson <lance@osuosl.org>
2021-10-14 12:04:59 -07:00
Lance Albertson d60c618b4e Cookstyle 6.19.5 fixes
Depends-On: https://review.opendev.org/756168
Change-Id: I6215914fbc6d2a1470b5b696b593c915f1b0572f
Signed-off-by: Lance Albertson <lance@osuosl.org>
2020-10-05 17:15:04 -07:00
Lance Albertson a78e903e12 Updates for Train
Changed
- Update release to train
- Migrated to using multi-store feature which has been deemed stable

Fixed
- Cookstyle

Removed:
- Unused rubocop rules

Change-Id: I19c1ff463a70a81e4d08bacb86e480e0a3951789
Depends-On: https://review.opendev.org/731859
2020-05-29 17:17:41 -07:00
Lance Albertson dad981f9ce Stein fixes
- Cookstyle fixes
- Refactor Berksfile to use groups so we can exclude integration testing
  cookbooks
- Update documentation
- Enable sensitive resources for the execute resources in
  openstack_image_image and template[/etc/glance/glance-api.conf] to
  improve security.
- Update delivery configuration to exclude integration cookbooks
- Set glance_store/stores, and update auth_type to password as described
  in the upstream documentation [1]
- Fix ChefSpec output

[1] https://docs.openstack.org/glance/stein/install/install-rdo.html#install-and-configure-components

Depends-On: https://review.opendev.org/706151
Change-Id: I695b576267bc220b0b70011ab035520fc18ff955
2020-03-24 10:22:19 -07:00
Jens Harbott 34524eae9b Use python3 packages on Ubuntu
Python2.7 is going EOL soon, let us deploy python3 for Rocky from the
start, so we avoid having to switch later.

Depends-On: https://review.opendev.org/682918
Change-Id: I8d5033c6bf045fa3df0b3e7d388b12c175b153f1
2019-11-08 09:49:15 +00:00
Lance Albertson cf08cbb527 Remove deprecated registry service
The glance registry has been deprecated upstream [1] and needs to be removed.
This removes all references to the registry service and moves the db migration
to the api recipe.

[1] https://blueprints.launchpad.net/glance/+spec/deprecate-registry

Depends-On: https://review.opendev.org/690410
Change-Id: I356aa65e63032e7866470ad507e5c9bce793a52b
Signed-off-by: Lance Albertson <lance@osuosl.org>
2019-10-28 11:14:18 -07:00
Jens Harbott 187d3f0198 Drop admin endpoints and cache dirs
The admin endpoints offer no special functionality, users may talk to
the public endpoints instead. The only historic use case has been the
keystone v2 admin endpoint, but with keystone v3 API, even that is no
longer needed.

Also stop creating cache dirs that were only needed while keystone
supported PKI tokens.

[0]
https://opendev.org/openstack/openstack-chef-specs/src/branch/master/specs/ocata/all/drop-admin-endpoints.rst

Depends-On: https://review.openstack.org/652050
Change-Id: I58f1c442dc472c8e96ca7bfaf03577d14ca65cd5
2019-04-29 10:53:43 +00:00
Jan Klare e6ffa82d84
remove unused ceph related attributes
Change-Id: Id6a28d4588bc52e594f9c6278b49624c3df9e59f
2018-04-05 16:26:11 +02:00
Samuel Cassiba c11abab62d Update CirrOS, Ubuntu image locations
- include Artful instead of Zesty to keep up with the times
- update cirros references to 0.4.0
- remove stale repo reference

Change-Id: I8b63581849d9c7e9d67d56e16619191703868755
Implements: blueprint modern-chef
2018-02-08 22:22:22 -08:00
Samuel Cassiba edc140b189 image refactor for Pike and Chef 13
- implemented foodcritic and cookstyle corrections
- deprecated node.foo.bar method access for node['foo']['bar'] bracket syntax
- deduplicated resource calls for identity registration

Implements blueprint modern-chef

Change-Id: If7d3ed298408d183a2d2ebaa1f9b5df148ac53e3
2017-12-10 14:37:40 -08:00
Seb-Solon 9186e1262f Replace platform_family method and use attribute instead
platform_family method is not working on latest Chef versions

Change-Id: I7e7fb5c51e97f3e4186a5f735f4fd8285934e0f0
Partial-Bug: #1724987
2017-10-28 15:44:03 -04:00
Samuel Cassiba 7eb5fd6113 Initial image Pike updates
- Switched default linter to cookstyle
- Freshened image locations
- Renamed rake tasks to align with Chef conventions
- Normalized template comment

Change-Id: Ib99d9b12f036ff52e44a270455f0d2e16561f98a
2017-08-25 09:42:35 -04:00
Christoph Albers d6735b4b5f Added option to upload images with specified ID
- updated rubocop_todo
- added upload_image_id attribute
- updated specs

Change-Id: I29fd680ca4b16160a015fbf809cdd81860df9eeb
2017-01-11 14:23:44 +01:00
Christoph Albers 9dd38224a9 RPC_backend / transport_url workover
- removed deprecated rabbitmq attributes
- added rabbit_transport_url

Change-Id: I2560f8010366d9c73fb9d6e2d6f6555d0c4ee7a1
2016-12-20 11:45:25 +00:00
Samuel Cassiba f428ecb5a2 Deprecated python-glanceclient
- deleted client.rb
- deprecated python-glanceclient references

Implements blueprint newton-xenial

Change-Id: I72dbd7d85cf745d2ca32c405df26b70bb353e1ed
2016-12-14 19:54:39 -08:00
Christoph Albers 419e7bc05e use_cookbook-openstackclient/identity_v3
- Now use cookbook-openstackclient to create endpoints role service and
  user
- added domain creation and access granting
- added values to work with identity_v3
- rewrote specs to work again
- updated readme
- added domain to image-upload
  edited resource / provider

Change-Id: If7b4d6e563081a0be9957353d73ef61a9688df56
Depends-On: I0f8955f05de9b33711c54b9a198f45018cceb8e1
2016-10-10 12:58:54 +00:00
sharat.sharma fce19da1aa Removed cert_required field which is no longer in use.
Change-Id: Idc20e67af363312154a9f6f79088b0b7503b514a
Closes-Bug: #1467951
2016-05-19 15:18:39 +05:30
Mark Vanderwiel a0de93e9ca Cleanup options deprecated for mitaka
Some options have been deprecated for Mitaka, replace them with the new
variants.

Change-Id: I1e05f7c1d3e604389b90c66931af153a5861e433
2016-04-13 12:17:05 -05:00
Christoph Albers 3298fe78a1 invert the order of endpoint and bind_service attributes
* endpoint type (admin, internal, public) and service (identitiy, network etc.)
  was switched during refactoring, this patch reverts this unintended switching
* edited bind_service service type from public,internal,admin to 'all'
  for default binding to just one service
* use bind_address method from common

Change-Id: I4f97b659361dabd7fac216305d2aad2f1bb98f51
Depends-On: Iec485deaf415e4187a323435cce2b6bbadfc5d42
Depends-On: Ia5bddfc5e2fd77cd6e9e855c680b079f78fc1c3f
2016-02-16 16:36:05 +01:00
Christoph Albers 6823eb84cb refactoring final step
* removed rubocop exceptions in recipes and regenerated the
  .rubocop_todo.yaml containing all remaining exceptions
* removed fedora, suse as supported platform
* adapted optimized endpoint logic
* moved endpoints from openstack-common to default attr
* bumbed openstack-common and identity to higher version
  due to refactoring
* moved version up to 13.0.0
* adapt the specs (unit tests) to work again
* added new logic into templates/default/glance-*.conf.erb
* refactored attributes throughout all recipes that were connected to
  the attributes used for the glance-*.conf.erb template to adapt the new
  template attribute syntax
* moved all attibutes/default.rb that were used in glance-*.conf.erb to
  attributes/glance_*_conf.rb
* removed all attributes from default.rb and glance-*.conf.erb which are set
  as default in attributes, openstack doc and used to render the template
* seperated filestore config and deployment from default api recipe and made it
  optional (e.g. swift_store)
* removed service config templates in favor of openstack-service.conf.erb from
  common cookbook
* removed default support for most filestore backends in favor of an easily
  wrappable cookbook structure which allow the configuration of filestore
  backends in wrappers

Depends-On: I3262b2e6f792f37c32a446e6567790b82bdd4613
Depends-On: I0547182085eed91d05384fdd7734408a839a9a2c
Implements: blueprint cookbook-refactoring
Change-Id: Ifa5a7f4e1df47a3961976e64f654224864c3dcb4
2016-02-08 15:08:52 +01:00
Samuel Cassiba a2bbb0bd87 Update CirrOS and CentOS qcow2 image locations
This updates CentOS to 7.1 and CirrOS to 0.3.4

Change-Id: I0a9fb5ca33979c5c4f8e7d7acf23cf3bcfcb7eec
2015-10-09 09:02:17 -07:00
Lan Qi song f707472c4c Ability to auto generate the filesystem store metadata file
After this path has been merged : https://review.openstack.org/#/c/190265/
The compute service has the ability to copy the image data from the mountpoint
directly which can save image download time.

This patch make the metadata file can be generated automatically if user
specify the id and mountpoint.

Change-Id: Ibd4cc2d15a97f8018fc7f0aa19e4f2c9d1da285c
2015-07-13 23:30:29 +08:00
Mark Vanderwiel 3ede834e41 Use correct endpoint scheme for api to registry connection
The ['openstack']['image']['ssl']['enabled'] was being used for
both the API/Regsitry services AND the APIs internal connection
to the registry.

Need to allow for separate control for enabling SSL for API and Registry.
Added attributes to cover this.

And the APIs internal connection to the registry needs to be
configured correctly based upon the Registry's internal endpoint scheme
(http or https).

Change-Id: Ieed28ad891192d81356c0d40ba48d70517087950
Closes-Bug: #1462388
2015-06-22 14:29:11 -05:00
Mark Vanderwiel e53ae638f1 Cleanup minor rubocop offenses
Cleaned up all the minor rubocop issues, the ones left relate to
complex logic and what I think is a bug in rubocop for nested
vs compact modules/class definitions.

Change-Id: I6097cd1032a5b2305d9a6ca8cb2e2b19f6a57a1e
2015-05-29 10:09:57 -05:00
Imtiaz Chowdhury 57f2b23d35 Make SSL settings configurable for Glance
This commit allows enabling SSL for glance-api and registry
endpoints by adding few new node attributes. Glance API and registry
configuration files are also modified to use these node attributes.

With these changes, users can easily enable SSL - both in secure and
insecure mode. However, it is user's responsibility to generate and
provide location of SSL certificate and its key.

Closes-Bug #1445773

Change-Id: I1d0f776efb392e058bc3dbf0ee5223512b60f584
2015-04-28 15:07:22 -07:00
Jenkins 4c8deb8c68 Merge "Use new "service" role instead of "admin"" 2015-04-06 15:39:28 +00:00
Mark Vanderwiel 3c5947030f Use new "service" role instead of "admin"
Change-Id: I32508a10eb452f722e0111399e1c02dbc8c71346
Partial-Bug: #1436050
2015-03-25 08:14:39 -05:00
root dc8fa60a5c Introducing docker changes to openstack-image
This includes cookbook-openstack-image changes required to enable
docker type container formats which includes docker and dockerref

Implements: bluerprint docker-driver-configuration

Change-Id: I21effcac1be2a07e01e37c0d1eb4ca2c57ef2127
2015-03-25 11:04:36 +00:00
Elliott Davis da05834a09 Add dependency on upstream ceph cookbook for better key management
The upstream ceph cookbook already hooks into chef for environment information.
This patch utilizes the client LWRP to create or add ceph keys for RBD support.
This patch also changes some default attribute names for more sane organization

Partial-Bug: #1409943

Change-Id: If37159524c237eec6ca1561e2979cd44e6dfac92
2015-02-05 06:32:42 -06:00
Chen Zhiwei 9708fb3f3e Make container_formats and disk_formats configurable
Since docker image format is not enabled by default in glance.
The cookbook should allow to configure docker image format in
glance api configuration file.

Implements: blueprint docker-configuration-support
Change-Id: I8ce16d3d4adb1c041edd4c6b603db16b7254a6c3
2014-11-19 15:09:43 +08:00
Alberto Gireud da01f920c4 Add attribute stores for glance-api.conf
Attribute name: stores
File name: /etc/glance/glance-api.conf
Section: glance_store

- known_stores is deprecated for stores option in Juno, update template
- Attribute for configuring stores does not exist, add it
- Spec test for stores attribute does not exist, update api-spec.rb
- Move default_store to [glance_store] section to meet definition

Change-Id: Ib3955e2efdff7f03c652d3438f43a98cbfe2c05e
2014-11-14 13:56:43 -06:00
jun xie 89a4514c6d Default to cinder v2
In https://review.openstack.org/#/c/134275/, the endpoint for
cinder is set to v2 by default, this change sets the value in
glance to v2 as well.

Change-Id: I974c336901c08b6eb026866794bbc36442a2493b
2014-11-14 10:41:31 +08:00
chenxiao ae2c1aef94 Allow some attributes for cinder storage to be configurable
Glance cookbook does not have some configurable attributes for
cinder storage backend, so add them to avoid issues when using
'glance.store.cinder.Store'.

Change-Id: Ieaff14c5c24c4cbd194c70d46d376dc7d170d946
Closes-Bug: #1384044
2014-10-24 10:59:49 +08:00
Mark Vanderwiel 8463e1a9b6 Add support for vhd vmdk vdi iso raw disk formats
Image upload provider already has a image type, but was not
used to handle the other common image types that have a simple
bare container format.   Expanded the list of types and allowed
the existing upload_image recipe to also take advantage of this
new provider disk type support in an optional way.  Backward
compatible.

Change-Id: I1f5983150aa648837c9bcd256f0ceb4bf73d4b52
Closes-Bug: #1383079
2014-10-23 10:56:54 -05:00
Mark Vanderwiel 234ba535c4 Add oslo.messaging attributes
glance switch to use oslo.messaging and some of the attributes have
changed or been replaced.

Change-Id: I7f3d56eb03942ad4c87c43f47bbacc838a2b41f9
Closes-Bug: #1382110
2014-10-16 12:44:06 -05:00
Mark Vanderwiel b0fcafe606 Add attribute for glance registry workers
Change-Id: Ifaeb99dc17784dff5467471fa29ca4bd6cb9997f
Closes-Bug: #1368859
2014-09-25 17:21:44 -05:00
chenxiao 955864e241 Enable glance keystone authtoken configurations
This patch is for allowing cafile, insecure,
memcached_servers, memcache_security_strategy,
memcache_secret_key and hash_algorithms to be
configurable.

Change-Id: I93e490a1d1378bc1efce16337ed45f93fc7e758b
Closes-Bug: #1370908
2014-09-22 21:10:42 +08:00
xijiax a9cb36f5f3 Add attribute filesystem_store_metadata_file
Attribute name: filesystem_store_metadata_file
File name: /etc/glance/glance-api.conf
Section: default

Description: A path to a JSON file that contains
 metadata describing the storage system. When
show_multiple_locations is True the information
in this file will be returned with any location
that is contained in this store.

Change-Id: I3b2a6b9da99ca061012c8b808c3821072ec63f9b
Closes-bug: #1348015
2014-08-06 15:18:04 +08:00
Ionuț Arțăriși 85a9c8b80c use new python_packages attributes from -common
*_python_packages attributes are being moved to -common in order to
remove the duplication from all the cookbooks which are using them

Change-Id: Ie26ceb713ad07f28d70a6711198a229cd45f777a
Implements: blueprint move-python-db-client-attrs-to-common
2014-06-26 11:54:11 +02:00
gengjh d9e2d2950f Get the vCenter password from databag for glance
1. Add new attribute openstack_vmware_secret_name to indicate the
databag secret key
2. Get the password from databag if dev mode is false
3. Update the test cases

Implements: blueprint vmware-password-databag

Change-Id: I72f538a16d77cba9c1be9f32e0b37d1ee68e3bbc
2014-05-09 22:22:50 +08:00
Darren Birkett b0fc6885a9 use newer 0.3.2 cirros image
This version of cirros has a udhcp daemon that supports dhcp option 121,
which allows passing of metadata static route via dhcp.  Important for
testing using neutron and metadata agent.

Also switch to download from new download.cirros-cloud.net location

Change-Id: Ic7e6d23407a282c4320b915549b76ab7f86381f6
2014-04-30 17:19:50 +01:00
Matt Thompson 77f9d3f591 Remove explicit installation of python-anyjson
We previously had to force the installation of python-anyjson as
python-kombu was not pulling it in correctly (and this prevented
glance-api from starting), but the Red Hat team have since updated
python-kombu to properly depend upon python-anyjson.

Change-Id: If16487ea184b132b800d9d4ac9c04a31103ea84d
2014-04-30 11:23:48 +01:00
Matt Thompson b5a87cc7ce Install missing dependency and override config
Installing openstack-glance installs python-openstack which pulls in
python-kombu, but python-kombu doesn't pull in the necessary
python-anyjson package.  This prevents glance-api from starting.

Additionally, openstack-glance on CentOS loads
/usr/share/glance/glance-api-dist.conf which is using the deprecated
notifier_strategy config option which defaults to qpid.  When we run
with a notification_driver != 'qpid' there seems to be some sort of
conflict and glance-api service doesn't operate correctly.

I'll be reporting both of these issues upstream, but for the time being
we need to pull in this package so we can progress w/ Icehouse on CentOS
testing.

Change-Id: Iaac29d6f55171536a8ee5cb786f49482ef51b69f
Closes-Bug: #1307358
2014-04-14 13:47:02 +01:00
Jenkins 8b1d15f1a6 Merge "Use platform_family instead of platform" 2014-04-09 22:17:24 +00:00
Luis A. Garcia d95830cf34 Use platform_family instead of platform
This will allow the ibm_powerkvm platform to be recognized and will
simplify uses of multiple platforms from the same family.

Change-Id: Iebf2aad9f3b4649fb5c27d2fc93ee60c67e42737
Partially-Implements: blueprint add-ibm-powerkvm-enablement
Implements: blueprint platform-family
2014-04-08 14:01:33 -07:00
Matt Thompson 2f5b321a03 Change notifier_strategy to notification_driver
The notifier_strategy config option is deprecated in favour of
notification_driver in Icehouse.  This change updates the configuration
while also changing attribute namespace since the option is not
actually mq-specific.

Once this change has been accepted we can remove the
default['openstack']['mq']['image']['notifier_strategy'] attribute in
the common cookbook.

Change-Id: Iad09ec0c7fe2f66ab084c363173a98f2737db146
Closes-Bug: #1303784
2014-04-07 13:38:23 +01:00
gengjh 430d3c7beb Support to configure VMware Datastore Store as glance backend store
Update the glance-api.conf and glance-cache.conf template files to
support configure VMware datastore attributes.

Implements: blueprint vmwareapi-support
Change-Id: If9f6dadf43a52d0a673043ea23edaf653f452a11
2014-04-03 13:32:20 +08:00
Chris Dearborn 3c2e743cf4 Changes related to increase IP binding flexibility
Changes have been made to the common cookbook so that if a
bind_interface is specified for an endpoint, then the IP is looked up
for that endpoint using address_for, and if no bind_interface is
specified then the value of the host attribute of the endpoint is used
instead.

This change set removes code that implements this exact behavior from
the image cookbook since it now is provided by the common cookbook.

blueprint increase-ip-binding-flexibility

Change-Id: I7fda0b50704e530f4de0cfc0e3a6c90f0db53e2e
2014-03-27 10:19:42 -04:00
Chen Zhiwei 11c7a38321 Fix DB2 ODBC driver installation issue
There is an LWRP in db2 cookbook to install ODBC driver,
so need to move this driver installation to db2 cookbook.

Change-Id: I35e7a81cab8ed5cdc9aa6e3dfd295d86f6f01058
Closes-bug: 1294376
2014-03-21 02:48:11 -04:00