- 论坛徽章:
- 8
|
lxw2016 发表于 2012-08-14 17:31
这个安装是通过网络方式安装是吧,安装时,是从公网下载安装文件还是人mass服务器下载安装文件?
另外,这 ...
首先,有一个官方的错误解答:https://wiki.ubuntu.com/ServerTeam/MAAS/Troubleshooting
1、Unable to create Node: Commissioning script is missing: etc/maas/commissioning-user-data
从log中分析
File "/usr/lib/python2.7/dist-packages/maasserver/models.py", line 617, in start_commissioning
"Commissioning script is missing: %s" % path)
很明显是参数path的路径不存在,我在/etc/maas/下发现了相应文件,重启后该问题自动解决了,有待细查
2、在VirtualBox中切换tty可以使用Ctrl+Alt+F2
3、直接安装后的原文件中在tftpboot下的default文件中,所有路径是绝对路径,经过测试,可以通过tftp客户端get到绝对路径的文件,所以该路径没问题
4、exceptions.TypeError: an integer is required
Unexpected TimeoutError interacting with provider: User timeout caused connection failure.
2012-07-20 18:44:51,950 ERROR Unexpected TimeoutError interacting with provider: User timeout caused connection failure.
这个错误是因为在juju的配置文件中,maas-server的ip地址后面需要加入端口,默认是80
5、删除节点的方式用maas shell工具,生成maasserver.models中Node类的对象node node=Node.objects.get(hostname='name'),再调用node的delete()方法就可以删除。但是当结点状态不正确的时候无法删除,但是这里有一个BUG,因为它是先删除了mac地址,但是该node的详细信息无法删除(我认为要么都能删,要么mac都不能删除).我调用shell flush的时候出现一个BUG,和这个问题描述一样,现在还没有解决https://bugs.launchpad.net/ubuntu/+source/maas/+bug/1005482
6、juju bootstrap启动错误:Unexpected Error interacting with provider: 409 CONFLICT
该错误是因为juju找不到node的缘故,再次重启机器,安装完系统即可。
问题解决:http://marcoceppi.com/2012/05/juju-maas-virtualbox/
7、The authenticity of host 'node-0800271db357.local (10.217.12.91)' can't be established.
ECDSA key fingerprint is 15:8b:8e:ef:30:b5:b1:75:c2:68:2e:9a:7e:e2:0a:be.
Are you sure you want to continue connecting (yes/no)? yes
2012-07-24 14:20:30,190 ERROR Invalid SSH key
2012-07-24 14:20:53,829 ERROR Invalid SSH key
还是公钥使用错误。。。。原应找到,是因为它的ks文件
/var/lib/cobbler/kickstarts/maas.preseed中使用的用户是ubuntu,而我生成的公私钥对是以root省份生成的,所以当以ubuntu的身份登录的时候可以直接登录,而且登录后可以直接sudo su切换到root,然后更改root密码!
8、执行ssh-add时候出错:Could not open a connection to your authentication agent.
ssh-agemt bash --login -i //清除当前私钥
9、Maas无法使用本地源或者本地的iso文件
需要修改两处配置文件,1是要修改/var/lib/cobbler/snippets/maas_proxy,2是maas_preseed,修改过程我就不说了,关键地方修改结果如下:
d-i mirror/protocol string http
d-i mirror/country string manual
d-i mirror/http/hostname string http地址
d-i mirror/http/directory string /ubuntu
d-i mirror/http/proxy string
d-i clock-setup/ntp-server string 镜像源
d-i apt-setup/security_host string 镜像源
d-i apt-setup/security_path string /ubuntu
d-i mirror/http/directory string /ubuntu
d-i mirror/http/proxy string
10、Failed To Process Preconfiguration File
有2个可能,源文件出问题了,重新下载源,或者http服务器有问题,要么下载权限不够,要么防火墙没留出80端口
11、preseed最后添加的shell脚本的执行问题,如果你写的shell里面有for循环,而ubuntu操作系统默认安装的是dash,会出问题,所以改成如下:
chmod +x ./my.sh; chroot ./ bash my.sh
12、用自己源的时候出错
DEBUG: command: wget -q http://Yourownsource/ubuntu/dists/precise/Release -O - | grep -E '^(Suite|Codename):'
INFO: mirror does not have any suite symlinkse
这个问题是因为指定国家时候错了,换成manual,有时候你多换几个,不同地方不一样
13、 binary-amd64/Packages was corrupt
到相应位置查看该文件,如果不存在,直接touch就可以了
14、使用virtualbox查看启动信息无法按Ctrl+Alt+F4,可以按右Ctrl+F4,因为右Ctrl=Ctrl+Alt
15、CD-ROM couldn't be mounted是因为default文件写错了,需要把initrd.gz和linux指定到i386/amd64下面的文件才行
16、总是无法dhcp到地址
确定你的dhcp服务器没有问题的情况下,可以考虑一个原因,因为ubuntu的iso文件自带了2个内核文件和2个根系统文件,而install/netboot/ubuntu-installer/amd64/linux的内核镜像和install/netboot/ubuntu-installer/amd64/initrd.gz才可以有网络,另一组是不能配置网络的,所以要指定对文件
17、cobbler check的时候出错
可以去log里面看,是因为dnsmasq没启动的问题,但是不管你有没有起,都报这个错,所以是MAAS的一个自身错误
18、Failed to process the preconfiguration file
这个是因为preseed文件出错了,改对就行了
19、在分区的时候提示要手动确定格式化
这个是因为在preseed文件中没有指定自动确定格式化的配置,主要包括3行
d-i partman-lvm/device_remove_lvm boolean true //如果原磁盘文件上有LVM分区
d-i partman-md/device_remove_md boolean true //对于之前磁盘上有软RAID
d-i partman-lvm/confirm boolean true //确认覆盖lvm
20、出现以下错误:
The partitiontable format in use on your disks normally requieres youto create a separatepartition for boot loader code.This partition should be marked for use as "Reserved BIOSbootarea" and should be at least 1 MB in size. Notethat this is not the same as a partitionmounted on /boot.
If you do not go backtothe partitioning menu and correct this error, boot loader installationmay fail later, although it may still be possibleto installthe boot loaderto a partition.
出现原因很简单,因为分区出问题了,但是解决方案到现在都没有很好的方法,只是找到一种默认把所有盘划分到一个盘下的方法:
d-i partman-auto/choose_recipe select atomic
d-i partman/choose_partition select Finish partitioning and write changes to disk
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman/default_filesystem string ext4
单独给BIOS加入一段地址,这个方法容易造成gurb安装失败
brtfs::
1 1 1 free
$gptonly{ } $primary{ } $bios_boot{ }
method{biosgrub }
.
21、出现经常DHCP不到ip地址
解决方案有2个,一是换dnsmasq(需要配置2个文件/etc/dnsmasq.conf和/etc/cobler/modules.conf),二是清除/var/lib/dhcpd/下的租约文件
22、DHCP无法安装的问题
从pkgs.org下载相应的rpm包文件,然后rpm –Uvh强制安装
23、No root file systemis defined. Pleasecorrect this from the partitioningmenu
是因为分区的时候少分一个区 / |
|