We used to have a neutron user in LDAP which got eventually deleted to don't clash with the neutron system user created by openstack packages.
It seems we need further cleanup, I think we have some role assigned to this (now missing) neutron LDAP user which makes this command crash:
root@cloudcontrol1003:~# openstack role assignment list --names Could not find user: neutron (HTTP 404) (Request-ID: req-2a42ad3e-7341-4473-8b5c-1c01d5e78a4d)
Apparently is this entry:
root@cloudcontrol1003:~# openstack role assignment list +----------------------------------+------------------------------------------+-------+----------------------------------+--------+-----------+ | Role | User | Group | Project | Domain | Inherited | +----------------------------------+------------------------------------------+-------+----------------------------------+--------+-----------+ [..] | f473273fac7146b3bdbf22e5d4504f95 | neutron | | bastion | | False |
If trying to remove the role assignment by hand, an error happens:
root@cloudcontrol1003:~# openstack role remove --user neutron --project bastion f473273fac7146b3bdbf22e5d4504f95 No user with a name or ID of 'neutron' exists.
So perhaps this needs cleanup at database level.