fuel2 plugins sync command failed without plugins

Bug #1677627 reported by vnaumov
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
In Progress
Medium
Vitalii Kulanov
Nominated for Ocata by Oleksiy Molchanov

Bug Description

Env description:
[root@nailgun ~]# fuel2 fuel-version
+-------------------+-------------+
| Field | Value |
+-------------------+-------------+
| api | 1 |
| auth_required | True |
| feature_groups | [] |
| openstack_version | newton-10.0 |
| release | 10.0 |
+-------------------+-------------+

[root@nailgun ~]# cat /etc/fuel_build_id
1542
[root@nailgun ~]# cat /etc/fuel_build_number
1542
[root@nailgun ~]# cat /etc/fuel_release
10.0

steps to reproduce:
  1. deploy 10.0 env
  2. run command "fuel2 plugins sync"
  3. notice - there is no installed plugins

expected result:
  command returned simple warning message

result:
[root@nailgun ~]# fuel2 plugins sync │------------- ------------------- ----------------------------------------------------------------------
500 Server Error: Internal Server Error for url: http://10.109.0.2:8000/api/v1/plugins/sync/ (Traceback (m│-------------------------
ost recent call last): │empty 2017-03-30 08:50:46 admin, slave-01, slave-02, slave-03, slave-04, slave-05, slave-06, sla
  File "/usr/lib/python2.7/site-packages/nailgun/api/v1/handlers/base.py", line 308, in handle_errors │ve-07, slave-08, slave-09
    return func(cls, *args, **kwargs) │ready 2017-03-30 08:54:20 admin, slave-01, slave-02, slave-03, slave-04, slave-05, slave-06, sla
  File "<string>", line 2, in POST │ve-07, slave-08, slave-09
  File "/usr/lib/python2.7/site-packages/nailgun/api/v1/handlers/base.py", line 366, in validate │ceph_rados_gw 2017-03-30 10:26:26 admin, slave-01, slave-02, slave-03, slave-04, slave-05, slave-06, sla
    return func(cls, *args, **kwargs) │ve-07, slave-08, slave-09
  File "/usr/lib/python2.7/site-packages/nailgun/api/v1/handlers/plugin.py", line 77, in POST │(100-venv)vnaumov@tpi77:~$ lab snapshot-delete 10.0.fuel.1542 empty
    PluginManager.sync_plugins_metadata(plugin_ids=ids) │(100-venv)vnaumov@tpi77:~$ lab snapshot-delete 10.0.fuel.1542 ready
  File "/usr/lib/python2.7/site-packages/nailgun/plugins/manager.py", line 630, in sync_plugins_metadata │(100-venv)vnaumov@tpi77:~$
    cls._install_or_update_or_delete_plugins() │
  File "/usr/lib/python2.7/site-packages/nailgun/plugins/manager.py", line 646, in _install_or_update_or_d│
elete_plugins │
    for plugin_dir in cls._list_plugins_on_fs(): │
  File "/usr/lib/python2.7/site-packages/nailgun/plugins/manager.py", line 725, in _list_plugins_on_fs │
    return os.listdir(settings.PLUGINS_PATH) │
OSError: [Errno 2] No such file or directory: '/var/www/nailgun/plugins' │
)

Tags: area-python
Changed in fuel:
milestone: none → 10.1
Changed in fuel:
importance: Undecided → Medium
no longer affects: fuel/mitaka
no longer affects: fuel/newton
Changed in fuel:
milestone: 10.1 → 11.x-updates
assignee: nobody → Fuel Sustaining (fuel-sustaining-team)
status: New → Confirmed
tags: added: area-python
Changed in fuel:
assignee: Fuel Sustaining (fuel-sustaining-team) → Vitalii Kulanov (vitaliy-t)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

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

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-web (master)

Change abandoned by Andreas Jaeger (<email address hidden>) on branch: master
Review: https://review.opendev.org/453623
Reason: This repo is retired now, no further work will get merged.

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.