Commit Graph

65 Commits

Author SHA1 Message Date
Lance Albertson 12bfe6e13e Updates for rocky
- Replace git.openstack.org with opendev.org
- Update some documentation
- Move README.md to README.rst for better rendering
- Drop obsolete bootstrap.sh script

Change-Id: I1d9ec1bac4b008f4ccf2c64194900ebb6db49c8d
2019-12-06 11:21:07 -08: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
Samuel Cassiba 2d37f193e9 Rename openstack-chef-repo references to openstack-chef
Change-Id: I8795e074cd458347dbd9a75077457a27d97f7d04
2018-08-06 21:49:49 -07:00
Jan Klare 7bc24a21a4 add new Chef OpenStack Team Logo to README
Change-Id: I3fcb57704feef69cc22d27d9199e5f7e617896a4
2017-05-29 10:53:08 +02:00
Flavio Percoco ba2d462c46 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/9f375dd6eca2b5da2cef2a4b142aff64

Change-Id: I3734bd6bcdcc20e5c98c5132810a614cbb2bbc18
2016-11-26 12:01:22 +01: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
Samuel Cassiba a08aecef1d Style and lint fixes to support newer ChefDK
Change-Id: I0a3872cd3a21c31b5e3a7b6190f911280e9ed909
Depends-On: I6ce4587caa3ae68ddbd3ef1a521aaf46f4840b2c
2016-07-08 10:08:37 -07:00
Jan Klare 643fcb2f30 update the README after refactoring and align it with other cookbooks
Change-Id: I5cb6fe4e0e63c042250dfaa11a9b0563f7f15a99
2016-04-28 15:17:15 -05: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
Jan Klare 103b626560 move from bundler to chefdk
- deprecated Gemfile
- updated TESTING and README
- updated Rakefile to use chef exec instead of bundle exec
- refactored specs to work with new chefspec version

Change-Id: I8fe06d02043b084484142d4e575f25003ed127af
2015-04-29 19:32:22 +02: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
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
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
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
Stephan Renatus 78803f2456 Change image_upload spec to not test the LWRP
Before this change, the image_upload recipe was kind of used to test the
LWRP that is defined by this cookbook.  Now, it only checks the
resources that appear in that recipe.

To make that work, a libraries/matchers.rb was added that helps ChefSpec
cope with the dash in the cookbook name.

Change-Id: I632556c9924d1be946b033a8759c0f3de15d91e0
2014-06-12 14:49:08 +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
Jenkins adff102479 Merge "Allow binding locally to different IP than endpoint IP" 2014-04-17 15:36:40 +00:00
Darren Birkett 0c17e691dc Allow binding locally to different IP than endpoint IP
Sometimes you want the actual endpoint IP to be a load balanced IP, but
the bind IP to be a local IP (different per node).

This change allows that by using *-api-bind and *-registry-bind for the
actual local bind addresses

Implements blueprint increase-ip-binding-flexibility

Change-Id: I4f6d854976ede6eaf280ba5e705d97f3bbc88fea
2014-04-17 10:34:34 +01: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
ericzhou bff5397cc3 Use the common function auth_uri_transform
Auth uri transform logic has been moved to the common cookbook, so in
the image cookbook, the common fuction is used to transform the logic.
Another option auth_version is added to template.

Change-Id: If0fdf86c48f5b4860d8b488dd7ee16ca199e1536
Imlements: blueprint move-keystone-authtoken-move-auth-uri-logic
2014-03-20 16:54:47 +08:00
Stephan Renatus 6a5260a8c1 Handle Ceph-related steps for using the RBD store
With this change, the api recipe will take care of the ceph-related
things when the default_store attribute is set to rbd:

- install dependency packages as specified in
  openstack[image][platform][ceph_packages]
- create a cephx client keyring file with openstack-common's template
  and the key found in the data bag specified by the newly introduced
  attribute openstack[image][api][rbd][key_name]

Change-Id: I92881e5a27fb5ec56d4f1fb72933749a3e8d8688
2014-03-11 16:59:22 +01:00
Andy McCrae 46b1cf80e2 Add attribute for image api workers setting
- Add an attribute for ['openstack']['image']['api']['workers']
- Adjust the template for glance-api.conf to use this attributes
- Adjust the default value to be a maximum of 8 (but this can be
  overridden)
- Adjust spec tests to set the cpu value so they converge
- Add test to confirm this value can be set
- Add test to confirm the .min[8 , sets a max of 8.
- Add README.md attribute entry

Change-Id: I8bdbd8bc8fe9af7a9ca3bbc8856d5a200ce7be7b
Closes-Bug: #1274884
2014-02-13 11:45:43 +00:00
Mark Vanderwiel e9a6523d88 Add client recipe for image
Add an explicit recipe for installing client
only packages.
Tests are also included.
Bumped minor version for this new feature.

Change-Id: I12808f895757e99d2d60bdb0e8fd85dcd3f8f026
Addresses: blueprint add-client-recipes
2014-02-12 12:35:26 -06:00
Andy McCrae 58b828eae2 Add attributes for swift_enable_snet & swift_store_region
- Add default["openstack"]["image"]["api"]["swift"]["enable_snet"] attribute
- Add default["openstack"]["image"]["api"]["swift"]["store_region"] attribute
- Set defaults such that the end result doesn't change, but attributes
  can be overridden.
- Add tests for these 2 attributes
- Add README.md entries for these 2 attributes

Change-Id: I8dd10a9731f996ebe6b064d2552f9cc5a1bf468d
Closes-Bug: #1274937
2014-02-05 09:11:39 +00:00
Andy McCrae f7b7072d04 Add attribute and configuration for show_image_direct_url
- Add default["openstack"]["image"]["api"]["show_image_direct_url"]
  which defaults to "False"
- Add option into glance-api.conf.erb
- Added test for show_image_direct_url setting
- Adjusted README to reference attribute

Change-Id: I83cd13db1d102118d696d371d94197044abf8e94
Closes-Bug: #1274960
2014-02-03 14:55:36 +00:00
Craig Tracey 452daa01f4 Making glance service names consistent
Right now for most cookbooks we declare resources with the name of the
service itself. So, for example, in the 'identity' cookbook, the
'keystone' service is called 'keystone'. The other cookboks follow this
same standard.

Why is this important? Things like omnibus-openstack depend on these
cookbooks having a common standard. That, and well, standards make us
all happy.

Change-Id: I3b1cb845cfb21b5e1d46feca322f3c2788431a27
2014-01-23 00:19:08 -05:00
Hugh Saunders 1d83f527a8 Remove Berksfile.lock from dev branches
blueprint remove-berksfile-lock-from-dev-branches

Change-Id: I7801b6fd57f4dc4fa46c8728e5177e039ee0260d
2014-01-20 17:29:56 +00:00
Matt Ray 19e2e1f253 Filling out initial rubocop support for metadata.rb and the Gemfile.
https://blueprints.launchpad.net/openstack-chef/+spec/lint-and-unit-testing-for-havana
Removing tailor, cleaning up metadata and Gemfile and adding TESTING.md. Will
remove the .rubocop-todo.yml later, once all the other Rubocop support is in.

Change-Id: I44e3e5002b4e152080a01a36ae08451cc2ee0751
2014-01-09 16:07:27 -06:00
Chen Zhiwei fd07a04dd1 Add DB2 support to glance on redhat platform
Add a new attribute
default["openstack"]["image"]["platform"]["db2_python_packages"]
and fix an attribute typo in registry recipe

Change-Id: Ic84eefd460d1117c60570394e3b402a09a0e3016
Implements: blueprint db2-support
2013-12-18 02:21:01 -05:00
Eric Zhou bc3b8270b6 Move image upload part from api recipe to new recipe of image_upload.
Since for bug 1257169 openstack-image api recipe should be executed before
openstack-image registry recipe, the image upload part in the api recipe need
to be moved to a new recipe of image_upload.

Change-Id: I1f557d2e817643a9e3e06788dc446c970ef2df89
Closes-Bug: #1257169
2013-12-16 10:39:36 +08:00
salmanbaset dd17718ce2 Adding qpid support to glance
Moving all mq related parameters under default["openstack"]["image"]["mq"]
so that other mq options can be added under it. Eventually, all rabbit
options will be brought under it. Bumped up version to 7.1.0

Implements: blueprint qpid-activemq-support

Change-Id: Ie0ed02a9262136c208d88d05f2431ff351e2edb2
2013-11-28 12:57:37 +08:00
Mark Vanderwiel fbe499f4a4 Swift packages should be optionally installed.
Create a subset of swift packages to be installed only
if asked for by the default_store attribute.
Added unit tests for ubuntu and redhat.

Change-Id: I8ed5d543d87b180148e0aa4b556ab8cbc4802f2e
2013-11-14 10:00:54 -06:00
Daniel Williams e080cc855a Adds redirection attribute for cron
Adds redirection attribute for cron jobs
to allow configuration downstream.  Possible
uses are no redirection(nil), /dev/null,
pipe to mail, logger, etc.

Change-Id: I384d399ee4c147a170b368a15997bc8f6686b372
2013-11-01 20:06:44 +00:00
John Dewey 5ef6f9416c Removed the db recipe
The db recipe have been removed.  It is up to the operator to
setup the database, users, and grants before deploying openstack.
It has been moved to the `openstack-db` recipe in the
`openstack-ops-database` wrapper cookbook.

Change-Id: I15bac0058aa0021713a95c458f70eeeac80b4760
2013-06-28 11:53:15 -07:00
sean 6a8a9f3be7 Use strainer to isolate and test individual cookbooks
Included:
- Add strainer gem
- Update test-related gems
- Add Strainer file
- Remove run_tests.bash
- Update .gitignore
- Update README file

Partial fix for bug 1188345

Change-Id: Ic71cb8ab30d16701f130c87805f9fe2b8df8771c
2013-06-06 21:18:47 -07:00
John Dewey 4421f43374 Removed unused attribute from README
Removed `openstack['image']['glance_api_chef_role']`.  The cookbook
doesn't use this attribute.

Change-Id: I97bc0401ae1953fc0567634adbe69ec6fd4f1ab4
2013-06-03 09:24:50 -07:00
John Dewey 4cf1cbdb22 Using ~> versioning
Since we should be performing semver across our cookbooks, we should
lock to the patch version.  It means "equal to or greater than in the
last digit", so e.g. "~> 2.3" means "equal to 2.3 or greater than 2.3,
but less than 3.0", while "~> 2.3.0" would mean "equal to 2.3.0 or greater
than 2.3.0, but less than 2.4.0".
  http://stackoverflow.com/questions/5170547/what-does-tilde-greater-than-mean-in-ruby-gem-dependencies

Change-Id: Ia728af82aab928c42bdf3f3d6b24c2f1b79ae3f7
2013-05-27 21:32:55 -07:00
Matt Ray a1d1b3a829 Attributes for the Image service are in the ['openstack']['image'] namespace.
Change-Id: I6760649330c1f391680ff80f3bcf1cbc9e289bfd
2013-05-23 16:56:13 -05:00
Matt Ray 72c07cd607 remove 'default[openstack-image][' and replace with 'openstack-image[' like the rest of the attributes
Change-Id: I48489ceb773c781596d090c7592fe5e3ab75f746
2013-05-18 07:31:48 -05:00
Craig Tracey c85a817fb6 Changed coobook name to openstack-image
Changed the cookbook name to openstack-image, fixed all tests, and
addressed attributes. Also addressed calls to external services,
primarily keystone -> openstack-identity.

All tests pass.

Change-Id: I6338342a570000b3fb0ae610f1a1bb5aa15ae3e9
2013-05-15 23:31:17 -04:00
Ionuț Arțăriși 3426f6a1f3 always set signing_dir location
keystoneclient tries to create the directory if it does not exist and the default is ~/keystone-signing
2013-05-13 16:28:55 +02:00
John Dewey 648c15ca0d ATT specific fixups 2013-05-06 20:29:54 -07:00
alop 123d31e770 added new attirbutes to README 2013-05-02 14:33:24 -07:00
Jay Pipes f4f9fb5412 Makes the image registration/upload an LWRP
Adds a slightly modified version of the RCBOPS glance_image
LWRP. This cleans up a bunch of stuff in the glance::api
recipe and makes it much easier to read and diagnose.
2013-04-12 11:44:36 -04:00