登录后Eucalyptus 4.4.4 Eucaconsole崩溃

时间:2018-11-06 13:42:49

标签: eucalyptus

在这里和github上的人们的帮助下,我为Eucaconsole创建了一个干净的启动日志和有效的登录页面。我已经通过

为控制台配置了帐户和用户
euare-accountcreate -a myconsoleaccount

euare-useraddloginprofile --as-account myconsoleaccount -u admin -p cleverpassword

-在用户端,我可以使用已知的错误密码可靠地生成失败的登录消息。我这样做是为了我可以看到好/坏密码行为之间的区别。

-当我进行身份验证(看似成功)时,我的浏览器移至504网关超时错误,并且在/var/log/eucaconsole.log中找到以下错误信息:

2018-11-05 15:37:53 INFO Authenticated Eucalyptus user: myconsoleaccount/admin from 10.0.0.7
2018-11-05 15:40:54 ERROR Error handling request
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/gunicorn/workers/async.py", line 45, in handle
    self.handle_request(listener, req, client, addr)
  File "/usr/lib/python2.7/site-packages/gunicorn/workers/async.py", line 93, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
  File "/usr/lib/python2.7/site-packages/pyramid/router.py", line 242, in __call__
    response = self.invoke_subrequest(request, use_tweens=True)
  File "/usr/lib/python2.7/site-packages/pyramid/router.py", line 217, in invoke_subrequest
    response = handle_request(request)
  File "/usr/lib/python2.7/site-packages/eucaconsole/tweens.py", line 126, in __call__
    response = self.handler(request)
  File "/usr/lib/python2.7/site-packages/eucaconsole/tweens.py", line 88, in tween
    response = handler(request)
  File "/usr/lib/python2.7/site-packages/eucaconsole/tweens.py", line 62, in tween
    response = handler(request)
  File "/usr/lib/python2.7/site-packages/eucaconsole/tweens.py", line 51, in tween
    response = handler(request)
  File "/usr/lib/python2.7/site-packages/pyramid/tweens.py", line 21, in excview_tween
    response = handler(request)
  File "/usr/lib/python2.7/site-packages/pyramid/router.py", line 163, in handle_request
    response = view_callable(context, request)
  File "/usr/lib/python2.7/site-packages/pyramid/config/views.py", line 596, in __call__
    return view(context, request)
  File "/usr/lib/python2.7/site-packages/pyramid/config/views.py", line 329, in attr_view
    return view(context, request)
  File "/usr/lib/python2.7/site-packages/pyramid/config/views.py", line 305, in predicate_wrapper
    return view(context, request)
  File "/usr/lib/python2.7/site-packages/pyramid/config/views.py", line 355, in rendered_view
    result = view(context, request)
  File "/usr/lib/python2.7/site-packages/pyramid/config/views.py", line 477, in _class_requestonly_view
    response = getattr(inst, attr)()
  File "/usr/lib/python2.7/site-packages/eucaconsole/views/login.py", line 214, in handle_login
    return self.handle_euca_login()
  File "/usr/lib/python2.7/site-packages/eucaconsole/views/login.py", line 306, in handle_euca_login
    session['supported_platforms'] = self.get_account_attributes(['supported-platforms'])
  File "/usr/lib/python2.7/site-packages/eucaconsole/views/__init__.py", line 318, in get_account_attributes
    attributes = conn.describe_account_attributes(attribute_names=attribute_names)
  File "/usr/lib/python2.7/site-packages/boto/ec2/connection.py", line 4447, in describe_account_attributes
    [('item', AccountAttribute)], verb='POST')
  File "/usr/lib/python2.7/site-packages/boto/connection.py", line 1170, in get_list
    response = self.make_request(action, params, path, verb)
  File "/usr/lib/python2.7/site-packages/boto/connection.py", line 1116, in make_request
    return self._mexe(http_request)
  File "/usr/lib/python2.7/site-packages/boto/connection.py", line 1030, in _mexe
    raise ex
BadStatusLine: ''

是否还有另一个具有更多详细信息的日志?我没有看到以前各期中出现的任何明确的版本冲突。还有其他想法吗?

[已解决。上面是由于基本连接问题而生成的红鲱鱼信息。]

史蒂夫·琼斯(Steve Jones)在下面对他的回答的评论正确。我发现这里缺少一些文档,因为我确实有一个ufshost值,它通过IP,DNS名称甚至通过指向localhost指向UFS主机。在所有这些情况下,我都可以使用传统的管理工具集,通过使用eucaconsole进行登录时生成的tcpdumps来确认从eucaconsole到目标ufs主机的连接。但是,在遵循运行时环境配置说明时,向ufshost值提供良好的目标主机与确保它与指定的system.dns.dnsdomain值之间存在很大的区别。 eucaconsole的文档可以毫不费力地处理有关此设置的信息,并且可以有效地告诉我们IP或主机名是正确的,而实际上大多数用户会发现自己已配置了Euca DNS并需要更具体的值。感谢您澄清史蒂夫!

1 个答案:

答案 0 :(得分:0)

您是否遵循了其余的配置步骤?:

http://docs.eucalyptus.cloud/eucalyptus/4.4.4/index.html#shared/console_config_server_address.html

从该错误看来,控制台似乎无法连接到您的桉树云,因此我首先要检查此设置:

import os import numpy from pandas import DataFrame from sklearn.model_selection import train_test_split from sklearn.feature_extraction.text import CountVectorizer NEWLINE = '\n' TRAVEL = 'Travel' OTHER = 'Other' SOURCES = [ ('data/travel', TRAVEL), ('data/other', OTHER), ] SKIP_FILES = {'cmds', '.DS_Store'} SEED = 0 # for reproducibility def read_files(path): #Reads all files in all directories mentioned in SOURCES for root, dir_names, file_names in os.walk(path): for path in dir_names: read_files(os.path.join(root, path)) for file_name in file_names: if file_name not in SKIP_FILES: file_path = os.path.join(root, file_name) if os.path.isfile(file_path): past_header, lines = False, [] f = open(file_path, encoding="latin-1") for line in f: if past_header: lines.append(line) elif line == NEWLINE: past_header = True f.close() content = NEWLINE.join(lines) yield file_path, content def build_data_frame(path, classification): #Returns a data frame of all the files read using read_files() data_frame = DataFrame({'text': [], 'class': []}) for file_name, text in read_files(path): data_frame = data_frame.append( DataFrame({'text': [text], 'class': [classification]}, index=[file_name])) return data_frame data = DataFrame({'text': [], 'class': []}) for path, classification in SOURCES: data = data.append(build_data_frame(path, classification)) data = data.reindex(numpy.random.permutation(data.index)) #Training data X_train = numpy.asarray(data['text']) count_vectorizer = CountVectorizer() counts = count_vectorizer.fit_transform(X_train)

在控制台配置(“ /etc/eucaconsole/console.ini”)中,并可能验证无论安装了控制台的任何地方都可以使用ufshost=127.0.0.1

您还应该使用euca2ools来验证所有服务都在桉树云上运行。

如果仍然有问题,描述所配置的设置和尝试设置的内容(例如ssl / nginx)将很有用