[python-fuelclient] More verbosity should be added to the output of commands that operating on vms instead 'not found'

Bug #1603980 reported by Vitalii Kulanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Vitalii Kulanov
Mitaka
Won't Fix
Medium
Vitalii Kulanov

Bug Description

Detailed bug description:
In python-fuelclient there is a set of commands that operate on vms (https://github.com/openstack/python-fuelclient/commit/6e24282c7a7faa6c67f6a97aae78431bb5c4c414). But the API and respective fuel2 commands are only available if 'advanced' feature is setted in 'feature_group' (from fuelmenu). In other case Nailgun reports '(not found)'. It's worth to check 'advanced' flag before executing command and give more user-friendly error message instead '(not found)' one.

Steps to reproduce:
1. Deploy Fuel (e.g. 1 master + 5 nodes).
2. Create some environment.
3. Add several nodes to environment.
4. Try to create vms config in metadata for any selected node:
   [root@fuel ~]# fuel2 node create-vms-conf 1 --conf 'SOME_CONFIG_DATA'
   404 Client Error: Not Found for url: http://10.20.0.2:8000/api/v1/nodes/1/vms_conf/ (not found)

The same result will be for the rest fuel2 commands that operate on vms

Expected results:
   Advanced feature should be enabled in feature groups

Actual result:
   404 Client Error: Not Found for url: http://10.20.0.2:8000/api/v1/nodes/1/vms_conf/ (not found)

Description of the environment:
[root@fuel ~]# shotgun2 short-report
cat /etc/fuel_build_id:
 410
cat /etc/fuel_build_number:
 410
cat /etc/fuel_release:
 10.0
cat /etc/fuel_openstack_version:
 newton-10.0

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-fuelclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/343619

Changed in fuel:
assignee: nobody → Vitalii Kulanov (vitaliy-t)
status: New → In Progress
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
milestone: none → 10.0
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-fuelclient (master)

Reviewed: https://review.openstack.org/343619
Committed: https://git.openstack.org/cgit/openstack/python-fuelclient/commit/?id=8b5dcd4d8ee560884fdf903135bee99e3c845792
Submitter: Jenkins
Branch: master

commit 8b5dcd4d8ee560884fdf903135bee99e3c845792
Author: tivaliy <email address hidden>
Date: Mon Jul 18 15:33:34 2016 +0300

    Add more verbosity to fuel2 vms commands

    There is a set of commands that operate on vms.
    But the API and respective fuel2 commands are
    only available if 'advanced' feature is active
    in 'feature_group' (from fuelmenu). In other case
    Nailgun reports '(not found)'. This patch adds more
    verbosity to fuel2 vms commands if 'advanced' feature
    is not active instead '(not found)' responce.

    Change-Id: Idc1a2612ca20125ed54bdd35bfb048a81fa22cdd
    Closes-Bug: 1603980

Changed in fuel:
status: In Progress → Fix Committed
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.