In Chef Infra Client 16.2, resources have to be named using the provides
method. The resource_name method has not been changed in order to be
compatible with Chef Infra Client <16.2.
Also fix URI.encode and URI.decode deprecations.
Update etcd depends to ~> 6.0 to fix Chef 16 deprecation warnings.
Depends-On: https://review.opendev.org/747503
Change-Id: I24be89a3214207bac2df9eb360124871e0d8242f
Closes-Bug: #1886985
Signed-off-by: Henrique Santos <hfigueiredosantos@tecnico.ulisboa.pt>
Signed-off-by: Lance Albertson <lance@osuosl.org>
- Switch to Stein release
- Cookstyle fixes
- Update cookbook etcd to ~> 5.6
- Update README
- Add myself to author list and OSU Copyright
- Properly fix completions recipe and ensure it works
- Create and start the etcd service in the etcd recipe
- Update delivery configuration to exclude integration cookbooks
- Refactor and update RenderConfigFileMatcher to work with newer
ChefSpec. This fixes output which was passing but showing error
messages.
Depends-On: https://review.opendev.org/701027
Change-Id: Iba3eeabe85ab9303147e43eeb550212a46d190f3
This patch extends openstack_command to accept an array in addition to a
string as an argument.
This allows the use of openstack_command in cases where an argument
contains protected spaces.
Examples:
mistral execution-create my_workflow \
'{"names": ["John", "Mistral", "Ivan", "Crystal"]}'
barbican secret list --name chef_test_secret --format value -c"Secret href"
Without this patch, all arguments have to be passed as a single string
which openstack_command splits on white space regardless of any
quotation marks. Therefore, the examples above will fail.
Change-Id: I0419a1526beb103839a3cf235eba6c41d9d946d5
Closes-Bug: #1723949
- Bumped chefdk to 1.6.1
- Switched release to pike
- Added is_release attribute for testing, defaults to false
- Added RDO deps repo for testing pre-release packages
- Added ubuntu-cloud proposed repo for testing pre-release packages
- Switched the default linter to cookstyle
- Normalized the banner message
- Dropped pip installation method for python-openstackclient since the
packages are fresh enough
Change-Id: I7a67ba2520b8e44efec6edd8506f96b0e0dc913b
A prerequisite for Newton is to move to openstackclient for interfacing
with the OpenStack services.
Change-Id: I80a10bc1a3a50501306c16e278b960e43e9e9a59
Implements: blueprint openstackclient
* version bump to 13.0.0 for mitaka release
* removed suse support
* removed general endpoint method, since we should be able to always specify
which endpoint we need
* removed fallbacks in specific_endpoint method, since this behaviour is not a
very obvious one to the user and it should rather return an error than an
unexpected result
* dry public, internal and admin endpoint methods
* removed obsolete private methods
* adapted method calls for admin_endpoint in libraries/cli.rb
* refactored set_endpoints_by_interface recipe to directly call address_for
instead of address, since the recipe already checks for an existing attribute
..['bind_interface'] and therefore address would redirect to address_for
anyways
* moved the nested hash order for the public, internal and admin attributes to
to be more clear and to break all existing calls to fix them during the
refactoring process of all cookbooks
e.g: node['openstack']['endpoints']['internal']['identity'] is now
node['openstack']['endpoints']['identity']['internal'] and can be moved into
the identity cookbook. This also streamlines these endpoint attributes with
the bind_interface and host attributes
* removed dependency on openstack-identity cookbooks by moving openrc recipe to
opentack-identity (same for corrensponding specs and template)
* removed address method and use the address (or hostname) defined in the
endpoints hash directly (logic to set this attribute should rather be
done in a wrapper (with a fitting method) instead of a static and predefined
one)
* removed set_endpoints_by_interface recipe since logic for defining the
endpoints will be moved to wrapper cookbooks
* added helper method merge_config_options for generation of config hashes used
in service config templates
* added template for openstack-service.conf.erb which can be used by all service
cookbooks
* deleted all endpoints attibutes, since these are moved to the service
cookbooks for easier dependency handling
Implements: blueprint cookbook-refactoring
Change-Id: I0547182085eed91d05384fdd7734408a839a9a2c
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: Ic0c0677de44642e0994c0b95a3c270cbd4749b40
Beside the command type "<client> --key=<value> <command>", there is
other type of command type "<client> --key <command>" for example
"keystone --insecure tenant-list". Add this command argument type
into consideration.
Change-Id: I6bb97279ef380eb71ac581f8cd99623ab7d1519e
If there are --xxx argument placed for openstack clients such as
nova, glance, keystone etc, these arguments need to be placed before
the actual command line. Otherwise, the client will raise unrecognized
arguments exception which will make the command execution fail.
Change-Id: I1568f9332accffdfa3a34d8bbd842f707b1a340e
Closes-Bug: #1388147
This change introduced the ability to query UUIDs for Neutron entities:
routers, (sub)networks, etc.
To do so, the identity_uuid method was generalised and the image_id
method rewritten to make use of the new get_uuid method.
Change-Id: Idf9f4f04a8ca482ab23c0c667c3546437829690a
This change adds a new method to libraries/cli.rb which we will use
in new cookbook-openstack-integration-test to obtain a glance image id
from a glance image name.
Additionally, we've had to update openstack-command method to handle
situation where we have commands like "glance image-show <id|name>".
Currently, it only seems to work with commands like
"keystone user-list".
Change-Id: Ie4b063340e813ac50cbd4b21e41cc3fa65eebeca
Add new method for calling openstack clis
Add new method for getting uuid via cli
These methods are based upon the identity register provider ones
Add tests
Related change in network: I89dd47c802a544bdd998059b36884cb10f628223
Change-Id: I2b2f1d94dbd67550ad3a352c2205a532173f6065
Implements: blueprint neutron-icehouse-default-changes