[python-fuelclient] Executing 'fuel2 tag show' command leads to error

Bug #1652875 reported by Vitalii Kulanov
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
Medium
Vitalii Kulanov
Nominated for Ocata by Stanislaw Bogatkin
Mitaka
Fix Committed
Medium
Vitalii Kulanov
Newton
Fix Committed
Medium
Vitalii Kulanov

Bug Description

 Detailed bug description:
If we try to execute 'fuel2 tag show' command the result will be:
[root@fuel ~]# fuel2 tag show
Traceback (most recent call last):
  File "/usr/bin/fuel2", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/fuelclient/main.py", line 81, in main
    return fuelclient_app.run(argv)
  File "/usr/lib/python2.7/site-packages/fuelclient/main.py", line 71, in run
    return super(FuelClient, self).run(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 226, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 309, in run_subcommand
    subcommand = self.command_manager.find_command(argv)
  File "/usr/lib/python2.7/site-packages/cliff/commandmanager.py", line 75, in find_command
    cmd_factory = cmd_ep.resolve()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2365, in resolve
    raise ImportError(str(exc))
ImportError: 'module' object has no attribute 'TagShow'
But if we check 'tag' command list, 'tag show' command exists:
[root@fuel ~]# fuel2 tag
fuel2: 'tag' is not a fuel2 command. See 'fuel2 --help'.
Did you mean one of these?
  tag create
  tag delete
  tag download
  tag list
  tag show
  tag update

Steps to reproduce:
1. Deploy Fuel
2. Try to execute 'fuel2 tag show' command

Expected results:
Help message that shows existing tag commands, except 'tag show' one.

Actual result:
[root@fuel ~]# fuel2 tag show
Traceback (most recent call last):
  File "/usr/bin/fuel2", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/fuelclient/main.py", line 81, in main
    return fuelclient_app.run(argv)
  File "/usr/lib/python2.7/site-packages/fuelclient/main.py", line 71, in run
    return super(FuelClient, self).run(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 226, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 309, in run_subcommand
    subcommand = self.command_manager.find_command(argv)
  File "/usr/lib/python2.7/site-packages/cliff/commandmanager.py", line 75, in find_command
    cmd_factory = cmd_ep.resolve()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2365, in resolve
    raise ImportError(str(exc))

Reproducibility:
Always

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

Additional information:
Actually the problem is that 'fuel2 tag show' command doesn't exist and there is an erroneously added entry point for this command in setup.cfg file (https://github.com/openstack/python-fuelclient/blob/stable/newton/setup.cfg#L121)
Also note that this bug was fixed for master branch https://review.openstack.org/#/c/403665/, but still present in stable/newton and stable/mitaka

Changed in fuel:
assignee: nobody → Vitalii Kulanov (vitaliy-t)
Changed in fuel:
importance: Undecided → High
status: New → Invalid
importance: High → Medium
milestone: none → 11.0
Revision history for this message
Nastya Urlapova (aurlapova) wrote :

@Stas, what was a reason for Medium priority?

Changed in fuel:
importance: Medium → Low
importance: Low → High
Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

@Nastya, because there are other commands for tags management. This command is not that valuable.

Changed in fuel:
importance: High → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-fuelclient (stable/mitaka)

Reviewed: https://review.openstack.org/403667
Committed: https://git.openstack.org/cgit/openstack/python-fuelclient/commit/?id=5d327fe6b09e44c361e99fb2b1ae665ef49a73cd
Submitter: Jenkins
Branch: stable/mitaka

commit 5d327fe6b09e44c361e99fb2b1ae665ef49a73cd
Author: Vitalii Kulanov <email address hidden>
Date: Mon Nov 28 14:20:54 2016 +0200

    Remove entry point for nonexistent 'fuel2 tag show' command

    Now setup.cfg file contains entry point for nonexistent
    'fuel2 tag show' command. So let's remove it.

    Closes-Bug: 1652875
    Change-Id: Iec87f0b8cffe948539b6965f61b4d85a29718926

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-fuelclient (stable/newton)

Reviewed: https://review.openstack.org/403666
Committed: https://git.openstack.org/cgit/openstack/python-fuelclient/commit/?id=e8f09541ab2b28266ca849e8cd9cac5d3f22b44f
Submitter: Jenkins
Branch: stable/newton

commit e8f09541ab2b28266ca849e8cd9cac5d3f22b44f
Author: Vitalii Kulanov <email address hidden>
Date: Mon Nov 28 14:20:54 2016 +0200

    Remove entry point for nonexistent 'fuel2 tag show' command

    Now setup.cfg file contains entry point for nonexistent
    'fuel2 tag show' command. So let's remove it.

    Closes-Bug: 1652875
    Change-Id: Iec87f0b8cffe948539b6965f61b4d85a29718926

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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