deployment start command fails #878

Open
opened 2024-07-19 18:25:01 +00:00 by dasanchez · 0 comments

Created the deployment:

laconic-so deploy-webapp create --kube-config /home/dasanchez/.kube/config-default.yaml --image-registry container-registry.pwa.realitynetwork.xyz --deployment-dir webapp-k8s-deployment --image git.vdb.to/cerc-io/cerc/test-progressive-web-app:latest --url https://my-test-app.pwa.realitynetwork.xyz --env-file ./cerc/test-progressive-web-app/.env

Pushed images (it didn't output anything, we want the deployed container registry to pull the image from Gitea):

laconic-so deployment --dir webapp-k8s-deployment push-images

Started the deployment:

laconic-so deployment --dir webapp-k8s-deployment start

WARNING: found unimplemented environment variable substitution: ${CERC_SCRIPT_DEBUG}
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/dasanchez/projects/hypha/binaries/laconic-so/__main__.py", line 3, in <module>
  File "/home/dasanchez/projects/hypha/binaries/laconic-so/_bootstrap/__init__.py", line 253, in bootstrap
  File "/home/dasanchez/projects/hypha/binaries/laconic-so/_bootstrap/__init__.py", line 38, in run
  File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/stack_orchestrator/deploy/deployment.py", line 82, in start
    up_operation(ctx, services_list, stay_attached)
  File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/stack_orchestrator/deploy/deploy.py", line 105, in up_operation
    deploy_context.deployer.up(detach=not stay_attached, services=services_list)
  File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/stack_orchestrator/deploy/k8s/deploy_k8s.py", line 223, in up
    self._create_deployment()
  File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/stack_orchestrator/deploy/k8s/deploy_k8s.py", line 147, in _create_deployment
    deployment = self.cluster_info.get_deployment(image_pull_policy=None if self.is_kind() else "Always")
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/stack_orchestrator/deploy/k8s/cluster_info.py", line 330, in get_deployment
    image_to_use = remote_tag_for_image_unique(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/stack_orchestrator/deploy/images.py", line 72, in remote_tag_for_image_unique
    (image_name, image_version) = image_name_with_version.split(":")
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)
Created the deployment: ``` laconic-so deploy-webapp create --kube-config /home/dasanchez/.kube/config-default.yaml --image-registry container-registry.pwa.realitynetwork.xyz --deployment-dir webapp-k8s-deployment --image git.vdb.to/cerc-io/cerc/test-progressive-web-app:latest --url https://my-test-app.pwa.realitynetwork.xyz --env-file ./cerc/test-progressive-web-app/.env ``` Pushed images (it didn't output anything, we want the deployed container registry to pull the image from Gitea): ``` laconic-so deployment --dir webapp-k8s-deployment push-images ``` Started the deployment: ``` laconic-so deployment --dir webapp-k8s-deployment start WARNING: found unimplemented environment variable substitution: ${CERC_SCRIPT_DEBUG} Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/home/dasanchez/projects/hypha/binaries/laconic-so/__main__.py", line 3, in <module> File "/home/dasanchez/projects/hypha/binaries/laconic-so/_bootstrap/__init__.py", line 253, in bootstrap File "/home/dasanchez/projects/hypha/binaries/laconic-so/_bootstrap/__init__.py", line 38, in run File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/click/decorators.py", line 33, in new_func return f(get_current_context(), *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/stack_orchestrator/deploy/deployment.py", line 82, in start up_operation(ctx, services_list, stay_attached) File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/stack_orchestrator/deploy/deploy.py", line 105, in up_operation deploy_context.deployer.up(detach=not stay_attached, services=services_list) File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/stack_orchestrator/deploy/k8s/deploy_k8s.py", line 223, in up self._create_deployment() File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/stack_orchestrator/deploy/k8s/deploy_k8s.py", line 147, in _create_deployment deployment = self.cluster_info.get_deployment(image_pull_policy=None if self.is_kind() else "Always") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/stack_orchestrator/deploy/k8s/cluster_info.py", line 330, in get_deployment image_to_use = remote_tag_for_image_unique( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/dasanchez/.shiv/laconic-so_d60f5ab7d4b002708b2f68119f4eee18e700e4e23c1cf7eaed29fd87577af400/site-packages/stack_orchestrator/deploy/images.py", line 72, in remote_tag_for_image_unique (image_name, image_version) = image_name_with_version.split(":") ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: not enough values to unpack (expected 2, got 1) ```
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/stack-orchestrator#878
No description provided.