Can not create protection plan from horizon

Bug #1702907 reported by jiaopengju
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Karbor
Fix Released
Undecided
jiaopengju

Bug Description

When click the 'Create Protection Plan' button in dashboard, it will throw show nothing. According to the karbor-protection log, it seems that manila is not installed. I think this should be an issue if I do not want to protect manila, probably this should be fix.

The error in karbor-protection log is:

2017-07-07 21:44:44.945 ERROR karbor.services.protection.protectable_plugins.share [req-b227af03-dd65-4f0a-a2c1-560069adcfb7 alt_demo None] List all shares from manila failed.: KarborException: Couldn't find the endpoint of service(manila)
2017-07-07 21:44:44.945 TRACE karbor.services.protection.protectable_plugins.share Traceback (most recent call last):
2017-07-07 21:44:44.945 TRACE karbor.services.protection.protectable_plugins.share File "/opt/stack/karbor/karbor/services/protection/protectable_plugins/share.py", line 80, in get_dependent_resources
2017-07-07 21:44:44.945 TRACE karbor.services.protection.protectable_plugins.share shares = self._client(context).shares.list()
2017-07-07 21:44:44.945 TRACE karbor.services.protection.protectable_plugins.share File "/opt/stack/karbor/karbor/services/protection/protectable_plugins/share.py", line 37, in _client
2017-07-07 21:44:44.945 TRACE karbor.services.protection.protectable_plugins.share context)
2017-07-07 21:44:44.945 TRACE karbor.services.protection.protectable_plugins.share File "/opt/stack/karbor/karbor/services/protection/client_factory.py", line 101, in create_client
2017-07-07 21:44:44.945 TRACE karbor.services.protection.protectable_plugins.share return module.create(context, conf, **kwargs)
2017-07-07 21:44:44.945 TRACE karbor.services.protection.protectable_plugins.share File "/opt/stack/karbor/karbor/services/protection/clients/manila.py", line 57, in create
2017-07-07 21:44:44.945 TRACE karbor.services.protection.protectable_plugins.share append_project_fmt='%(url)s/%(project)s', **kwargs)
2017-07-07 21:44:44.945 TRACE karbor.services.protection.protectable_plugins.share File "/opt/stack/karbor/karbor/services/protection/clients/utils.py", line 86, in get_url
2017-07-07 21:44:44.945 TRACE karbor.services.protection.protectable_plugins.share _("Couldn't find the endpoint of service(%s)") % service)
2017-07-07 21:44:44.945 TRACE karbor.services.protection.protectable_plugins.share KarborException: Couldn't find the endpoint of service(manila)
2017-07-07 21:44:44.945 TRACE karbor.services.protection.protectable_plugins.share
2017-07-07 21:44:44.946 ERROR karbor.services.protection.manager [req-b227af03-dd65-4f0a-a2c1-560069adcfb7 alt_demo None] List dependent resources of (<karbor.resource.Resource object at 0x50a7640>) failed: List protectable resources of type OS::Manila::Share failed: Couldn't find the endpoint of service(manila): ListProtectableResourceFailed: List protectable resources of type OS::Manila::Share failed: Couldn't find the endpoint of service(manila)

jiaopengju (pj-jiao)
Changed in karbor:
assignee: nobody → jiaopengju (pj-jiao)
jiaopengju (pj-jiao)
Changed in karbor:
assignee: jiaopengju (pj-jiao) → nobody
Revision history for this message
chenying (ying-chen) wrote :

IMO, If the manila has not been installed in your environment.And the manila protection plugin has not configured in the provider config file. The manila protectable plugin should not be loaded.

But now all the available plugins will be loaded when karbor protection service starting. So you will see the error like this : Couldn't find the endpoint of service(manila).

jiaopengju (pj-jiao)
Changed in karbor:
assignee: nobody → jiaopengju (pj-jiao)
jiaopengju (pj-jiao)
Changed in karbor:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to karbor (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to karbor (master)

Reviewed: https://review.openstack.org/485046
Committed: https://git.openstack.org/cgit/openstack/karbor/commit/?id=e402bb9056905753f8c8fca608f16894c74930e6
Submitter: Jenkins
Branch: master

commit e402bb9056905753f8c8fca608f16894c74930e6
Author: jiaopengju <email address hidden>
Date: Wed Jul 19 11:42:49 2017 +0800

    Add option to enable or disable providers

    1. Add configuration option in provider configuration file to enable
    or disable the provider.

    2. Skip the protectable resources when get the dependent resources
    failed.

    Change-Id: Ie67fbacbebb887a76e57273c3dd36d1f333b615d
    Closes-Bug: #1702907

Changed in karbor:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/karbor 0.4.0

This issue was fixed in the openstack/karbor 0.4.0 release.

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.