AnykeyNL / OCI-AutoScale

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

Issue after successful installation #39

Closed muhammadaliraja closed 4 months ago

muhammadaliraja commented 4 months ago

I am getting this error when testing and also after assigning name tag with instance its not working.

##########################################################################################

Running Auto Scale

########################################################################################## Traceback (most recent call last): File "AutoScaleALL.py", line 1688, in config, signer = OCIFunctions.create_signer(cmd.config_profile, cmd.is_instance_principals, cmd.is_delegation_token) File "/home/opc/OCI-AutoScale/OCIFunctions.py", line 61, in create_signer (config_profile if config_profile else oci.config.DEFAULT_PROFILE) File "/usr/lib/python3.6/site-packages/oci/config.py", line 107, in from_file raise ConfigFileNotFound("Could not find config file at {}, please follow the instructions in the link to setup the config file https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm".format(expanded_file_location)) oci.exceptions.ConfigFileNotFound: Could not find config file at /root/.oci/config, please follow the instructions in the link to setup the config file https://docs.cloud.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm [root@instance-20240227-1814 OCI-AutoScale]# ^C

AnykeyNL commented 4 months ago

did you configure the OCI CLI for authentication to OCi with API key?

muhammadaliraja commented 4 months ago

I did steps as per YouTube video and created Name TAG and dynamic group authentication. There is no mention of CLI in OCI. Please guide me further on it.

AnykeyNL commented 4 months ago

Are you using a dynamic group?if so are you running the script with the parameter -ip

muhammadaliraja commented 4 months ago

Yes dynamic group. I created the TAG with " python3 CreateNameSpaces.py -ip" command and it created the TAGS. after that I assign it to an instance to check. and manually ran python3 AutoScaleALL.py

AnykeyNL commented 4 months ago

you need to run the AutoScallAll.py also with the -ip parameter, if you want authentication done thru dynamic group

muhammadaliraja commented 4 months ago

Done.