Advertisement
Guest User

salt-cloud-lxc

a guest
May 15th, 2014
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 8.17 KB | None | 0 0
  1. /etc/salt/cloud.providers.d/nox.conf
  2. nox_lxc:
  3.   target: nox
  4.   provider: lxc
  5.  
  6. ~/code/cloud-maps/salt-minion-lxc
  7. salt_minion_lxc:
  8.   provider: nox_lxc
  9.   from_container: ubuntu
  10.   backing: lvm
  11.   sudo: True
  12.   size: 3g
  13.   ip: 10.0.3.9
  14.   minion:
  15.     master: 10.5.0.1
  16.     master_port: 4506
  17.   lxc_conf:
  18.     - lxc.utsname: salt-minion-lxc
  19.  
  20. $ sudo salt-cloud -l debug -m /home/bud/code/cloud-maps/salt-minion-lxc
  21. [DEBUG   ] Missing configuration file: /etc/salt/cloud
  22. [DEBUG   ] Reading configuration from /etc/salt/master
  23. [DEBUG   ] Missing configuration file: /etc/salt/cloud.providers
  24. [DEBUG   ] Including configuration from '/etc/salt/cloud.providers.d/lxc.conf'
  25. [DEBUG   ] Reading configuration from /etc/salt/cloud.providers.d/lxc.conf
  26. [DEBUG   ] Missing configuration file: /etc/salt/cloud.profiles
  27. [DEBUG   ] Configuration file path: /etc/salt/master
  28. [INFO    ] salt-cloud starting
  29. [DEBUG   ] 'parallels.avail_sizes' has been marked as not supported. Removing from the list of supported cloud functions
  30. [DEBUG   ] 'parallels.avail_locations' has been marked as not supported. Removing from the list of supported cloud functions
  31. [DEBUG   ] 'proxmox.avail_sizes' has been marked as not supported. Removing from the list of supported cloud functions
  32. [DEBUG   ] 'saltify.destroy' has been marked as not supported. Removing from the list of supported cloud functions
  33. [DEBUG   ] 'saltify.avail_sizes' has been marked as not supported. Removing from the list of supported cloud functions
  34. [DEBUG   ] 'saltify.avail_images' has been marked as not supported. Removing from the list of supported cloud functions
  35. [DEBUG   ] 'saltify.avail_locations' has been marked as not supported. Removing from the list of supported cloud functions
  36. [DEBUG   ] 'rackspace.reboot' has been marked as not supported. Removing from the list of supported cloud functions
  37. [DEBUG   ] Reading configuration from /etc/salt/master
  38. [DEBUG   ] MasterEvent PUB socket URI: ipc:///var/run/salt/master/master_event_pub.ipc
  39. [DEBUG   ] MasterEvent PULL socket URI: ipc:///var/run/salt/master/master_event_pull.ipc
  40. [DEBUG   ] Reading configuration from /etc/salt/master
  41. [DEBUG   ] get_returns for jid 20140515225257805197 sent to set(['nox']) will timeout at 22:53:07
  42. [DEBUG   ] LazyLoaded local_cache.get_load
  43. [DEBUG   ] jid 20140515225257805197 found all minions
  44. [DEBUG   ] Reading configuration from /etc/salt/master
  45. [DEBUG   ] Including configuration from '/etc/salt/minion.d/99-master-address.conf'
  46. [DEBUG   ] Reading configuration from /etc/salt/minion.d/99-master-address.conf
  47. [INFO    ] Using cached minion ID from /etc/salt/minion_id: nox
  48. [DEBUG   ] Reading configuration from /etc/salt/master
  49. [INFO    ] Executing command '/sbin/zfs help || :' in directory '/home/bud'
  50. [DEBUG   ] stderr: unrecognized command 'help'
  51. usage: zfs command args ...
  52. where 'command' is one of the following:
  53.  
  54.         create [-p] [-o property=value] ... <filesystem>
  55.         create [-ps] [-b blocksize] [-o property=value] ... -V <size> <volume>
  56.         destroy [-rRf] <filesystem|volume>
  57.         destroy [-rRd] <snapshot>
  58.  
  59.         snapshot [-r] [-o property=value] ... <filesystem@snapname|volume@snapname>
  60.         rollback [-rRf] <snapshot>
  61.         clone [-p] [-o property=value] ... <snapshot> <filesystem|volume>
  62.         promote <clone-filesystem>
  63.         rename <filesystem|volume|snapshot> <filesystem|volume|snapshot>
  64.         rename -p <filesystem|volume> <filesystem|volume>
  65.         rename -r <snapshot> <snapshot>
  66.         list [-rH][-d max] [-o property[,...]] [-t type[,...]] [-s property] ...
  67.             [-S property] ... [filesystem|volume|snapshot] ...
  68.  
  69.         set <property=value> <filesystem|volume|snapshot> ...
  70.         get [-rHp] [-d max] [-o "all" | field[,...]] [-s source[,...]]
  71.             <"all" | property[,...]> [filesystem|volume|snapshot] ...
  72.         inherit [-rS] <property> <filesystem|volume|snapshot> ...
  73.         upgrade [-v]
  74.         upgrade [-r] [-V version] <-a | filesystem ...>
  75.         userspace [-hniHp] [-o field[,...]] [-sS field] ... [-t type[,...]]
  76.             <filesystem|snapshot>
  77.         groupspace [-hniHpU] [-o field[,...]] [-sS field] ... [-t type[,...]]
  78.             <filesystem|snapshot>
  79.  
  80.         mount
  81.         mount [-vO] [-o opts] <-a | filesystem>
  82.         unmount [-f] <-a | filesystem|mountpoint>
  83.         share <-a | filesystem>
  84.         unshare <-a | filesystem|mountpoint>
  85.  
  86.         send [-RDp] [-[iI] snapshot] <snapshot>
  87.         receive [-vnF] <filesystem|volume|snapshot>
  88.         receive [-vnF] -d <filesystem>
  89.  
  90.         allow <filesystem|volume>
  91.         allow [-ldug] <"everyone"|user|group>[,...] <perm|@setname>[,...]
  92.             <filesystem|volume>
  93.         allow [-ld] -e <perm|@setname>[,...] <filesystem|volume>
  94.         allow -c <perm|@setname>[,...] <filesystem|volume>
  95.         allow -s @setname <perm|@setname>[,...] <filesystem|volume>
  96.  
  97.         unallow [-rldug] <"everyone"|user|group>[,...]
  98.             [<perm|@setname>[,...]] <filesystem|volume>
  99.         unallow [-rld] -e [<perm|@setname>[,...]] <filesystem|volume>
  100.         unallow [-r] -c [<perm|@setname>[,...]] <filesystem|volume>
  101.         unallow [-r] -s @setname [<perm|@setname>[,...]] <filesystem|volume>
  102.  
  103.         hold [-r] <tag> <snapshot> ...
  104.         holds [-r] <snapshot> ...
  105.         release [-r] <tag> <snapshot> ...
  106.  
  107. Each dataset is of the form: pool/[dataset/]*dataset[@name]
  108.  
  109. For the property list, run: zfs set|get
  110.  
  111. For the delegated permission list, run: zfs allow|unallow
  112. [DEBUG   ] Loaded aptpkg as virtual pkg
  113. [DEBUG   ] Loaded groupadd as virtual group
  114. [DEBUG   ] Loaded localemod as virtual locale
  115. [DEBUG   ] Loaded linux_sysctl as virtual sysctl
  116. [DEBUG   ] Loaded debian_ip as virtual ip
  117. [DEBUG   ] Loaded parted as virtual partition
  118. [DEBUG   ] Loaded gnomedesktop as virtual gnome
  119. [DEBUG   ] Loaded sysmod as virtual sys
  120. [DEBUG   ] Loaded linux_acl as virtual acl
  121. [DEBUG   ] Loaded zcbuildout as virtual buildout
  122. [DEBUG   ] Loaded upstart as virtual service
  123. [DEBUG   ] Loaded useradd as virtual user
  124. [DEBUG   ] Loaded dpkg as virtual lowpkg
  125. [DEBUG   ] Loaded ini_manage as virtual ini
  126. [DEBUG   ] Loaded debconfmod as virtual debconf
  127. [DEBUG   ] Loaded etcd_mod as virtual etcd
  128. [DEBUG   ] Loaded virtualenv_mod as virtual virtualenv
  129. [DEBUG   ] Loaded djangomod as virtual django
  130. [DEBUG   ] Loaded cmdmod as virtual cmd
  131. [DEBUG   ] Loaded linux_lvm as virtual lvm
  132. [DEBUG   ] Loaded saltmod as virtual salt
  133. [DEBUG   ] Loaded zcbuildout as virtual buildout
  134. [DEBUG   ] Loaded ini_manage as virtual ini
  135. [DEBUG   ] Loaded debconfmod as virtual debconf
  136. [DEBUG   ] Loaded virtualenv_mod as virtual virtualenv
  137. [DEBUG   ] LazyLoaded local_cache.get_jid
  138. [DEBUG   ] Loaded no_out as virtual quiet
  139. [DEBUG   ] Loaded json_out as virtual json
  140. [DEBUG   ] Loaded yaml_out as virtual yaml
  141. [DEBUG   ] Loaded pprint_out as virtual pprint
  142. nox:
  143.     True
  144. [ERROR   ] An un-handled exception was caught by salt's global exception handler:
  145. AttributeError: 'str' object has no attribute 'setdefault'
  146. Traceback (most recent call last):
  147.  File "/usr/bin/salt-cloud", line 10, in <module>
  148.    salt_cloud()
  149.  File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 142, in salt_cloud
  150.    cloud.run()
  151.  File "/usr/lib/python2.7/dist-packages/salt/cloud/cli.py", line 80, in run
  152.    mapper = salt.cloud.Map(self.config)
  153.  File "/usr/lib/python2.7/dist-packages/salt/cloud/__init__.py", line 1427, in __init__
  154.    self.rendered_map = self.read()
  155.  File "/usr/lib/python2.7/dist-packages/salt/cloud/__init__.py", line 1584, in read
  156.    overrides.setdefault('name', name)
  157. AttributeError: 'str' object has no attribute 'setdefault'
  158. Traceback (most recent call last):
  159.  File "/usr/bin/salt-cloud", line 10, in <module>
  160.    salt_cloud()
  161.  File "/usr/lib/python2.7/dist-packages/salt/scripts.py", line 142, in salt_cloud
  162.    cloud.run()
  163.  File "/usr/lib/python2.7/dist-packages/salt/cloud/cli.py", line 80, in run
  164.    mapper = salt.cloud.Map(self.config)
  165.  File "/usr/lib/python2.7/dist-packages/salt/cloud/__init__.py", line 1427, in __init__
  166.    self.rendered_map = self.read()
  167.  File "/usr/lib/python2.7/dist-packages/salt/cloud/__init__.py", line 1584, in read
  168.    overrides.setdefault('name', name)
  169. AttributeError: 'str' object has no attribute 'setdefault'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement