AnykeyNL / OCI-AutoScale

Automatic Scaling for OCI BM Database Cloud Service (Schedule based)
Universal Permissive License v1.0
112 stars 64 forks source link

Incorrect region and API spec #26

Closed jrlester70 closed 1 year ago

jrlester70 commented 1 year ago

Running this with uk-gov-london-1 as our home region:

[xxx@xxxOCI-AutoScale]$ python3 CreateNameSpaces.py -ip Starts at 2023-02-23 18:52:27

Connecting to Identity Service...

Tenant Name : xxxx Tenant Id : ocid1.tenancy.oc4..xxx Home Region : uk-gov-london-1

but the server we're running on is in the second region, newport. My config file only specifies london at the moment.

The script errors trying to create the namespace the the standard 403 error, and when I can see the traceback it's trying to call :

'request_endpoint': 'POST https://identity.uk-gov-cardiff-1.oci.oraclegovcloud.uk/20160918/tagNamespaces'

so somehow it's got the secondary site (which wont work).. I don't see why it's not using the URL for our primary site, but this means I can't create the namespaces.

J

AnykeyNL commented 1 year ago

you can just create the namespaces manually if you like. Just create a namespace "Schedule" and in they name space the predefined tags.that the autoscale script is ready to be usedOn 23 Feb 2023, at 19:56, jrlester70 @.> wrote: Running this with uk-gov-london-1 as our home region: @.$ python3 CreateNameSpaces.py -ip Starts at 2023-02-23 18:52:27 Connecting to Identity Service... Tenant Name : xxxx Tenant Id : ocid1.tenancy.oc4..xxx Home Region : uk-gov-london-1 but the server we're running on is in the second region, newport. My config file only specifies london at the moment. The script errors trying to create the namespace the the standard 403 error, and when I can see the traceback it's trying to call : 'request_endpoint': 'POST https://identity.uk-gov-cardiff-1.oci.oraclegovcloud.uk/20160918/tagNamespaces' so somehow it's got the secondary site (which wont work).. I don't see why it's not using the URL for our primary site, but this means I can't create the namespaces. J

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

jrlester70 commented 1 year ago

Hey Richard,

No, I absolutely did that, I just wanted to highlight that the auto generation script didn’t work for some reason, and thought you might like to know. It’s working fine in our environment now I’ve created the namespace, so it was just that creation script. Looks like you need to run the creation script in the home region only, and for some reason it seems to be processing our second region first.. this doesn’t cause a problem for the stop/start stuff, but obviously does for the namespace..

Jason

From: Richard Garsthagen @.> Sent: 23 February 2023 20:20 To: AnykeyNL/OCI-AutoScale @.> Cc: jrlester70 @.>; Author @.> Subject: Re: [AnykeyNL/OCI-AutoScale] Incorrect region and API spec (Issue #26)

you can just create the namespaces manually if you like. Just create a namespace "Schedule" and in they name space the predefined tags.that the autoscale script is ready to be usedOn 23 Feb 2023, at 19:56, jrlester70 @. <mailto:@.> > wrote: Running this with uk-gov-london-1 as our home region: @.$ <mailto:@.$> python3 CreateNameSpaces.py -ip Starts at 2023-02-23 18:52:27 Connecting to Identity Service... Tenant Name : xxxx Tenant Id : ocid1.tenancy.oc4..xxx Home Region : uk-gov-london-1 but the server we're running on is in the second region, newport. My config file only specifies london at the moment. The script errors trying to create the namespace the the standard 403 error, and when I can see the traceback it's trying to call : 'request_endpoint': 'POST https://identity.uk-gov-cardiff-1.oci.oraclegovcloud.uk/20160918/tagNamespaces' so somehow it's got the secondary site (which wont work).. I don't see why it's not using the URL for our primary site, but this means I can't create the namespaces. J

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @. <mailto:@.> >

— Reply to this email directly, view it on GitHub https://github.com/AnykeyNL/OCI-AutoScale/issues/26#issuecomment-1442378713 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AHBMWHTEOXEBJGPLBGH7QH3WY7A6DANCNFSM6AAAAAAVGAEZA4 . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AHBMWHT5QXXXVV6G4BW57BLWY7A6DA5CNFSM6AAAAAAVGAEZA6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSV7DZ5S.gif Message ID: @. @.> >

AnykeyNL commented 1 year ago

Thanks for the feedback. When I have some time I will look in to approving that namespace script, it can for sure use some improvements :-)