Coder Social home page Coder Social logo

group-policy / horizon Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openstack/horizon

0.0 0.0 1.0 41.1 MB

Horizon is a Django-based project aimed at providing a complete OpenStack Dashboard along with an extensible framework for building new dashboards from reusable components.

Home Page: http://openstack.org

License: Apache License 2.0

horizon's People

Contributors

0xdec0de avatar abramley avatar amotoki avatar andycjw avatar bcwaldon avatar berendt avatar clu-7 avatar deshipu avatar devcamcar avatar dklyle avatar emmasteimann avatar emonty avatar gabrielhurley avatar heckj avatar hpappsec avatar infraredgirl avatar jeffjapan avatar jpichon avatar ladas avatar lin-hua-cheng avatar liyingjun avatar mrunge avatar raymondr avatar sleepsonthefloor avatar spearki avatar termie avatar treshenry avatar ttrifonov avatar xtoddx avatar yoriksar avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

mageshgv

horizon's Issues

Internal server error when accessing Horizon page

After devstack installation, you try to access Horizon from your web browser and you see an Internal Server Error message. Check the Horizon log (/opt/stack/logs/screen/screen-horizon.log). If you see something like this:

533] ImportError: Could not import settings 'openstack_dashboard.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named xstatic.main

then the devstack installation did not install all the 3rd packages correctly.

Current workaround for this is to:

  1. Install the missing dependencies:

sudo pip install -r /opt/stack/horizon/requirements.txt

  1. Restart the web server:

sudo service apache2 restart

Filter instances listed in members table

Currently all instances belonging to the tenant are listed in the members table. Ideally only instances belonging to an EPG should be listed. The filtering can be done based on the neutron network name. The network name will always contain the EPG name.

EPG details results in stacktrace

Clicking on the EPG name (to get EPG details) results in the following stracktrace:

Environment:

Request Method: GET
Request URL: http://172.16.105.140/project/endpoint_groups/epg/a1827cf0-0189-48e7-916c-10f597178f2e/

Django Version: 1.6.7
Python Version: 2.7.6
Installed Applications:
['openstack_dashboard.dashboards.project',
'openstack_dashboard.dashboards.admin',
'openstack_dashboard.dashboards.identity',
'openstack_dashboard.dashboards.settings',
'openstack_dashboard',
'django.contrib.contenttypes',
'django.contrib.auth',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
'django_pyscss',
'compressor',
'horizon',
'openstack_auth']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'horizon.middleware.HorizonMiddleware',
'django.middleware.doc.XViewMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware')

Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response

  1.                 response = wrapped_callback(request, _callback_args, *_callback_kwargs)
    
    File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
  2.     return view_func(request, _args, *_kwargs)
    
    File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
  3.         return view_func(request, _args, *_kwargs)
    
    File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py" in dec
  4.     return view_func(request, _args, *_kwargs)
    
    File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py" in view
  5.         self = cls(**initkwargs)
    
    File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/tabs/views.py" in init
  6.                              "on %s." % self.**class**.**name**)
    

Exception Type: AttributeError at /project/endpoint_groups/epg/a1827cf0-0189-48e7-916c-10f597178f2e/
Exception Value: You must set the tab_group_class attribute on EPGDetailsView.

Unable to set consumer contract for EPG

Adding a contract consumer contract for an EPG actually adds it as a provided contract.

This works when using the CLI, so its not a client or backend issue.

Contract details should also list the contents of the policy rules

This is an enhancement over issue #29 so if this is done, then #29 will also be achieved.

The policy rules should not be just listed as a set of uuids. Instead a table should be displayed with the following columns:

name:uuid of policy rule, policy classifier protocol, policy classifier port, policy classifier direction, policy action.

e.g.:


| Rule | Protocol | Port | Direction | Action |

| http_rule: | TCP | 80 | IN | ALLOW|

...

...

Delete EPGs error

How to reproduce:

  • Create an EPG,
  • Delete the EPG.

When the command succeeds in the backend, the GUI gives the attached error, CLI works fine.
Note: The EPG is deleted correctly despite the error.

screen shot 2014-09-14 at 8 03 57 pm

Group Policy tab does not show up in Horizon

After logging into Horizon you dont see the Group Policy tab (under Networking). This is because the tab is not getting enabled after the installation.

Workaround:

  1. Edit /opt/stack/horizon/openstack_dashboard/local/local_settings.py

L197, set the following:

'enable_group_policy': True,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.