oracle / oracle/oci-cli

`logging log-group list` returns nothing with `--compartmentidinsubtree true`

Open
#860 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
669
Forks
236
Avg merge
1m
Merged PRs (30d)
4

Description

oci --debug logging log-group list --compartment-id $TF_VAR_tenancy_ocid --compartmentidinsubtree true using tenancy ID for compartment-id returns empty result. Log groups do exist and are returned when specifying certain Compartment IDs

% oci logging log-group list --compartment-id ocid1.tenancy.oc2..aaaaa4szcbbrkxtwhh4abenvl7yfde2d7v5vtsaaatlpjclpzhteqy3ba72a --compartmentidinsubtree true
% oci logging log-group list --compartment-id ocid1.compartment.oc2..aaaaaaaacfnkuvtrj3rm5cqulrepfpkz733japr5iimkqfc6nmwe5aiwca6a
{
  "data": [
    {
      "compartment-id": "ocid1.compartment.oc2..aaaaaaaacfnkuvtrj3rm5cqulrepfpkz733japr5iimkqfc6nmwe5aiwca6a",
      "defined-tags": {
        "Oracle-Tags": {
          "CreatedBy": "default/jeliker@mythics.com",
          "CreatedOn": "2024-07-12T17:16:19.684Z"
        }
      },
      "description": "Logging for Network resources and services",
      "display-name": "Network",
      "freeform-tags": {},
      "id": "ocid1.loggroup.oc2.us-langley-1.amaaaao6a3v47f5owdk7lz4baapxbh3nngrqvaajfhz6gg23el7vhzrum5gq",
      "lifecycle-state": "ACTIVE",
      "time-created": "2024-07-12T17:16:19.775000+00:00",
      "time-last-modified": "2024-10-17T13:26:08.027000+00:00"
    }
  ]
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the oci logging log-group list command with a tenancy OCID and --compartmentidinsubtree true, then compare it with the compartment-specific invocation shown in the issue. Trace the logging log-group list entry point and verify that the completed behavior returns existing log groups from descendant compartments when the tenancy is used.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.