Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2015
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.88 KB | None | 0 0
  1. maasadmin@maas:~$ juju bootstrap --to state-machine.maas
  2. Bootstrapping environment "restonMaas"
  3. Starting new instance for initial state server
  4. Launching instance
  5. - /MAAS/api/1.0/nodes/node-53290f10-4dfd-11e5-90cf-000c29bc5f49/
  6. Installing Juju agent on bootstrap instance
  7. Waiting for address
  8. Attempting to connect to state-machine.maas:22
  9. Attempting to connect to state-machine.maas:22
  10. Attempting to connect to 172.16.42.11:22
  11. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  12. @ WARNING: POSSIBLE DNS SPOOFING DETECTED! @
  13. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  14. The ECDSA host key for state-machine.maas has changed,
  15. and the key for the corresponding IP address 172.16.42.11
  16. has a different value. This could either mean that
  17. DNS SPOOFING is happening or the IP address for the host
  18. and its host key have changed at the same time.
  19. Offending key for IP in /home/maasadmin/.ssh/known_hosts:6
  20. remove with: ssh-keygen -f "/home/maasadmin/.ssh/known_hosts" -R 172.16.42.11
  21. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  22. @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
  23. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  24. IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
  25. Someone could be eavesdropping on you right now (man-in-the-middle attack)!
  26. It is also possible that a host key has just been changed.
  27. The fingerprint for the ECDSA key sent by the remote host is
  28. 6e:76:ae:05:28:dc:34:32:ee:63:c4:bb:4e:2f:eb:84.
  29. Please contact your system administrator.
  30. Add correct host key in /home/maasadmin/.ssh/known_hosts to get rid of this message.
  31. Offending ECDSA key in /home/maasadmin/.ssh/known_hosts:8
  32. remove with: ssh-keygen -f "/home/maasadmin/.ssh/known_hosts" -R state-machine.maas
  33. Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks.
  34. Logging to /var/log/cloud-init-output.log on remote host
  35. Running apt-get update
  36. Running apt-get upgrade
  37. Installing package: curl
  38. Installing package: cpu-checker
  39. Installing package: bridge-utils
  40. Installing package: rsyslog-gnutls
  41. Installing package: cloud-utils
  42. Installing package: cloud-image-utils
  43. Installing package: tmux
  44. Fetching tools: curl -sSfw 'tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s ' --retry 10 -o $bin/tools.tar.gz <[https://streams.canonical.com/juju/tools/releases/juju-1.24.5-trusty-amd64.tgz]>
  45. Bootstrapping Juju machine agent
  46. Starting Juju machine agent (jujud-machine-0)
  47. Bootstrap agent installed
  48. Waiting for API to become available
  49. Waiting for API to become available
  50. Waiting for API to become available
  51. Bootstrap complete
  52. maasadmin@maas:~$ juju deploy juju-gui --to 0 && juju expose juju-gui
  53. Added charm "cs:trusty/juju-gui-38" to the environment.
  54. maasadmin@maas:~$ vi restonsmall.yaml
  55. maasadmin@maas:~$ juju quickstart restonsmall.yaml
  56. juju quickstart v2.2.1
  57. contents loaded for bundle (services: 19)
  58. ssh-agent has been started.
  59. To interact with Juju or quickstart again after quickstart
  60. finishes, please run the following in a terminal to start ssh-agent:
  61. eval `ssh-agent`
  62.  
  63. reusing the already bootstrapped restonMaas environment
  64. retrieving the environment status
  65. retrieving the Juju environment credentials
  66. connecting to wss://172.16.42.11:17070/environment/100f016e-bb59-4cbe-81b3-96775a8e64a5/api
  67. environment type: maas
  68. bootstrap node series: trusty
  69. charm URL: cs:trusty/juju-gui-38
  70. service juju-gui already deployed
  71. reusing unit juju-gui/0
  72. juju-gui/0 is ready on machine 0
  73. unit placed on state-machine.maas
  74. machine 0 is started
  75. the Juju GUI is ready: retrieving service configuration
  76.  
  77. Juju GUI URL: https://state-machine.maas
  78. username: admin
  79. password: t1nk3r
  80.  
  81. connecting to the Juju GUI server
  82. requesting a deployment of bundle with the following services:
  83. ceilometer, ceilometer-agent, ceph, ceph-osd, ceph-radosgw, cinder, cinder-ceph, glance, keystone, mongodb, mysql, neutron-api, neutron-gateway, neutron-openvswitch, nova-cloud-controller, nova-compute, ntp, openstack-dashboard, rabbitmq-server
  84. bundle deployment request accepted
  85. use the GUI to check the bundle deployment progress
  86. opening the browser at
  87. https://state-machine.maas/?authtoken=2d3804bf7e7a46fa846f821ec2f50b7b
  88. done!
  89.  
  90. Run "juju quickstart -e restonMaas" again if you want
  91. to reopen and log in to the GUI browser later.
  92. Run "juju quickstart -i" if you want to manage
  93. or bootstrap your Juju environments using the
  94. interactive session.
  95. Run "juju destroy-environment restonMaas [-y]"
  96. to destroy the environment you just bootstrapped.
  97. maasadmin@maas:~$ nslookup state-machine.maas
  98. Server: 127.0.0.1
  99. Address: 127.0.0.1#53
  100.  
  101. Name: state-machine.maas
  102. Address: 172.16.42.11
  103.  
  104. maasadmin@maas:~$ juju-deployer -c restonsmall.yaml
  105. Traceback (most recent call last):
  106. File "/usr/bin/juju-deployer", line 9, in <module>
  107. load_entry_point('juju-deployer==0.5.1', 'console_scripts', 'juju-deployer')()
  108. File "/usr/lib/python2.7/dist-packages/deployer/cli.py", line 135, in main
  109. run()
  110. File "/usr/lib/python2.7/dist-packages/deployer/cli.py", line 158, in run
  111. env_name = get_env_name(options.juju_env)
  112. File "/usr/lib/python2.7/dist-packages/deployer/utils.py", line 374, in get_env_name
  113. raise ValueError("No Environment specified")
  114. ValueError: No Environment specified
  115. maasadmin@maas:~$ juju-deployer -c restonsmall.yaml -e restonMaas
  116. 2015-09-03 09:25:18 Using deployment restonsmall.yaml
  117. 2015-09-03 09:25:18 Starting deployment of restonsmall.yaml
  118. 2015-09-03 09:25:20 Creating machines...
  119. 2015-09-03 09:25:20 Machine 1 will be created
  120. Traceback (most recent call last):
  121. File "/usr/bin/juju-deployer", line 9, in <module>
  122. load_entry_point('juju-deployer==0.5.1', 'console_scripts', 'juju-deployer')()
  123. File "/usr/lib/python2.7/dist-packages/deployer/cli.py", line 135, in main
  124. run()
  125. File "/usr/lib/python2.7/dist-packages/deployer/cli.py", line 233, in run
  126. importer.Importer(env, deployment, options).run()
  127. File "/usr/lib/python2.7/dist-packages/deployer/action/importer.py", line 303, in run
  128. self.create_machines()
  129. File "/usr/lib/python2.7/dist-packages/deployer/action/importer.py", line 114, in create_machines
  130. constraints=spec.get('constraints'))
  131. File "/usr/lib/python2.7/dist-packages/deployer/env/go.py", line 42, in add_machine
  132. constraints=parse_constraints(constraints))['Machine']
  133. File "/usr/lib/python2.7/dist-packages/jujuclient.py", line 832, in add_machine
  134. return self.add_machines([params])['Machines'][0]
  135. File "/usr/lib/python2.7/dist-packages/jujuclient.py", line 843, in add_machines
  136. "MachineParams": machines}})
  137. File "/usr/lib/python2.7/dist-packages/jujuclient.py", line 281, in _rpc
  138. raise EnvError(result)
  139. jujuclient.EnvError: <Env Error - Details:
  140. { u'Error': u'json: cannot unmarshal string into Go value of type []string',
  141. u'RequestId': 1,
  142. u'Response': { }}
  143. >
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement