Comments (2)
Whilst I agree this is a bug, I am not entirely sure what we should return here for this endpoint.
The problem is that for physical
networks, the parent interface can disappear from the host if used by an physical
NIC, and so most of the info will not be retrievable, or worse only retrievable when the instance isn't running (and the parent interface has been released back to the host).
But when the physical parent is being used as an OVN uplink it might be quite useful to see the counters of data flowing through it.
@edlerd would it be acceptable to sometimes return 404 on this endpoint if the parent interface is missing, either because its not been configured on the host or if its passed into a running instance?
from lxd.
@edlerd would it be acceptable to sometimes return 404 on this endpoint if the parent interface is missing, either because its not been configured on the host or if its passed into a running instance?
Yes, we can sometimes have a 404. Can we improve the error message?
Motivation: Reading your explanation, I understand in the OVN case, we want to display the state info for physical managed networks. The UI will show the error message in the other case. But the current error message doesn't make clear, as your explanation above does. I think it is misleading:
I think it is the same issue on the command line:
root@latest-edge:~# lxc network info abc
Error: Network interface "abc" not found
where abc exists:
root@latest-edge:~# lxc network show abc
name: abc
description: ""
type: physical
managed: true
status: Created
config:
parent: eth0
volatile.last_state.created: "false"
used_by: []
locations:
- none
from lxd.
Related Issues (20)
- Replace `square/go-jose` by `go-jose/go-jose` HOT 5
- Restricted users fail to load projects with recursion HOT 3
- Storage does not creates directory tree in all cluster members HOT 3
- Allow volumes to be moved from offline members regardless of the storage driver
- Storage volume backup handlers are not forwarding requests when the `target` parameter is remote
- Etag check is missing for storage bucket update handler
- Can't start containers / zpool didn't mount HOT 2
- Unused flags when adding TPM to VMs HOT 2
- port 53 forwarding kept giving internal dns names HOT 1
- Restricted users loading all operations causing 500
- Apparmor DENIED for name="/sys/devices/system/node/" and comm="qemu-img" HOT 9
- image source image_type is empty string HOT 3
- `security.devlxd.images` regressed somewhere after `5.0`
- Potential duplicate QEMU device ID when using long device names HOT 1
- doc: Incorrect unit for limits.memory
- LXD is missing support for `binfmt_misc` namespace HOT 1
- storage pool create failure due to ext4's lost+found directory HOT 1
- Enable `security.nesting` by default for unprivileged containers and modern enough images HOT 1
- `PATCH /1.0/projects/<project>` removes existing configuration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lxd.