关于saltstack openstack的安装

我从GitHub上下载的源码包和yum包,执行状态文件怎么都是报错啊,有没有执行成功的啊 
部分报错如下
----------
          ID: openstack-neutron-linuxbridge-agent
    Function: service.running
      Result: False
     Comment: Service openstack-neutron-linuxbridge-agent is already enabled, and is dead
     Started: 12:12:44.700862
    Duration: 70.813 ms
     Changes:   
----------
          ID: /usr/local/bin/neutron_data.sh
    Function: file.managed
      Result: True
     Comment: File /usr/local/bin/neutron_data.sh is in the correct state
     Started: 12:12:44.772216
    Duration: 20.147 ms
     Changes:   
----------
          ID: neutron-data-init
    Function: cmd.run
        Name: bash /usr/local/bin/neutron_data.sh && touch /var/lock/neutron-datainit.lock
      Result: False
     Comment: Command "bash /usr/local/bin/neutron_data.sh && touch /var/lock/neutron-datainit.lock" run
     Started: 12:12:44.795194
    Duration: 24.228 ms
     Changes:   
              ----------
              pid:
                  10779
              retcode:
                  127
              stderr:
                  /usr/local/bin/neutron_data.sh: line 7: keystone: command not found
                  /usr/local/bin/neutron_data.sh: line 15: keystone: command not found
              stdout:
----------
          ID: openstack-neutron-server
    Function: file.managed
        Name: /etc/init.d/openstack-neutron-server
      Result: True
     Comment: File /etc/init.d/openstack-neutron-server is in the correct state
     Started: 12:12:44.819902
    Duration: 22.661 ms
     Changes:   
----------
          ID: openstack-neutron-server
    Function: cmd.run
        Name: chkconfig --add openstack-neutron-server
      Result: True
     Comment: unless execution succeeded
     Started: 12:12:44.846956
    Duration: 64.881 ms
     Changes:   
----------
          ID: openstack-neutron-server
    Function: service.running
      Result: False
     Comment: One or more requisite failed: openstack.neutron.server.neutron-data-init
     Changes:   
----------
          ID: openstack-neutron-dhcp-agent
    Function: file.managed
        Name: /etc/init.d/openstack-neutron-dhcp-agent
      Result: True
     Comment: File /etc/init.d/openstack-neutron-dhcp-agent is in the correct state
     Started: 12:12:44.923296
    Duration: 11.084 ms
     Changes:   
----------
          ID: openstack-neutron-dhcp-agent
    Function: cmd.run
        Name: chkconfig --add openstack-neutron-dhcp-agent
      Result: True
     Comment: unless execution succeeded
     Started: 12:12:44.937201
    Duration: 66.981 ms
     Changes:   
----------
          ID: openstack-neutron-dhcp-agent
    Function: service.running
      Result: False
     Comment: Service openstack-neutron-dhcp-agent is already enabled, and is dead
     Started: 12:12:45.010909
    Duration: 80.66 ms
     Changes:   
----------
          ID: cinder-install
    Function: file.managed
        Name: /usr/local/src/cinder-2014.1.1.tar.gz
      Result: True
     Comment: File /usr/local/src/cinder-2014.1.1.tar.gz is in the correct state
     Started: 12:12:45.092195
    Duration: 139.981 ms
     Changes:   
----------
          ID: cinder-install
    Function: cmd.run
        Name: cd /usr/local/src/ && tar zxf cinder-2014.1.1.tar.gz && cd cinder-2014.1.1 && pip-python install -r requirements.txt && python setup.py install
      Result: False
     Comment: One or more requisite failed: openstack.init.control_base.openstack-pkg-init
     Changes:   
----------
          ID: /var/log/cinder
    Function: file.directory
      Result: True
     Comment: Directory /var/log/cinder is in the correct state
     Started: 12:12:45.235276
    Duration: 0.709 ms
     Changes:   
----------
          ID: /var/lib/cinder
    Function: file.directory
      Result: True
     Comment: Directory /var/lib/cinder is in the correct state
     Started: 12:12:45.236056
    Duration: 0.522 ms
     Changes:   
----------
          ID: /var/run/cinder
    Function: file.directory
      Result: True
     Comment: Directory /var/run/cinder is in the correct state
     Started: 12:12:45.236643
    Duration: 0.503 ms
     Changes:   
----------
          ID: /etc/cinder
    Function: file.directory
      Result: True
     Comment: Directory /etc/cinder is in the correct state
     Started: 12:12:45.237285
    Duration: 0.524 ms
     Changes:   
----------
          ID: /etc/cinder/api-paste.ini
    Function: file.managed
      Result: True
     Comment: File /etc/cinder/api-paste.ini is in the correct state
     Started: 12:12:45.237872
    Duration: 9.543 ms
     Changes:   
----------
          ID: /etc/cinder/logging.conf
    Function: file.managed
      Result: True
     Comment: File /etc/cinder/logging.conf is in the correct state
     Started: 12:12:45.247543
    Duration: 8.514 ms
     Changes:   
