You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having a very werid problem, which drives me nuts.
I have been happily using salt-cloud to provision ec2 instance for some time until I recently want to use the Amazon ami image.
The error I am having is that:
> # salt-cloud -p profile_name instance-name
> [ERROR ] There was a profile error: list index out of range
If provisioning the instance via python, error is displayed as below:
> result = cloud.profile(profilename, names=[args.instance_name[0],])
> File "/usr/lib/python2.7/site-packages/salt/cloud/__init__.py", line 352, in profile
> mapper.run_profile(profile, names, vm_overrides=vm_overrides)
> File "/usr/lib/python2.7/site-packages/salt/cloud/__init__.py", line 1461, in run_profile
> ret[name] = self.create(vm_)
> 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/ec2.py", line 2511, in create
> data, vm_ = request_instance(vm_, location)
> File "/usr/lib/python2.7/site-packages/salt/cloud/clouds/ec2.py", line 1885, in request_instance
> if ex_blockdevicemappings and 'Ebs.VolumeType' not in ex_blockdevicemappings[dev_index]:
> IndexError: list index out of range
the only change of the profile, which cause the error, is just the ami ID!
# salt --versions
Salt Version:
Salt: 2016.11.5
Dependency Versions:
cffi: Not Installed
cherrypy: unknown
dateutil: Not Installed
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.7.2
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: 0.21.1
Mako: Not Installed
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 20 2015, 02:00:19)
python-gnupg: Not Installed
PyYAML: 3.10
PyZMQ: 14.3.1
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 3.2.5
System Versions:
dist: centos 7.2.1511 Core
machine: x86_64
release: 3.10.0-327.10.1.el7.x86_64
system: Linux
version: CentOS Linux 7.2.1511 Core
The text was updated successfully, but these errors were encountered:
@DR3EVR8u8c can you point me to the ami image where this is working in? I am seeing the error each time no matter the ami i use, which leads me to believe the config might be incorrect that I'm using.
Description of Issue/Question
I am having a very werid problem, which drives me nuts.
I have been happily using salt-cloud to provision ec2 instance for some time until I recently want to use the Amazon ami image.
The error I am having is that:
If provisioning the instance via python, error is displayed as below:
the only change of the profile, which cause the error, is just the ami ID!
Setup
salt provider:
salt profile:
Steps to Reproduce Issue
salt-cloud -p profile_name new-instance-name
Versions Report
The text was updated successfully, but these errors were encountered: