[openstack][stein][manila-ui] error

Victoria Martínez de la Cruz victoria at vmartinezdelacruz.com
Tue Aug 4 11:43:05 UTC 2020


Glad to hear it is working ok now!

Cheers,

V

On Tue, Aug 4, 2020 at 2:50 AM Ignazio Cassano <ignaziocassano at gmail.com>
wrote:

> Hello Victoria and Goutham, thank you for your great help.
> Unfortunately I made I mistake in my ansible playbook for installing
> manila: it created manila services more times, so some entries in the
> catalog did not have an endpoint associated.
> I removed the duplicated service entries where catalog was absent and now
> it works.
> Many thanks
> Ignazio
>
> Il giorno mar 4 ago 2020 alle ore 02:53 Victoria Martínez de la Cruz <
> victoria at vmartinezdelacruz.com> ha scritto:
>
>> In local_settings.py under openstack-dashboard. And then restart the
>> webserver.
>>
>> Did you copy the enable and local files from manila-ui under Horizon's
>> namespace? Check out
>> https://docs.openstack.org/manila-ui/latest/install/installation.html
>>
>> We can continue debugging tomorrow, we will find out what is going on.
>>
>> Cheers,
>>
>> V
>>
>>
>> On Mon, Aug 3, 2020, 6:46 PM Ignazio Cassano <ignaziocassano at gmail.com>
>> wrote:
>>
>>> Hello Goutham,tomorrow I will check the catalog.
>>> Must I enable the debug option in dashboard local_setting or in
>>> manila.conf?
>>> Thanks
>>> Ignazio
>>>
>>>
>>> Il Lun 3 Ago 2020, 23:01 Goutham Pacha Ravi <gouthampravi at gmail.com> ha
>>> scritto:
>>>
>>>>
>>>>
>>>>
>>>> On Mon, Aug 3, 2020 at 1:31 PM Ignazio Cassano <
>>>> ignaziocassano at gmail.com> wrote:
>>>>
>>>>> I mean I am using dhss false
>>>>>
>>>>> Il Lun 3 Ago 2020, 21:41 Ignazio Cassano <ignaziocassano at gmail.com>
>>>>> ha scritto:
>>>>>
>>>>>> PS ps
>>>>>> Sorry If aI am writing again.
>>>>>> The command:
>>>>>> manila list let me to show shares I created with command line.
>>>>>> The dashboard gives errors I reported in my first email.
>>>>>> Looking at manila.py line 280 it checks shares under share networks.
>>>>>> Ignazio
>>>>>>
>>>>>>
>>>>>> Il Lun 3 Ago 2020, 21:34 Ignazio Cassano <ignaziocassano at gmail.com>
>>>>>> ha scritto:
>>>>>>
>>>>>>> PS
>>>>>>> I followed installation guide under docs.openstack.org.
>>>>>>>
>>>>>>>
>>>>>>> Il Lun 3 Ago 2020, 21:21 Victoria Martínez de la Cruz <
>>>>>>> victoria at vmartinezdelacruz.com> ha scritto:
>>>>>>>
>>>>>>>> Hi Ignazio,
>>>>>>>>
>>>>>>>> How did you deploy Manila and Manila UI? Can you point me toward
>>>>>>>> the docs you used?
>>>>>>>>
>>>>>>>> Also, which is the specific workflow you are following to reach
>>>>>>>> that trace? Just opening the dashboard and clicking on the Shares tab?
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>>
>>>>>>>> V
>>>>>>>>
>>>>>>>> On Mon, Aug 3, 2020 at 4:55 AM Ignazio Cassano <
>>>>>>>> ignaziocassano at gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Hello, I installed manila on openstack stein and it works by
>>>>>>>>> command line mat the manila ui does not work and in httpd error log I read:
>>>>>>>>>
>>>>>>>>> [Mon Aug 03 07:45:26.697408 2020] [:error] [pid 3506291] ERROR
>>>>>>>>> django.request Internal Server Error: /dashboard/project/shares/
>>>>>>>>> [Mon Aug 03 07:45:26.697437 2020] [:error] [pid 3506291] Traceback
>>>>>>>>> (most recent call last):
>>>>>>>>> [Mon Aug 03 07:45:26.697442 2020] [:error] [pid 3506291]   File
>>>>>>>>> "/usr/lib/python2.7/site-packages/django/core/handlers/exception.py", line
>>>>>>>>> 41, in inner
>>>>>>>>> [Mon Aug 03 07:45:26.697446 2020] [:error] [pid 3506291]
>>>>>>>>> response = get_response(request)
>>>>>>>>> [Mon Aug 03 07:45:26.697450 2020] [:error] [pid 3506291]   File
>>>>>>>>> "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 187,
>>>>>>>>> in _get_response
>>>>>>>>> [Mon Aug 03 07:45:26.697453 2020] [:error] [pid 3506291]
>>>>>>>>> response = self.process_exception_by_middleware(e, request)
>>>>>>>>> [Mon Aug 03 07:45:26.697466 2020] [:error] [pid 3506291]   File
>>>>>>>>> "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 185,
>>>>>>>>> in _get_response
>>>>>>>>> [Mon Aug 03 07:45:26.697471 2020] [:error] [pid 3506291]
>>>>>>>>> response = wrapped_callback(request, *callback_args, **callback_kwargs)
>>>>>>>>> [Mon Aug 03 07:45:26.697475 2020] [:error] [pid 3506291]   File
>>>>>>>>> "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 52, in dec
>>>>>>>>> [Mon Aug 03 07:45:26.697479 2020] [:error] [pid 3506291]
>>>>>>>>> return view_func(request, *args, **kwargs)
>>>>>>>>> [Mon Aug 03 07:45:26.697482 2020] [:error] [pid 3506291]   File
>>>>>>>>> "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
>>>>>>>>> [Mon Aug 03 07:45:26.697485 2020] [:error] [pid 3506291]
>>>>>>>>> return view_func(request, *args, **kwargs)
>>>>>>>>> [Mon Aug 03 07:45:26.697489 2020] [:error] [pid 3506291]   File
>>>>>>>>> "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
>>>>>>>>> [Mon Aug 03 07:45:26.697492 2020] [:error] [pid 3506291]
>>>>>>>>> return view_func(request, *args, **kwargs)
>>>>>>>>> [Mon Aug 03 07:45:26.697496 2020] [:error] [pid 3506291]   File
>>>>>>>>> "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 113, in dec
>>>>>>>>> [Mon Aug 03 07:45:26.697499 2020] [:error] [pid 3506291]
>>>>>>>>> return view_func(request, *args, **kwargs)
>>>>>>>>> [Mon Aug 03 07:45:26.697502 2020] [:error] [pid 3506291]   File
>>>>>>>>> "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 84, in dec
>>>>>>>>> [Mon Aug 03 07:45:26.697506 2020] [:error] [pid 3506291]
>>>>>>>>> return view_func(request, *args, **kwargs)
>>>>>>>>> [Mon Aug 03 07:45:26.697509 2020] [:error] [pid 3506291]   File
>>>>>>>>> "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 68,
>>>>>>>>> in view
>>>>>>>>> [Mon Aug 03 07:45:26.697513 2020] [:error] [pid 3506291]
>>>>>>>>> return self.dispatch(request, *args, **kwargs)
>>>>>>>>> [Mon Aug 03 07:45:26.697516 2020] [:error] [pid 3506291]   File
>>>>>>>>> "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 88,
>>>>>>>>> in dispatch
>>>>>>>>> [Mon Aug 03 07:45:26.697520 2020] [:error] [pid 3506291]
>>>>>>>>> return handler(request, *args, **kwargs)
>>>>>>>>> [Mon Aug 03 07:45:26.697523 2020] [:error] [pid 3506291]   File
>>>>>>>>> "/usr/lib/python2.7/site-packages/horizon/tables/views.py", line 223, in get
>>>>>>>>> [Mon Aug 03 07:45:26.697526 2020] [:error] [pid 3506291]
>>>>>>>>> handled = self.construct_tables()
>>>>>>>>> [Mon Aug 03 07:45:26.697530 2020] [:error] [pid 3506291]   File
>>>>>>>>> "/usr/lib/python2.7/site-packages/horizon/tables/views.py", line 214, in
>>>>>>>>> construct_tables
>>>>>>>>> [Mon Aug 03 07:45:26.697533 2020] [:error] [pid 3506291]
>>>>>>>>> handled = self.handle_table(table)
>>>>>>>>> [Mon Aug 03 07:45:26.697537 2020] [:error] [pid 3506291]   File
>>>>>>>>> "/usr/lib/python2.7/site-packages/horizon/tables/views.py", line 123, in
>>>>>>>>> handle_table
>>>>>>>>> [Mon Aug 03 07:45:26.697540 2020] [:error] [pid 3506291]     data
>>>>>>>>> = self._get_data_dict()
>>>>>>>>> [Mon Aug 03 07:45:26.697544 2020] [:error] [pid 3506291]   File
>>>>>>>>> "/usr/lib/python2.7/site-packages/horizon/tables/views.py", line 43, in
>>>>>>>>> _get_data_dict
>>>>>>>>> [Mon Aug 03 07:45:26.697547 2020] [:error] [pid 3506291]
>>>>>>>>> data.extend(func())
>>>>>>>>> [Mon Aug 03 07:45:26.697550 2020] [:error] [pid 3506291]   File
>>>>>>>>> "/usr/lib/python2.7/site-packages/horizon/utils/memoized.py", line 109, in
>>>>>>>>> wrapped
>>>>>>>>> [Mon Aug 03 07:45:26.697554 2020] [:error] [pid 3506291]     value
>>>>>>>>> = cache[key] = func(*args, **kwargs)
>>>>>>>>> [Mon Aug 03 07:45:26.697557 2020] [:error] [pid 3506291]   File
>>>>>>>>> "/usr/lib/python2.7/site-packages/manila_ui/dashboards/project/shares/views.py",
>>>>>>>>> line 57, in get_shares_data
>>>>>>>>> [Mon Aug 03 07:45:26.697561 2020] [:error] [pid 3506291]
>>>>>>>>> share_nets = manila.share_network_list(self.request)
>>>>>>>>> [Mon Aug 03 07:45:26.697564 2020] [:error] [pid 3506291]   File
>>>>>>>>> "/usr/lib/python2.7/site-packages/manila_ui/api/manila.py", line 280, in
>>>>>>>>> share_network_list
>>>>>>>>> [Mon Aug 03 07:45:26.697568 2020] [:error] [pid 3506291]
>>>>>>>>> return manilaclient(request).share_networks.list(detailed=detailed,
>>>>>>>>> [Mon Aug 03 07:45:26.697571 2020] [:error] [pid 3506291]
>>>>>>>>> AttributeError: 'NoneType' object has no attribute 'share_networks'
>>>>>>>>>
>>>>>>>>
>>>> Looking at the error here, and the code - it could be that the UI isn't
>>>> able to retrieve the manila service endpoint from the service catalog. If
>>>> this is the case, you must be able to see a "DEBUG" level log in your httpd
>>>> error log with "no share service configured". Do you see it?
>>>>
>>>> As the user you're using on horizon, can you perform "openstack catalog
>>>> list" and check whether the "sharev2" service type exists in that list?
>>>>
>>>>
>>>>>
>>>>>>>>> Please, anyone could help ?
>>>>>>>>> Ignazio
>>>>>>>>>
>>>>>>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20200804/ba27001b/attachment.html>


More information about the openstack-discuss mailing list