MAAS maas-导入-pxe-文件

MAAS maas-导入-pxe-文件

我在代理后面安装的新 maas 上遇到了这个问题。

sudo http_proxy=http://myname:[email protected]:3128 maas-import-pxe-files

2015-05-21 13:28:41,236 INFO Importing boot resources.
2015-05-21 13:28:41,255 ERROR Unhandled exception; unable to continue.
Traceback (most recent call last):
  File "/usr/sbin/maas-import-pxe-files", line 30, in <module>
    main(args)
  File "/usr/lib/python2.7/dist-packages/provisioningserver/import_images/boot_resources.py", line 493, in main
    repo_boot = dumper.dump(source['path'], keyring=source['keyring'])
  File "/usr/lib/python2.7/dist-packages/provisioningserver/import_images/boot_resources.py", line 276, in dump
    super(RepoDumper, self).sync(reader, rpath)
  File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 82, in sync
    content, payload = reader.read_json(path)
  File "/usr/lib/python2.7/dist-packages/simplestreams/mirrors/__init__.py", line 40, in read_json
    return raw, self.policy(content=raw, path=path)
  File "/usr/lib/python2.7/dist-packages/simplestreams/util.py", line 254, in policy_read_signed
    return read_signed(content=content, keyring=keyring)
  File "/usr/lib/python2.7/dist-packages/simplestreams/util.py", line 299, in read_signed
    raise SignatureMissingException("No signature found!")
SignatureMissingException: No signature found!

我也尝试过这个:

maas useromc maas set-config name=http_proxy value=http://myname:[email protected]:3128
{"http_proxy": ["Enter a valid URL."]}

无法下载那些 pxe 文件...欢迎任何建议!

答案1

假设您遇到与代理身份验证相关的问题,以下是在 Ubuntu 中设置代理身份验证的简单方法:

这是一个名为 UBPROXY 的 Python 程序的链接。下面给出了设置代理身份验证的步骤。

http://code.google.com/p/ubproxy/downloads/detail?name=ubproxy

要使用的命令->

1.下载此程序。

2.打开你的终端

3.“cd ~/Downloads”(假设您的下载存在于此目录中)

4.“chmod + x ubproxy”

5.“sudo ./ubproxy”

相关内容