----------
          ID: /etc/cinder/policy.json
    Function: file.managed
      Result: True
     Comment: File /etc/cinder/policy.json is in the correct state
     Started: 12:12:45.256146
    Duration: 7.877 ms
     Changes:   
----------
          ID: /etc/cinder/rootwrap.conf
    Function: file.managed
      Result: True
     Comment: File /etc/cinder/rootwrap.conf is in the correct state
     Started: 12:12:45.264204
    Duration: 15.184 ms
     Changes:   
----------
          ID: /etc/cinder/rootwrap.d
    Function: file.directory
      Result: True
     Comment: Directory /etc/cinder/rootwrap.d is in the correct state
     Started: 12:12:45.279580
    Duration: 1.535 ms
     Changes:   
----------
          ID: cinder-rootwrap.d
    Function: file.recurse
        Name: /etc/cinder/rootwrap.d
      Result: True
     Comment: The directory /etc/cinder/rootwrap.d is in the correct state
     Started: 12:12:45.281332
    Duration: 35.803 ms
     Changes:   
----------
          ID: /etc/cinder/cinder.conf
    Function: file.managed
      Result: True
     Comment: File /etc/cinder/cinder.conf is in the correct state
     Started: 12:12:45.317372
    Duration: 60.129 ms
     Changes:   
----------
          ID: nfs-install
    Function: pkg.installed
        Name: rpcbind
      Result: True
     Comment: Package rpcbind is already installed
     Started: 12:12:45.377747
    Duration: 1.12 ms
     Changes:   
----------
          ID: nfs-install
    Function: pkg.installed
        Name: nfs-utils
      Result: True
     Comment: Package nfs-utils is already installed
     Started: 12:12:45.379046
    Duration: 0.7 ms
     Changes:   
----------
          ID: /etc/exports
    Function: file.managed
      Result: True
     Comment: File /etc/exports is in the correct state
     Started: 12:12:45.383597
    Duration: 8.817 ms
     Changes:   
----------
          ID: nfs-install
    Function: service.running
        Name: nfs
      Result: True
     Comment: The service nfs is already running
     Started: 12:12:45.393373
    Duration: 71.501 ms
     Changes:   
----------
          ID: rpcbind
    Function: service.running
      Result: True
     Comment: The service rpcbind is already running
     Started: 12:12:45.467009
    Duration: 32.772 ms
     Changes:   
----------
          ID: /data/nfs
    Function: file.directory
      Result: True
     Comment: Directory /data/nfs is in the correct state
     Started: 12:12:45.500049
    Duration: 1.023 ms
     Changes:   
----------
          ID: /etc/cinder/nfs_shares
    Function: file.managed
      Result: True
     Comment: File /etc/cinder/nfs_shares is in the correct state
     Started: 12:12:45.501166
    Duration: 12.639 ms
     Changes:   
----------
          ID: /usr/local/bin/cinder_data.sh
    Function: file.managed
      Result: True
     Comment: File /usr/local/bin/cinder_data.sh is in the correct state
     Started: 12:12:45.513921
    Duration: 9.683 ms
     Changes:   
----------
          ID: cinder-keystone-init
    Function: cmd.run
        Name: bash /usr/local/bin/cinder_data.sh && touch /var/lock/cinder-datainit.lock
      Result: False
     Comment: Command "bash /usr/local/bin/cinder_data.sh && touch /var/lock/cinder-datainit.lock" run
     Started: 12:12:45.525426
    Duration: 25.328 ms
     Changes:   
              ----------
              pid:
                  10885
              retcode:
                  127
              stderr:
                  /usr/local/bin/cinder_data.sh: line 7: keystone: command not found
                  /usr/local/bin/cinder_data.sh: line 15: keystone: command not found
              stdout:
----------
          ID: cinder-db-init
    Function: cmd.run
        Name: cinder-manage db sync && touch /var/lock/cinder-db-sync.lock
      Result: False
     Comment: One or more requisite failed: openstack.mysql.cinder.cinder-mysql
     Changes:   
----------
          ID: openstack-cinder-api
    Function: file.managed
        Name: /etc/init.d/openstack-cinder-api
      Result: True
     Comment: File /etc/init.d/openstack-cinder-api is in the correct state
     Started: 12:12:45.555667
    Duration: 16.128 ms
     Changes:   
----------
          ID: openstack-cinder-api
    Function: cmd.run
        Name: chkconfig --add openstack-cinder-api
      Result: True
     Comment: unless execution succeeded
     Started: 12:12:45.573502
    Duration: 58.516 ms
     Changes:   
----------
          ID: openstack-cinder-api
    Function: service.running
      Result: False
     Comment: One or more requisite failed: openstack.cinder.server.cinder-db-init, openstack.cinder.server.cinder-keystone-init
     Changes:   
----------
          ID: openstack-cinder-scheduler
    Function: file.managed
        Name: /etc/init.d/openstack-cinder-scheduler
      Result: True
     Comment: File /etc/init.d/openstack-cinder-scheduler is in the correct state
     Started: 12:12:45.643556
    Duration: 10.889 ms
     Changes:   
----------
          ID: openstack-cinder-scheduler
    Function: cmd.run
        Name: chkconfig --add openstack-cinder-scheduler
      Result: True
     Comment: unless execution succeeded
     Started: 12:12:45.657160
    Duration: 121.776 ms
     Changes:   
----------
          ID: openstack-cinder-scheduler
    Function: service.running
      Result: False
     Comment: One or more requisite failed: openstack.cinder.server.cinder-db-init, openstack.cinder.server.cinder-keystone-init
     Changes:   
----------
          ID: openstack-cinder-volume
    Function: file.managed
        Name: /etc/init.d/openstack-cinder-volume
      Result: True
     Comment: File /etc/init.d/openstack-cinder-volume is in the correct state
     Started: 12:12:45.790781
    Duration: 10.283 ms
     Changes:   
----------
          ID: openstack-cinder-volume
    Function: cmd.run
        Name: chkconfig --add openstack-cinder-volume
      Result: True
     Comment: unless execution succeeded
     Started: 12:12:45.802429
    Duration: 68.463 ms
     Changes:   
----------
          ID: openstack-cinder-volume
    Function: service.running
      Result: False
     Comment: One or more requisite failed: openstack.cinder.server.cinder-db-init, openstack.cinder.server.cinder-keystone-init
     Changes:   
----------
          ID: horizon-install
    Function: file.managed
        Name: /usr/local/src/horizon-2014.1.1.tar.gz
      Result: True
     Comment: File /usr/local/src/horizon-2014.1.1.tar.gz is in the correct state
     Started: 12:12:45.881762
    Duration: 92.788 ms
     Changes:   
----------
          ID: horizon-install
    Function: cmd.run
        Name: cd /usr/local/src/ && tar zxf horizon-2014.1.1.tar.gz && cd horizon-2014.1.1 && pip-python install -r requirements.txt && python setup.py install
      Result: False
     Comment: Command "cd /usr/local/src/ && tar zxf horizon-2014.1.1.tar.gz && cd horizon-2014.1.1 && pip-python install -r requirements.txt && python setup.py install" run
     Started: 12:12:45.975979
    Duration: 160.346 ms
     Changes:   
              ----------
              pid:
                  10905
              retcode:
                  127
              stderr:
                  /bin/sh: pip-python: command not found
              stdout:
----------
          ID: horizon-init
    Function: cmd.run
        Name: mv /usr/local/src/horizon-2014.1.1 /var/www/horizon-2014.1.1 && chown -R apache:apache /var/www/horizon-2014.1.1
      Result: False
     Comment: One or more requisite failed: openstack.horizon.server.horizon-install
     Changes:   
----------
          ID: httpd
    Function: pkg.installed
      Result: True
     Comment: Package httpd is already installed
     Started: 12:12:46.140288
    Duration: 0.669 ms
     Changes:   
----------
          ID: httpd
    Function: pkg.installed
        Name: mod_wsgi
      Result: True
     Comment: Package mod_wsgi is already installed
     Started: 12:12:46.141031
    Duration: 0.355 ms
     Changes:   
----------
          ID: openstack_dashboard
    Function: file.managed
        Name: /var/www/horizon-2014.1.1/openstack_dashboard/local/local_settings.py
      Result: False
     Comment: Parent directory not present
     Started: 12:12:46.142254
    Duration: 15.599 ms
     Changes:   
----------
          ID: /etc/httpd/conf.d/horzion.conf
    Function: file.managed
      Result: True
     Comment: File /etc/httpd/conf.d/horzion.conf is in the correct state
     Started: 12:12:46.158887
    Duration: 8.83 ms
     Changes:   
----------
          ID: /var/run/horizon
    Function: file.directory
      Result: True
     Comment: Directory /var/run/horizon is in the correct state
     Started: 12:12:46.167821
    Duration: 0.651 ms
     Changes:   
----------
          ID: httpd
    Function: service.running
      Result: False
     Comment: One or more requisite failed: openstack.horizon.server.openstack_dashboard
     Changes:   

Summary for slave1
--------------
Succeeded: 162 (changed=3)
Failed:     57
--------------
Total states run:     219
Total run time:   106.828 s
 
已邀请:

YuriGagarin

赞同来自:

2货,你自己不会看报错啊。
 
这不是依赖报错吗?
 
可能是openstack和班长写的版本不一致吧。

赵班长 - 不忘初心,方得始终!

赞同来自:

是这样的,这个版本还没有更新。如果你要使用SaltStack自动化部署OpenStack。首先你需要会SaltStack和OpenStack。而且需要修改配置的,不是直接执行的。

要回复问题请先登录注册