Openstack:在redhat 6.4上安装时Puppet出错

时间:2014-03-02 18:09:10

标签: linux puppet openstack rhel

我正在使用以下步骤安装Openstack:

  1. 已安装的openstack内核
  2. yum -y update(不更新任何内容)
  3. 设置ntp
  4. 重新启动
  5. 安装了openstack-packstack
  6. 生成答案文件
  7. openstack --answer-file = / root / answerfile.txt
  8. 并且在puppet配置中发生错误:

    Adding Horizon manifest entries...                     [ DONE ]
    Preparing servers...                                   [ DONE ]
    Adding post install manifest entries...                [ DONE ]
    Installing Dependencies...                             [ DONE ]
    Copying Puppet modules and manifests...                [ DONE ]
    Applying Puppet manifests...
    Applying 192.168.170.143_prescript.pp
    

    错误

    ERROR : Error during puppet run : err: /Stage[main]//Package[openstack-selinux]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install openstack-selinux' returned 1: Error: Nothing to do
    Please check log file /var/tmp/packstack/20140302-121029-B85D0p/openstack-setup.log for more information.
    

    我已经安装了EPEL repo和Local CD repo。还安装了木偶 (yum install puppet)在上面的安装之前(我已尝试过我们的手册和书中的步骤,但它没有用)。

    对此问题的任何建议?

1 个答案:

答案 0 :(得分:2)

ERROR : Error during puppet run : err: /Stage[main]//Package[openstack-selinux]/ensure: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install openstack-selinux' returned 1: Error: Nothing to do

此错误消息表明yum存储库中没有openstack-selinux这样的包。检查您的yum回购并找出要添加的回购。

据我在网上看到,你只需要添加OpenStack repo:

yum install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm