新人加入,刚开始学习salt,这个组现在人气不行了,挪地方了吗?

67 views
Skip to first unread message

sun xiaoyong

unread,
Dec 19, 2016, 9:03:25 AM12/19/16
to 中国SaltStack用户组
新人加入,刚开始学习salt,这个组现在人气不行了,挪地方了吗?

stduolc

unread,
May 13, 2017, 9:37:43 PM5/13/17
to 中国SaltStack用户组
没有啊.groups本来人就少.qq群人多.但是没什么技术牛.

在 2016年12月19日星期一 UTC+8下午10:03:25,sun xiaoyong写道:
新人加入,刚开始学习salt,这个组现在人气不行了,挪地方了吗?

Stars Liao

unread,
May 16, 2017, 6:04:04 AM5/16/17
to saltstack...@googlegroups.com
hi all

我用salt-cloud 创建openstack虚拟机失败,大神帮忙看看

配置:
vi web.conf 
c4:
  provider: my-openstack-config
  size: BX-2c.4g.40g
  image: CentOS 7.3.1611
  networks:
    - fixed:
      - c5bc18ea-cfda-4e76-adb8-0d38d1b7663d
  ssh_key_name: testing
  ssh_key_file: /root/testing.pem
  ssh_interface: private_ips
  minion:
    master: 192.168.200.150

vi openstack.conf 
my-openstack-config:
  auth_version: 3
  compute_name: nova
  protocol: ipv4
  compute_region: RegionOne
  user: admin
  password: xxxxxxxx
  tenant: admin
  domain: Default
  driver: openstack
  insecure: false

版本:
Salt Version:
            Salt: 2016.11.4
 
Dependency Versions:
 Apache Libcloud: 0.20.1
            cffi: Not Installed
        cherrypy: Not Installed
        dateutil: Not Installed
       docker-py: Not Installed
           gitdb: Not Installed
       gitpython: Not Installed
           ioflo: 1.6.7
          Jinja2: 2.7.2
         libgit2: Not Installed
         libnacl: 1.5.0
        M2Crypto: Not Installed
            Mako: 1.0.6
    msgpack-pure: Not Installed
  msgpack-python: 0.4.8
    mysql-python: Not Installed
       pycparser: Not Installed
        pycrypto: 2.6.1
    pycryptodome: 3.4.3
          pygit2: Not Installed
          Python: 2.7.5 (default, Nov  6 2016, 00:28:07)
    python-gnupg: Not Installed
          PyYAML: 3.11
           PyZMQ: 15.3.0
            RAET: 0.6.7
           smmap: Not Installed
         timelib: Not Installed
         Tornado: 4.2.1
             ZMQ: 4.1.4
 
System Versions:
            dist: centos 7.3.1611 Core
         machine: x86_64
         release: 4.11.0-1.el7.elrepo.x86_64
          system: Linux
         version: CentOS Linux 7.3.1611 Core

报错:
# salt-cloud -p c4 test1 -l debug
[DEBUG   ] Reading configuration from /etc/salt/cloud
[DEBUG   ] Reading configuration from /etc/salt/master
[DEBUG   ] Missing configuration file: /etc/salt/cloud.providers
[DEBUG   ] Including configuration from '/etc/salt/cloud.providers.d/openstack.conf'
[DEBUG   ] Reading configuration from /etc/salt/cloud.providers.d/openstack.conf
[DEBUG   ] Missing configuration file: /etc/salt/cloud.profiles
[DEBUG   ] Including configuration from '/etc/salt/cloud.profiles.d/web.conf'
[DEBUG   ] Reading configuration from /etc/salt/cloud.profiles.d/web.conf
[DEBUG   ] Configuration file path: /etc/salt/cloud
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[INFO    ] salt-cloud starting
[WARNING ] /usr/lib/python2.7/site-packages/salt/cloud/clouds/openstack.py:229: DeprecationWarning: This driver has been deprecated and will be removed in the Oxygen (Unreleased) release of Salt. Please use the nova driver instead.

[DEBUG   ] Could not LazyLoad parallels.avail_sizes: 'parallels' __virtual__ returned False
[DEBUG   ] LazyLoaded parallels.avail_locations
[DEBUG   ] LazyLoaded proxmox.avail_sizes
[DEBUG   ] Could not LazyLoad saltify.destroy: 'saltify.destroy' is not available.
[DEBUG   ] Could not LazyLoad saltify.avail_sizes: 'saltify.avail_sizes' is not available.
[DEBUG   ] Could not LazyLoad saltify.avail_images: 'saltify.avail_images' is not available.
[DEBUG   ] Could not LazyLoad saltify.avail_locations: 'saltify.avail_locations' is not available.
[DEBUG   ] LazyLoaded rackspace.reboot
[DEBUG   ] Could not LazyLoad openstack.list_locations: 'openstack.list_locations' is not available.
[DEBUG   ] LazyLoaded rackspace.list_locations
[DEBUG   ] Could not LazyLoad openstack.optimize_providers: 'openstack.optimize_providers' is not available.
[DEBUG   ] The 'openstack' cloud driver is unable to be optimized.
[DEBUG   ] Could not LazyLoad parallels.avail_sizes: 'parallels' __virtual__ returned False
[DEBUG   ] LazyLoaded parallels.avail_locations
[DEBUG   ] LazyLoaded proxmox.avail_sizes
[DEBUG   ] Could not LazyLoad saltify.destroy: 'saltify.destroy' is not available.
[DEBUG   ] Could not LazyLoad saltify.avail_sizes: 'saltify.avail_sizes' is not available.
[DEBUG   ] Could not LazyLoad saltify.avail_images: 'saltify.avail_images' is not available.
[DEBUG   ] Could not LazyLoad saltify.avail_locations: 'saltify.avail_locations' is not available.
[DEBUG   ] LazyLoaded rackspace.reboot
[DEBUG   ] Could not LazyLoad openstack.list_locations: 'openstack.list_locations' is not available.
[DEBUG   ] LazyLoaded rackspace.list_locations
[DEBUG   ] OpenStack authenticating using password
[DEBUG   ] Generating minion keys for 'test1'
[DEBUG   ] LazyLoaded cloud.fire_event
[ERROR   ] Failed to import utils saltminionservice, this is due most likely to a syntax error:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/salt/loader.py", line 1333, in _load_module
    mod = imp.load_module(mod_namespace, fn_, fpath, desc)
  File "/usr/lib/python2.7/site-packages/salt/utils/saltminionservice.py", line 34, in <module>
    class MinionService(service(False)):
TypeError: Error when calling the metaclass bases
    cannot create 'NoneType' instances
[DEBUG   ] Could not LazyLoad cloud.filter_event: 'cloud.filter_event' is not available.
[ERROR   ] Failed to create VM test1. Configuration value 'cloud.filter_event' needs to be set
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/salt/cloud/__init__.py", line 1291, in create
    output = self.clouds[func](vm_)
  File "/usr/lib/python2.7/site-packages/salt/cloud/clouds/openstack.py", line 736, in create
    args=__utils__['cloud.filter_event']('creating', vm_, ['name', 'profile', 'provider', 'driver']),
  File "/usr/lib/python2.7/site-packages/salt/loader.py", line 1087, in __getitem__
    func = super(LazyLoader, self).__getitem__(item)
  File "/usr/lib/python2.7/site-packages/salt/utils/lazy.py", line 101, in __getitem__
    raise KeyError(key)
KeyError: 'cloud.filter_event'
Error: There was a profile error: Failed to deploy VM

--
Best Regards ,
Stars Liao


 

Stars Liao

unread,
May 16, 2017, 10:09:03 PM5/16/17
to saltstack...@googlegroups.com
openstack的版本是Ocata   openstack.py 是从github换的最新的。




--
Best Regards ,
Stars Liao

--
您收到此邮件是因为您订阅了Google网上论坛上的“中国SaltStack用户组”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到saltstack-users...@googlegroups.com
要发帖到此群组,请发送电子邮件至saltstack...@googlegroups.com
访问此群组:https://groups.google.com/group/saltstack-users-cn
要在网络上查看此讨论,请访问https://groups.google.com/d/msgid/saltstack-users-cn/6b92b47.bd22.15c10b69642.Coremail.starsliao%40163.com
要查看更多选项,请访问https://groups.google.com/d/optout


 

Reply all
Reply to author
Forward
0 new messages