Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Database Service IP Reservation Does Not Exist #45

Open
drauba opened this issue Aug 10, 2018 · 0 comments
Open

Database Service IP Reservation Does Not Exist #45

drauba opened this issue Aug 10, 2018 · 0 comments
Assignees
Labels
bug dbcs Database Cloud Service

Comments

@drauba
Copy link

drauba commented Aug 10, 2018

I understand that you cannot yet create a DBaaS IP reservation with the oraclepaas provider #9 , however there seems to be an issue with referencing an existing IP reservation...

I manually created an IP reservation through the dashboard, and I can see that it exists with the following API call and response body:

curl --include --request GET --user user:password --header "X-ID-TENANT-NAME:REDACTED" https://psm.us.oraclecloud.com/paas/api/v1.1/network/REDACTED/services/dbaas/ipreservations\?networkType=ALL
{  
   "ipReservations":[  
      {  
         "id":19653,
         "name":"DBAASIP",
         "networkType":"IPNetwork",
         "ipAddress":"129.x.x.x",
         "status":"UNUSED",
         "identityDomain":"REDACTED",
         "serviceType":"DBaaS",
         "computeSiteName":"uscom-central-1",
         "serviceEntitlementId":"57xxxx",
         "creationTime":"2018-08-10T17:13:23.036+0000"
      }
   ],
   "activities":[  

   ]
}

I am specifying the ip_reservations and region argument in my oraclepaas_database_service_instance config like so:

  ip_reservations    = ["DBAASIP"]
  region             = "uscom-central-1"

And after running terraform apply I get the following Error:

* module.dbaas.oraclepaas_database_service_instance.database: 1 error(s) occurred:

* oraclepaas_database_service_instance.database: Error creating DatabaseServiceInstance: unable to create Database Service Instance "DBAAS": 400: Create Service Instance request could not be accepted due to the following errors:
 - The IP Reservation [["DBAASIP"]] does not exist.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug dbcs Database Cloud Service
Projects
None yet
Development

No branches or pull requests

2 participants