Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DefaultAzureCredential failed when base_image_uri is set to "covalent.azurecr.io/covalent-executor-base:latest" #21

Open
fuyunyun1 opened this issue Sep 14, 2023 · 0 comments

Comments

@fuyunyun1
Copy link

On server side :
pip install covalent==v0.227.0-rc.0
pip install covalent-azurebatch-plugin==0.12.0

On client side:
pip install covalent==v0.227.0-rc.0

Config on the server:
` [sdk]
config_file = "/root/.config/covalent/covalent.conf"
log_dir = "/var/lib/covalent/.cache/covalent"
log_level = "warning"
enable_logging = "true"
executor_dir = "/var/lib/covalent/.config/covalent/executor_plugins"
no_cluster = "false"
exhaustive_postprocess = "true"

[dispatcher]
address = "localhost"
port = 48008
cache_dir = "/var/lib/covalent/.cache/covalent"
results_dir = "/var/lib/covalent/.local/share/covalent/data"
log_dir = "/var/lib/covalent/.cache/covalent"
db_path = "/var/lib/covalent/.local/share/covalent/dispatcher_db.sqlite"
heartbeat_interval = 5
heartbeat_file = "/var/lib/covalent/.cache/covalent/heartbeat"

[dask]
cache_dir = "/var/lib/covalent/.cache/covalent"
log_dir = "/var/lib/covalent/.cache/covalent"
mem_per_worker = "auto"
threads_per_worker = 1
num_workers = 16
scheduler_address = "tcp://127.0.0.1:34541"
dashboard_link = "http://127.0.0.1:8787/status"
process_info = ""
pid = 98506
admin_host = "127.0.0.1"
admin_port = 40297

[workflow_data]
storage_type = "local"
base_dir = "/var/lib/covalent/.local/share/covalent/workflow_data"

[user_interface]
address = "localhost"
port = 48008
dev_port = 49009
log_dir = "/var/lib/covalent/.cache/covalent"

[executors.dask]
log_stdout = "stdout.log"
log_stderr = "stderr.log"
cache_dir = "/root/.cache/covalent"
workdir = "/root/.cache/covalent/workdir"
create_unique_workdir = false

[executors.local]
log_stdout = "stdout.log"
log_stderr = "stderr.log"
cache_dir = "/root/.cache/covalent"
workdir = "/root/.cache/covalent/workdir"
create_unique_workdir = false

[executors.remote_executor]
poll_freq = 15
remote_cache = ".cache/covalent"
credentials_file = ""

[executors.azurebatch]
tenant_id = "tenant_id"
client_id = "client_id"
client_secret = "secret"
batch_account_url = "account_url"
storage_account_name = "Mystorage"
pool_id = "Mypool"
retries = 5
time_limit = 500
base_image_uri = "covalent.azurecr.io/covalent-executor-base:latest"
cache_dir = "/tmp/covalent"
poll_freq = 10
batch_account_domain = "batch.core.windows.net"
storage_account_domain = "blob.core.windows.net"
`

I set the base_image_uri to "covalent.azurecr.io/covalent-executor-base:latest" according to the official covalent documentation.
And the error happened. I checked the error in Azure.
图片

It seems that the environment AZURE_CLIENT_ID, AZURE_CLIENT_SECRET and AZURE_TENANT_ID cannot be found in the image.
So I add these environment variables into covalent_azurebatch_plugin/azurebatch.py, and it works!
So I want to know if it is necessary to build my own custom image to pass the credential envs to it ?
Or is this error caused by my wrong settings?
Could you help me about this error?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant