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

Interfaces from all VMs are deleted when executing Proxmox Full Update #140

Open
lug-gh opened this issue Aug 10, 2023 · 7 comments
Open
Assignees
Labels
accepted This issue has been accepted for implementation bug Further discussion is needed to determine this issue's scope and/or implementation
Milestone

Comments

@lug-gh
Copy link
Contributor

lug-gh commented Aug 10, 2023

Hi, when press the Proxmox Full Update button all interfaces and IPs from the VMs are deleted, when I press the button a second time after that, they are restored (created again).

Is this normal behaviour?

proxmox: 8.0.3
netbox: 3.5.7
proxbox: 0.0.5

@lug-gh
Copy link
Contributor Author

lug-gh commented Aug 11, 2023

Ok this is definitely not the default behavior.

I have now created a few more VMs in Proxmox, pressed the button in netbox, and now the IPs of all existing VMs in netbox have been deleted, and those of the new VMs created.
If I press the button again it is the other way around, the old VMs get IPs again, the IPs of the new VMs are deleted.

@lug-gh
Copy link
Contributor Author

lug-gh commented Aug 11, 2023

1st press:

image

2nd press:
image

@emersonfelipesp emersonfelipesp self-assigned this Aug 12, 2023
@emersonfelipesp emersonfelipesp added bug Further discussion is needed to determine this issue's scope and/or implementation accepted This issue has been accepted for implementation labels Aug 12, 2023
@emersonfelipesp emersonfelipesp added this to To do in Proxbox Plugin - Project Plan via automation Aug 12, 2023
@emersonfelipesp emersonfelipesp added this to the v0.0.6 milestone Aug 12, 2023
@troycarpenter
Copy link

1st press:

2nd press:

I'm not sure I understand what you are getting at. Where is that screen you showed? Is this related to the "Proxmox Keep Interface" field? Should that be set to true for all VMs?

I'm having the same problem as in the OP. I did take a backup before trying the update so I was able to restore once all the interfaces disappeared.

@lug-gh
Copy link
Contributor Author

lug-gh commented Feb 8, 2024

1st press:
2nd press:

I'm not sure I understand what you are getting at. Where is that screen you showed? Is this related to the "Proxmox Keep Interface" field? Should that be set to true for all VMs?

I'm having the same problem as in the OP. I did take a backup before trying the update so I was able to restore once all the interfaces disappeared.

I think this was the default screen after pressing "Proxmox Full Update" (https://github.com/netdevopsbr/netbox-proxbox?tab=readme-ov-file#4-usage)
I'm not sure about that though, I don't use the plugin anymore and have switched my workflow to terraform.

@troycarpenter
Copy link

Ah, I see. I'm not sure I've ever seen that screen. My full update times out during the operation, so I never see those screens if they still exist. I'm still wondering if that's what the "proxmox_keep_interface" does, but I've not wanted to run a full update again since it wiped out all my prior interface data.

@troycarpenter
Copy link

Setting the "proxmox_keep_interface" setting to true did NOT help. Subsequent "Full Update" runs after the initial one deletes all the interfaces on the VMs, along with any IP address information that had been added (and the primary IP indicators).

@troycarpenter
Copy link

I also had to make the changes listed in issue #167 before the full update would run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted This issue has been accepted for implementation bug Further discussion is needed to determine this issue's scope and/or implementation
Development

No branches or pull requests

3 participants