openbmc / phosphor-networkd

Apache License 2.0
18 stars 48 forks source link

Crashed when trying to set VLAN id from IPMI command if DHCP is enabled #67

Open Lin-TommySC opened 1 year ago

Lin-TommySC commented 1 year ago

The issue is triggered from this line due to AddressOrigin was not Static:

https://github.com/openbmc/phosphor-networkd/blob/5c1e1604ff9637630a7338392e37ba9d3fc2b359/src/ipaddress.cpp#L99

Because phosphor-ipmi-host was deleting all channel objects in line below before creating a VLAN:

https://github.com/openbmc/phosphor-host-ipmid/blob/1b42a9c58f4bb6fc6c4f306e42c0544018064892/transporthandler.cpp#L652C37-L652C37

raviteja-b commented 1 year ago

Can you please provide more details ? does host-ipmid crashed? this needs to be handled in ipmid

Lin-TommySC commented 1 year ago

Can you please provide more details ? does host-ipmid crashed? this needs to be handled in ipmid

Yes, ipmid did crash.