Skip to content

Commit 3cd1e5d

Browse files
authored
Merge pull request #54 from oracle/release_2.17.0_2021-03-11-07-08-35
Releasing version 2.17.0
2 parents b74332c + 09b8a8d commit 3cd1e5d

File tree

812 files changed

+17299
-1099
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

812 files changed

+17299
-1099
lines changed

CHANGELOG.md

+20
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
55
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [2.17.0] - 2021-03-11
8+
9+
### Added
10+
- Support for the OCI Registry Service
11+
- Support for enabling and disabling database management for external database
12+
- Support for listing recommendation strategies in the optimizer service
13+
- Support for providing target tags and target compartments on profiles in the optimizer service
14+
- Support for custom endpoint feature in the Integration Service
15+
- Support for change network endpoint for integration instance in Integration Service
16+
- `primary_vnic_only` option in inventory plugin to process only the primary vnic of a compute instance
17+
18+
### Fixed
19+
- Return documentation for `oci_object_storage_object_actions` module
20+
21+
### Changed
22+
- Python 2 reached end of life on 1st January, 2020 and [OCI Python SDK](https://github.com/oracle/oci-python-sdk) stopped support for Python 2 long back. We cannot support Python 2 since we have a hard dependency on [OCI Python SDK](https://github.com/oracle/oci-python-sdk). We strongly recommend you to move to Python 3 if you are still using Python 2
23+
- `resource_action_ids` parameter is made optional in `oci_optimizer_recommendation_actions` module
24+
- Parameter `name` is now updatable in `oci_optimizer_profile`
25+
- Please update to the latest version of [OCI Python SDK](https://github.com/oracle/oci-python-sdk)
26+
727
## [2.16.0] - 2021-2-25
828

929
### Added

COMMON_ISSUES.md

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Common Issues
2+
3+
## WARNING: "module oracle.oci.xxx not found in path"
4+
Most likely reason is that the OCI Ansible Collection is not installed.
5+
6+
Please refer the [Installation Guide](https://github.com/oracle/oci-ansible-collection/blob/master/InstallationGuide.md) on different ways to install the OCI Ansible Collection.
7+
8+
If it is already installed, it could be because the version you are using might not have the module. Please upgrade to the latest version using the below command:
9+
10+
`ansible-galaxy collection install -f oracle.oci`
11+
12+
-----------------------------------
13+
## Error: "oci python sdk required for this module"
14+
15+
Try first upgrading the OCI python SDK:
16+
`pip install oci --upgrade`
17+
18+
If the python SDK is not installed correctly, check [Ansible Install Troubleshooting Guide](ansible-oci-customer-troubleshooting/ansible-install-troubleshooting-guide.md).
19+
20+
-----------------------------------
21+
## Error: "Could not find config file at ~/.oci/config"
22+
23+
- Make sure you created a config file under '~/.oci/config' or you are using instance principal.
24+
- To create config file, check: [Configuration_File](https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File)
25+
- To use instance principal on a compute instance set the environment variable: `OCI_ANSIBLE_AUTH_TYPE=instance_principal`
26+
27+
-----------------------------------
28+
## Error: "{'code': 'NotAuthenticated', 'message': 'The required information to complete authentication was not provided.', 'status': 401}"
29+
30+
Check if the [Account Keys](https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/apisigningkey.htm#Required_Keys_and_OCIDs)
31+
are generated correctly and uploaded to the user account with right permissions.
32+
33+
-----------------------------------
34+
## Error: "No inventory plugins available to generate inventory, make sure you have at least one whitelisted."
35+
36+
Enable the OCI Collection inventory plugin by adding it to your ansible.cfg file. For example:<br>
37+
[inventory]<br>
38+
enable_plugins = oracle.oci.oci<br>
39+
40+
-----------------------------------
41+
## In a Mac OSX controller node, Error: "ImportError: No module named yaml" when executing a playbook
42+
43+
First make sure that ansible and its requirements including PyYAML are installed.
44+
If you are running on macOS, and you have python installed by brew, you may see a ImportError(for example: `ImportError: No module named yaml`).
45+
To resolve this, you must override the `ansible_python_interpreter` configuration option. Setting the inventory variable `ansible_python_interpreter` on any host will allow Ansible to auto-replace the interpreter used when executing python modules.
46+
47+
`ansible_python_interpreter` configuration option can be set in inventory file. For example:
48+
49+
```sh
50+
[control-node]
51+
localhost ansible_python_interpreter="/usr/local/Cellar/python/2.7.14_3/bin/python2.7"
52+
```
53+
54+
OR `ansible_python_interpreter` configuration option can be set using `-e` command line option:
55+
56+
```sh
57+
$ ansible-playbook sample-playbook.yml -e 'ansible_python_interpreter=/usr/local/Cellar/python/2.7.14_3/bin/python2.7'
58+
```

FAQ.md

+19-53
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,32 @@
11
# Frequently Asked Questions (FAQs)
22

3-
### Common errors:
3+
## How to install the OCI Ansible Collection
4+
Please refer the [Installation Guide](https://github.com/oracle/oci-ansible-collection/blob/master/InstallationGuide.md) on different ways to install the OCI Ansible Collection.
45

5-
#### WARNING: "module oracle.oci.xxx not found in path"
6-
Check if the `oracle.oci` collection is installed using this command:
7-
`ansible-galaxy collection list`
8-
The collection is installed under the default paths: `~/.ansible/collections` or `/usr/share/ansible/collections`
9-
10-
-----------------------------------
11-
#### Error: "oci python sdk required for this module"
12-
13-
Try first upgrading the OCI python SDK:
14-
`pip install oci --upgrade`
15-
16-
If the python SDK is not installed correctly, check [Ansible Install Troubleshooting Guide](ansible-oci-customer-troubleshooting/ansible-install-troubleshooting-guide.md).
17-
18-
-----------------------------------
19-
#### Error: "Could not find config file at ~/.oci/config"
20-
21-
- Make sure you created a config file under '~/.oci/config' or you are using instance principal.
22-
- To create config file, check: [Configuration_File](https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm#SDK_and_CLI_Configuration_File)
23-
- To use instance principal on a compute instance set the environment variable: `OCI_ANSIBLE_AUTH_TYPE=instance_principal`
24-
25-
-----------------------------------
26-
#### Error: "{'code': 'NotAuthenticated', 'message': 'The required information to complete authentication was not provided.', 'status': 401}"
27-
28-
Check if the [Account Keys](https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/apisigningkey.htm#Required_Keys_and_OCIDs)
29-
are generated correctly and uploaded to the user account with right permissions.
30-
31-
-----------------------------------
32-
#### Error: "No inventory plugins available to generate inventory, make sure you have at least one whitelisted."
33-
34-
Enable the OCI Collection inventory plugin by adding it to your ansible.cfg file. For example:<br>
35-
[inventory]<br>
36-
enable_plugins = oracle.oci.oci<br>
37-
38-
For the legacy modules, use enable_plugins = oci
39-
40-
-----------------------------------
41-
42-
#### In a Mac OSX controller node, Error: "ImportError: No module named yaml" when executing a playbook
43-
44-
First make sure that ansible and its requirements including PyYAML are installed.
45-
If you are running on macOS, and you have python installed by brew, you may see a ImportError(for example: `ImportError: No module named yaml`).
46-
To resolve this, you must override the `ansible_python_interpreter` configuration option. Setting the inventory variable `ansible_python_interpreter` on any host will allow Ansible to auto-replace the interpreter used when executing python modules.
47-
48-
`ansible_python_interpreter` configuration option can be set in inventory file. For example:
49-
50-
```sh
51-
[control-node]
52-
localhost ansible_python_interpreter="/usr/local/Cellar/python/2.7.14_3/bin/python2.7"
6+
## How do I upgrade to the latest version
7+
```
8+
ansible-galaxy collection install -f oracle.oci
539
```
5410

55-
OR `ansible_python_interpreter` configuration option can be set using `-e` command line option:
11+
## How to find the version of the OCI Ansible Collection installed
12+
The below command lists all the collections installed in your system and their versions. You can check the version for the entry `oracle.oci`
13+
```
14+
ansible-galaxy collection list
15+
```
16+
*Note: You need ansible >= 2.10 to run the above command*
5617

57-
```sh
58-
$ ansible-playbook sample-playbook.yml -e 'ansible_python_interpreter=/usr/local/Cellar/python/2.7.14_3/bin/python2.7'
18+
## How to find the version of oci python sdk installed
19+
You can run the below command:
20+
```
21+
python -c 'import oci; print(oci.__version__)'
5922
```
6023

24+
## What are the dependencies for using OCI Ansible Collection
25+
You need `ansible >= 2.9` and the latest version of `oci`.
26+
6127
-----------------------------------
6228

63-
### Enable `debug` mode for the OCI Ansible Cloud Modules
29+
## How to enable `debug` mode
6430

6531
- Set the `log_requests` variable in your ~/.oci/config to `True` to [enable Request logging in the OCI python SDK](https://github.com/oracle/oci-python-sdk/blob/master/docs/logging.rst)
6632
- Export an environment variable named `LOG_LEVEL` with the value `DEBUG` to enable DEBUG mode for the OCI Ansible modules

KNOWN_ISSUES.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Known Issues
2+
3+
## OCI Ansible Modules
4+
5+
### oci_compute_volume_attachment_facts gets Linux iscsi attach commands for both Linux and Windows
6+
When using the oci_compute_volume_attachment_facts module, it outputs Linux iscsi connect commands for Windows attached Block Volumes.
7+
8+
This issue is fixed in v2.14.0 but only when fetching getting the of a specific volume attachment using volume_attachment_id. Please check [this](https://github.com/oracle/oci-ansible-collection/issues/15) for more details.
9+
10+
## OCI Inventory Plugin
11+
12+
### fetch_db_host does not work with tag filters
13+
When the tag filters (freeform_tags and defined_tags) are specified in the config, the db hosts are not returned. This happens because the db hosts do not support tags yet so the plugin filters them since they don't have the specified tags.
14+
15+
Workaround: Avoid using tag filters when fetching db hosts and do any filtering as post processing of the inventory
16+
17+
### Instances with valid hostname_format for secondary vnics but not primary vnic are skipped
18+
The inventory plugin was not processing the secondary VNICs of a compute instance with valid specified hostname_format if the primary VNIC does not have a valid hostname_format.
19+
20+
This issue is fixed in v2.16.0
21+
22+
### Inventory generation fails with JSONDecodeError in ansible tower
23+
The OCI Inventory Plugin outputs some informational log messages along with the inventory. But ansible tower expects the output from the inventory plugin to only contain the inventory in JSON format which caused the failure.
24+
25+
This issue is fixed in v2.16.0

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ Oracle Cloud Infrastructure Ansible Collection supports Ansible Tower and AWX. F
9191
To install the Ansible Tower free version (AWX) on an OCI instance, use this [solution](https://github.com/oracle-quickstart/oci-ansible-awx).
9292

9393
## Help
94-
- For FAQs and common errors, check the [Frequently Asked Questions](https://github.com/oracle/oci-ansible-collections/blob/master/FAQ.md) page.
94+
- For FAQs, check the [Frequently Asked Questions](https://github.com/oracle/oci-ansible-collections/blob/master/FAQ.md) page.
95+
- For commmon issues, check the [Common Issues](https://github.com/oracle/oci-ansible-collections/blob/master/COMMON_ISSUES.md) page.
9596
- To file bugs or feature requests, use [GitHub issues](https://github.com/oracle/oci-ansible-collections/issues).
9697
- For other channels, check the ["Questions or Feedback"](https://docs.cloud.oracle.com/en-us/iaas/Content/API/SDKDocs/ansible.htm#questions) section.
9798

@@ -107,7 +108,7 @@ Oracle gratefully acknowledges the contributions to `oci-ansible-collections` th
107108

108109
## Known Issues
109110

110-
You can find information on any known issues on [GitHub issues](https://github.com/oracle/oci-ansible-collections/issues) page.
111+
You can find information on any known issues on [Known Issues](https://github.com/oracle/oci-ansible-collections/blob/master/KNOWN_ISSUES.md) or [GitHub issues](https://github.com/oracle/oci-ansible-collections/issues) page.
111112

112113
## License
113114

0 commit comments

Comments
 (0)