-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esi node network attach should print API error message #664
Comments
Here's another example of the same problem. Try to specify a network that doesn't exist to
But the API response provides a more useful error message:
|
@larsks @tzumainn Could you share the exact command you used? I seem to be getting the correct error message instead. (new-openstack-env) [surbhikanthed@localhost openshift-openstack]$ openstack esi node network attach eb932b4d-2d7c-4890-ac83-03240a1ae3ec --network <network-name>
+-------------+-------------------------------------------+
| Field | Value |
+-------------+-------------------------------------------+
| Node | MOC-R4PAC24U37-S1A |
| MAC Address | a8:99:69:6f:75:84 |
| Port | esi-MOC-R4PAC24U37-S1A-network-name |
| Network | network-name |
| Fixed IP | fixed ip value |
+-------------+-------------------------------------------+
(new-openstack-env) [surbhikanthed@localhost openshift-openstack]$
(new-openstack-env) [surbhikanthed@localhost openshift-openstack]$ openstack esi node network attach eb932b4d-2d7c-4890-ac83-03240a1ae3ec --network <network-name>
Node MOC-R4PAC24U37-S1A has no free ports
(new-openstack-env) [surbhikanthed@localhost openshift-openstack]$
I am able to reproduce the second one |
@skanthed I'm working with these versions:
I started with:
The first attach works as expected:
But the second attach attempt fails, and does not produce a useful error message:
If we re-run that command with
We can of course successfully perform the second attach by specifying the MAC address:
At this point we have:
If we try that a second time -- which should trigger a "no free ports" error -- we get:
With
|
@larsks I will look into it. |
This is fix for |
I had an
openstack esi node network attach
command fail like this:Running the command in
--debug
shows shows that the API is actually providing a useful error message:We should be returning that error information to the user.
The text was updated successfully, but these errors were encountered: