Skip to content

Deployment/Deployment Groups Close When Funds Exhaust #368

@chainzero

Description

@chainzero

As verified in current testnet network - deployment is closed when funds exhaust.

Expected Behavior

When lease is closed in overdrawn account, deployment group must be paused and deployment open. Must be able to create a new lease. On overdrawn lease escrow account balance for uakt should show negative balance. The corresponding payment must have: Balance set to 0, unsettled set to positive value, this value should be same as absolute value of balance in the escrow account.

Current Behavior

When tested the deployment closed when it encounters overdraw. Such as:

deployment:
  created_at: "50360"
  hash: 7fWi2jLywi8WlMEqpsh6Him5Z3Stm+7n49UBBBcsxzY=
  id:
    dseq: "50358"
    owner: akash1fvj54cfq2nrv24k3h9hetzadkgw3falw3suyms
  state: closed
escrow_account:
  id:
    scope: deployment
    xid: akash1fvj54cfq2nrv24k3h9hetzadkgw3falw3suyms/50358
  state:
    deposits: []
    funds:
    - amount: "-6344.131225000000000000"
      denom: uakt
    owner: akash1fvj54cfq2nrv24k3h9hetzadkgw3falw3suyms
    settled_at: "50851"
    state: overdrawn
    transferred:
    - amount: "500000.000000000000000000"
      denom: uakt
groups:
- created_at: "50360"
  group_spec:
    name: akash
    requirements:
      attributes: []
      signed_by:
        all_of: []
        any_of: []
    resources:
    - count: 1
      price:
        amount: "100000.000000000000000000"
        denom: uakt
      resource:
        cpu:
          attributes: []
          units:
            val: "3000"
        endpoints:
        - kind: SHARED_HTTP
          sequence_number: 0
        gpu:
          attributes:
          - key: vendor/nvidia/model/*
            value: "true"
          units:
            val: "1"
        id: 1
        memory:
          attributes: []
          quantity:
            val: "10737418240"
        storage:
        - attributes: []
          name: default
          quantity:
            val: "10737418240"
  id:
    dseq: "50358"
    gseq: 1
    owner: akash1fvj54cfq2nrv24k3h9hetzadkgw3falw3suyms
  state: insufficient_funds

Deployment groups state:

akash query deployment group get --dseq 50358 --owner akash1fvj54cfq2nrv24k3h9hetzadkgw3falw3suyms
created_at: "50360"
group_spec:
  name: akash
  requirements:
    attributes: []
    signed_by:
      all_of: []
      any_of: []
  resources:
  - count: 1
    price:
      amount: "100000.000000000000000000"
      denom: uakt
    resource:
      cpu:
        attributes: []
        units:
          val: "3000"
      endpoints:
      - kind: SHARED_HTTP
        sequence_number: 0
      gpu:
        attributes:
        - key: vendor/nvidia/model/*
          value: "true"
        units:
          val: "1"
      id: 1
      memory:
        attributes: []
        quantity:
          val: "10737418240"
      storage:
      - attributes: []
        name: default
        quantity:
          val: "10737418240"
id:
  dseq: "50358"
  gseq: 1
  owner: akash1fvj54cfq2nrv24k3h9hetzadkgw3falw3suyms
state: insufficient_funds

Metadata

Metadata

Assignees

Labels

repo/nodeAkash node repo issues

Type

No type

Projects

Status

In Progress (prioritized)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions