-
Notifications
You must be signed in to change notification settings - Fork 8
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]: Can't list deployments #2435
Comments
Verified, Devnet a9928b8. |
not fixed. Ever since we changed to the new dash board I can see all the contracts but none of the 8 VM's deployed |
@RoberL72 Can you provide more info? What are the contract IDs? Which network? |
Van: AhmedHanafy725 ***@***.***>
Verzonden: dinsdag 19 maart 2024 20:17
Aan: threefoldtech/tfgrid-sdk-ts ***@***.***>
CC: RoberL72 ***@***.***>; Mention ***@***.***>
Onderwerp: Re: [threefoldtech/tfgrid-sdk-ts] 🐞 [Bug]: Can't list deployments (Issue #2435)
@RoberL72 <https://github.com/RoberL72> Can you provide more info? What are the contract IDs? Which network?
—
Reply to this email directly, view it on GitHub <#2435 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/A6RIJ2TM2EW2PP3RDFSFNVDYZCFK3AVCNFSM6AAAAABEWAFJJGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBXHE2DINJZHE> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/A6RIJ2TPI2IDLOUJBWJXAW3YZCFK3A5CNFSM6AAAAABEWAFJJGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTXV3GZO.gif> Message ID: ***@***.*** ***@***.***> >
|
@Cameron1986labeyrie could you please provide the logs ? |
Seems to be that the issue persists, we'll actively work on resolving it. we'll investigate further and keep you updated on our progress. Please continue to monitor the issue for any updates. Thank you for your patience and understanding. My contracts on devnet: My listed full VMs on devnet The mentioned failed Deployments |
After conducting an investigation, it has come to my attention that we previously adhered to a specific pattern for storing machine details in the old playground. As part of the transition to the new dashboard, we introduced a change to this pattern and implemented a fix to update all instances of the old pattern to the new one. However, it appears that the fix is not functioning as expected. Old Pattern:New Pattern: |
Investigation: |
I couldn't reproduce deployment with the mentioned deployment data. For now, you should find the missing deployments on vm deployment table. |
Hey @Mahmoud-Emad It's a farmers' issue that was reported over the support chat, and from what I understood, it was a full VM deployment. |
I'm running into a similar problem, trying to list the deployments with this command used to work, but now it returns an empty array:
This is the payload used to create the VM:
|
Hello @tzumby :) I just deployed a machine from the this is the machine data I have used const vms: MachinesModel = {
name,
network: {
name: "wedtest",
ip_range: "10.249.0.0/16",
},
machines: [
{
name: "tobetested",
node_id: 11,
disks: [
{
name: "wedDisk",
size: 8,
mountpoint: "/testdisk",
},
],
public_ip: false,
public_ip6: false,
planetary: true,
mycelium: false,
cpu: 1,
memory: 1024 * 2,
rootfs_size: 0,
flist: "https://hub.grid.tf/tf-official-apps/base:latest.flist",
entrypoint: "/sbin/zinit init",
env: {
SSH_KEY: config.ssh_key,
},
},
],
metadata: "",
description: "test deploying VMs via ts grid3 client",
}; I named the machine Here's a screenshot from the dashboard showing the deployed machine: Please make sure that you are connecting to the dashboard by the same account wallet secret you used when you deployed the machine from the As you can see, the machine
|
Hey @MohamedElmdary , I can already see them in the Dashboard, please read my comment, they don't show up when I try to call |
If that is the case, I think you need to send the name of the deployment not the const name = "newVMS";
const grid3 = await getClient(`vm/${name}`);
const vms: MachinesModel = {
name,
network: {
name: "wedtest",
ip_range: "10.249.0.0/16",
},
machines: [
{
name: "testvm",
node_id: 11,
disks: [
{
name: "wedDisk",
size: 8,
mountpoint: "/testdisk",
},
],
public_ip: false,
public_ip6: false,
planetary: true,
mycelium: false,
cpu: 1,
memory: 1024 * 2,
rootfs_size: 0,
flist: "https://hub.grid.tf/tf-official-apps/base:latest.flist",
entrypoint: "/sbin/zinit init",
env: {
SSH_KEY: config.ssh_key,
},
},
],
metadata: "",
description: "test deploying VMs via ts grid3 client",
};
const deployed = await client.machines.deploy(vms);
const deploymentDetails = await client.machines.getObj(name); |
Let me check this, I'm pretty sure i had both name and vms as parameters there with the same result. |
Yes, confirmed that |
@tzumby Any errors? logs? |
I just used your payload and was able to deploy/list the deployment [
{
version: 0,
contractId: 109538,
nodeId: 11,
name: '52839ffc800d',
created: 1715170810,
status: 'ok',
message: '',
flist: 'https://hub.grid.tf/tf-official-apps/base:latest.flist',
publicIP: null,
planetary: '302:9e63:7d43:b742:b2a4:5133:63ba:6b5',
myceliumIP: '',
interfaces: [ { network: '9cec1820a56f', ip: '10.238.2.2' } ],
capacity: { cpu: 2, memory: 2048 },
mounts: [],
env: {},
entrypoint: '/sbin/zinit init',
metadata: '',
description: 'xxx node',
rootfs_size: 0,
corex: false,
gpu: []
}
]
'================= Getting deployment information ================='
disconnecting However, I faced some errors and I'm not sure if you faced some of them or not
|
Yes, I redacted those fields out for the flist and the name. There's no errors. The deploys are going successfully, it's just that the deployments returns an empty array. In the logs I can see the contract ids and everything, it seems like there's something wrong with getting them after deploying |
Did you try this and successfully returned the deployments ?
|
Yeah as you see in the previous comment I listed it [
{
version: 0,
contractId: 109538,
nodeId: 11,
name: '52839ffc800d',
created: 1715170810,
status: 'ok',
message: '',
flist: 'https://hub.grid.tf/tf-official-apps/base:latest.flist',
publicIP: null,
planetary: '302:9e63:7d43:b742:b2a4:5133:63ba:6b5',
myceliumIP: '',
interfaces: [ { network: '9cec1820a56f', ip: '10.238.2.2' } ],
capacity: { cpu: 2, memory: 2048 },
mounts: [],
env: {},
entrypoint: '/sbin/zinit init',
metadata: '',
description: 'xxx node',
rootfs_size: 0,
corex: false,
gpu: []
}
]
'================= Getting deployment information ================='
disconnecting |
Issue updateWork donea new migration function added to the |
Issue updateWork done
|
issue updateWork done
|
can you mention where to find the latest fields of updatedAt and search to verify ? |
it's defined in the |
verified on staging on the staging worked fine after @Mahmoud-Emad changes: https://app.testlodge.com/a/26076/projects/40893/suites/217765?expand_section=370856#case_3783024 |
Is there an existing issue for this?
which package/s did you face the problem with?
Dashboard
What happened?
can't list the fullvm deployments
Steps To Reproduce
1- Deploy a full vm.
2- Wait to be listed after deployment
which network/s did you face the problem on?
Dev
version
2.3.2
Twin ID/s
No response
Node ID/s
No response
Farm ID/s
No response
Contract ID/s
No response
Relevant screenshots/screen records
Relevant log output
-
The text was updated successfully, but these errors were encountered: