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

Proxmox - VM Duplication #467

Open
soupyframe opened this issue Apr 11, 2024 · 0 comments
Open

Proxmox - VM Duplication #467

soupyframe opened this issue Apr 11, 2024 · 0 comments

Comments

@soupyframe
Copy link

General informations

Operating system : Proxmox Virtual Environment 7.4-16
Perl version : v5.32.1

OCS Inventory informations

Unix agent version : 2.10.2

Problem's description

We have a Proxmox server cluster each with various workloads. OCS Inventory Agent is reporting that a VM is present on two different hosts at the same time.

Inventory log file

Host 15 log file excerpt

   <VIRTUALMACHINES>
      <MEMORY>98304</MEMORY>
      <NAME>prox-ts-prod-84,debug-threads=on</NAME>
      <STATUS>running</STATUS>
      <SUBSYSTEM>qemu</SUBSYSTEM>
      <UUID>4da7b3ff-0084-41be-a705-425f00bf37cf</UUID>
      <VCPU>16</VCPU>
      <VMTYPE>qemu</VMTYPE>
    </VIRTUALMACHINES>

Host 15 qm list result

proxmox-host-15:~$ sudo qm list
      VMID NAME                 STATUS     MEM(MB)    BOOTDISK(GB) PID
       108 redacted stopped    8096             200.00 0
       118 prox-ts-prod-84 running    98304            250.00 699593
       182 redacted          running    8192             250.00 3073809
      1003 redacted running    24576            200.00 803647
      1206 redacted running    24576            200.00 801094
 

Host 12 log file excerpt

    <VIRTUALMACHINES>
      <MEMORY>98304</MEMORY>
      <NAME>prox-ts-prod-84,debug-threads=on</NAME>
      <STATUS>running</STATUS>
      <SUBSYSTEM>qemu</SUBSYSTEM>
      <UUID>4da7b3ff-0084-41be-a705-425f00bf37cf</UUID>
      <VCPU>16</VCPU>
      <VMTYPE>qemu</VMTYPE>
    </VIRTUALMACHINES>

Host 12 qm list excerpt

      VMID NAME                 STATUS     MEM(MB)    BOOTDISK(GB) PID
       155 redacted          running    32768            256.00 513935
       159 Template-ServerStandard2022Backup stopped    4096             200.00 0
       163 redacted running    131072           512.00 3015162
       170 redacted stopped    131072           512.00 0
       175 redacted stopped    16384            200.00 0
      1302 redacted running    65536            200.00 149723

The VM in question MAY have been on Prox Host 12 at some point in its life. In OCS Inventory, it is correctly reporting that the VM in question is hosted on Prox Host 15.
image

However Prox Host 12 still lists the VM under miscellaneous and it is still listed twice in the OCS database.
image

The VM Name in Proxmox is prox-ts-prod-84, buts its host name is prox-ts-prod-1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant