onedb fsck wrong check for IP6
See original GitHub issueDescription In onedb fsck command is bug claiming wrong leases for IP6 addresses.
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 120. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a801 != 2a0b:a900::400:b9ff:feae:a801. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 120. IP6_LINK does not match: fe80::b9ff:feae:a801 != . This can't be fixed
It is related to issue #2564. I am able to fix IP6_GLOBAL
error by changing +512
to ^0x0200
at this line https://github.com/OpenNebula/one/blob/5cc301f48200c18202e86788037622c946e3064e/src/onedb/fsck.rb#L553
but I am not able to fix IP6_LINK
error.
To Reproduce
run onedb fsck
on a system with leased ipv6
Expected behavior No claims about unrepaired errors related to IP6 addresses.
Details
- Affected Component: onedb fsck
- Hypervisor: any
- Version: 5.6+
Additional context
Example network template:
VIRTUAL NETWORK 6 INFORMATION
ID : 6
NAME : Public-101
USER : feldsam
GROUP : oneadmin
LOCK : None
CLUSTERS : 0
BRIDGE : onebr.101
VN_MAD : 802.1Q
PHYSICAL DEVICE : team0
VLAN ID : 101
AUTOMATIC VLAN ID : NO
AUTOMATIC OUTER VLAN ID : NO
USED LEASES : 38
PERMISSIONS
OWNER : um-
GROUP : ---
OTHER : ---
VIRTUAL NETWORK TEMPLATE
BRIDGE="onebr.101"
BRIDGE_TYPE="linux"
CONTEXT_FORCE_IPV4="YES"
DNS="185.174.168.48 8.8.8.8 8.8.4.4 2a0b:a900::b9ff:feae:a830 2001:4860:4860::8888 2001:4860:4860::8844"
FILTER_IP_SPOOFING="YES"
FILTER_MAC_SPOOFING="YES"
GATEWAY="185.174.168.254"
GATEWAY6="2a0b:a900::ffff"
GUEST_MTU="1476"
INBOUND_AVG_BW="25600"
INBOUND_PEAK_BW="51200"
INBOUND_PEAK_KB="512000"
NETWORK_ADDRESS="185.174.168.0"
NETWORK_MASK="255.255.255.0"
OUTBOUND_AVG_BW="25600"
OUTBOUND_PEAK_BW="51200"
OUTBOUND_PEAK_KB="512000"
OUTER_VLAN_ID=""
PHYDEV="team0"
RESERVATIONS_ALLOWED="YES"
SECURITY_GROUPS="0"
VLAN_ID="101"
VN_MAD="802.1Q"
ADDRESS RANGE POOL
AR 0
SIZE : 251
LEASES : 38
RANGE FIRST LAST
MAC 02:00:b9:ae:a8:01 02:00:b9:ae:a8:fb
IP 185.174.168.1 185.174.168.251
IP6_GLOBAL 2a0b:a900::b9ff:feae:a801 2a0b:a900::b9ff:feae:a8fb
LEASES
AR OWNER MAC IP IP6
0 V:120 02:00:b9:ae:a8:01 185.174.168.1 2a0b:a900::b9ff:feae:a801
0 V:-1 02:00:b9:ae:a8:02 185.174.168.2 2a0b:a900::b9ff:feae:a802
0 V:142 02:00:b9:ae:a8:03 185.174.168.3 2a0b:a900::b9ff:feae:a803
0 V:478 02:00:b9:ae:a8:04 185.174.168.4 2a0b:a900::b9ff:feae:a804
0 V:499 02:00:b9:ae:a8:05 185.174.168.5 2a0b:a900::b9ff:feae:a805
0 V:1074 02:00:b9:ae:a8:06 185.174.168.6 2a0b:a900::b9ff:feae:a806
0 V:864 02:00:b9:ae:a8:07 185.174.168.7 2a0b:a900::b9ff:feae:a807
0 V:993 02:00:b9:ae:a8:08 185.174.168.8 2a0b:a900::b9ff:feae:a808
0 V:1122 02:00:b9:ae:a8:09 185.174.168.9 2a0b:a900::b9ff:feae:a809
0 V:-1 02:00:b9:ae:a8:0a 185.174.168.10 2a0b:a900::b9ff:feae:a80a
0 V:143 02:00:b9:ae:a8:0b 185.174.168.11 2a0b:a900::b9ff:feae:a80b
0 V:143 02:00:b9:ae:a8:0c 185.174.168.12 2a0b:a900::b9ff:feae:a80c
0 V:143 02:00:b9:ae:a8:0d 185.174.168.13 2a0b:a900::b9ff:feae:a80d
0 V:157 02:00:b9:ae:a8:0e 185.174.168.14 2a0b:a900::b9ff:feae:a80e
0 V:1136 02:00:b9:ae:a8:0f 185.174.168.15 2a0b:a900::b9ff:feae:a80f
0 V:1234 02:00:b9:ae:a8:10 185.174.168.16 2a0b:a900::b9ff:feae:a810
0 V:143 02:00:b9:ae:a8:11 185.174.168.17 2a0b:a900::b9ff:feae:a811
0 V:112 02:00:b9:ae:a8:12 185.174.168.18 2a0b:a900::b9ff:feae:a812
0 V:140 02:00:b9:ae:a8:14 185.174.168.20 2a0b:a900::b9ff:feae:a814
0 V:134 02:00:b9:ae:a8:15 185.174.168.21 2a0b:a900::b9ff:feae:a815
0 V:93 02:00:b9:ae:a8:18 185.174.168.24 2a0b:a900::b9ff:feae:a818
0 V:127 02:00:b9:ae:a8:1d 185.174.168.29 2a0b:a900::b9ff:feae:a81d
0 V:136 02:00:b9:ae:a8:20 185.174.168.32 2a0b:a900::b9ff:feae:a820
0 V:99 02:00:b9:ae:a8:22 185.174.168.34 2a0b:a900::b9ff:feae:a822
0 V:139 02:00:b9:ae:a8:25 185.174.168.37 2a0b:a900::b9ff:feae:a825
0 V:96 02:00:b9:ae:a8:26 185.174.168.38 2a0b:a900::b9ff:feae:a826
0 V:98 02:00:b9:ae:a8:2e 185.174.168.46 2a0b:a900::b9ff:feae:a82e
0 N:8 02:00:b9:ae:a8:2f 185.174.168.47 2a0b:a900::b9ff:feae:a82f
0 N:8 02:00:b9:ae:a8:30 185.174.168.48 2a0b:a900::b9ff:feae:a830
0 V:118 02:00:b9:ae:a8:3a 185.174.168.58 2a0b:a900::b9ff:feae:a83a
0 V:114 02:00:b9:ae:a8:3b 185.174.168.59 2a0b:a900::b9ff:feae:a83b
0 V:95 02:00:b9:ae:a8:3c 185.174.168.60 2a0b:a900::b9ff:feae:a83c
0 V:133 02:00:b9:ae:a8:3d 185.174.168.61 2a0b:a900::b9ff:feae:a83d
0 V:91 02:00:b9:ae:a8:4d 185.174.168.77 2a0b:a900::b9ff:feae:a84d
0 V:124 02:00:b9:ae:a8:5e 185.174.168.94 2a0b:a900::b9ff:feae:a85e
0 V:-1 02:00:b9:ae:a8:8d 185.174.168.141 2a0b:a900::b9ff:feae:a88d
0 V:-1 02:00:b9:ae:a8:8e 185.174.168.142 2a0b:a900::b9ff:feae:a88e
0 V:-1 02:00:b9:ae:a8:8f 185.174.168.143 2a0b:a900::b9ff:feae:a88f
onedb fsck errors:
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 120. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a801 != 2a0b:a900::400:b9ff:feae:a801. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 120. IP6_LINK does not match: fe80::b9ff:feae:a801 != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 142. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a803 != 2a0b:a900::400:b9ff:feae:a803. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 142. IP6_LINK does not match: fe80::b9ff:feae:a803 != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 478. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a804 != 2a0b:a900::400:b9ff:feae:a804. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 478. IP6_LINK does not match: fe80::b9ff:feae:a804 != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 499. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a805 != 2a0b:a900::400:b9ff:feae:a805. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 499. IP6_LINK does not match: fe80::b9ff:feae:a805 != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 1074. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a806 != 2a0b:a900::400:b9ff:feae:a806. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 1074. IP6_LINK does not match: fe80::b9ff:feae:a806 != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 864. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a807 != 2a0b:a900::400:b9ff:feae:a807. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 864. IP6_LINK does not match: fe80::b9ff:feae:a807 != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 993. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a808 != 2a0b:a900::400:b9ff:feae:a808. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 993. IP6_LINK does not match: fe80::b9ff:feae:a808 != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 1122. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a809 != 2a0b:a900::400:b9ff:feae:a809. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 1122. IP6_LINK does not match: fe80::b9ff:feae:a809 != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 143. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a80b != 2a0b:a900::400:b9ff:feae:a80b. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 143. IP6_LINK does not match: fe80::b9ff:feae:a80b != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 143. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a80c != 2a0b:a900::400:b9ff:feae:a80c. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 143. IP6_LINK does not match: fe80::b9ff:feae:a80c != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 143. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a80d != 2a0b:a900::400:b9ff:feae:a80d. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 143. IP6_LINK does not match: fe80::b9ff:feae:a80d != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 157. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a80e != 2a0b:a900::400:b9ff:feae:a80e. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 157. IP6_LINK does not match: fe80::b9ff:feae:a80e != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 1136. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a80f != 2a0b:a900::400:b9ff:feae:a80f. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 1136. IP6_LINK does not match: fe80::b9ff:feae:a80f != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 1234. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a810 != 2a0b:a900::400:b9ff:feae:a810. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 1234. IP6_LINK does not match: fe80::b9ff:feae:a810 != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 143. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a811 != 2a0b:a900::400:b9ff:feae:a811. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 143. IP6_LINK does not match: fe80::b9ff:feae:a811 != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 112. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a812 != 2a0b:a900::400:b9ff:feae:a812. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 112. IP6_LINK does not match: fe80::b9ff:feae:a812 != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 140. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a814 != 2a0b:a900::400:b9ff:feae:a814. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 140. IP6_LINK does not match: fe80::b9ff:feae:a814 != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 134. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a815 != 2a0b:a900::400:b9ff:feae:a815. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 134. IP6_LINK does not match: fe80::b9ff:feae:a815 != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 93. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a818 != 2a0b:a900::400:b9ff:feae:a818. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 93. IP6_LINK does not match: fe80::b9ff:feae:a818 != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 127. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a81d != 2a0b:a900::400:b9ff:feae:a81d. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 127. IP6_LINK does not match: fe80::b9ff:feae:a81d != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 136. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a820 != 2a0b:a900::400:b9ff:feae:a820. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 136. IP6_LINK does not match: fe80::b9ff:feae:a820 != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 99. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a822 != 2a0b:a900::400:b9ff:feae:a822. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 99. IP6_LINK does not match: fe80::b9ff:feae:a822 != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 139. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a825 != 2a0b:a900::400:b9ff:feae:a825. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 139. IP6_LINK does not match: fe80::b9ff:feae:a825 != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 96. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a826 != 2a0b:a900::400:b9ff:feae:a826. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 96. IP6_LINK does not match: fe80::b9ff:feae:a826 != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 98. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a82e != 2a0b:a900::400:b9ff:feae:a82e. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 98. IP6_LINK does not match: fe80::b9ff:feae:a82e != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 118. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a83a != 2a0b:a900::400:b9ff:feae:a83a. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 118. IP6_LINK does not match: fe80::b9ff:feae:a83a != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 114. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a83b != 2a0b:a900::400:b9ff:feae:a83b. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 114. IP6_LINK does not match: fe80::b9ff:feae:a83b != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 95. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a83c != 2a0b:a900::400:b9ff:feae:a83c. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 95. IP6_LINK does not match: fe80::b9ff:feae:a83c != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 133. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a83d != 2a0b:a900::400:b9ff:feae:a83d. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 133. IP6_LINK does not match: fe80::b9ff:feae:a83d != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 91. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a84d != 2a0b:a900::400:b9ff:feae:a84d. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 91. IP6_LINK does not match: fe80::b9ff:feae:a84d != . This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 124. IP6_GLOBAL does not match: 2a0b:a900::b9ff:feae:a85e != 2a0b:a900::400:b9ff:feae:a85e. This can't be fixed
[UNREPAIRED] VNet 6 AR 0 has a wrong lease for VM 124. IP6_LINK does not match: fe80::b9ff:feae:a85e != . This can't be fixed
Progress Status
- Branch created
- Code committed to development branch
- Testing - QA
- Documentation
- Release notes - resolved issues, compatibility, known issues
- Code committed to upstream release/hotfix branches
- Documentation committed to upstream release/hotfix branches
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
[SOLVED] 5.8.2 some IP leases dropped after operation fsck ...
Hi All! Noticed the bug: After execute the following command was mark some IPs as free, which have been reserved for network: $onedb...
Read more >Fix List for DB2 Version 9.1 for Linux, UNIX and Windows - IBM
Contains list of shipped APARs for DB2 Version 9.1 for Linux, UNIX and Windows products, sorted as APARs by fix pack.
Read more >https://raw.githubusercontent.com/OpenNebula/one/o...
LOCAL_VERSION ) raise <<-EOT Version mismatch: fsck file is for version Shared: #{VERSION}, ... VM/LCM_STATE <---- Check consistency state/lcm_state ?
Read more >Release 4.8 - OpenNebula - OpenNebula Development pages
Check also CSRF fix ... Bug #2982: onedb import-slave will fail for orphan resources ... Bug #3006: Wrong template uid in migrator from...
Read more >Sun Netra X4450 Server Installation Guide - Oracle Help Center
The OPEN LOOK and Sun™ Graphical User Interface was developed by Sun ... Connect the power cable to the server and examine the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I will close mine, so you have the authored of it!
😄 we do PR at once