Skip to content

Commit 4a846de

Browse files
authored
Releasing version 3.11.0
Releasing version 3.11.0
2 parents ed9f755 + 4e7245e commit 4a846de

File tree

22 files changed

+841
-409
lines changed

22 files changed

+841
-409
lines changed

CHANGELOG.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,36 @@ All notable changes to this project will be documented in this file.
66

77
The format is based on `Keep a Changelog <http://keepachangelog.com/>`__.
88

9+
3.11.0 - 2022-07-12
10+
--------------------
11+
Added
12+
~~~~~
13+
* Support to provide database management private endpoint ID as input to enable DBCS databases in the Operations Insights service
14+
15+
* ``oci opsi database-insights create-pe-comanged-database --dbm-private-endpoint-id``
16+
17+
* Support for the below new fields to create data guard association with new db system in the Database service
18+
19+
* ``oci db data-guard-association create with-new-db-system --database-defined-tags --database-freeform-tags --db-system-defined-tags --db-system-freeform-tags --fault-domains --license-model --node-count --private-ip --time-zone``
20+
21+
* Support for Native Pod Networking in Oracle Kubernetes Engine service
22+
23+
* ``oci ce cluster create --cluster-pod-network-options``
24+
* ``oci ce node-pool create --max-pods-per-node --pod-nsg-ids --pod-subnet-ids``
25+
* ``oci ce node-pool update --max-pods-per-node --pod-nsg-ids --pod-subnet-ids``
26+
27+
* Support for Compute Instance Maintenance in the Compute service
28+
29+
* ``oci compute instance action --action rebootmigrate``
30+
31+
Changed
32+
~~~~~~~
33+
* [BREAKING] The confusing flag naming for preserving data volumes created on instance launch --preserve-data-volumes is removed in the compute service
34+
35+
* ``oci compute instance terminate --preserve-data-volumes``
36+
37+
* Bug fixes and improvements to project_o
38+
939
3.10.5 - 2022-06-28
1040
--------------------
1141
Added

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Jinja2==3.0.3
1414
jmespath==0.10.0
1515
ndg-httpsclient==0.4.2
1616
mock==2.0.0
17-
oci==2.73.0
17+
oci==2.75.0
1818
packaging==20.2
1919
pluggy==0.13.0
2020
py==1.10.0

