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

🐞 [Bug]: Gateway contract isn't deleted after deleting CasperLabs instance #2621

Closed
1 task done
A-Harby opened this issue Apr 28, 2024 · 3 comments
Closed
1 task done
Assignees
Labels
type_bug Something isn't working
Milestone

Comments

@A-Harby
Copy link
Contributor

A-Harby commented Apr 28, 2024

Is there an existing issue for this?

  • I have searched the existing issues

which package/s did you face the problem with?

Dashboard

What happened?

After deleting a Casper Labs instance from its solution page, I found a contract of gateway type wasn't deleted.

threefoldtech/tf-images#226 (comment)

Steps To Reproduce

No response

which network/s did you face the problem on?

QA

version

2.4.0-rc1

Twin ID/s

52

Node ID/s

3

Farm ID/s

1

Contract ID/s

27305

Relevant screenshots/screen records

image

image

Relevant log output

{
  "version": 0,
  "twin_id": 52,
  "contract_id": 27305,
  "metadata": "",
  "description": "",
  "expiration": 0,
  "signature_requirement": {
    "requests": [
      {
        "twin_id": 52,
        "required": false,
        "weight": 1
      }
    ],
    "weight_required": 1,
    "signatures": [
      {
        "twin_id": 52,
        "signature": "80bb14dd44dbb0e0b3733fb440360c36ce2d7eade34d4dad1fda0c2f45249a6494650f4ea108e7b0de459ed425f566329e15babb0d66a027c89550b330713780",
        "signature_type": "sr25519"
      }
    ],
    "signature_style": ""
  },
  "workloads": [
    {
      "version": 0,
      "name": "cl52clv2dtc",
      "type": "gateway-name-proxy",
      "data": {
        "name": "cl52clv2dtc",
        "tls_passthrough": false,
        "backends": [
          "http://10.20.4.2:80"
        ],
        "network": "nwkcdiv"
      },
      "metadata": "",
      "description": "",
      "result": {
        "created": 1714306116,
        "state": "ok",
        "message": "",
        "data": {
          "fqdn": "cl52clv2dtc.gent02.qa.grid.tf"
        }
      }
    }
  ]
}
@A-Harby A-Harby added the type_bug Something isn't working label Apr 28, 2024
@ramezsaeed ramezsaeed added this to 3.14.x May 1, 2024
@ramezsaeed ramezsaeed added this to the 2.5.0 milestone May 1, 2024
@Mahmoud-Emad Mahmoud-Emad moved this to Accepted in 3.14.x May 1, 2024
@Mahmoud-Emad Mahmoud-Emad self-assigned this May 7, 2024
@Mahmoud-Emad Mahmoud-Emad moved this from Accepted to In Progress in 3.14.x May 7, 2024
@Mahmoud-Emad
Copy link
Contributor

Issue Update

Investigation and Solution:

Indeed, the issue persists. It appears that the project name is not being included in the solutionHasGateway function, causing it to return true if the solution has a gateway, and false if not. To resolve this, we need to ensure that the project name is properly integrated into the solutionHasGateway function's logic.

@Mahmoud-Emad Mahmoud-Emad moved this from In Progress to Pending Review in 3.14.x May 7, 2024
@Mahmoud-Emad
Copy link
Contributor

Issue update

Work done

Fix deleting the gateway contract in the Casperlabs solution by adding the 'Casperlabs' project name in the solutionHasGateway function.

Changes

  • added the Casperlabs project name in the solutionHasGateway function.

Screenshots/Video

Screencast.from.05-07-2024.02.12.16.PM.webm

@Mahmoud-Emad Mahmoud-Emad moved this from Pending Review to In Verification in 3.14.x May 8, 2024
@A-Harby
Copy link
Contributor Author

A-Harby commented Jun 10, 2024

Verified, Devnet 1b19f4f,

I deployed a few solution instance that use a gateway then deleted them, and wasn't able to reproduce the case again.

image

image

@A-Harby A-Harby moved this from In Verification to Done in 3.14.x Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type_bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

3 participants