-
Bug
-
Resolution: Done
-
High
-
Amsterdam Release, Beijing Release
-
None
-
Install the docker container by following the installation document
https://onap.readthedocs.io/en/beijing/submodules/vfc/nfvo/lcm.git/docs/platform/installation.html
(1) Install the MSB
(2) Install NFVO and GVNFM containers
(3) Fire the CURL request using the following command
curl http://$
{MSB_IP}:80/api/resmgr/v1/swagger.json
// Replace $MSB_IP with the Actual MSB_IP.(4) See the curl response
[root@aaa-test Etisalat]# curl http://${MSB_IP}:80/api/nslcm/v1/swagger.json
SwaggerGenerationError at /api/nslcm/v1/swagger.json
Schema for <class 'lcm.ns.serializers.sol.ext_managed_virtual_link_info.VnfLinkPortInfo'> would override distinct serializer <class 'lcm.ns.serializers.sol.ns_instance.VnfLinkPortInfo'> because they implicitly share the same ref_name; explicitly set the ref_name atribute on both serializers' Meta classesRequest Method: GET
Request URL: http://172.16.110.50:80/api/nslcm/v1/swagger.json
Django Version: 1.11.9
Python Executable: /usr/bin/python
Python Version: 2.7.6
Python Path: ['/service/vfc/nfvo/lcm', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages']
Server time: Wed, 10 Apr 2019 05:33:04 +0000
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'rest_framework',
'lcm.pub.database',
'lcm.swagger',
'drf_yasg']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'lcm.middleware.LogContextMiddleware']Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/exception.py" in inner
41. response = get_response(request)File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _get_response
187. response = self.process_exception_by_middleware(e, request)File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _get_response
185. response = wrapped_callback(request, *callback_args, **callback_kwargs)File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/csrf.py" in wrapped_view
58. return view_func(*args, **kwargs)File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py" in view
68. return self.dispatch(request, *args, **kwargs)File "/usr/local/lib/python2.7/dist-packages/rest_framework/views.py" in dispatch
494. response = self.handle_exception(exc)File "/usr/local/lib/python2.7/dist-packages/rest_framework/views.py" in handle_exception
454. self.raise_uncaught_exception(exc)File "/usr/local/lib/python2.7/dist-packages/rest_framework/views.py" in dispatch
491. response = handler(request, *args, **kwargs)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/views.py" in get
95. schema = generator.get_schema(request, self.public)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/generators.py" in get_schema
244. paths, prefix = self.get_paths(endpoints, components, request, public)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/generators.py" in get_paths
402. operation = self.get_operation(view, path, prefix, method, components, request)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/generators.py" in get_operation
444. operation = view_inspector.get_operation(operation_keys)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/view.py" in get_operation
42. responses = self.get_responses()File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/view.py" in get_responses
179. responses=self.get_response_schemas(response_serializers)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/view.py" in get_response_schemas
266. schema=self.serializer_to_schema(serializer),File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in serializer_to_schema
438. self.field_inspectors, 'get_schema', serializer, {'field_inspectors': self.field_inspectors}File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_inspectors
118. result = method(obj, **kwargs)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in get_schema
39. return self.probe_field_inspectors(serializer, openapi.Schema, self.use_definitions)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_field_inspectors
238. swagger_object_type=swagger_object_type, use_references=use_references, **kwargsFile "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_inspectors
118. result = method(obj, **kwargs)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in field_to_swagger_object
83. child_schema = self.probe_field_inspectors(field.child, ChildSwaggerType, use_references)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_field_inspectors
238. swagger_object_type=swagger_object_type, use_references=use_references, **kwargsFile "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_inspectors
118. result = method(obj, **kwargs)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in field_to_swagger_object
132. actual_schema = definitions.setdefault(ref_name, make_schema_definition)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/openapi.py" in setdefault
690. ret = maker()File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in make_schema_definition
107. child, ChildSwaggerType, use_references, **prop_kwargsFile "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_field_inspectors
238. swagger_object_type=swagger_object_type, use_references=use_references, **kwargsFile "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_inspectors
118. result = method(obj, **kwargs)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in field_to_swagger_object
83. child_schema = self.probe_field_inspectors(field.child, ChildSwaggerType, use_references)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_field_inspectors
238. swagger_object_type=swagger_object_type, use_references=use_references, **kwargsFile "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_inspectors
118. result = method(obj, **kwargs)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in field_to_swagger_object
132. actual_schema = definitions.setdefault(ref_name, make_schema_definition)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/openapi.py" in setdefault
690. ret = maker()File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in make_schema_definition
107. child, ChildSwaggerType, use_references, **prop_kwargsFile "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_field_inspectors
238. swagger_object_type=swagger_object_type, use_references=use_references, **kwargsFile "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_inspectors
118. result = method(obj, **kwargs)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in field_to_swagger_object
132. actual_schema = definitions.setdefault(ref_name, make_schema_definition)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/openapi.py" in setdefault
690. ret = maker()File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in make_schema_definition
107. child, ChildSwaggerType, use_references, **prop_kwargsFile "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_field_inspectors
238. swagger_object_type=swagger_object_type, use_references=use_references, **kwargsFile "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_inspectors
118. result = method(obj, **kwargs)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in field_to_swagger_object
83. child_schema = self.probe_field_inspectors(field.child, ChildSwaggerType, use_references)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_field_inspectors
238. swagger_object_type=swagger_object_type, use_references=use_references, **kwargsFile "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_inspectors
118. result = method(obj, **kwargs)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in field_to_swagger_object
132. actual_schema = definitions.setdefault(ref_name, make_schema_definition)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/openapi.py" in setdefault
690. ret = maker()File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in make_schema_definition
107. child, ChildSwaggerType, use_references, **prop_kwargsFile "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_field_inspectors
238. swagger_object_type=swagger_object_type, use_references=use_references, **kwargsFile "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_inspectors
118. result = method(obj, **kwargs)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in field_to_swagger_object
83. child_schema = self.probe_field_inspectors(field.child, ChildSwaggerType, use_references)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_field_inspectors
238. swagger_object_type=swagger_object_type, use_references=use_references, **kwargsFile "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_inspectors
118. result = method(obj, **kwargs)File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in field_to_swagger_object
143. % (actual_serializer, this_serializer))Exception Type: SwaggerGenerationError at /api/nslcm/v1/swagger.json
Exception Value: Schema for <class 'lcm.ns.serializers.sol.ext_managed_virtual_link_info.VnfLinkPortInfo'> would override distinct serializer <class 'lcm.ns.serializers.sol.ns_instance.VnfLinkPortInfo'> because they implicitly share the same ref_name; explicitly set the ref_name atribute on both serializers' Meta classes
Request information:
USER: AnonymousUserGET: No GET data
POST: No POST data
FILES: No FILES data
COOKIES: No cookie data
META:
CONTENT_LENGTH = ''
CONTENT_TYPE = 'text/plain'
DJANGO_SETTINGS_MODULE = 'lcm.settings'
GATEWAY_INTERFACE = 'CGI/1.1'
HOME = '/root'
HOSTNAME = '8181b76164d4'
HTTP_ACCEPT = '/'
HTTP_HOST = '172.16.110.50:80'
HTTP_USER_AGENT = 'curl/7.63.0'
HTTP_X_FORWARDED_FOR = '172.16.110.50'
HTTP_X_REAL_IP = '172.16.110.50'
HTTP_X_TRANSACTIONID = UUID('18bfd85d-9616-3ae9-a1c5-6ffe1cb2c4bd')
MSB_ADDR = '172.16.110.50:80'
MYSQL_ADDR = '172.16.110.50:3306'
PATH = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
PATH_INFO = u'/api/nslcm/v1/swagger.json'
PWD = '/service/vfc/nfvo/lcm'
QUERY_STRING = ''
REMOTE_ADDR = '172.17.0.4'
REMOTE_HOST = ''
REQUEST_METHOD = 'GET'
RUN_MAIN = 'true'
SCRIPT_NAME = u''
SERVER_NAME = '8181b76164d4'
SERVER_PORT = '8403'
SERVER_PROTOCOL = 'HTTP/1.1'
SERVER_SOFTWARE = 'WSGIServer/0.1 Python/2.7.6'
SERVICE_IP = '172.17.0.21'
SHLVL = '3'
TZ = 'UTC'
_ = '/usr/bin/nohup'
http_proxy = ''
https_proxy = ''
wsgi.errors = <open file '<stderr>', mode 'w' at 0x7f9433cd81e0>
wsgi.file_wrapper = ''
wsgi.input = <socket._fileobject object at 0x7f942c1d2250>
wsgi.multiprocess = False
wsgi.multithread = True
wsgi.run_once = False
wsgi.url_scheme = 'http'
wsgi.version = u'(1, 0)'Settings:
{'COLLATION': None, 'CHARSET': None, 'NAME': None, 'MIRROR': None}
Using settings module lcm.settings
ABSOLUTE_URL_OVERRIDES = {}
ADMINS = []
ALLOWED_HOSTS = ['*']
APPEND_SLASH = True
AUTHENTICATION_BACKENDS = [u'django.contrib.auth.backends.ModelBackend']
AUTH_PASSWORD_VALIDATORS = u'********************'
AUTH_USER_MODEL = u'auth.User'
BASE_DIR = '/service/vfc/nfvo/lcm'
CACHES = {u'default': {u'BACKEND': u'django.core.cache.backends.locmem.LocMemCache'}}
CACHE_MIDDLEWARE_ALIAS = u'default'
CACHE_MIDDLEWARE_KEY_PREFIX = u'********************'
CACHE_MIDDLEWARE_SECONDS = 600
CSRF_COOKIE_AGE = 31449600
CSRF_COOKIE_DOMAIN = None
CSRF_COOKIE_HTTPONLY = False
CSRF_COOKIE_NAME = u'csrftoken'
CSRF_COOKIE_PATH = u'/'
CSRF_COOKIE_SECURE = False
CSRF_FAILURE_VIEW = u'django.views.csrf.csrf_failure'
CSRF_HEADER_NAME = u'HTTP_X_CSRFTOKEN'
CSRF_TRUSTED_ORIGINS = []
CSRF_USE_SESSIONS = False
DATABASES = {'default': {'ENGINE': 'django.db.backends.mysql', 'AUTOCOMMIT': True, 'ATOMIC_REQUESTS': False, 'NAME': 'vfcnfvolcm', 'CONN_MAX_AGE': 0, 'TIME_ZONE': None, 'PORT': 3306, 'HOST': '172.16.110.50', 'USER': 'vfcnfvolcm', 'TEST':, 'PASSWORD': u'********************', 'OPTIONS': {}}}
{'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}
DATABASE_ROUTERS = []
DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440
DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
DATETIME_FORMAT = u'N j, Y, P'
DATETIME_INPUT_FORMATS = [u'%Y-%m-%d %H:%M:%S', u'%Y-%m-%d %H:%M:%S.%f', u'%Y-%m-%d %H:%M', u'%Y-%m-%d', u'%m/%d/%Y %H:%M:%S', u'%m/%d/%Y %H:%M:%S.%f', u'%m/%d/%Y %H:%M', u'%m/%d/%Y', u'%m/%d/%y %H:%M:%S', u'%m/%d/%y %H:%M:%S.%f', u'%m/%d/%y %H:%M', u'%m/%d/%y']
DATE_FORMAT = u'N j, Y'
DATE_INPUT_FORMATS = [u'%Y-%m-%d', u'%m/%d/%Y', u'%m/%d/%y', u'%b %d %Y', u'%b %d, %Y', u'%d %b %Y', u'%d %b, %Y', u'%B %d %Y', u'%B %d, %Y', u'%d %B %Y', u'%d %B, %Y']
DB_IP = '172.16.110.50'
DB_NAME = 'vfcnfvolcm'
DB_PASSWD = u'********************'
DB_PORT = 3306
DB_USER = 'vfcnfvolcm'
DEBUG = True
DEBUG_PROPAGATE_EXCEPTIONS = False
DECIMAL_SEPARATOR = u'.'
DEFAULT_CHARSET = u'utf-8'
DEFAULT_CONTENT_TYPE = u'text/html'
DEFAULT_EXCEPTION_REPORTER_FILTER = u'django.views.debug.SafeExceptionReporterFilter'
DEFAULT_FILE_STORAGE = u'django.core.files.storage.FileSystemStorage'
DEFAULT_FROM_EMAIL = u'webmaster@localhost'
DEFAULT_INDEX_TABLESPACE = u''
DEFAULT_TABLESPACE = u''
DISALLOWED_USER_AGENTS = []
EMAIL_BACKEND = u'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = u'localhost'
EMAIL_HOST_PASSWORD = u'********************'
EMAIL_HOST_USER = u''
EMAIL_PORT = 25
EMAIL_SSL_CERTFILE = None
EMAIL_SSL_KEYFILE = u'********************'
EMAIL_SUBJECT_PREFIX = u'[Django] '
EMAIL_TIMEOUT = None
EMAIL_USE_LOCALTIME = False
EMAIL_USE_SSL = False
EMAIL_USE_TLS = False
FILE_CHARSET = u'utf-8'
FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
FILE_UPLOAD_HANDLERS = [u'django.core.files.uploadhandler.MemoryFileUploadHandler', u'django.core.files.uploadhandler.TemporaryFileUploadHandler']
FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440
FILE_UPLOAD_PERMISSIONS = None
FILE_UPLOAD_TEMP_DIR = None
FIRST_DAY_OF_WEEK = 0
FIXTURE_DIRS = []
FORCE_SCRIPT_NAME = None
FORMAT_MODULE_PATH = None
FORM_RENDERER = u'django.forms.renderers.DjangoTemplates'
IGNORABLE_404_URLS = []
INSTALLED_APPS = ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'lcm.pub.database', 'lcm.swagger', 'drf_yasg']
INTERNAL_IPS = []
LANGUAGES = [(u'af', u'Afrikaans'), (u'ar', u'Arabic'), (u'ast', u'Asturian'), (u'az', u'Azerbaijani'), (u'bg', u'Bulgarian'), (u'be', u'Belarusian'), (u'bn', u'Bengali'), (u'br', u'Breton'), (u'bs', u'Bosnian'), (u'ca', u'Catalan'), (u'cs', u'Czech'), (u'cy', u'Welsh'), (u'da', u'Danish'), (u'de', u'German'), (u'dsb', u'Lower Sorbian'), (u'el', u'Greek'), (u'en', u'English'), (u'en-au', u'Australian English'), (u'en-gb', u'British English'), (u'eo', u'Esperanto'), (u'es', u'Spanish'), (u'es-ar', u'Argentinian Spanish'), (u'es-co', u'Colombian Spanish'), (u'es-mx', u'Mexican Spanish'), (u'es-ni', u'Nicaraguan Spanish'), (u'es-ve', u'Venezuelan Spanish'), (u'et', u'Estonian'), (u'eu', u'Basque'), (u'fa', u'Persian'), (u'fi', u'Finnish'), (u'fr', u'French'), (u'fy', u'Frisian'), (u'ga', u'Irish'), (u'gd', u'Scottish Gaelic'), (u'gl', u'Galician'), (u'he', u'Hebrew'), (u'hi', u'Hindi'), (u'hr', u'Croatian'), (u'hsb', u'Upper Sorbian'), (u'hu', u'Hungarian'), (u'ia', u'Interlingua'), (u'id', u'Indonesian'), (u'io', u'Ido'), (u'is', u'Icelandic'), (u'it', u'Italian'), (u'ja', u'Japanese'), (u'ka', u'Georgian'), (u'kk', u'Kazakh'), (u'km', u'Khmer'), (u'kn', u'Kannada'), (u'ko', u'Korean'), (u'lb', u'Luxembourgish'), (u'lt', u'Lithuanian'), (u'lv', u'Latvian'), (u'mk', u'Macedonian'), (u'ml', u'Malayalam'), (u'mn', u'Mongolian'), (u'mr', u'Marathi'), (u'my', u'Burmese'), (u'nb', u'Norwegian Bokm\xe5l'), (u'ne', u'Nepali'), (u'nl', u'Dutch'), (u'nn', u'Norwegian Nynorsk'), (u'os', u'Ossetic'), (u'pa', u'Punjabi'), (u'pl', u'Polish'), (u'pt', u'Portuguese'), (u'pt-br', u'Brazilian Portuguese'), (u'ro', u'Romanian'), (u'ru', u'Russian'), (u'sk', u'Slovak'), (u'sl', u'Slovenian'), (u'sq', u'Albanian'), (u'sr', u'Serbian'), (u'sr-latn', u'Serbian Latin'), (u'sv', u'Swedish'), (u'sw', u'Swahili'), (u'ta', u'Tamil'), (u'te', u'Telugu'), (u'th', u'Thai'), (u'tr', u'Turkish'), (u'tt', u'Tatar'), (u'udm', u'Udmurt'), (u'uk', u'Ukrainian'), (u'ur', u'Urdu'), (u'vi', u'Vietnamese'), (u'zh-hans', u'Simplified Chinese'), (u'zh-hant', u'Traditional Chinese')]
LANGUAGES_BIDI = [u'he', u'ar', u'fa', u'ur']
LANGUAGE_CODE = u'en-us'
LANGUAGE_COOKIE_AGE = None
LANGUAGE_COOKIE_DOMAIN = None
LANGUAGE_COOKIE_NAME = u'django_language'
LANGUAGE_COOKIE_PATH = u'/'
LOCALE_PATHS = []
LOGGING = {}
LOGGING_CONFIG = None
LOGGING_FILE = '/service/vfc/nfvo/lcm/lcm/log.yml'
LOGIN_REDIRECT_URL = u'/accounts/profile/'
LOGIN_URL = u'/accounts/login/'
LOGOUT_REDIRECT_URL = None
MANAGERS = []
MEDIA_ROOT = u''
MEDIA_URL = u''
MESSAGE_STORAGE = u'django.contrib.messages.storage.fallback.FallbackStorage'
MIDDLEWARE = None
MIDDLEWARE_CLASSES = ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'lcm.middleware.LogContextMiddleware']
MIGRATION_MODULES = {}
MONTH_DAY_FORMAT = u'F j'
NUMBER_GROUPING = 0
PASSWORD_HASHERS = u'********************'
PASSWORD_RESET_TIMEOUT_DAYS = u'********************'
PREPEND_WWW = False
REDIS_HOST = '172.16.110.50'
REDIS_PASSWD = u'********************'
REDIS_PORT = '6379'
REST_FRAMEWORK = {'DEFAULT_PARSER_CLASSES': ('rest_framework.parsers.JSONParser', 'rest_framework.parsers.MultiPartParser', 'rest_framework.parsers.FormParser'), 'DEFAULT_RENDERER_CLASSES': ('rest_framework.renderers.JSONRenderer',)}
ROOT_URLCONF = 'lcm.urls'
SECRET_KEY = u'********************'
SECURE_BROWSER_XSS_FILTER = False
SECURE_CONTENT_TYPE_NOSNIFF = False
SECURE_HSTS_INCLUDE_SUBDOMAINS = False
SECURE_HSTS_PRELOAD = False
SECURE_HSTS_SECONDS = 0
SECURE_PROXY_SSL_HEADER = None
SECURE_REDIRECT_EXEMPT = []
SECURE_SSL_HOST = None
SECURE_SSL_REDIRECT = False
SERVER_EMAIL = u'root@localhost'
SESSION_CACHE_ALIAS = u'default'
SESSION_COOKIE_AGE = 1209600
SESSION_COOKIE_DOMAIN = None
SESSION_COOKIE_HTTPONLY = True
SESSION_COOKIE_NAME = u'sessionid'
SESSION_COOKIE_PATH = u'/'
SESSION_COOKIE_SECURE = False
SESSION_ENGINE = u'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE = False
SESSION_FILE_PATH = None
SESSION_SAVE_EVERY_REQUEST = False
SESSION_SERIALIZER = u'django.contrib.sessions.serializers.JSONSerializer'
SETTINGS_MODULE = 'lcm.settings'
SHORT_DATETIME_FORMAT = u'm/d/Y P'
SHORT_DATE_FORMAT = u'm/d/Y'
SIGNING_BACKEND = u'django.core.signing.TimestampSigner'
SILENCED_SYSTEM_CHECKS = []
STATICFILES_DIRS = []
STATICFILES_FINDERS = [u'django.contrib.staticfiles.finders.FileSystemFinder', u'django.contrib.staticfiles.finders.AppDirectoriesFinder']
STATICFILES_STORAGE = u'django.contrib.staticfiles.storage.StaticFilesStorage'
STATIC_ROOT = None
STATIC_URL = '/static/'
SWAGGER_SETTINGS = {'LOGIN_URL': '/admin/login', 'LOGOUT_URL': '/admin/logout', 'DEFAULT_INFO': 'lcm.swagger.urls.swagger_info'}
TEMPLATES = [{'DIRS': [], 'APP_DIRS': True, 'OPTIONS':, 'BACKEND': 'django.template.backends.django.DjangoTemplates'}]
TEST_NON_SERIALIZED_APPS = []
TEST_RUNNER = u'django.test.runner.DiscoverRunner'
THOUSAND_SEPARATOR = u','
TIME_FORMAT = u'P'
TIME_INPUT_FORMATS = [u'%H:%M:%S', u'%H:%M:%S.%f', u'%H:%M']
TIME_ZONE = 'UTC'
USE_ETAGS = False
USE_I18N = True
USE_L10N = False
USE_THOUSAND_SEPARATOR = False
USE_TZ = False
USE_X_FORWARDED_HOST = False
USE_X_FORWARDED_PORT = False
WSGI_APPLICATION = 'lcm.wsgi.application'
X_FRAME_OPTIONS = u'SAMEORIGIN'
YEAR_MONTH_FORMAT = u'F Y'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 page generated by the handler for this status code.Install the docker container by following the installation document https://onap.readthedocs.io/en/beijing/submodules/vfc/nfvo/lcm.git/docs/platform/installation.html (1) Install the MSB (2) Install NFVO and GVNFM containers (3) Fire the CURL request using the following command curl http://$ {MSB_IP} :80/api/resmgr/v1/swagger.json // Replace $MSB_IP with the Actual MSB_IP. (4) See the curl response [root@aaa-test Etisalat] # curl http://$ {MSB_IP}:80/api/nslcm/v1/swagger.json SwaggerGenerationError at /api/nslcm/v1/swagger.json Schema for <class 'lcm.ns.serializers.sol.ext_managed_virtual_link_info.VnfLinkPortInfo'> would override distinct serializer <class 'lcm.ns.serializers.sol.ns_instance.VnfLinkPortInfo'> because they implicitly share the same ref_name; explicitly set the ref_name atribute on both serializers' Meta classes Request Method: GET Request URL: http://172.16.110.50:80/api/nslcm/v1/swagger.json Django Version: 1.11.9 Python Executable: /usr/bin/python Python Version: 2.7.6 Python Path: ['/service/vfc/nfvo/lcm', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages'] Server time: Wed, 10 Apr 2019 05:33:04 +0000 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'lcm.pub.database', 'lcm.swagger', 'drf_yasg'] Installed Middleware: ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'lcm.middleware.LogContextMiddleware'] Traceback: File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/exception.py" in inner 41. response = get_response(request) File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _legacy_get_response 249. response = self._get_response(request) File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _get_response 187. response = self.process_exception_by_middleware(e, request) File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _get_response 185. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/local/lib/python2.7/dist-packages/django/views/decorators/csrf.py" in wrapped_view 58. return view_func(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py" in view 68. return self.dispatch(request, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/rest_framework/views.py" in dispatch 494. response = self.handle_exception(exc) File "/usr/local/lib/python2.7/dist-packages/rest_framework/views.py" in handle_exception 454. self.raise_uncaught_exception(exc) File "/usr/local/lib/python2.7/dist-packages/rest_framework/views.py" in dispatch 491. response = handler(request, *args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/views.py" in get 95. schema = generator.get_schema(request, self.public) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/generators.py" in get_schema 244. paths, prefix = self.get_paths(endpoints, components, request, public) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/generators.py" in get_paths 402. operation = self.get_operation(view, path, prefix, method, components, request) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/generators.py" in get_operation 444. operation = view_inspector.get_operation(operation_keys) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/view.py" in get_operation 42. responses = self.get_responses() File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/view.py" in get_responses 179. responses=self.get_response_schemas(response_serializers) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/view.py" in get_response_schemas 266. schema=self.serializer_to_schema(serializer), File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in serializer_to_schema 438. self.field_inspectors, 'get_schema', serializer, {'field_inspectors': self.field_inspectors} File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_inspectors 118. result = method(obj, **kwargs) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in get_schema 39. return self.probe_field_inspectors(serializer, openapi.Schema, self.use_definitions) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_field_inspectors 238. swagger_object_type=swagger_object_type, use_references=use_references, **kwargs File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_inspectors 118. result = method(obj, **kwargs) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in field_to_swagger_object 83. child_schema = self.probe_field_inspectors(field.child, ChildSwaggerType, use_references) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_field_inspectors 238. swagger_object_type=swagger_object_type, use_references=use_references, **kwargs File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_inspectors 118. result = method(obj, **kwargs) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in field_to_swagger_object 132. actual_schema = definitions.setdefault(ref_name, make_schema_definition) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/openapi.py" in setdefault 690. ret = maker() File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in make_schema_definition 107. child, ChildSwaggerType, use_references, **prop_kwargs File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_field_inspectors 238. swagger_object_type=swagger_object_type, use_references=use_references, **kwargs File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_inspectors 118. result = method(obj, **kwargs) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in field_to_swagger_object 83. child_schema = self.probe_field_inspectors(field.child, ChildSwaggerType, use_references) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_field_inspectors 238. swagger_object_type=swagger_object_type, use_references=use_references, **kwargs File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_inspectors 118. result = method(obj, **kwargs) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in field_to_swagger_object 132. actual_schema = definitions.setdefault(ref_name, make_schema_definition) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/openapi.py" in setdefault 690. ret = maker() File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in make_schema_definition 107. child, ChildSwaggerType, use_references, **prop_kwargs File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_field_inspectors 238. swagger_object_type=swagger_object_type, use_references=use_references, **kwargs File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_inspectors 118. result = method(obj, **kwargs) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in field_to_swagger_object 132. actual_schema = definitions.setdefault(ref_name, make_schema_definition) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/openapi.py" in setdefault 690. ret = maker() File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in make_schema_definition 107. child, ChildSwaggerType, use_references, **prop_kwargs File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_field_inspectors 238. swagger_object_type=swagger_object_type, use_references=use_references, **kwargs File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_inspectors 118. result = method(obj, **kwargs) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in field_to_swagger_object 83. child_schema = self.probe_field_inspectors(field.child, ChildSwaggerType, use_references) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_field_inspectors 238. swagger_object_type=swagger_object_type, use_references=use_references, **kwargs File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_inspectors 118. result = method(obj, **kwargs) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in field_to_swagger_object 132. actual_schema = definitions.setdefault(ref_name, make_schema_definition) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/openapi.py" in setdefault 690. ret = maker() File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in make_schema_definition 107. child, ChildSwaggerType, use_references, **prop_kwargs File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_field_inspectors 238. swagger_object_type=swagger_object_type, use_references=use_references, **kwargs File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_inspectors 118. result = method(obj, **kwargs) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in field_to_swagger_object 83. child_schema = self.probe_field_inspectors(field.child, ChildSwaggerType, use_references) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_field_inspectors 238. swagger_object_type=swagger_object_type, use_references=use_references, **kwargs File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/base.py" in probe_inspectors 118. result = method(obj, **kwargs) File "/usr/local/lib/python2.7/dist-packages/drf_yasg/inspectors/field.py" in field_to_swagger_object 143. % (actual_serializer, this_serializer)) Exception Type: SwaggerGenerationError at /api/nslcm/v1/swagger.json Exception Value: Schema for <class 'lcm.ns.serializers.sol.ext_managed_virtual_link_info.VnfLinkPortInfo'> would override distinct serializer <class 'lcm.ns.serializers.sol.ns_instance.VnfLinkPortInfo'> because they implicitly share the same ref_name; explicitly set the ref_name atribute on both serializers' Meta classes Request information: USER: AnonymousUser GET: No GET data POST: No POST data FILES: No FILES data COOKIES: No cookie data META: CONTENT_LENGTH = '' CONTENT_TYPE = 'text/plain' DJANGO_SETTINGS_MODULE = 'lcm.settings' GATEWAY_INTERFACE = 'CGI/1.1' HOME = '/root' HOSTNAME = '8181b76164d4' HTTP_ACCEPT = ' / ' HTTP_HOST = '172.16.110.50:80' HTTP_USER_AGENT = 'curl/7.63.0' HTTP_X_FORWARDED_FOR = '172.16.110.50' HTTP_X_REAL_IP = '172.16.110.50' HTTP_X_TRANSACTIONID = UUID('18bfd85d-9616-3ae9-a1c5-6ffe1cb2c4bd') MSB_ADDR = '172.16.110.50:80' MYSQL_ADDR = '172.16.110.50:3306' PATH = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' PATH_INFO = u'/api/nslcm/v1/swagger.json' PWD = '/service/vfc/nfvo/lcm' QUERY_STRING = '' REMOTE_ADDR = '172.17.0.4' REMOTE_HOST = '' REQUEST_METHOD = 'GET' RUN_MAIN = 'true' SCRIPT_NAME = u'' SERVER_NAME = '8181b76164d4' SERVER_PORT = '8403' SERVER_PROTOCOL = 'HTTP/1.1' SERVER_SOFTWARE = 'WSGIServer/0.1 Python/2.7.6' SERVICE_IP = '172.17.0.21' SHLVL = '3' TZ = 'UTC' _ = '/usr/bin/nohup' http_proxy = '' https_proxy = '' wsgi.errors = <open file '<stderr>', mode 'w' at 0x7f9433cd81e0> wsgi.file_wrapper = '' wsgi.input = <socket._fileobject object at 0x7f942c1d2250> wsgi.multiprocess = False wsgi.multithread = True wsgi.run_once = False wsgi.url_scheme = 'http' wsgi.version = u'(1, 0)' Settings: Using settings module lcm.settings ABSOLUTE_URL_OVERRIDES = {} ADMINS = [] ALLOWED_HOSTS = ['*'] APPEND_SLASH = True AUTHENTICATION_BACKENDS = [u'django.contrib.auth.backends.ModelBackend'] AUTH_PASSWORD_VALIDATORS = u'********************' AUTH_USER_MODEL = u'auth.User' BASE_DIR = '/service/vfc/nfvo/lcm' CACHES = {u'default': {u'BACKEND': u'django.core.cache.backends.locmem.LocMemCache'}} CACHE_MIDDLEWARE_ALIAS = u'default' CACHE_MIDDLEWARE_KEY_PREFIX = u'********************' CACHE_MIDDLEWARE_SECONDS = 600 CSRF_COOKIE_AGE = 31449600 CSRF_COOKIE_DOMAIN = None CSRF_COOKIE_HTTPONLY = False CSRF_COOKIE_NAME = u'csrftoken' CSRF_COOKIE_PATH = u'/' CSRF_COOKIE_SECURE = False CSRF_FAILURE_VIEW = u'django.views.csrf.csrf_failure' CSRF_HEADER_NAME = u'HTTP_X_CSRFTOKEN' CSRF_TRUSTED_ORIGINS = [] CSRF_USE_SESSIONS = False DATABASES = {'default': {'ENGINE': 'django.db.backends.mysql', 'AUTOCOMMIT': True, 'ATOMIC_REQUESTS': False, 'NAME': 'vfcnfvolcm', 'CONN_MAX_AGE': 0, 'TIME_ZONE': None, 'PORT': 3306, 'HOST': '172.16.110.50', 'USER': 'vfcnfvolcm', 'TEST': {'COLLATION': None, 'CHARSET': None, 'NAME': None, 'MIRROR': None} , 'PASSWORD': u'********************', 'OPTIONS': {}}} DATABASE_ROUTERS = [] DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440 DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000 DATETIME_FORMAT = u'N j, Y, P' DATETIME_INPUT_FORMATS = [u'%Y-%m-%d %H:%M:%S', u'%Y-%m-%d %H:%M:%S.%f', u'%Y-%m-%d %H:%M', u'%Y-%m-%d', u'%m/%d/%Y %H:%M:%S', u'%m/%d/%Y %H:%M:%S.%f', u'%m/%d/%Y %H:%M', u'%m/%d/%Y', u'%m/%d/%y %H:%M:%S', u'%m/%d/%y %H:%M:%S.%f', u'%m/%d/%y %H:%M', u'%m/%d/%y'] DATE_FORMAT = u'N j, Y' DATE_INPUT_FORMATS = [u'%Y-%m-%d', u'%m/%d/%Y', u'%m/%d/%y', u'%b %d %Y', u'%b %d, %Y', u'%d %b %Y', u'%d %b, %Y', u'%B %d %Y', u'%B %d, %Y', u'%d %B %Y', u'%d %B, %Y'] DB_IP = '172.16.110.50' DB_NAME = 'vfcnfvolcm' DB_PASSWD = u'********************' DB_PORT = 3306 DB_USER = 'vfcnfvolcm' DEBUG = True DEBUG_PROPAGATE_EXCEPTIONS = False DECIMAL_SEPARATOR = u'.' DEFAULT_CHARSET = u'utf-8' DEFAULT_CONTENT_TYPE = u'text/html' DEFAULT_EXCEPTION_REPORTER_FILTER = u'django.views.debug.SafeExceptionReporterFilter' DEFAULT_FILE_STORAGE = u'django.core.files.storage.FileSystemStorage' DEFAULT_FROM_EMAIL = u'webmaster@localhost' DEFAULT_INDEX_TABLESPACE = u'' DEFAULT_TABLESPACE = u'' DISALLOWED_USER_AGENTS = [] EMAIL_BACKEND = u'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = u'localhost' EMAIL_HOST_PASSWORD = u'********************' EMAIL_HOST_USER = u'' EMAIL_PORT = 25 EMAIL_SSL_CERTFILE = None EMAIL_SSL_KEYFILE = u'********************' EMAIL_SUBJECT_PREFIX = u' [Django] ' EMAIL_TIMEOUT = None EMAIL_USE_LOCALTIME = False EMAIL_USE_SSL = False EMAIL_USE_TLS = False FILE_CHARSET = u'utf-8' FILE_UPLOAD_DIRECTORY_PERMISSIONS = None FILE_UPLOAD_HANDLERS = [u'django.core.files.uploadhandler.MemoryFileUploadHandler', u'django.core.files.uploadhandler.TemporaryFileUploadHandler'] FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440 FILE_UPLOAD_PERMISSIONS = None FILE_UPLOAD_TEMP_DIR = None FIRST_DAY_OF_WEEK = 0 FIXTURE_DIRS = [] FORCE_SCRIPT_NAME = None FORMAT_MODULE_PATH = None FORM_RENDERER = u'django.forms.renderers.DjangoTemplates' IGNORABLE_404_URLS = [] INSTALLED_APPS = ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'rest_framework', 'lcm.pub.database', 'lcm.swagger', 'drf_yasg'] INTERNAL_IPS = [] LANGUAGES = [(u'af', u'Afrikaans'), (u'ar', u'Arabic'), (u'ast', u'Asturian'), (u'az', u'Azerbaijani'), (u'bg', u'Bulgarian'), (u'be', u'Belarusian'), (u'bn', u'Bengali'), (u'br', u'Breton'), (u'bs', u'Bosnian'), (u'ca', u'Catalan'), (u'cs', u'Czech'), (u'cy', u'Welsh'), (u'da', u'Danish'), (u'de', u'German'), (u'dsb', u'Lower Sorbian'), (u'el', u'Greek'), (u'en', u'English'), (u'en-au', u'Australian English'), (u'en-gb', u'British English'), (u'eo', u'Esperanto'), (u'es', u'Spanish'), (u'es-ar', u'Argentinian Spanish'), (u'es-co', u'Colombian Spanish'), (u'es-mx', u'Mexican Spanish'), (u'es-ni', u'Nicaraguan Spanish'), (u'es-ve', u'Venezuelan Spanish'), (u'et', u'Estonian'), (u'eu', u'Basque'), (u'fa', u'Persian'), (u'fi', u'Finnish'), (u'fr', u'French'), (u'fy', u'Frisian'), (u'ga', u'Irish'), (u'gd', u'Scottish Gaelic'), (u'gl', u'Galician'), (u'he', u'Hebrew'), (u'hi', u'Hindi'), (u'hr', u'Croatian'), (u'hsb', u'Upper Sorbian'), (u'hu', u'Hungarian'), (u'ia', u'Interlingua'), (u'id', u'Indonesian'), (u'io', u'Ido'), (u'is', u'Icelandic'), (u'it', u'Italian'), (u'ja', u'Japanese'), (u'ka', u'Georgian'), (u'kk', u'Kazakh'), (u'km', u'Khmer'), (u'kn', u'Kannada'), (u'ko', u'Korean'), (u'lb', u'Luxembourgish'), (u'lt', u'Lithuanian'), (u'lv', u'Latvian'), (u'mk', u'Macedonian'), (u'ml', u'Malayalam'), (u'mn', u'Mongolian'), (u'mr', u'Marathi'), (u'my', u'Burmese'), (u'nb', u'Norwegian Bokm\xe5l'), (u'ne', u'Nepali'), (u'nl', u'Dutch'), (u'nn', u'Norwegian Nynorsk'), (u'os', u'Ossetic'), (u'pa', u'Punjabi'), (u'pl', u'Polish'), (u'pt', u'Portuguese'), (u'pt-br', u'Brazilian Portuguese'), (u'ro', u'Romanian'), (u'ru', u'Russian'), (u'sk', u'Slovak'), (u'sl', u'Slovenian'), (u'sq', u'Albanian'), (u'sr', u'Serbian'), (u'sr-latn', u'Serbian Latin'), (u'sv', u'Swedish'), (u'sw', u'Swahili'), (u'ta', u'Tamil'), (u'te', u'Telugu'), (u'th', u'Thai'), (u'tr', u'Turkish'), (u'tt', u'Tatar'), (u'udm', u'Udmurt'), (u'uk', u'Ukrainian'), (u'ur', u'Urdu'), (u'vi', u'Vietnamese'), (u'zh-hans', u'Simplified Chinese'), (u'zh-hant', u'Traditional Chinese')] LANGUAGES_BIDI = [u'he', u'ar', u'fa', u'ur'] LANGUAGE_CODE = u'en-us' LANGUAGE_COOKIE_AGE = None LANGUAGE_COOKIE_DOMAIN = None LANGUAGE_COOKIE_NAME = u'django_language' LANGUAGE_COOKIE_PATH = u'/' LOCALE_PATHS = [] LOGGING = {} LOGGING_CONFIG = None LOGGING_FILE = '/service/vfc/nfvo/lcm/lcm/log.yml' LOGIN_REDIRECT_URL = u'/accounts/profile/' LOGIN_URL = u'/accounts/login/' LOGOUT_REDIRECT_URL = None MANAGERS = [] MEDIA_ROOT = u'' MEDIA_URL = u'' MESSAGE_STORAGE = u'django.contrib.messages.storage.fallback.FallbackStorage' MIDDLEWARE = None MIDDLEWARE_CLASSES = ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'lcm.middleware.LogContextMiddleware'] MIGRATION_MODULES = {} MONTH_DAY_FORMAT = u'F j' NUMBER_GROUPING = 0 PASSWORD_HASHERS = u'********************' PASSWORD_RESET_TIMEOUT_DAYS = u'********************' PREPEND_WWW = False REDIS_HOST = '172.16.110.50' REDIS_PASSWD = u'********************' REDIS_PORT = '6379' REST_FRAMEWORK = {'DEFAULT_PARSER_CLASSES': ('rest_framework.parsers.JSONParser', 'rest_framework.parsers.MultiPartParser', 'rest_framework.parsers.FormParser'), 'DEFAULT_RENDERER_CLASSES': ('rest_framework.renderers.JSONRenderer',)} ROOT_URLCONF = 'lcm.urls' SECRET_KEY = u'********************' SECURE_BROWSER_XSS_FILTER = False SECURE_CONTENT_TYPE_NOSNIFF = False SECURE_HSTS_INCLUDE_SUBDOMAINS = False SECURE_HSTS_PRELOAD = False SECURE_HSTS_SECONDS = 0 SECURE_PROXY_SSL_HEADER = None SECURE_REDIRECT_EXEMPT = [] SECURE_SSL_HOST = None SECURE_SSL_REDIRECT = False SERVER_EMAIL = u'root@localhost' SESSION_CACHE_ALIAS = u'default' SESSION_COOKIE_AGE = 1209600 SESSION_COOKIE_DOMAIN = None SESSION_COOKIE_HTTPONLY = True SESSION_COOKIE_NAME = u'sessionid' SESSION_COOKIE_PATH = u'/' SESSION_COOKIE_SECURE = False SESSION_ENGINE = u'django.contrib.sessions.backends.db' SESSION_EXPIRE_AT_BROWSER_CLOSE = False SESSION_FILE_PATH = None SESSION_SAVE_EVERY_REQUEST = False SESSION_SERIALIZER = u'django.contrib.sessions.serializers.JSONSerializer' SETTINGS_MODULE = 'lcm.settings' SHORT_DATETIME_FORMAT = u'm/d/Y P' SHORT_DATE_FORMAT = u'm/d/Y' SIGNING_BACKEND = u'django.core.signing.TimestampSigner' SILENCED_SYSTEM_CHECKS = [] STATICFILES_DIRS = [] STATICFILES_FINDERS = [u'django.contrib.staticfiles.finders.FileSystemFinder', u'django.contrib.staticfiles.finders.AppDirectoriesFinder'] STATICFILES_STORAGE = u'django.contrib.staticfiles.storage.StaticFilesStorage' STATIC_ROOT = None STATIC_URL = '/static/' SWAGGER_SETTINGS = {'LOGIN_URL': '/admin/login', 'LOGOUT_URL': '/admin/logout', 'DEFAULT_INFO': 'lcm.swagger.urls.swagger_info'} TEMPLATES = [{'DIRS': [], 'APP_DIRS': True, 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']} , 'BACKEND': 'django.template.backends.django.DjangoTemplates'}] TEST_NON_SERIALIZED_APPS = [] TEST_RUNNER = u'django.test.runner.DiscoverRunner' THOUSAND_SEPARATOR = u',' TIME_FORMAT = u'P' TIME_INPUT_FORMATS = [u'%H:%M:%S', u'%H:%M:%S.%f', u'%H:%M'] TIME_ZONE = 'UTC' USE_ETAGS = False USE_I18N = True USE_L10N = False USE_THOUSAND_SEPARATOR = False USE_TZ = False USE_X_FORWARDED_HOST = False USE_X_FORWARDED_PORT = False WSGI_APPLICATION = 'lcm.wsgi.application' X_FRAME_OPTIONS = u'SAMEORIGIN' YEAR_MONTH_FORMAT = u'F Y' 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 page generated by the handler for this status code.
version: Beijing
page: submodules/vfc/nfvo/lcm.git/docs/platform/installation
- clones
-
VFC-1347 Unable to get Rest response from vfc-resmanagement docker contrainers
- Closed