Hello,
In my 6.0.0.2 system I have got a problem: a user that has not any created VM, his quota shows three IP leases in one of the created virtual networks. Also, with “oneuser show”, system shows:
USER 334 INFORMATION
ID : 334
NAME : sdci-3-6
GROUP : SDCI
PASSWORD : 05366bcd71545cd6b0a1dd24ba455d5853975d4a493562694d74976a2f88993a
AUTH_DRIVER : core
ENABLED : Yes
TOKENS
USER TEMPLATE
SUNSTONE=[
DEFAULT_VIEW="user",
LANG="es_ES" ]
TOKEN_PASSWORD="b848d7bf77afa58f62937609b9d400eaafa394ed1232d2285c95d313bf510245"
VMS USAGE & QUOTAS
VMS MEMORY CPU SYSTEM_DISK_SIZE
0 / 8 0M / 20G 0.00 / 10.00 0M / 87.9G
VMS USAGE & QUOTAS - RUNNING
RUNNING VMS RUNNING MEMORY RUNNING CPU
0 / - 0M / - 0.00 / -
DATASTORE USAGE & QUOTAS
NETWORK USAGE & QUOTAS
ID LEASES
0 3 / 3
1 0 / 5
2 0 / 5
IMAGE USAGE & QUOTAS
I assigned, for all users, a quota in the VMs created. But this user has not any created VM but system shows 3 IP leases in network “0”.
How can I “reset” that wrong value?
Thanks.
ahuertas
(Alejandro Huertas)
October 6, 2021, 7:51am
2
Hello @Daniel_Ruiz_Molina ,
You can run the command onedb fsck
to fix these incorrect values.
Best,
Álex.
1 Like
Yenya
(Jan "Yenya" Kasprzak)
June 3, 2022, 7:51am
3
Hello, I have the same problem (with 6.2.0 CE). Tried onedb fsck
, but it did not get fixed.
Scheduler says:
Fri Jun 3 09:37:50 2022 [Z0][VM][E]: Error deploying virtual machine 5536 to HID: 67. Reason: [one.vm.deploy] User [0] : user [1380] limit of 16 reached for LEASES quota in NETWORK with ID: 7.
But this VM #5536 is the only VM the user 1380 has. So I stopped OpenNebula, ran onedb fsck
, but nothing has changed. I deleted the pending VM, and now the user #1380 has 15 out of 16 addresses in network #7 , but no VMs at all.
Could there be other leases, not connected to a VM? As far as I can see, the user has no reserved address blocks.
ahuertas
(Alejandro Huertas)
June 8, 2022, 8:25am
4
Hello @Yenya ,
Could you please share the output of oneuser show 1380 -x
and onegroup show <GROUP_ID> -x
of the user’s group.
Best,
Álex.
Yenya
(Jan "Yenya" Kasprzak)
June 8, 2022, 8:44am
5
Álex: As for the group - it is GID #1 , and all my users belong to this group, so the output is quite large. Maybe the following snippet regarding the VNET #7 would be sufficient?
<NETWORK_QUOTA>
<NETWORK>
<ID><![CDATA[7]]></ID>
<LEASES><![CDATA[-1]]></LEASES>
<LEASES_USED><![CDATA[512]]></LEASES_USED>
</NETWORK>
The binary-round value of 512 looks quite suspicious.
The user’s XML follows:
<USER>
<ID>1380</ID>
<GID>1</GID>
<GROUPS>
<ID>1</ID>
</GROUPS>
<GNAME>users</GNAME>
<NAME>xxx</NAME>
<PASSWORD><![CDATA[uid=xxxx,...,dc=cz]]></PASSWORD>
<AUTH_DRIVER><![CDATA[ldap]]></AUTH_DRIVER>
<ENABLED>1</ENABLED>
<TEMPLATE>
<TOKEN_PASSWORD><![CDATA[xxx]]></TOKEN_PASSWORD>
</TEMPLATE>
<DATASTORE_QUOTA/>
<NETWORK_QUOTA>
<NETWORK>
<ID><![CDATA[7]]></ID>
<LEASES><![CDATA[-1]]></LEASES>
<LEASES_USED><![CDATA[15]]></LEASES_USED>
</NETWORK>
</NETWORK_QUOTA>
<VM_QUOTA/>
<IMAGE_QUOTA/>
<DEFAULT_USER_QUOTAS>
<DATASTORE_QUOTA>
<DATASTORE>
<ID><![CDATA[2]]></ID>
<IMAGES><![CDATA[16]]></IMAGES>
<IMAGES_USED><![CDATA[0]]></IMAGES_USED>
<SIZE><![CDATA[64]]></SIZE>
<SIZE_USED><![CDATA[0]]></SIZE_USED>
</DATASTORE>
<DATASTORE>
<ID><![CDATA[100]]></ID>
<IMAGES><![CDATA[16]]></IMAGES>
<IMAGES_USED><![CDATA[0]]></IMAGES_USED>
<SIZE><![CDATA[131072]]></SIZE>
<SIZE_USED><![CDATA[0]]></SIZE_USED>
</DATASTORE>
</DATASTORE_QUOTA>
<NETWORK_QUOTA>
<NETWORK>
<ID><![CDATA[5]]></ID>
<LEASES><![CDATA[1]]></LEASES>
<LEASES_USED><![CDATA[0]]></LEASES_USED>
</NETWORK>
<NETWORK>
<ID><![CDATA[7]]></ID>
<LEASES><![CDATA[16]]></LEASES>
<LEASES_USED><![CDATA[0]]></LEASES_USED>
</NETWORK>
</NETWORK_QUOTA>
<VM_QUOTA>
<VM>
<CPU><![CDATA[3]]></CPU>
<CPU_USED><![CDATA[0]]></CPU_USED>
<MEMORY><![CDATA[32768]]></MEMORY>
<MEMORY_USED><![CDATA[0]]></MEMORY_USED>
<RUNNING_CPU><![CDATA[2]]></RUNNING_CPU>
<RUNNING_MEMORY><![CDATA[-2]]></RUNNING_MEMORY>
<RUNNING_VMS><![CDATA[8]]></RUNNING_VMS>
<SYSTEM_DISK_SIZE><![CDATA[8192]]></SYSTEM_DISK_SIZE>
<SYSTEM_DISK_SIZE_USED><![CDATA[0]]></SYSTEM_DISK_SIZE_USED>
<VMS><![CDATA[8]]></VMS>
<VMS_USED><![CDATA[0]]></VMS_USED>
</VM>
</VM_QUOTA>
<IMAGE_QUOTA/>
</DEFAULT_USER_QUOTAS>
</USER>
Thanks,
-Yenya