integralstor / integralstor_gridcell

Gluster/ZFS based open source scale-out storage system
1 stars 3 forks source link

AttributeError at /volume_specific_op/start_rebalance/ #47

Closed kiranfractal closed 9 years ago

kiranfractal commented 9 years ago

http://10.1.1.4/volume_specific_op/start_rebalance/

AttributeError at /volume_specific_op/start_rebalance/

'module' object has no attribute 'create_rebalance_command_file'

Request Method: POST Request URL: http://10.1.1.4/volume_specific_op/start_rebalance/ Django Version: 1.6.8 Exception Type: AttributeError Exception Value:

'module' object has no attribute 'create_rebalance_command_file'

Exception Location: ./integral_view/views/volume_management.py in volume_specific_op, line 194 Python Executable: /usr/bin/uwsgi Python Version: 2.6.6 Python Path:

['.', '', '/usr/lib/python2.6/site-packages/gfapi-0.0.1-py2.6.egg', '/usr/lib/python2.6/site-packages/setuptools-12.0.3-py2.6.egg', '/usr/lib64/python26.zip', '/usr/lib64/python2.6', '/usr/lib64/python2.6/plat-linux2', '/usr/lib64/python2.6/lib-tk', '/usr/lib64/python2.6/lib-old', '/usr/lib64/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib/python2.6/site-packages', '/opt/fractalio/integral_view']

Server time: Tue, 20 Jan 2015 16:34:57 +0530 Traceback Switch to copy-and-paste view

/usr/lib/python2.6/site-packages/django/core/handlers/base.py in get_response

                        response = wrapped_callback(request, *callback_args, **callback_kwargs)

    ...
▶ Local vars
/usr/lib/python2.6/site-packages/django/contrib/auth/decorators.py in _wrapped_view

                    return view_func(request, *args, **kwargs)

    ...
▶ Local vars
./integral_view/views/volume_management.py in volume_specific_op

            d = gluster_commands.create_rebalance_command_file(vol_name)

    ...
▶ Local vars

Request information GET

No GET data POST Variable Value vol_name

u'vol2'

op

u'start_rebalance'

FILES

No FILES data COOKIES Variable Value sessionid

'up8q2jd4zw80suejpql4wpqt0bocih9j'

META Variable Value wsgi.multiprocess

True

HTTP_REFERER

'http://10.1.1.4/volume_specific_op/start_rebalance/'

SCRIPT_NAME

u''

REQUEST_METHOD

'POST'

PATH_INFO

u'/volume_specific_op/start_rebalance/'

SERVER_PROTOCOL

'HTTP/1.1'

QUERY_STRING

''

CONTENT_LENGTH

'32'

HTTP_USER_AGENT

'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:35.0) Gecko/20100101 Firefox/35.0'

HTTP_CONNECTION

'keep-alive'

HTTP_COOKIE

'sessionid=up8q2jd4zw80suejpql4wpqt0bocih9j'

SERVER_NAME

'integralview.fractalio.lan'

REMOTE_ADDR

'192.168.1.54'

wsgi.url_scheme

'http'

SERVER_PORT

'80'

uwsgi.node

'primary.fractalio.lan'

DOCUMENT_ROOT

'/etc/nginx/html'

CONTENT_TYPE

'application/x-www-form-urlencoded'

wsgi.input

<uwsgi._Input object at 0x29cade0>

HTTP_HOST

'10.1.1.4'

wsgi.multithread

False

HTTP_CONTENT_TYPE

'application/x-www-form-urlencoded'

REQUEST_URI

'/volume_specific_op/start_rebalance/'

HTTP_ACCEPT

'text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8'

wsgi.version

(1, 0)

wsgi.run_once

False

wsgi.errors

<open file 'wsgi_errors', mode 'w' at 0x1915930>

REMOTE_PORT

'60940'

HTTP_ACCEPT_LANGUAGE

'en-US,en;q=0.5'

uwsgi.version

'2.0.9'

HTTP_CONTENT_LENGTH

'32'

wsgi.file_wrapper

''

HTTP_ACCEPT_ENCODING

'gzip, deflate'

Settings Using settings module integral_view.settings Setting Value USE_L10N

True

USE_THOUSAND_SEPARATOR

False

CSRF_COOKIE_SECURE

False

LANGUAGE_CODE

'en-us'

ROOT_URLCONF

'integral_view.urls'

LOGIN_URL

'/login/'

DEFAULT_CHARSET

'utf-8'

SESSION_SERIALIZER

'django.contrib.sessions.serializers.JSONSerializer'

STATIC_ROOT

''

DB_LOCATION

'/opt/fractalio/mnt/admin_vol/db'

ALLOWED_HOSTS

[]

MESSAGE_STORAGE

'django.contrib.messages.storage.fallback.FallbackStorage'

EMAIL_SUBJECT_PREFIX

'[Django] '

FILE_UPLOAD_PERMISSIONS

None

STATICFILES_FINDERS

('django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder')

SESSION_CACHE_ALIAS

'default'

SESSION_COOKIE_DOMAIN

None

SESSION_COOKIE_NAME

'sessionid'

ADMIN_FOR

()

TIME_INPUT_FORMATS

('%H:%M:%S', '%H:%M:%S.%f', '%H:%M')

DATABASES

{'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.sqlite3', 'HOST': '', 'NAME': '/opt/fractalio/mnt/admin_vol/db/integral_view_auth.db', 'OPTIONS': {}, 'PASSWORD': u'****', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'UTC', 'USER': ''}}

SERVER_EMAIL

'root@localhost'

FILE_UPLOAD_HANDLERS

('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler')

DEFAULT_CONTENT_TYPE

'text/html'

APPEND_SLASH

True

FIRST_DAY_OF_WEEK

0

DATABASE_ROUTERS

[]

YEAR_MONTH_FORMAT

'F Y'

STATICFILES_STORAGE

'django.contrib.staticfiles.storage.StaticFilesStorage'

CACHES

{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}

SESSION_COOKIE_PATH

'/'

MIDDLEWARE_CLASSES

('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware')

USE_I18N

True

THOUSAND_SEPARATOR

','

SECRET_KEY

u'****'

LANGUAGE_COOKIE_NAME

'django_language'

DEFAULT_INDEX_TABLESPACE

''

TRANSACTIONS_MANAGED

False

LOGGING_CONFIG

'django.utils.log.dictConfig'

SEND_BROKEN_LINK_EMAILS

False

TEMPLATE_LOADERS

('django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader')

WSGI_APPLICATION

'integral_view.wsgi.application'

STATIC_DIR_PATH

'/opt/fractalio/integral_view/integral_view/static'

TEMPLATE_DEBUG

True

X_FRAME_OPTIONS

'SAMEORIGIN'

AUTHENTICATION_BACKENDS

('django.contrib.auth.backends.ModelBackend',)

FORCE_SCRIPT_NAME

None

USE_X_FORWARDED_HOST

False

SIGNING_BACKEND

'django.core.signing.TimestampSigner'

SESSION_COOKIE_SECURE

False

APP_DEBUG

False

CSRF_COOKIE_DOMAIN

None

FILE_CHARSET

'utf-8'

DEBUG

True

SESSION_FILE_PATH

None

DEFAULT_FILE_STORAGE

'django.core.files.storage.FileSystemStorage'

INSTALLED_APPS

('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'django.contrib.admindocs', 'integral_view')

LANGUAGES_BIDI

('he', 'ar', 'fa', 'ur')

COMMENTS_ALLOW_PROFANITIES

False

STATICFILES_DIRS

('/opt/fractalio/integral_view/integral_view/static',)

PREPEND_WWW

False

SECURE_PROXY_SSL_HEADER

None

SESSION_COOKIE_HTTPONLY

True

DEBUG_PROPAGATE_EXCEPTIONS

False

MONTH_DAY_FORMAT

'F j'

MANAGERS

()

SESSION_EXPIRE_AT_BROWSER_CLOSE

False

TIME_FORMAT

'P'

AUTH_USER_MODEL

'auth.User'

DATE_INPUT_FORMATS

('%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y')

CSRF_COOKIE_NAME

'csrftoken'

EMAIL_HOST_PASSWORD

u'****'

PASSWORD_RESET_TIMEOUT_DAYS

u'****'

CACHE_MIDDLEWARE_ALIAS

'default'

SESSION_SAVE_EVERY_REQUEST

False

NUMBER_GROUPING

0

SESSION_ENGINE

'django.contrib.sessions.backends.db'

CSRF_FAILURE_VIEW

'django.views.csrf.csrf_failure'

CSRF_COOKIE_PATH

'/'

LOGIN_REDIRECT_URL

"'/show/dashboard/'"

DECIMAL_SEPARATOR

'.'

IGNORABLE_404_URLS

()

LOCALE_PATHS

()

TEMPLATE_STRING_IF_INVALID

''

LOGOUT_URL

'/accounts/logout/'

EMAIL_USE_TLS

False

FIXTURE_DIRS

()

EMAIL_HOST

'localhost'

DATE_FORMAT

'N j, Y'

MEDIA_ROOT

''

TEMPLATE_DIR_PATH

'/opt/fractalio/integral_view/integral_view/templates'

DEFAULT_EXCEPTION_REPORTER_FILTER

'django.views.debug.SafeExceptionReporterFilter'

ADMINS

()

FORMAT_MODULE_PATH

None

DEFAULT_FROM_EMAIL

'webmaster@localhost'

MEDIA_URL

''

DATETIME_FORMAT

'N j, Y, P'

TEMPLATE_DIRS

('/opt/fractalio/integral_view/integral_view/templates',)

SITE_ID

1

DISALLOWED_USER_AGENTS

()

ALLOWED_INCLUDE_ROOTS

()

LOGGING

{'disable_existing_loggers': True, 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}}, 'formatters': {'standard': {'format': '%(asctime)s [%(levelname)s] %(message)s'}}, 'handlers': {'file': {'backupCount': 5, 'class': 'logging.handlers.RotatingFileHandler', 'filename': '/var/log/fractalio/integral_view.log', 'formatter': 'standard', 'level': 'DEBUG', 'maxBytes': 5242880}, 'mail_admins': {'class': 'django.utils.log.AdminEmailHandler', 'filters': ['require_debug_false'], 'level': 'ERROR'}}, 'loggers': {'': {'handlers': ['file'], 'level': 'INFO', 'propagate': True}, 'django.request': {'handlers': ['file'], 'level': 'INFO', 'propagate': False}}, 'version': 1}

SHORT_DATE_FORMAT

'm/d/Y'

TEST_RUNNER

'django.test.runner.DiscoverRunner'

CACHE_MIDDLEWARE_KEY_PREFIX

u'****'

TIME_ZONE

'Asia/Calcutta'

FILE_UPLOAD_MAX_MEMORY_SIZE

2621440

EMAIL_BACKEND

'django.core.mail.backends.smtp.EmailBackend'

DEFAULT_TABLESPACE

''

TEMPLATE_CONTEXT_PROCESSORS

('django.contrib.auth.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.static', 'django.core.context_processors.tz', 'django.contrib.messages.context_processors.messages', 'django.core.context_processors.request')

SESSION_COOKIE_AGE

1209600

SETTINGS_MODULE

'integral_view.settings'

USE_ETAGS

False

LANGUAGES

(('af', 'Afrikaans'), ('ar', 'Arabic'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmal'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese'))

FILE_UPLOAD_TEMP_DIR

None

INTERNAL_IPS

()

STATIC_URL

'/static/'

EMAIL_PORT

25

USE_TZ

True

SHORT_DATETIME_FORMAT

'm/d/Y P'

PASSWORD_HASHERS

u'****'

ABSOLUTE_URL_OVERRIDES

{}

CACHE_MIDDLEWARE_SECONDS

600

CSRF_COOKIE_HTTPONLY

False

DATETIME_INPUT_FORMATS

('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y')

EMAIL_HOST_USER

''

PROFANITIES_LIST

u'****'

You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page.

kiranfractal commented 9 years ago

Verified and resolved in current build