Skip to content

Commit 12268cb

Browse files
authored
Merge pull request #1644 from oracle/release_gh
Releasing version 4.87.0
2 parents 7d7ee18 + fb42449 commit 12268cb

File tree

321 files changed

+20270
-2511
lines changed

Some content is hidden

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

321 files changed

+20270
-2511
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
## 4.87.0 (August 03, 2022)
2+
3+
### Added
4+
- Support of Announcements Service Subscriptions
5+
- support for rack SN as a system tag
6+
- Support for ExaCS - Monthly Security Patching
7+
- Support patch management
8+
- Support for Private Access Connection in Devops Build Service
9+
- Support for new data source TimeMaintenanceRebootDueMax
10+
- Support for Exacc Monthly Security Patching
11+
- support for Child Tables for NoSQL Database Cloud
12+
- Support for listing volumes/replicas by group/replica group id. Also support to view volume group membership status
13+
- Support for ExaCS in Opctl
14+
15+
### Bug Fix
16+
- Enabled preserve_data_volumes in oci_core_instance delete API
17+
- Enabled host_type in opsi_host_insights_data_source list api
18+
119
## 4.86.1 (July 28, 2022)
220

321
### Bug Fix
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Overview
2+
This is a Terraform configuration that creates the Announcements service Subscription resources on Oracle Cloud Infrastructure.
3+
4+
The Terraform code is used to create a Resource Manager stack, that creates the required resources and configures the application on the created resources.
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
// Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
2+
// Licensed under the Mozilla Public License v2.0
3+
4+
variable "tenancy_ocid" {}
5+
variable "user_ocid" {}
6+
variable "fingerprint" {}
7+
variable "private_key_path" {}
8+
variable "region" {}
9+
variable "compartment_id" {}
10+
11+
variable "announcement_subscription_defined_tags_value" {
12+
default = "value"
13+
}
14+
15+
variable "announcement_subscription_description" {
16+
default = "description"
17+
}
18+
19+
variable "announcement_subscription_display_name" {
20+
default = "displayName"
21+
}
22+
23+
variable "announcement_subscription_filter_groups_filters_type" {
24+
default = "COMPARTMENT_ID"
25+
}
26+
27+
variable "announcement_subscription_filter_groups_filters_value" {
28+
default = "value"
29+
}
30+
31+
variable "announcement_subscription_freeform_tags" {
32+
default = { "bar-key" = "value" }
33+
}
34+
35+
variable "announcement_subscription_id" {
36+
default = "id"
37+
}
38+
39+
variable "announcement_subscription_state" {
40+
default = "ACTIVE"
41+
}
42+
43+
variable "announcement_subscriptions_filter_group_filters_type" {
44+
default = "PLATFORM_TYPE"
45+
}
46+
47+
variable "announcement_subscriptions_filter_group_filters_value" {
48+
default = "IAAS"
49+
}
50+
51+
variable "announcement_subscriptions_filter_group_name" {
52+
default = "fg-name"
53+
}
54+
55+
provider "oci" {
56+
tenancy_ocid = var.tenancy_ocid
57+
user_ocid = var.user_ocid
58+
fingerprint = var.fingerprint
59+
private_key_path = var.private_key_path
60+
region = var.region
61+
}
62+
63+
// Announcement Subscription Resource
64+
resource "oci_announcements_service_announcement_subscription" "test_announcement_subscription" {
65+
#Required
66+
compartment_id = var.compartment_id
67+
display_name = var.announcement_subscription_display_name
68+
ons_topic_id = oci_ons_notification_topic.test_notification_topic.id
69+
70+
#Optional
71+
defined_tags = map(oci_identity_tag_namespace.tag-namespace1.name.oci_identity_tag.tag1.name, var.announcement_subscription_defined_tags_value)
72+
description = var.announcement_subscription_description
73+
filter_groups {
74+
#Required
75+
filters {
76+
#Required
77+
type = var.announcement_subscription_filter_groups_filters_type
78+
value = var.announcement_subscription_filter_groups_filters_value
79+
}
80+
}
81+
freeform_tags = var.announcement_subscription_freeform_tags
82+
}
83+
84+
// Announcement Subscription Change Compartment Resource
85+
resource "oci_announcements_service_announcement_subscriptions_actions_change_compartment" "test_announcement_subscriptions_actions_change_compartment" {
86+
#Required
87+
announcement_subscription_id = oci_announcements_service_announcement_subscription.test_announcement_subscription.id
88+
compartment_id = var.compartment_id
89+
}
90+
91+
// Announcement Subscription Filter Group Resource
92+
resource "oci_announcements_service_announcement_subscriptions_filter_group" "test_announcement_subscriptions_filter_group" {
93+
#Required
94+
announcement_subscription_id = oci_announcements_service_announcement_subscription.test_announcement_subscription.id
95+
filters {
96+
#Required
97+
type = var.announcement_subscriptions_filter_group_filters_type
98+
value = var.announcement_subscriptions_filter_group_filters_value
99+
}
100+
name = var.announcement_subscriptions_filter_group_name
101+
}
102+
103+
data "oci_announcements_service_announcement_subscriptions" "test_announcement_subscriptions" {
104+
#Required
105+
compartment_id = var.compartment_id
106+
107+
#Optional
108+
display_name = var.announcement_subscription_display_name
109+
id = var.announcement_subscription_id
110+
state = var.announcement_subscription_state
111+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
variable "bds_instance_patch_action_cluster_admin_password" {
2+
default = "V2VsY29tZTE="
3+
}
4+
5+
variable "bds_instance_patch_action_version" {
6+
default = "ODH-1.1.0.379"
7+
}
8+
9+
variable "bds_instance_patch_history_patch_version" {}
10+
11+
variable "bds_instance_patch_history_state" {}
12+
13+
variable "bds_instance_id" {}
14+
15+
resource "oci_bds_bds_instance_patch_action" "test_bds_instance_patch_action" {
16+
#Required
17+
bds_instance_id = var.bds_instance_id
18+
cluster_admin_password = var.bds_instance_patch_action_cluster_admin_password
19+
version = var.bds_instance_patch_action_version
20+
}
21+
22+
data "oci_bds_bds_instance_patches" "test_bds_instance_patches" {
23+
#Required
24+
bds_instance_id = var.bds_instance_id
25+
}
26+
27+
data "oci_bds_bds_instance_patch_histories" "test_bds_instance_patch_histories" {
28+
#Required
29+
bds_instance_id = var.bds_instance_id
30+
31+
#Optional
32+
patch_version = var.bds_instance_patch_history_patch_version
33+
state = var.bds_instance_patch_history_state
34+
}
6.79 KB
Binary file not shown.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# https://orahub.oci.oraclecorp.com/ateam/jobs/-/raw/master/python_jobs/job_std_logs.py
2+
3+
import oci
4+
import datetime
5+
import os
6+
import time
7+
import sys
8+
from oci.loggingingestion import LoggingClient
9+
10+
OCI_RESOURCE_PRINCIPAL_VERSION = "OCI_RESOURCE_PRINCIPAL_VERSION"
11+
JOB_RUN_OCID_KEY = "JOB_RUN_OCID"
12+
LOG_OBJECT_OCID_KEY = "LOG_OCID"
13+
14+
class Job:
15+
def __init__(self):
16+
# Auto switch between local and job
17+
rp_version = os.environ.get(OCI_RESOURCE_PRINCIPAL_VERSION, "UNDEFINED")
18+
if rp_version == "UNDEFINED":
19+
# RUN LOCAL TEST
20+
self.signer = oci.config.from_file("~/.oci/config", "DEFAULT")
21+
self.log_client = LoggingClient(config=self.signer)
22+
else:
23+
# RUN AS JOB
24+
self.signer = oci.auth.signers.get_resource_principals_signer()
25+
self.log_client = LoggingClient(config={}, signer=self.signer)
26+
try:
27+
job = Job()
28+
29+
try:
30+
print(
31+
"Start logging for job run: {}".format(
32+
os.environ.get(JOB_RUN_OCID_KEY, "UNDEFINED")
33+
)
34+
)
35+
print("Current timestamp in UTC: {}".format(str(datetime.datetime.utcnow())))
36+
37+
print("Delay 5s")
38+
39+
time.sleep(5)
40+
41+
print("Log after delay...")
42+
43+
print("Job Done.")
44+
except Exception as e:
45+
print(e)
46+
raise e
47+
except Exception as e:
48+
print(e)
49+
raise e

examples/datascience/job.tf renamed to examples/datascience/job/job.tf

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -61,43 +61,43 @@ resource "oci_core_security_list" "regional_with_natgw" {
6161
egress_security_rules {
6262
destination = "0.0.0.0/0"
6363
protocol = "all"
64-
stateless = false
64+
stateless = false
6565
}
6666
}
6767

6868
resource "oci_logging_log_group" "job" {
6969
compartment_id = var.compartment_ocid
70-
display_name = "jobs"
70+
display_name = "jobs"
7171
}
7272

7373
resource "oci_datascience_project" "job" {
7474
compartment_id = var.compartment_ocid
7575
}
7676

7777
resource "oci_datascience_job" "job" {
78-
compartment_id = var.compartment_ocid
79-
project_id = oci_datascience_project.job.id
80-
job_artifact = "${path.root}/job-artifact.py"
81-
artifact_content_length = 1380
78+
compartment_id = var.compartment_ocid
79+
project_id = oci_datascience_project.job.id
80+
job_artifact = "${path.root}/job-artifact.py"
81+
artifact_content_length = 1380
8282
artifact_content_disposition = "attachment; filename=job_artifact.py"
83-
delete_related_job_runs = true
83+
delete_related_job_runs = true
8484

8585
job_configuration_details {
86-
job_type = "DEFAULT"
86+
job_type = "DEFAULT"
8787
maximum_runtime_in_minutes = 30
8888
}
8989

9090
job_infrastructure_configuration_details {
91-
job_infrastructure_type = "STANDALONE"
92-
shape_name = "VM.Standard2.2"
93-
subnet_id = oci_core_subnet.regional_with_natgw.id
91+
job_infrastructure_type = "STANDALONE"
92+
shape_name = "VM.Standard2.2"
93+
subnet_id = oci_core_subnet.regional_with_natgw.id
9494
block_storage_size_in_gbs = 66
9595
}
9696

9797
job_log_configuration_details {
98-
enable_logging = true
98+
enable_logging = true
9999
enable_auto_log_creation = true
100-
log_group_id = oci_logging_log_group.job.id
100+
log_group_id = oci_logging_log_group.job.id
101101
}
102102
}
103103

@@ -116,28 +116,28 @@ data "oci_datascience_jobs" "by_compartment" {
116116
# terraform will wait until the JobRun reaches completion.
117117
resource "oci_datascience_job_run" "sync" {
118118
compartment_id = var.compartment_ocid
119-
project_id = oci_datascience_project.job.id
120-
job_id = oci_datascience_project.job.id
121-
asynchronous = false
119+
project_id = oci_datascience_project.job.id
120+
job_id = oci_datascience_project.job.id
121+
asynchronous = false
122122
}
123123

124124
# terraform will NOT wait for completion before returning.
125125
# it will move on once the JobRun has reached "In Progress" status.
126126
resource "oci_datascience_job_run" "async" {
127127
compartment_id = var.compartment_ocid
128-
project_id = oci_datascience_project.job.id
129-
job_id = oci_datascience_project.job.id
130-
asynchronous = true
128+
project_id = oci_datascience_project.job.id
129+
job_id = oci_datascience_project.job.id
130+
asynchronous = true
131131
}
132132

133133
data "oci_datascience_job_runs" "by_compartment" {
134134
#Required
135135
compartment_id = var.compartment_ocid
136136

137-
# #Optional
138-
# created_by = var.job_run_created_by
139-
# display_name = var.job_run_display_name
140-
# id = var.job_run_id
141-
# job_id = oci_datascience_job.job.id
142-
# state = var.job_run_state
143-
# }
137+
# #Optional
138+
# created_by = var.job_run_created_by
139+
# display_name = var.job_run_display_name
140+
# id = var.job_run_id
141+
# job_id = oci_datascience_job.job.id
142+
# state = var.job_run_state
143+
}
6.79 KB
Binary file not shown.

examples/datascience/model_deployment.tf renamed to examples/datascience/model_deployment/model_deployment.tf

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ resource "oci_datascience_model" "tf_model" {
7171
project_id = var.project_ocid
7272
# Optional
7373
artifact_content_disposition = var.content_disposition
74-
defined_tags = var.model_defined_tags
75-
description = var.model_description
76-
display_name = var.model_display_name
77-
freeform_tags = var.model_freeform_tag
74+
defined_tags = var.model_defined_tags
75+
description = var.model_description
76+
display_name = var.model_display_name
77+
freeform_tags = var.model_freeform_tag
7878
}
7979

8080
# A data resource for the list of models in a specified compartment
@@ -103,9 +103,6 @@ variable "model_deployment_description" {
103103
default = "Model Deployment for terraform testing"
104104
}
105105

106-
variable "shape" {
107-
}
108-
109106
variable "log_group_id" {
110107
}
111108

6.79 KB
Binary file not shown.

0 commit comments

Comments
 (0)