run time error when configuring ip address on vlan1350 interface from webUI

Description

1/ Firstly I had a hard time creating the vlan interface

  • when I was creating this interface all other ip would not respond and it would rollback

  • tried to create from the console menu, no error messages, I could see the interface with ifconfig but not visible from the UI

  • tried again from the UI and it worked without any symptoms

2/ then created a bridge (bridge1350) -> ok

3/ then tried to add an ip to the vlan1350 interface and I get this error

Error: Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 137, in call_method
result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self,
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1191, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/service.py", line 463, in update
rv = await self.middleware._call(
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1191, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 973, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/network.py", line 1411, in do_update
await self.middleware.call(
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1233, in call
return await self._call(
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1191, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 973, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/datastore/write.py", line 56, in update
raise RuntimeError(f'{len(rows)} found, expecting one')
RuntimeError: 2 found, expecting one

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Bug Clerk 
January 7, 2021 at 2:37 PM

Bug Clerk 
January 7, 2021 at 1:41 PM

Vladimir Vinogradenko 
December 23, 2020 at 10:34 AM

yes, sorry I forgot to mention, you'll also need to delete and recreate your VLAN interface (not using CLI as it'll only be fixed in 12.0-U2).

STIEVENARD David 
December 23, 2020 at 1:34 AM

did it, I got "true" as an answer

 

now the interface is missing the vlan tag

 

but the interfaces are ok in ifconfig and the jail is still reachable

 

 

 

 

 

 

 

 

If I try to add the vlan tag, I get this error

 

Runtime error

Found 0, expecting one

 

To have a "clean" situation should I delete everything and recreate ?

 

Vladimir Vinogradenko 
December 22, 2020 at 11:01 PM
(edited)

CLI left your database in an inconsistent state. Please run:

Complete

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

More fields

Katalon Platform

Created December 21, 2020 at 2:41 PM
Updated July 1, 2022 at 4:59 PM
Resolved January 7, 2021 at 2:37 PM