Traceback when installing a plugin with a force key

Bug #1514401 reported by Bogdan Dobrelya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
High
Fuel Python (Deprecated)

Bug Description

Repro steps:
1. Install any Fuel plugin with a CLI
2. Try to reinstall it with a force key
fuel plugins --force --install <some-plugin>

Expected: the plugin installed
Actual:
Traceback (most recent call last):
  File "/usr/bin/fuel", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python2.6/site-packages/fuelclient/cli/error.py", line 114, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/fuelclient/cli/parser.py", line 266, in main
    parser.parse()
  File "/usr/lib/python2.6/site-packages/fuelclient/cli/parser.py", line 143, in parse
    actions[parsed_params.action].action_func(parsed_params)
  File "/usr/lib/python2.6/site-packages/fuelclient/cli/actions/base.py", line 62, in action_func
    method(params)
  File "/usr/lib/python2.6/site-packages/fuelclient/cli/actions/plugins.py", line 88, in install
    results = Plugins.install(file_path, force=params.force)
  File "/usr/lib/python2.6/site-packages/fuelclient/objects/plugins.py", line 323, in install
    response = cls.register(name, version, force=force)
  File "/usr/lib/python2.6/site-packages/fuelclient/objects/plugins.py", line 280, in register
    return cls.update_or_create(metadata, force=force)
  File "/usr/lib/python2.6/site-packages/fuelclient/objects/plugins.py", line 434, in update_or_create
    url = cls.class_instance_path.format(id=resp['id'])
KeyError: 'id'

Version:
release: '8.0'
release_versions:
  2015.1.0-8.0:
    VERSION:
      api: '1.0'
      astute_sha: 959b06c5ef8143125efd1727d350c050a922eb12
      build_id: '233'
      build_number: '233'
      feature_groups:
      - mirantis
      fuel-agent_sha: 9da73b497be5f91cb79f91e74d73eb0525be1c71
      fuel-createmirror_sha: a0057ba03a2bcd9875e81b6dc414b85f86875603
      fuel-library_sha: 04f5ab19ff4d401dc956a54469fd1751ac759d4e
      fuel-nailgun-agent_sha: 00b4b11553c250f22c0079fb74c8b782dcb7b740
      fuel-nailgun_sha: 915a59d82c98df961abc60ea93c5c7451e2744bf
      fuel-ostf_sha: b360e411a7cf251294542c4512b601c597a5e957
      fuel-upgrade_sha: 1e894e26d4e1423a9b0d66abd6a79505f4175ff6
      fuelmain_sha: cfed10fd84dc95a645e8760a49646e2303ab5d16
      fuelmenu_sha: 770f2aa62a74bf8286b34caccc3b222ef2cebc1d
      network-checker_sha: 722a2a46503cffa82d78243d516bf762cd9715fc
      openstack_version: 2015.1.0-8.0
      production: docker
      python-fuelclient_sha: a3b4d6b395c8d23c04a94925006e742caf9ff7cd
      release: '8.0'
      shotgun_sha: 25dd78a3118267e3616df0727ce746e7dead2d67
shotgun_sha: 25dd78a3118267e3616df0727ce746e7dead2d67

Changed in fuel:
milestone: none → 8.0
assignee: nobody → Fuel Python Team (fuel-python)
importance: Undecided → High
tags: added: area-plugins
summary: - Traceback then installing a plugin with a force key
+ Traceback when installing a plugin with a force key
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :
Artem Roma (aroma-x)
tags: added: area-python
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

the w/a is to unregister plugin and reinstall with --force should work. But you cannot unregister it if any env exist with this plugin

Revision history for this message
Artem Roma (aroma-x) wrote :

Haven't been able to reproduce the issue on latest 8.0 iso (at the time #139) following the steps. Could you, please, provide more details?

Changed in fuel:
status: New → Incomplete
Dmitry Pyzhov (dpyzhov)
tags: removed: area-plugins
Dmitry Pyzhov (dpyzhov)
tags: added: team-bugfix
Revision history for this message
Roman Prykhodchenko (romcheg) wrote :

Marking the issue as invalid since it was incomplete for more than 3 weeks.

@Bogdan: Please confirm that you can reproduce it on the latest ISO.

Changed in fuel:
status: Incomplete → Invalid
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.