Advertisement
drpanwe

Untitled

Jun 19th, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.05 KB | None | 0 0
  1. In a matter of fact, I've installed also the other flavor of it, just to make sure I am not hitting any *alpha* bug.
  2.  
  3. So, let's remove the *snap* version of *conjure-up* and try the one from the repository:
  4.  
  5. ```bash
  6. drpaneas@ubuntu1704:~$ sudo snap remove conjure-up
  7. conjure-up removed
  8. ```
  9.  
  10. As you can see it has been successfully removed:
  11.  
  12. ```bash
  13. drpaneas@ubuntu1704:~$ sudo snap list
  14. Name Version Rev Developer Notes
  15. core 16-2 1689 canonical -
  16. ```
  17.  
  18. Now, let's see what version of *conjure-up* is avail in our repos (*currently running 17.04*):
  19.  
  20. ```bash
  21. drpaneas@ubuntu1704:~$ sudo apt-cache madison conjure-up
  22. conjure-up | 2.0.1 | http://de.archive.ubuntu.com/ubuntu zesty/universe amd64 Packages
  23. conjure-up | 2.0.1 | http://de.archive.ubuntu.com/ubuntu zesty/universe i386 Packages
  24. ```
  25.  
  26. So, the *2.0.1* seems to be quite outdated compared to 2.3.alpha, but anyway, let's give it a shot:
  27.  
  28. ```bash
  29. drpaneas@ubuntu1704:~$ sudo apt-get install conjure-up
  30. Reading package lists... Done
  31. Building dependency tree
  32. Reading state information... Done
  33. The following additional packages will be installed:
  34. bsdtar distro-info dns-root-data dnsmasq-base ebtables git git-core git-man javascript-common jq juju-2.0 libarchive-tools liberror-perl libgolang-1.7-std1 libgolang-github-gorilla-context1 libgolang-github-gorilla-mux1 libgolang-github-gorilla-websocket1
  35. libgolang-github-gosexy-gettext1 libgolang-github-mattn-go-colorable1 libgolang-github-mattn-go-sqlite3-1 libgolang-github-olekukonko-tablewriter1 libgolang-github-pborman-uuid1 libgolang-gocapability1 libgolang-golang-x-crypto1 libgolang-golang-x-net1
  36. libgolang-golang-x-text1 libgolang-gopkg-flosch-pongo2.v3-1 libgolang-gopkg-inconshreveable-log15.v2-1 libgolang-gopkg-lxc-go-lxc.v2-1 libgolang-gopkg-tomb.v2-1 libgolang-gopkg-yaml.v2-1 libgolang-goprotobuf1 libgolang-petname1 libjq1 libjs-jquery libjs-sphinxdoc
  37. libjs-underscore liblxc1 libonig4 lxc-common lxcfs lxd lxd-client python3-bson python3-bson-ext python3-petname python3-prettytable python3-progressbar python3-requests-oauthlib python3-termcolor python3-urwid python3-ws4py uidmap
  38. Suggested packages:
  39. shunit2 git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn apache2 | lighttpd | httpd criu lxd-tools python3-cherrypy3 | python3-tornado
  40. The following NEW packages will be installed:
  41. bsdtar conjure-up distro-info dns-root-data dnsmasq-base ebtables git git-core git-man javascript-common jq juju-2.0 libarchive-tools liberror-perl libgolang-1.7-std1 libgolang-github-gorilla-context1 libgolang-github-gorilla-mux1 libgolang-github-gorilla-websocket1
  42. libgolang-github-gosexy-gettext1 libgolang-github-mattn-go-colorable1 libgolang-github-mattn-go-sqlite3-1 libgolang-github-olekukonko-tablewriter1 libgolang-github-pborman-uuid1 libgolang-gocapability1 libgolang-golang-x-crypto1 libgolang-golang-x-net1
  43. libgolang-golang-x-text1 libgolang-gopkg-flosch-pongo2.v3-1 libgolang-gopkg-inconshreveable-log15.v2-1 libgolang-gopkg-lxc-go-lxc.v2-1 libgolang-gopkg-tomb.v2-1 libgolang-gopkg-yaml.v2-1 libgolang-goprotobuf1 libgolang-petname1 libjq1 libjs-jquery libjs-sphinxdoc
  44. libjs-underscore liblxc1 libonig4 lxc-common lxcfs lxd lxd-client python3-bson python3-bson-ext python3-petname python3-prettytable python3-progressbar python3-requests-oauthlib python3-termcolor python3-urwid python3-ws4py uidmap
  45. 0 upgraded, 54 newly installed, 0 to remove and 3 not upgraded.
  46. Need to get 48,1 MB of archives.
  47. After this operation, 264 MB of additional disk space will be used.
  48. Do you want to continue? [Y/n] y
  49. ```
  50.  
  51. As you can see, *lxd* seems to be a valid dependency in this case, so it makes sense that it is going to be installed. After the installation got finished, there was some kind of interesting output during the *post installation scripts* of the individual packages that were installed (as part of the *conjure-up* dependencies):
  52.  
  53. *ebtables*
  54. ```bash
  55. Setting up ebtables (2.0.10.4-3.5ubuntu1.17.04.1) ...
  56. Created symlink /etc/systemd/system/multi-user.target.wants/ebtables.service → /lib/systemd/system/ebtables.service.
  57. update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
  58. ```
  59. ^ Do you think I have to file a bug for this warning? Seems pretty unharmed, but it's kind of ugly, isn't?
  60.  
  61. *lxcfs*
  62. ```bash
  63. Setting up lxcfs (2.0.7-0ubuntu1~17.04.1) ...
  64. Created symlink /etc/systemd/system/multi-user.target.wants/lxcfs.service → /lib/systemd/system/lxcfs.service.
  65. ```
  66.  
  67. *lxd*
  68. ```bash
  69. Setting up lxd (2.12-0ubuntu3) ...
  70. Created symlink /etc/systemd/system/multi-user.target.wants/lxd-containers.service → /lib/systemd/system/lxd-containers.service.
  71. Created symlink /etc/systemd/system/sockets.target.wants/lxd.socket → /lib/systemd/system/lxd.socket.
  72. Setting up lxd dnsmasq configuration.
  73.  
  74. To go through the initial LXD configuration, run: lxd init
  75. ```
  76.  
  77. *conjure-up*
  78. ```bash
  79. Setting up conjure-up (2.0.1) ...
  80. Created symlink /etc/systemd/system/multi-user.target.wants/conjure-up.service → /lib/systemd/system/conjure-up.service.
  81. ```
  82.  
  83. So, let's check if the aforementioned systemd-services are active or not:
  84.  
  85. ```bash
  86. drpaneas@ubuntu1704:~$ sudo systemctl status ebtables.service
  87. ● ebtables.service - ebtables ruleset management
  88. Loaded: loaded (/lib/systemd/system/ebtables.service; enabled; vendor preset: enabled)
  89. Active: active (exited) since Tue 2017-06-20 00:29:42 CEST; 8min ago
  90. Main PID: 3982 (code=exited, status=0/SUCCESS)
  91. CGroup: /system.slice/ebtables.service
  92.  
  93. Jun 20 00:29:42 ubuntu1704 systemd[1]: Starting ebtables ruleset management...
  94. Jun 20 00:29:42 ubuntu1704 systemd[1]: Started ebtables ruleset management.
  95.  
  96. drpaneas@ubuntu1704:~$ sudo systemctl status lxcfs.service
  97. ● lxcfs.service - FUSE filesystem for LXC
  98. Loaded: loaded (/lib/systemd/system/lxcfs.service; enabled; vendor preset: enabled)
  99. Active: active (running) since Tue 2017-06-20 00:29:43 CEST; 7min ago
  100. Docs: man:lxcfs(1)
  101. Main PID: 4050 (lxcfs)
  102. CGroup: /system.slice/lxcfs.service
  103. └─4050 /usr/bin/lxcfs /var/lib/lxcfs/
  104.  
  105. Jun 20 00:29:43 ubuntu1704 lxcfs[4050]: 1: fd: 6: freezer
  106. Jun 20 00:29:43 ubuntu1704 lxcfs[4050]: 2: fd: 7: pids
  107. Jun 20 00:29:43 ubuntu1704 lxcfs[4050]: 3: fd: 8: cpuset
  108. Jun 20 00:29:43 ubuntu1704 lxcfs[4050]: 4: fd: 9: perf_event
  109. Jun 20 00:29:43 ubuntu1704 lxcfs[4050]: 5: fd: 10: memory
  110. Jun 20 00:29:43 ubuntu1704 lxcfs[4050]: 6: fd: 11: blkio
  111. Jun 20 00:29:43 ubuntu1704 lxcfs[4050]: 7: fd: 12: net_cls,net_prio
  112. Jun 20 00:29:43 ubuntu1704 lxcfs[4050]: 8: fd: 13: devices
  113. Jun 20 00:29:43 ubuntu1704 lxcfs[4050]: 9: fd: 14: cpu,cpuacct
  114. Jun 20 00:29:43 ubuntu1704 lxcfs[4050]: 10: fd: 15: name=systemd
  115.  
  116. drpaneas@ubuntu1704:~$ sudo systemctl status lxd-containers.service
  117. ● lxd-containers.service - LXD - container startup/shutdown
  118. Loaded: loaded (/lib/systemd/system/lxd-containers.service; enabled; vendor preset: enabled)
  119. Active: active (exited) since Tue 2017-06-20 00:29:45 CEST; 9min ago
  120. Docs: man:lxd(1)
  121. Main PID: 7192 (code=exited, status=0/SUCCESS)
  122. CPU: 30ms
  123. CGroup: /system.slice/lxd-containers.service
  124.  
  125. Jun 20 00:29:45 ubuntu1704 systemd[1]: Starting LXD - container startup/shutdown...
  126. Jun 20 00:29:45 ubuntu1704 systemd[1]: Started LXD - container startup/shutdown.
  127.  
  128. drpaneas@ubuntu1704:~$ sudo systemctl status conjure-up.service
  129. ● conjure-up.service - conjure-up - network bridge
  130. Loaded: loaded (/lib/systemd/system/conjure-up.service; enabled; vendor preset: enabled)
  131. Active: active (exited) since Tue 2017-06-20 00:29:46 CEST; 9min ago
  132. Docs: man:conjure-up(1)
  133. Main PID: 7379 (code=exited, status=0/SUCCESS)
  134. CPU: 6ms
  135. CGroup: /system.slice/conjure-up.service
  136.  
  137. Jun 20 00:29:46 ubuntu1704 systemd[1]: Starting conjure-up - network bridge...
  138. Jun 20 00:29:46 ubuntu1704 systemd[1]: Started conjure-up - network bridge.
  139. ```
  140.  
  141. Well, *all* of them seems to be both *active* and *enabled*. So, let's run `conjure-up` again:
  142.  
  143. ```bash
  144. drpaneas@ubuntu1704:~$ conjure-up
  145. [info] No spells found, syncing from registry, please wait.
  146.  
  147. Choose from this list of recommended spells
  148.  
  149. Apache Hadoop + Apache Kafka Cluster
  150. Apache Hadoop + Apache Spark Cluster
  151. Apache Hadoop Cluster
  152. Apache Hadoop/Spark/Zeppelin Realtime Syslog Analytics
  153. Apache Spark Cluster
  154. HA Ghost with MySQL
  155. Kubernetes Core
  156. Landscape
  157. OpenStack with NovaKVM
  158. OpenStack with NovaLXD
  159. The Canonical Distribution of Kubernetes
  160. ```
  161.  
  162. As it works perfectly. So, it seems that the *snap* version of *conjure-up* is kind of *broken*.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement