[asterion@demo-box setupLoadBalancer]$ pwd
/home/asterion/asterion/oracle/admin/setupLoadBalancer
[asterion@demo-box ~]$ ./setupLoadBalancer.sh
Mon Nov 1 04:27:10 GMT 2021
This script will setup an SSL enabled load balancer.
This script is designed to be run from an AsterionDB Marketplace Image
compute instance. The instance this script is running from will be placed
in the backup sets assigned to the load balancer.
This script is limited to only creating a regional load balancer. The VCN subnet
that you use must be created as a regional subnet (subnet_type = regional).
This instance will be used for Let's Encrypt registration and certification maintenance.
You will need to register the public IP address for the load balancer with your DNS provider.
You will need the following information:
- Your domain name (i.e. your.domain.com)
- An email address to use when registering with Let's Encrypt
- The compartment OCID that the load balancer will be placed to
- The VCN subnet OCID that the load balancer will be placed in
Press ENTER to continue...
Do you want a production (default) or a test certificate [p|t]?
Enter your domain name: cloud-demo.asteriondb.com
Enter your email address: support@no-spam.com
Enter the compartment OCID that the load balancer will be placed in: ocid1.compartment.oc1..aaaaaaaavlq5inzaax6pdbc576ertgntmbooa3tjbaoewx3ryxu67uml5evq
Enter the VCN subnet OCID that the load balancer will be placed in: ocid1.subnet.oc1.phx.aaaaaaaaxqmmkitrqitlwyaqu63vvsqgtrgfdpn3pg66a474hudssz4ofy6q
These are the load balancer shapes available:
1 - Flexible (default)
2 - 10Mbps-Micro (Always Free)
3 - 10Mbps
4 - 100Mbps
5 - 400Mbps
6 - 800Mbps
Enter the number of the desired shape [1]: 2
Press ENTER to begin the creation process...
Creating the load balancer...
Action completed. Waiting until the work request has entered state: ('SUCCEEDED',)
The load balancer has been created...
The public IP address of the load balancer for cloud-demo.asteriondb.com is: 132.226.124.231
Register this IP address with your DNS provider.
Verify that the DNS entry is available and then press ENTER to continue...
Installing Certbot and opening port 80...
Loaded plugins: langpacks, ulninfo
Resolving Dependencies
--> Running transaction check
---> Package certbot.noarch 0:1.11.0-2.el7 will be installed
--> Processing Dependency: python2-certbot = 1.11.0-2.el7 for package: certbot-1.11.0-2.el7.noarch
--> Running transaction check
---> Package python2-certbot.noarch 0:1.11.0-2.el7 will be installed
--> Processing Dependency: python-parsedatetime >= 1.3 for package: python2-certbot-1.11.0-2.el7.noarch
--> Processing Dependency: python2-acme >= 1.8.0 for package: python2-certbot-1.11.0-2.el7.noarch
--> Processing Dependency: python2-configargparse >= 0.9.3 for package: python2-certbot-1.11.0-2.el7.noarch
--> Processing Dependency: python2-distro >= 1.0.1 for package: python2-certbot-1.11.0-2.el7.noarch
--> Processing Dependency: python2-josepy >= 1.1.0 for package: python2-certbot-1.11.0-2.el7.noarch
--> Processing Dependency: python-zope-component for package: python2-certbot-1.11.0-2.el7.noarch
--> Processing Dependency: python-zope-interface for package: python2-certbot-1.11.0-2.el7.noarch
--> Processing Dependency: python2-mock for package: python2-certbot-1.11.0-2.el7.noarch
--> Processing Dependency: python2-pyrfc3339 for package: python2-certbot-1.11.0-2.el7.noarch
--> Processing Dependency: pytz for package: python2-certbot-1.11.0-2.el7.noarch
--> Running transaction check
---> Package python-zope-component.noarch 1:4.1.0-5.0.1.el7 will be installed
--> Processing Dependency: python-zope-event for package: 1:python-zope-component-4.1.0-5.0.1.el7.noarch
---> Package python-zope-interface.x86_64 0:4.0.5-4.el7 will be installed
---> Package python2-acme.noarch 0:1.11.0-1.el7 will be installed
--> Processing Dependency: python-ndg_httpsclient for package: python2-acme-1.11.0-1.el7.noarch
--> Processing Dependency: python-requests-toolbelt for package: python2-acme-1.11.0-1.el7.noarch
--> Processing Dependency: python2-six for package: python2-acme-1.11.0-1.el7.noarch
---> Package python2-configargparse.noarch 0:0.11.0-2.el7 will be installed
---> Package python2-distro.noarch 0:1.5.0-1.el7 will be installed
---> Package python2-josepy.noarch 0:1.3.0-2.el7 will be installed
---> Package python2-mock.noarch 0:1.0.1-10.el7 will be installed
---> Package python2-parsedatetime.noarch 0:2.4-6.el7 will be installed
--> Processing Dependency: python2-future for package: python2-parsedatetime-2.4-6.el7.noarch
---> Package python2-pyrfc3339.noarch 0:1.1-3.el7 will be installed
---> Package pytz.noarch 0:2016.10-2.el7 will be installed
--> Running transaction check
---> Package python-ndg_httpsclient.noarch 0:0.3.2-1.el7 will be installed
---> Package python-requests-toolbelt.noarch 0:0.8.0-3.el7 will be installed
---> Package python-zope-event.noarch 0:4.0.3-2.el7 will be installed
---> Package python2-future.noarch 0:0.18.2-2.el7 will be installed
---> Package python2-six.noarch 0:1.9.0-0.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================================
Installing:
certbot noarch 1.11.0-2.el7 ol7_developer_EPEL 46 k
Installing for dependencies:
python-ndg_httpsclient noarch 0.3.2-1.el7 ol7_developer_EPEL 42 k
python-requests-toolbelt noarch 0.8.0-3.el7 ol7_developer_EPEL 77 k
python-zope-component noarch 1:4.1.0-5.0.1.el7 ol7_developer_EPEL 227 k
python-zope-event noarch 4.0.3-2.el7 ol7_developer_EPEL 78 k
python-zope-interface x86_64 4.0.5-4.el7 ol7_optional_latest 138 k
python2-acme noarch 1.11.0-1.el7 ol7_developer_EPEL 82 k
python2-certbot noarch 1.11.0-2.el7 ol7_developer_EPEL 385 k
python2-configargparse noarch 0.11.0-2.el7 ol7_developer_EPEL 30 k
python2-distro noarch 1.5.0-1.el7 ol7_developer_EPEL 32 k
python2-future noarch 0.18.2-2.el7 ol7_developer_EPEL 805 k
python2-josepy noarch 1.3.0-2.el7 ol7_developer_EPEL 89 k
python2-mock noarch 1.0.1-10.el7 ol7_developer_EPEL 91 k
python2-parsedatetime noarch 2.4-6.el7 ol7_developer_EPEL 78 k
python2-pyrfc3339 noarch 1.1-3.el7 ol7_developer_EPEL 15 k
python2-six noarch 1.9.0-0.el7 ol7_developer_EPEL 2.3 k
pytz noarch 2016.10-2.el7 ol7_latest 46 k
Transaction Summary
==============================================================================================================================================================================
Install 1 Package (+16 Dependent packages)
Total download size: 2.2 M
Installed size: 9.8 M
Downloading packages:
(1/17): python-ndg_httpsclient-0.3.2-1.el7.noarch.rpm | 42 kB 00:00:00
(2/17): certbot-1.11.0-2.el7.noarch.rpm | 46 kB 00:00:00
(3/17): python-requests-toolbelt-0.8.0-3.el7.noarch.rpm | 77 kB 00:00:00
(4/17): python-zope-component-4.1.0-5.0.1.el7.noarch.rpm | 227 kB 00:00:00
(5/17): python-zope-event-4.0.3-2.el7.noarch.rpm | 78 kB 00:00:00
(6/17): python2-acme-1.11.0-1.el7.noarch.rpm | 82 kB 00:00:00
(7/17): python2-configargparse-0.11.0-2.el7.noarch.rpm | 30 kB 00:00:00
(8/17): python2-certbot-1.11.0-2.el7.noarch.rpm | 385 kB 00:00:00
(9/17): python2-distro-1.5.0-1.el7.noarch.rpm | 32 kB 00:00:00
(10/17): python2-future-0.18.2-2.el7.noarch.rpm | 805 kB 00:00:00
(11/17): python2-mock-1.0.1-10.el7.noarch.rpm | 91 kB 00:00:00
(12/17): python2-josepy-1.3.0-2.el7.noarch.rpm | 89 kB 00:00:00
(13/17): python2-parsedatetime-2.4-6.el7.noarch.rpm | 78 kB 00:00:00
(14/17): python2-pyrfc3339-1.1-3.el7.noarch.rpm | 15 kB 00:00:00
(15/17): python2-six-1.9.0-0.el7.noarch.rpm | 2.3 kB 00:00:00
(16/17): python-zope-interface-4.0.5-4.el7.x86_64.rpm | 138 kB 00:00:00
(17/17): pytz-2016.10-2.el7.noarch.rpm | 46 kB 00:00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.1 MB/s | 2.2 MB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : python2-six-1.9.0-0.el7.noarch 1/17
Installing : python2-josepy-1.3.0-2.el7.noarch 2/17
Installing : python2-pyrfc3339-1.1-3.el7.noarch 3/17
Installing : python-zope-interface-4.0.5-4.el7.x86_64 4/17
Installing : pytz-2016.10-2.el7.noarch 5/17
Installing : python2-mock-1.0.1-10.el7.noarch 6/17
Installing : python2-distro-1.5.0-1.el7.noarch 7/17
Installing : python2-future-0.18.2-2.el7.noarch 8/17
Installing : python2-parsedatetime-2.4-6.el7.noarch 9/17
Installing : python-requests-toolbelt-0.8.0-3.el7.noarch 10/17
Installing : python-zope-event-4.0.3-2.el7.noarch 11/17
Installing : 1:python-zope-component-4.1.0-5.0.1.el7.noarch 12/17
Installing : python-ndg_httpsclient-0.3.2-1.el7.noarch 13/17
Installing : python2-acme-1.11.0-1.el7.noarch 14/17
Installing : python2-configargparse-0.11.0-2.el7.noarch 15/17
Installing : python2-certbot-1.11.0-2.el7.noarch 16/17
Installing : certbot-1.11.0-2.el7.noarch 17/17
Verifying : python2-josepy-1.3.0-2.el7.noarch 1/17
Verifying : pytz-2016.10-2.el7.noarch 2/17
Verifying : 1:python-zope-component-4.1.0-5.0.1.el7.noarch 3/17
Verifying : python2-configargparse-0.11.0-2.el7.noarch 4/17
Verifying : certbot-1.11.0-2.el7.noarch 5/17
Verifying : python-ndg_httpsclient-0.3.2-1.el7.noarch 6/17
Verifying : python-zope-event-4.0.3-2.el7.noarch 7/17
Verifying : python-zope-interface-4.0.5-4.el7.x86_64 8/17
Verifying : python2-acme-1.11.0-1.el7.noarch 9/17
Verifying : python2-pyrfc3339-1.1-3.el7.noarch 10/17
Verifying : python2-certbot-1.11.0-2.el7.noarch 11/17
Verifying : python2-six-1.9.0-0.el7.noarch 12/17
Verifying : python-requests-toolbelt-0.8.0-3.el7.noarch 13/17
Verifying : python2-future-0.18.2-2.el7.noarch 14/17
Verifying : python2-distro-1.5.0-1.el7.noarch 15/17
Verifying : python2-parsedatetime-2.4-6.el7.noarch 16/17
Verifying : python2-mock-1.0.1-10.el7.noarch 17/17
Installed:
certbot.noarch 0:1.11.0-2.el7
Dependency Installed:
python-ndg_httpsclient.noarch 0:0.3.2-1.el7 python-requests-toolbelt.noarch 0:0.8.0-3.el7 python-zope-component.noarch 1:4.1.0-5.0.1.el7
python-zope-event.noarch 0:4.0.3-2.el7 python-zope-interface.x86_64 0:4.0.5-4.el7 python2-acme.noarch 0:1.11.0-1.el7
python2-certbot.noarch 0:1.11.0-2.el7 python2-configargparse.noarch 0:0.11.0-2.el7 python2-distro.noarch 0:1.5.0-1.el7
python2-future.noarch 0:0.18.2-2.el7 python2-josepy.noarch 0:1.3.0-2.el7 python2-mock.noarch 0:1.0.1-10.el7
python2-parsedatetime.noarch 0:2.4-6.el7 python2-pyrfc3339.noarch 0:1.1-3.el7 python2-six.noarch 0:1.9.0-0.el7
pytz.noarch 0:2016.10-2.el7
Complete!
success
success
Setting up security list...
Action completed. Waiting until the resource has entered state: ('AVAILABLE',)
{
"data": {
"compartment-id": "ocid1.compartment.oc1..aaaaaaaavlq5inzaax6pdbc576ertgntmbooa3tjbaoewx3ryxu67uml5evq",
"defined-tags": {
"Oracle-Tags": {
"CreatedBy": "oracleidentitycloudservice/sguil4d@no-spam.net",
"CreatedOn": "2021-11-01T03:37:33.570Z"
}
},
"display-name": "Default Security List for vcn-20211031-2036",
"egress-security-rules": [
{
"description": "Created by setupLoadBalancer script.",
"destination": "0.0.0.0/0",
"destination-type": "CIDR_BLOCK",
"icmp-options": null,
"is-stateless": false,
"protocol": "all",
"tcp-options": null,
"udp-options": null
}
],
"freeform-tags": {},
"id": "ocid1.securitylist.oc1.phx.aaaaaaaaok4ov3xl6kxiyia5jknptun5ty7gagr2adlch6wq6437jxv3vrxa",
"ingress-security-rules": [
{
"description": "Created by setupLoadBalancer script.",
"icmp-options": null,
"is-stateless": false,
"protocol": "6",
"source": "0.0.0.0/0",
"source-type": "CIDR_BLOCK",
"tcp-options": {
"destination-port-range": {
"max": 443,
"min": 443
},
"source-port-range": null
},
"udp-options": null
},
{
"description": "Created by setupLoadBalancer script.",
"icmp-options": null,
"is-stateless": false,
"protocol": "6",
"source": "0.0.0.0/0",
"source-type": "CIDR_BLOCK",
"tcp-options": {
"destination-port-range": {
"max": 80,
"min": 80
},
"source-port-range": null
},
"udp-options": null
},
{
"description": "Created by setupLoadBalancer script.",
"icmp-options": null,
"is-stateless": false,
"protocol": "6",
"source": "0.0.0.0/0",
"source-type": "CIDR_BLOCK",
"tcp-options": {
"destination-port-range": {
"max": 22,
"min": 22
},
"source-port-range": null
},
"udp-options": null
},
{
"description": "Created by setupLoadBalancer script.",
"icmp-options": null,
"is-stateless": false,
"protocol": "6",
"source": "10.0.0.0/24",
"source-type": "CIDR_BLOCK",
"tcp-options": {
"destination-port-range": {
"max": 8080,
"min": 8080
},
"source-port-range": null
},
"udp-options": null
},
{
"description": "Created by setupLoadBalancer script.",
"icmp-options": {
"code": 4,
"type": 3
},
"is-stateless": false,
"protocol": "1",
"source": "0.0.0.0/0",
"source-type": "CIDR_BLOCK",
"tcp-options": null,
"udp-options": null
},
{
"description": "Created by setupLoadBalancer script.",
"icmp-options": {
"code": null,
"type": 3
},
"is-stateless": false,
"protocol": "1",
"source": "10.0.0.0/16",
"source-type": "CIDR_BLOCK",
"tcp-options": null,
"udp-options": null
}
],
"lifecycle-state": "AVAILABLE",
"time-created": "2021-11-01T03:37:33.705000+00:00",
"vcn-id": "ocid1.vcn.oc1.phx.amaaaaaaqgjjq6yat454tlkukg4lrezdfitakswur7s36vmmsle3xu3qznfa"
},
"etag": "9a14aecc"
}
Creating certbot_bs backend set...
Action completed. Waiting until the work request has entered state: ('SUCCEEDED',)
{
"data": {
"compartment-id": "ocid1.compartment.oc1..aaaaaaaavlq5inzaax6pdbc576ertgntmbooa3tjbaoewx3ryxu67uml5evq",
"error-details": [],
"id": "ocid1.loadbalancerworkrequest.oc1.phx.aaaaaaaajmtvajmffnbvrvolzukf2w3lhxv2ewyxy2k2p2v5xwk33ctpn7tq",
"lifecycle-state": "SUCCEEDED",
"load-balancer-id": "ocid1.loadbalancer.oc1.phx.aaaaaaaabstamcc7an63bpuc6p5rrs2x2fqrneb7wgtxuh7xchygqxub7shq",
"message": "{\n \"eventId\" : \"3e2e33ba-10e2-4cee-b2cb-d33f85ac7196\",\n \"loadBalancerId\" : \"ocid1.loadbalancer.oc1.phx.aaaaaaaabstamcc7an63bpuc6p5rrs2x2fqrneb7wgtxuh7xchygqxub7shq\",\n \"workflowName\" : \"AddBackendSetWorkflow\",\n \"type\" : \"SUCCESS\",\n \"message\" : \"OK\",\n \"workRequestId\" : \"ocid1.loadbalancerworkrequest.oc1.phx.aaaaaaaajmtvajmffnbvrvolzukf2w3lhxv2ewyxy2k2p2v5xwk33ctpn7tq\"\n}",
"time-accepted": "2021-11-01T04:31:51.745000+00:00",
"time-finished": "2021-11-01T04:32:01.240000+00:00",
"type": "CreateBackendSet"
}
}
Creating https_bs backend set...
Action completed. Waiting until the work request has entered state: ('SUCCEEDED',)
{
"data": {
"compartment-id": "ocid1.compartment.oc1..aaaaaaaavlq5inzaax6pdbc576ertgntmbooa3tjbaoewx3ryxu67uml5evq",
"error-details": [],
"id": "ocid1.loadbalancerworkrequest.oc1.phx.aaaaaaaaiyj3awuqnfo4wlrwtjgsbwo6ntiykgb5ccq73jaeinlcg5jvta4q",
"lifecycle-state": "SUCCEEDED",
"load-balancer-id": "ocid1.loadbalancer.oc1.phx.aaaaaaaabstamcc7an63bpuc6p5rrs2x2fqrneb7wgtxuh7xchygqxub7shq",
"message": "{\n \"eventId\" : \"4b8e6368-bd5d-434c-9007-15d22a906fdc\",\n \"loadBalancerId\" : \"ocid1.loadbalancer.oc1.phx.aaaaaaaabstamcc7an63bpuc6p5rrs2x2fqrneb7wgtxuh7xchygqxub7shq\",\n \"workflowName\" : \"AddBackendSetWorkflow\",\n \"type\" : \"SUCCESS\",\n \"message\" : \"OK\",\n \"workRequestId\" : \"ocid1.loadbalancerworkrequest.oc1.phx.aaaaaaaaiyj3awuqnfo4wlrwtjgsbwo6ntiykgb5ccq73jaeinlcg5jvta4q\"\n}",
"time-accepted": "2021-11-01T04:32:09.387000+00:00",
"time-finished": "2021-11-01T04:32:51.257000+00:00",
"type": "CreateBackendSet"
}
}
Creating https backend...
Action completed. Waiting until the work request has entered state: ('SUCCEEDED',)
{
"data": {
"compartment-id": "ocid1.compartment.oc1..aaaaaaaavlq5inzaax6pdbc576ertgntmbooa3tjbaoewx3ryxu67uml5evq",
"error-details": [],
"id": "ocid1.loadbalancerworkrequest.oc1.phx.aaaaaaaaxhs6xsmuofod3nfqmbqqqiizdwnozhg624k7pv35drajkdndfzaq",
"lifecycle-state": "SUCCEEDED",
"load-balancer-id": "ocid1.loadbalancer.oc1.phx.aaaaaaaabstamcc7an63bpuc6p5rrs2x2fqrneb7wgtxuh7xchygqxub7shq",
"message": "{\n \"eventId\" : \"6313da3e-d659-477a-9d8c-8f6f93329ee8\",\n \"loadBalancerId\" : \"ocid1.loadbalancer.oc1.phx.aaaaaaaabstamcc7an63bpuc6p5rrs2x2fqrneb7wgtxuh7xchygqxub7shq\",\n \"workflowName\" : \"AddBackendWorkflow\",\n \"type\" : \"SUCCESS\",\n \"message\" : \"OK\",\n \"workRequestId\" : \"ocid1.loadbalancerworkrequest.oc1.phx.aaaaaaaaxhs6xsmuofod3nfqmbqqqiizdwnozhg624k7pv35drajkdndfzaq\"\n}",
"time-accepted": "2021-11-01T04:32:58.816000+00:00",
"time-finished": "2021-11-01T04:33:14.148000+00:00",
"type": "CreateBackend"
}
}
Creating certbot backend...
Action completed. Waiting until the work request has entered state: ('SUCCEEDED',)
{
"data": {
"compartment-id": "ocid1.compartment.oc1..aaaaaaaavlq5inzaax6pdbc576ertgntmbooa3tjbaoewx3ryxu67uml5evq",
"error-details": [],
"id": "ocid1.loadbalancerworkrequest.oc1.phx.aaaaaaaaict5ykfmgpv7c3s2brdcz7eauysdqc5c7zuipcq34g4wflt33bnq",
"lifecycle-state": "SUCCEEDED",
"load-balancer-id": "ocid1.loadbalancer.oc1.phx.aaaaaaaabstamcc7an63bpuc6p5rrs2x2fqrneb7wgtxuh7xchygqxub7shq",
"message": "{\n \"eventId\" : \"2d77f9d8-926a-4dc1-9d8d-e0b3e9ac1011\",\n \"loadBalancerId\" : \"ocid1.loadbalancer.oc1.phx.aaaaaaaabstamcc7an63bpuc6p5rrs2x2fqrneb7wgtxuh7xchygqxub7shq\",\n \"workflowName\" : \"AddBackendWorkflow\",\n \"type\" : \"SUCCESS\",\n \"message\" : \"OK\",\n \"workRequestId\" : \"ocid1.loadbalancerworkrequest.oc1.phx.aaaaaaaaict5ykfmgpv7c3s2brdcz7eauysdqc5c7zuipcq34g4wflt33bnq\"\n}",
"time-accepted": "2021-11-01T04:33:22.117000+00:00",
"time-finished": "2021-11-01T04:33:35.158000+00:00",
"type": "CreateBackend"
}
}
Creating routing policy for certbot...
Action completed. Waiting until the work request has entered state: ('SUCCEEDED',)
{
"data": {
"compartment-id": "ocid1.compartment.oc1..aaaaaaaavlq5inzaax6pdbc576ertgntmbooa3tjbaoewx3ryxu67uml5evq",
"error-details": [],
"id": "ocid1.loadbalancerworkrequest.oc1.phx.aaaaaaaa5um2qihlubmilepodeejlcsjnctm4hijq5nsber73ycnzfglykqa",
"lifecycle-state": "SUCCEEDED",
"load-balancer-id": "ocid1.loadbalancer.oc1.phx.aaaaaaaabstamcc7an63bpuc6p5rrs2x2fqrneb7wgtxuh7xchygqxub7shq",
"message": "{\n \"eventId\" : \"640295f1-47eb-4591-8c22-5fad6317b579\",\n \"loadBalancerId\" : \"ocid1.loadbalancer.oc1.phx.aaaaaaaabstamcc7an63bpuc6p5rrs2x2fqrneb7wgtxuh7xchygqxub7shq\",\n \"workflowName\" : \"AddRoutingPolicyWorkflow\",\n \"type\" : \"SUCCESS\",\n \"message\" : \"OK\",\n \"workRequestId\" : \"ocid1.loadbalancerworkrequest.oc1.phx.aaaaaaaa5um2qihlubmilepodeejlcsjnctm4hijq5nsber73ycnzfglykqa\"\n}",
"time-accepted": "2021-11-01T04:33:43.155000+00:00",
"time-finished": "2021-11-01T04:33:56.869000+00:00",
"type": "AddRoutingPolicy"
}
}
Creating HTTP redirect rule set...
Action completed. Waiting until the work request has entered state: ('SUCCEEDED',)
{
"data": {
"compartment-id": "ocid1.compartment.oc1..aaaaaaaavlq5inzaax6pdbc576ertgntmbooa3tjbaoewx3ryxu67uml5evq",
"error-details": [],
"id": "ocid1.loadbalancerworkrequest.oc1.phx.aaaaaaaa2g2idwce7kp4iswnhjja455dlyq7ggzhpi4bntq3c5ujbgde6v5q",
"lifecycle-state": "SUCCEEDED",
"load-balancer-id": "ocid1.loadbalancer.oc1.phx.aaaaaaaabstamcc7an63bpuc6p5rrs2x2fqrneb7wgtxuh7xchygqxub7shq",
"message": "{\n \"eventId\" : \"65222d10-00fe-42f1-91e4-b48dc9a8f64c\",\n \"loadBalancerId\" : \"ocid1.loadbalancer.oc1.phx.aaaaaaaabstamcc7an63bpuc6p5rrs2x2fqrneb7wgtxuh7xchygqxub7shq\",\n \"workflowName\" : \"AddRuleSetWorkflow\",\n \"type\" : \"SUCCESS\",\n \"message\" : \"OK\",\n \"workRequestId\" : \"ocid1.loadbalancerworkrequest.oc1.phx.aaaaaaaa2g2idwce7kp4iswnhjja455dlyq7ggzhpi4bntq3c5ujbgde6v5q\"\n}",
"time-accepted": "2021-11-01T04:34:08.703000+00:00",
"time-finished": "2021-11-01T04:34:18.997000+00:00",
"type": "CreateRuleSet"
}
}
Creating HTTP listener...
Action completed. Waiting until the work request has entered state: ('SUCCEEDED',)
{
"data": {
"compartment-id": "ocid1.compartment.oc1..aaaaaaaavlq5inzaax6pdbc576ertgntmbooa3tjbaoewx3ryxu67uml5evq",
"error-details": [],
"id": "ocid1.loadbalancerworkrequest.oc1.phx.aaaaaaaaen35wntmcouiqtdgjrp3rgtiyjdwzjdxriu4wrzye5s7aagvhw2q",
"lifecycle-state": "SUCCEEDED",
"load-balancer-id": "ocid1.loadbalancer.oc1.phx.aaaaaaaabstamcc7an63bpuc6p5rrs2x2fqrneb7wgtxuh7xchygqxub7shq",
"message": "{\n \"eventId\" : \"4be5c6bb-966c-4b62-98c8-4b4ba73559bf\",\n \"loadBalancerId\" : \"ocid1.loadbalancer.oc1.phx.aaaaaaaabstamcc7an63bpuc6p5rrs2x2fqrneb7wgtxuh7xchygqxub7shq\",\n \"workflowName\" : \"AddListenerWorkflow\",\n \"type\" : \"SUCCESS\",\n \"message\" : \"OK\",\n \"workRequestId\" : \"ocid1.loadbalancerworkrequest.oc1.phx.aaaaaaaaen35wntmcouiqtdgjrp3rgtiyjdwzjdxriu4wrzye5s7aagvhw2q\"\n}",
"time-accepted": "2021-11-01T04:34:32.411000+00:00",
"time-finished": "2021-11-01T04:34:50.796000+00:00",
"type": "CreateListener"
}
}
Getting letsEncrypt certificate...
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Account registered.
Requesting a certificate for cloud-demo.asteriondb.com
Performing the following challenges:
http-01 challenge for cloud-demo.asteriondb.com
Waiting for verification...
Cleaning up challenges
Running deploy-hook command: /home/asterion/asterion/oracle/admin/setupLoadBalancer/deployHook.sh
Output from deploy-hook command deployHook.sh:
{
"data": {
"compartment-id": "ocid1.compartment.oc1..aaaaaaaavlq5inzaax6pdbc576ertgntmbooa3tjbaoewx3ryxu67uml5evq",
"error-details": [],
"id": "ocid1.loadbalancerworkrequest.oc1.phx.aaaaaaaaxn5emegubvbt56ly3ajzubrjts4tt5av3hirxngsidm5kcp6euuq",
"lifecycle-state": "SUCCEEDED",
"load-balancer-id": "ocid1.loadbalancer.oc1.phx.aaaaaaaabstamcc7an63bpuc6p5rrs2x2fqrneb7wgtxuh7xchygqxub7shq",
"message": "{\n \"eventId\" : \"81bef208-7835-489d-b31b-70281c4927f5\",\n \"loadBalancerId\" : \"ocid1.loadbalancer.oc1.phx.aaaaaaaabstamcc7an63bpuc6p5rrs2x2fqrneb7wgtxuh7xchygqxub7shq\",\n \"workflowName\" : \"AddCertificateWorkflow\",\n \"type\" : \"SUCCESS\",\n \"message\" : \"OK\",\n \"workRequestId\" : \"ocid1.loadbalancerworkrequest.oc1.phx.aaaaaaaaxn5emegubvbt56ly3ajzubrjts4tt5av3hirxngsidm5kcp6euuq\"\n}",
"time-accepted": "2021-11-01T04:35:18.064000+00:00",
"time-finished": "2021-11-01T04:35:35.045000+00:00",
"type": "CreateCertificate"
}
}
Error output from deploy-hook command deployHook.sh:
Action completed. Waiting until the work request has entered state: ('SUCCEEDED',)
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/cloud-demo.asteriondb.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/cloud-demo.asteriondb.com/privkey.pem
Your certificate will expire on 2022-01-30. To obtain a new or
tweaked version of this certificate in the future, simply run
certbot again. To non-interactively renew *all* of your
certificates, run "certbot renew"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
Updating HTTP listener...
Action completed. Waiting until the work request has entered state: ('SUCCEEDED',)
{
"data": {
"compartment-id": "ocid1.compartment.oc1..aaaaaaaavlq5inzaax6pdbc576ertgntmbooa3tjbaoewx3ryxu67uml5evq",
"error-details": [],
"id": "ocid1.loadbalancerworkrequest.oc1.phx.aaaaaaaaxvqe2pogdhmfxhv6wqpyle6umx5kjxgz2naat3uozuaszaw26bgq",
"lifecycle-state": "SUCCEEDED",
"load-balancer-id": "ocid1.loadbalancer.oc1.phx.aaaaaaaabstamcc7an63bpuc6p5rrs2x2fqrneb7wgtxuh7xchygqxub7shq",
"message": "{\n \"eventId\" : \"b86cc5b5-e5ce-4f98-b737-99b11429cd32\",\n \"loadBalancerId\" : \"ocid1.loadbalancer.oc1.phx.aaaaaaaabstamcc7an63bpuc6p5rrs2x2fqrneb7wgtxuh7xchygqxub7shq\",\n \"workflowName\" : \"PutListenerWorkflow\",\n \"type\" : \"SUCCESS\",\n \"message\" : \"OK\",\n \"workRequestId\" : \"ocid1.loadbalancerworkrequest.oc1.phx.aaaaaaaaxvqe2pogdhmfxhv6wqpyle6umx5kjxgz2naat3uozuaszaw26bgq\"\n}",
"time-accepted": "2021-11-01T04:35:49.866000+00:00",
"time-finished": "2021-11-01T04:35:57.373000+00:00",
"type": "UpdateListener"
}
}
Creating HTTPS listener...
Action completed. Waiting until the work request has entered state: ('SUCCEEDED',)
{
"data": {
"compartment-id": "ocid1.compartment.oc1..aaaaaaaavlq5inzaax6pdbc576ertgntmbooa3tjbaoewx3ryxu67uml5evq",
"error-details": [],
"id": "ocid1.loadbalancerworkrequest.oc1.phx.aaaaaaaa5b7jgq6bymxheap7yxmxtzvkjw7onqk37ajs7pfphztadvobtmvq",
"lifecycle-state": "SUCCEEDED",
"load-balancer-id": "ocid1.loadbalancer.oc1.phx.aaaaaaaabstamcc7an63bpuc6p5rrs2x2fqrneb7wgtxuh7xchygqxub7shq",
"message": "{\n \"eventId\" : \"a4546f42-0e18-453f-82f2-e0c2dca20fd3\",\n \"loadBalancerId\" : \"ocid1.loadbalancer.oc1.phx.aaaaaaaabstamcc7an63bpuc6p5rrs2x2fqrneb7wgtxuh7xchygqxub7shq\",\n \"workflowName\" : \"AddListenerWorkflow\",\n \"type\" : \"SUCCESS\",\n \"message\" : \"OK\",\n \"workRequestId\" : \"ocid1.loadbalancerworkrequest.oc1.phx.aaaaaaaa5b7jgq6bymxheap7yxmxtzvkjw7onqk37ajs7pfphztadvobtmvq\"\n}",
"time-accepted": "2021-11-01T04:36:05.399000+00:00",
"time-finished": "2021-11-01T04:36:59.514000+00:00",
"type": "CreateListener"
}
}
Setting up Certbot cron job...
Success...!!! Your AsterionDB installation is now secure and behind an SSL enabled load balancer.
You can now proceed with installing AsterionDB by running the updateConfig.sh and applyConfig.sh scripts.
Mon Nov 1 04:37:02 GMT 2021