scripts/examples/project_o/README.md

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,14 @@ Public Subnet VLKn:US-ASHBURN-AD-1 AVAILABLE 10.0.0.0/24 sales
5555
- *instantly* get usage help as you search for the command
5656
- *concise* usage typically fits on one screen - no scrolling or searching for the parameter you want
5757
- expand parameter shortcuts into full parameter names
58+
- use the first letter of each word for any multi-word parameter, e.g. ``-wfs`` expands to <nobr>``--wait-for-state``</nobr>
5859
- accept *resource name* in place of OCID values
5960
- resolve ambiguous *resource name*s
6061
- resources can be identified by *compartment/name*
6162
- finds match for partial entry of *name*, *display-name*, *compartment*/*name*
62-
- identical names can be resolved by using partial OCID.
63-
- for example, ``-c ujfa`` would specify the *sales* compartment. Four or five characters will uniquely identify most resources.
64-
- handy when your resource names contain spaces or special characters
63+
- identical names can be resolved by using a substring from the OCID
64+
- for example, ``-c ujfa`` would specify the *sales* compartment. The last four to six characters will uniquely identify most resources.
65+
- handy when your resource names contain spaces or special characters
6566
- support [complex type] parameters where a list of OCIDs is expected
6667
- comma-separated resource names are converted to a JSON list
6768
- simplify [datetime] parameters
@@ -72,7 +73,7 @@ Public Subnet VLKn:US-ASHBURN-AD-1 AVAILABLE 10.0.0.0/24 sales
7273
- *table:* `-o display#lifecycle` or `-o 'display|lifecycle'`
7374
- *text:* `-o display/lifecycle` - displays one field per line
7475
- *csv:* `-o display,lifecycle`
75-
- *JSON:* `-o json` Show all attributes in unfiltered JSON
76+
- *JSON:* `-o json` Show unfiltered JSON output from ``oci``
7677
- Advanced: custom (pythonic) string formatting to truncate long values<br>
7778
`-o 'display{:.20}|create{:10.10}|id{:>8.8}'` will show a table of:
7879
- the first 20 characters of *display-name* The column with be sized to fit the longest name, up to a maximum of 20 characters.
@@ -89,24 +90,25 @@ Public Subnet VLKn:US-ASHBURN-AD-1 AVAILABLE 10.0.0.0/24 sales
8990
- `o ocid sales/bastion` *instantly* shows the full OCIDs for all compartments
9091

9192
## How **``o``** works
92-
- **``o``** compares your input with more than two thousand ``oci`` commands, and uses an intelligent algorithm to find the best match.
93+
- **``o``** compares your input with thousands of ``oci`` commands, and uses an intelligent algorithm to find the best match.
9394

94-
- **``o``** then provides a usage synopsis, showing required and optional parameters. Add "help" to the end to see global parameters as well. End with ``--help go`` to get full ``oci <command> --help``.
95+
- **``o <command>``** provides a usage synopsis, showing required and optional parameters for matching commands. Add "help" to the end to see global parameters as well. E.g. <nobr>``o <command> help``</nobr> provides the usage synopsis with global parameters, while <nobr>``o <command> --help go``</nobr> runs <nobr>``oci <command> --help``</nobr>.
9596

9697
- You add option and parameter shortcuts, and **``o``** shows you the complete ``oci`` command line after performing command, option, and parameter expansions and substitutions.
9798

98-
- **`o`** options such as `o -o field#list` must appear *before* the `<service resource command>` specification. `oci` options must appear *after* `command`. While this option ordering is not strictly required by `oci`, `o` needs this ordering to tell which options are for `o` and which are for `oci`.
99+
- Options for **`o`** such as `-o field#list` must appear *before* the `<command>` specification. `oci` options must appear *after* `<command>`. While this ordering is not strictly required by `oci`, `o` uses this to determine which options are for `o` and which are for `oci`.
99100

100-
- Add "go" to the end of the command and **``o``** will execute the ``oci`` command. ``oci`` typically returns JSON data when you create, get, list, or update resources.
101+
- Add `go` or `.` to the end of the command and **``o``** will execute the ``oci`` command.
101102

102-
- **``o``** inspects the JSON results and collects selected of details about your OCI resources whenever you run any command with ``o ... go``. Most importantly, **``o``** captures resource names and Oracle Cloud IDs (OCIDs). Details are saved to your *$HOME/.oci/ocids* file. **``o``** uses this information to find resources by name, and to translate names to IDs.
103+
- ``oci`` returns JSON data when you create, get, list, or update resources. **``o``** captures resource names and Oracle Cloud IDs (OCIDs) and saves these to your *$HOME/.oci/ocids* file. **``o``** later uses this information to find resources by name, and to translate names to IDs.
103104

104-
- Once **``o``** receives JSON results from oci, it scans the returned data dict for key names that match or partially match any of your <nobr>``-o key/word/list``</nobr>. The key words determine *what* presented, while the **``/``** separator character determines *how* they are presented.
105+
- **``o``** scans the JSON results from ``oci`` for key names that match or partially match any of your <nobr>``-o key/word/list``</nobr>. The key words determine *what* presented, while the **``/``** separator character determines *how* they are presented.
105106

106107
## Requirements
107108

108109
You will need:
109110

111+
- MacOS, Linux or WSL.
110112
- Python 3.6+. If ``oci`` is installed, you have Python.
111113
- ``oci`` - The Oracle Cloud Infrastructure command line interface must be *installed and configured*.
112114
- Try running ``oci os ns get`` to verify that it's working.
@@ -127,11 +129,23 @@ When you first run `o` it will tell you how to create the commands file *$HOME/.
127129

128130
**OCIDs File**
129131

130-
**``o``** uses a local cache of OCID-name mappings called the OCIDs file, located at `.oci/ocids`. If you need to update the OCIDs file after first usage, simply run `o <tenancy_ocid>`.
132+
**``o``** uses a local cache of OCID-to-name mappings called the OCIDs file, located at *$HOME/.oci/ocids*. This is populated during setup when you run `o <tenancy_ocid>`.
131133

132-
**Advanced Setup and Usage**
134+
To use **``o``** with additional tenancies, simply set your OCI_CLI_PROFILE and run `o <tenancy_ocid>` with the new tenancy OCID.
135+
136+
As resources are deleted from your tenancy, **``o``** does automatically remove these from the OCIDs file. Also, as other tenancy users make changes in the tenancy, these changes won't be reflected in your OCIDs file. When these stale OCIDs cause problems with ``o``'s name matching, they may be removed from the OCIDs file with ``o prune <resource-name>``. Or you can start with a fresh OCIDs file by removing *$HOME/.oci/ocids* and run `o <tenancy_ocid>`.
137+
138+
**oci_commands File**
139+
140+
When you run `o oci_commands`, `o` takes a minute or two to build a list of the thousands of possible `oci` commands with their options, and saves this to *$HOME/.oci/oci_commands*. This list is generated on your system to ensure that it matches the commands in your installed version of `oci`.
133141

134-
When you run `o oci_commands`, it takes about a minute to create a list of thousands of possible `oci` commands and their options, and save this to *$HOME/.oci/ocids*. In some cases your `oci` command line environment may be installed without preformatted documentation. In this case it may take 30 to 60 minutes to gather the command information.
142+
In some cases (in Oracle provided OS images) the `oci` command line environment come be pre-installed, but with incomplete documentation. If so, `o` may take an hour or more to gather the command information. To avoid this you can: copy an *oci_commands* file from another source (preferably with a similar `oci` version) to *$HOME/.oci/oci_commands*; or reinstall oci-cli to ensure the full documentation is included.
143+
144+
`oci_commands` should be rebuilt after updating or reinstalling oci-cli. To do this:
145+
- remove the old file: `rm $HOME/.oci/oci_commands`
146+
- Rebuild with: `oci oci_commands`
147+
148+
**Advanced Setup and Usage**
135149

136150
If you use ``oci`` with *instance_principal* authentication, set `` OCI_CLI_AUTH=instance_principal`` in your environment
137151
(rather than use <nobr>``--auth instance_principal``</nobr> with each command).
@@ -153,7 +167,7 @@ If you use ``oci`` for multiple tenancies, by default ``o`` will save OCIDs for
153167
Keep it simple.
154168

155169
- **``o``** does not have a configuration file
156-
- **``o``** does not use environment variables
170+
- **``o``** does not use environment variables (``oci`` does)
157171
- **``o``** minimizes typing (thus its one-letter name)
158172
- **``o``** is forgiving
159173
- accepts plurals when singular is expected

0 commit comments

Comments
 (0)