-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Description
Getting an error when running salt-cloud with following simple step
run_cloud_map:
cmd.run:
- name: "salt-cloud -m /etc/salt/cloud.maps.d/srk5/dev22/map.yaml -P -y"
Error:
Command 'ssh -t -t -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -oPasswordAuthentication=no -oChallengeResponseAuthentication=no -oPubkeyAuthentication=yes -oIdentitiesOnly=yes -oKbdInteractiveAuthentication=no -i /etc/salt/pki/cloud-admin -oConnectTimeout=15 -p 22 azureuser@10.2.40.86 'sudo /tmp/.saltcloud-6feefb61-1e92-406a-9254-57a60566fb7b/deploy.sh -R repo.saltproject.io -P -x python3 stable 3006.8'' failed. Exit code: 2
Contents in deploy.sh file :
<meta http-equiv="refresh" content="0; url=
https://bootstrap.saltproject.io"
/>
Setup
sls file :
run_cloud_map:
cmd.run:
- name: "salt-cloud -m /etc/salt/cloud.maps.d/srk5/dev22/map.yaml -P -y"
map.yml file:
saltify_plm:
- srk522-ue1wcd2:
minion:
grains:
cloud_env_type: develop
instance_state: deploy
roles:
- myapp
ssh_host: 10.2.40.85
Please be as specific as possible and give set-up details.
Azure VM master as well as minion
Master OS version :
NAME="Red Hat Enterprise Linux"
VERSION="9.4 (Plow)"
Minion OS Version :
Steps to Reproduce the behavior
Expected behavior
salt-cloud should be able to saltify an instance
Versions Report
Salt cloud Version:
salt-cloud 3006.8 (Sulfur)
Salt Version:
Salt: 3006.8
Python Version:
Python: 3.10.14 (main, Apr 3 2024, 21:30:09) [GCC 11.2.0]
Dependency Versions:
cffi: 1.14.6
cherrypy: unknown
dateutil: 2.8.1
docker-py: Not Installed
gitdb: 4.0.11
gitpython: 3.1.43
Jinja2: 3.1.3
libgit2: Not Installed
looseversion: 1.0.2
M2Crypto: Not Installed
Mako: Not Installed
msgpack: 1.0.2
msgpack-pure: Not Installed
mysql-python: Not Installed
packaging: 22.0
pycparser: 2.21
pycrypto: Not Installed
pycryptodome: 3.19.1
pygit2: Not Installed
python-gnupg: 0.4.8
PyYAML: 6.0.1
PyZMQ: 23.2.0
relenv: 0.16.0
smmap: 5.0.1
timelib: 0.2.4
Tornado: 4.5.3
ZMQ: 4.3.4
System Versions:
dist: rhel 9.4 Plow
locale: utf-8
machine: x86_64
release: 3.10.0-1160.95.1.el7.x86_64
system: Linux
version: Red Hat Enterprise Linux 9.4 Plow