Update ChefSpec due to changes made in apache2 cookbook.
Depends-On: https://review.opendev.org/756168
Change-Id: Ia19ea6bebf787f1d8b1542bb6c895a294a5e72bc
Signed-off-by: Lance Albertson <lance@osuosl.org>
This updates all references of let(:chef_run) to cached(:chef_run) to
speed up tests. By doing this, we have to create a new cached(:chef_run)
block whenever we need to adjust node attributes for testing.
Speed was improved from 14 minutes 3 seconds to 3 minutes 41.8 seconds
Change-Id: I1233e25e69b956936fc19f5c57cedc529afbb730
The API service for Ceilometer was deprecated in Ocata [1] and apparently we
missed that. This removes all references to the API service which is no longer
needed.
[1] https://docs.openstack.org/releasenotes/ceilometer/ocata.html#deprecation-notes
Change-Id: I7a888a4aaadaa8213d6763854b39d78910fad0db
Signed-off-by: Lance Albertson <lance@osuosl.org>
fog-openstack-1.x already appends "auth/tokens" so we no longer need to
do that.
In addition, re-add openstack_endpoint_type which is now fixed now that this [1]
has been released upstream.
[1] https://github.com/fog/fog-openstack/pull/494
Change-Id: I06ee3681ff8bc90f15b2b0ecbdcaebe475709b31
Signed-off-by: Lance Albertson <lance@osuosl.org>
This fixes two primary issues:
- Removal of using node['openstack']['api']['auth']['version'] and converting to
using ::URI.decode
- Renaming endpoint attributes from telemetry-metric to telemetry_metric to
match what's used in openstack-common. Also rename all attributes to using the
underscore to minimize confusion.
Change-Id: I59c960a18f9e88eea494ec3c7bdbf189309f23e7
Signed-off-by: Lance Albertson <lance@osuosl.org>
This patch removes the openstack_user resource with :grant_domain
action. A user is always created within a specific domain; such a
membership cannot be tacked on later. This resource gave the users the
role intended for their project for the domain (i.e., for the Default
domain instead of for the service project).
We add the domain_name attribute that creates the users in the
desired domain. Note that this change needs a sufficiently recent
openstackclient cookbook -- otherwise the domain_name attribute is
ignored (which does not matter as long as the users are to be
created in the Default domain).
Change-Id: Ie793b3d2e0419da90888edbf33ff28d819892dcf
This patch removes the role_name when using openstack_user's :create
action (it gets ignored by the target method).
Note that the spec test would still pass if only the line in
identity_registration.rb (but not the test) were changed, because the
code that actually does grant the role to the resource is executed right
after user creation and before any tests check the resource for the
existence of the role_name attribute. In other words: if the argument
were required in a call but only supplied in another call, the spec
tests would not catch it. Something to watch out for.
Change-Id: I45754d269598b821f0b86b6257556ebfe74dcd6b
- Switched default linter to cookstyle
- Renamed rake tasks to better conform with Chef conventions
- Normalized template banner
Change-Id: If802d82561619a0b7951422dc0e1e913f2c4c8b4
- 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
Change-Id: I6c91c874013190522dd7f1fd6060dc3796dc80fd
Depends-On: I0f8955f05de9b33711c54b9a198f45018cceb8e1
Depends-On: I2d404a424bd79a6e9b282304e21591fa33a48981
Depends-On: If7b4d6e563081a0be9957353d73ef61a9688df56
Depends-On: I84f850f32f25a318c3ed3c7337a0dfa6f641a5fe
* applied new template logic and refactored all recipes accordingly
* removed vmware and suse support and specs
* removed alarm ceilometer-alarm notifier and evaluator (needs to be rewritten
for aodh)
* added recipe for telemetry-metric/gnocchi deployment
* set gnocchi as default dispatcher for ceilometer
* added initial specs for gnocchi recipes
Depends-On: I22114b6d2d46cce561a2f292b92ff5f531cff533
Change-Id: If513cb2715d8266845bd6541d12005edef70f11c
- deprecated Gemfile
- updated TESTING and README
- updated Rakefile to use chef exec instead of bundle exec
- replaced Runner by SoloRunner in specs
Change-Id: If523a416d87e2f6424923acd9942b44382c67065
Now that admin_endpoint, public_endpoint, and internal_endpoint
in the common library are working, these are the changes to use
them in the openstack-telemetry recipes.
Change-Id: Ibddb87c1ae2e92c43c0b88495d363b6d8179d300
Partial-Bug: 1412919
- Set ['openstack']['metering']['region'] to equal ['openstack']['region']
- Add test to override the endpoint and confirm it is used.
Change-Id: Ie43ed28301ab40902f43b67831f5c5ff5300c65f
Addresses: blueprint uniform-region
After installing ceilometer with the metering cookbook, invoking the
ceilometer CLI fails because the API base URL used is
http://127.0.0.1:8777/v1/v2 which means that the base endpoint path of
/v1 is incorrect and it should be simply /.
The openstack-common cookbook was updated to set the right path but we
need to update the test cases, and point to the new version of the
common cookbook.
Change-Id: I203a5a6346a3765bb249149a209122ec3d33601d
Partial-Bug: #1277742
- Add rubocop.yml in specs/
- Add spec rubocop test to Strainerfile
- Update specs to comply with rubocop
Change-Id: I7f2de5cd4bd9307485ec7db134f31f5415c84131
Addresses: blueprint rubocop-for-metering