Skip to content

Instantly share code, notes, and snippets.

@akhmetgali
Created October 26, 2016 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akhmetgali/a1ebd8dbcb3b0976f74056badb688164 to your computer and use it in GitHub Desktop.
Save akhmetgali/a1ebd8dbcb3b0976f74056badb688164 to your computer and use it in GitHub Desktop.
root@user:/home/user# salt-cloud -p stack_micro noon -l debug
[DEBUG ] Reading configuration from /etc/salt/cloud
[DEBUG ] Including configuration from '/etc/salt/cloud.conf.d/example.conf'
[DEBUG ] Reading configuration from /etc/salt/cloud.conf.d/example.conf
[DEBUG ] Reading configuration from /etc/salt/master
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: user
[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/stack_micro.conf'
[DEBUG ] Reading configuration from /etc/salt/cloud.profiles.d/stack_micro.conf
[DEBUG ] Configuration file path: /etc/salt/cloud
[WARNING ] Insecure logging configuration detected! Sensitive data may be logged.
[INFO ] salt-cloud starting
[DEBUG ] Could not LazyLoad parallels.avail_sizes
[DEBUG ] LazyLoaded parallels.avail_locations
[DEBUG ] LazyLoaded proxmox.avail_sizes
[DEBUG ] Could not LazyLoad saltify.destroy
[DEBUG ] Could not LazyLoad saltify.avail_sizes
[DEBUG ] Could not LazyLoad saltify.avail_images
[DEBUG ] Could not LazyLoad saltify.avail_locations
[DEBUG ] LazyLoaded rackspace.reboot
[DEBUG ] LazyLoaded openstack.list_locations
[DEBUG ] LazyLoaded rackspace.list_locations
[DEBUG ] Could not LazyLoad nova.optimize_providers
[DEBUG ] The 'nova' cloud driver is unable to be optimized.
[DEBUG ] Could not LazyLoad parallels.avail_sizes
[DEBUG ] LazyLoaded parallels.avail_locations
[DEBUG ] LazyLoaded proxmox.avail_sizes
[DEBUG ] Could not LazyLoad saltify.destroy
[DEBUG ] Could not LazyLoad saltify.avail_sizes
[DEBUG ] Could not LazyLoad saltify.avail_images
[DEBUG ] Could not LazyLoad saltify.avail_locations
[DEBUG ] LazyLoaded rackspace.reboot
[DEBUG ] LazyLoaded openstack.list_locations
[DEBUG ] LazyLoaded rackspace.list_locations
[DEBUG ] Failed to execute 'nova.list_nodes()' while querying for running nodes: Unauthorized (HTTP 401) (Request-ID: req-5183a79a-e417-4349-954e-d9e3031be15b)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/cloud/__init__.py", line 2369, in run_parallel_map_providers_query
cloud.clouds[data['fun']]()
File "/usr/lib/python2.7/dist-packages/salt/cloud/clouds/nova.py", line 945, in list_nodes
conn = get_conn()
File "/usr/lib/python2.7/dist-packages/salt/cloud/clouds/nova.py", line 273, in get_conn
conn = nova.SaltNova(**kwargs)
File "/usr/lib/python2.7/dist-packages/salt/utils/openstack/nova.py", line 248, in __init__
conn.client.authenticate()
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 584, in authenticate
auth_url = self._v1_auth(auth_url)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 620, in _v1_auth
resp, body = self._time_request(url, 'GET', headers=headers)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 403, in _time_request
resp, body = self.request(url, method, **kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 397, in request
raise exceptions.from_response(resp, body, url, method)
Unauthorized: Unauthorized (HTTP 401) (Request-ID: req-5183a79a-e417-4349-954e-d9e3031be15b)
[DEBUG ] Generating minion keys for 'noon'
[DEBUG ] LazyLoaded cloud.fire_event
[DEBUG ] MasterEvent PUB socket URI: /var/run/salt/master/master/master_event_pub.ipc
[DEBUG ] MasterEvent PULL socket URI: /var/run/salt/master/master/master_event_pull.ipc
[DEBUG ] Initializing new IPCClient for path: /var/run/salt/master/master/master_event_pull.ipc
[ERROR ] There was a profile error: Unauthorized (HTTP 401) (Request-ID: req-fb65435b-8113-4546-bf45-e475895d3f13)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/cloud/cli.py", line 284, in run
self.config.get('names')
File "/usr/lib/python2.7/dist-packages/salt/cloud/__init__.py", line 1451, in run_profile
ret[name] = self.create(vm_)
File "/usr/lib/python2.7/dist-packages/salt/cloud/__init__.py", line 1281, in create
output = self.clouds[func](vm_)
File "/usr/lib/python2.7/dist-packages/salt/cloud/clouds/nova.py", line 698, in create
conn = get_conn()
File "/usr/lib/python2.7/dist-packages/salt/cloud/clouds/nova.py", line 273, in get_conn
conn = nova.SaltNova(**kwargs)
File "/usr/lib/python2.7/dist-packages/salt/utils/openstack/nova.py", line 248, in __init__
conn.client.authenticate()
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 584, in authenticate
auth_url = self._v1_auth(auth_url)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 620, in _v1_auth
resp, body = self._time_request(url, 'GET', headers=headers)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 403, in _time_request
resp, body = self.request(url, method, **kwargs)
File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 397, in request
raise exceptions.from_response(resp, body, url, method)
Unauthorized: Unauthorized (HTTP 401) (Request-ID: req-fb65435b-8113-4546-bf45-e475895d3f13)
my-os:
minion:
master: 192.168.1.108
identity_url: http://controller:5000/v3/auth/tokens
auth_version: 3
compute_name : nova
protocol: ipv4
compute_region: RegionOne
service_type : compute
tenant: admin
domain: default
user: admin
password: 87654321
driver: nova
insecure: false
stack_micro:
provider: my-os
size: '1x512x50'
image: cirros2
ssh_key_file: /home/user/Загрузки/salt.pem
ssh_key_name: salt
ssh_interface: public_ips
ssh_username: cirros
security_groups: default
networks:
- fixed:
- 0c5bb1e1-407e-473a-bf37-d55a7f3ffeb0N
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment