Magnum Error message is not clear.

Bug #1555123 reported by Prithiv
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
Won't Fix
Medium
Prithiv

Bug Description

Magnum throws just 404 Not Found error for anything. If keypair not found, baymodel, or bay is not available, print appropriate error message. In the below error, bay k8 does not exist. It would be better if the error says 'Bay k8 not found' rather than just 'Not Found'

magnum pod-create --manifest redis-master.yaml --bay k8
ERROR: Not Found (HTTP 404)

Changed in magnum:
assignee: nobody → Deeksha Sachdeva (sachdevadeeksha5)
hongbin (hongbin034)
Changed in magnum:
status: New → Confirmed
Prithiv (prithiv)
Changed in magnum:
assignee: Deeksha Sachdeva (sachdevadeeksha5) → nobody
assignee: nobody → Prithiv (prithiv)
Revision history for this message
hongbin (hongbin034) wrote :

An observation is that it happened after this patch https://review.openstack.org/#/c/287269/ . It looks message format has changed in server side, so the magnumclient needs to update accordingly.

Changed in magnum:
importance: Undecided → Medium
Changed in magnum:
assignee: Prithiv (prithiv) → Deeksha Sachdeva (sachdevadeeksha5)
Prithiv (prithiv)
Changed in magnum:
assignee: Deeksha Sachdeva (sachdevadeeksha5) → nobody
assignee: nobody → Prithiv (prithiv)
Revision history for this message
yatin (yatinkarel) wrote :

I think it is fixed in below version:-
ubuntu@ubuntubase:/opt/stack/magnum$ magnum --version
2.1.1
ubuntu@ubuntubase:/opt/stack/magnum$ magnum-api --version
2.0.1.dev334

Also cli of pods have been removed from current version of magnum.

ubuntu@ubuntubase:/opt/stack/magnum$ magnum baymodel-create --name k8sbaymodel1 --image-id fedora-atomic-latestaa --keypair-id testkey --external-network-id public --dns-nameserver 8.8.8.8 --flavor-id m2.small --docker-volume-size 1 --network-driver flannel --coe kubernetes
ERROR: Image fedora-atomic-latestaa could not be found (HTTP 400) (Request-ID: req-fdc2ac87-de43-435f-8038-d5c8739b3d1f)
ubuntu@ubuntubase:/opt/stack/magnum$ magnum baymodel-create --name k8sbaymodel1 --image-id fedora-atomic-latest --keypair-id testkeay --external-network-id public --dns-nameserver 8.8.8.8 --flavor-id m2.small --docker-volume-size 1 --network-driver flannel --coe kubernetes
ERROR: Unable to find keypair testkeay (HTTP 404) (Request-ID: req-3bd5c462-4f09-496d-b6a1-dc6f7c4c878c)

Revision history for this message
hongbin (hongbin034) wrote :

This bug won't be fixed since the /pod endpoint has been removed.

Changed in magnum:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.