I am going to assume these two problems are related, but maybe not. I have MAAS running using 12.04. I still have the problem I mentioned in another thread regarding maas-enlist, but I went ahead and enlisted a node manually via media. That all worked fine and I was able commission a node, etc.
So I installed juju from ppa:juju/pkgs. I set up an environment.yaml file...
Code:
environments:
maas:
type: maas
maas-server: 'http://localhost:80/MAAS'
maas-oauth: 'MYKEY'
admin-secret: 'nothing'
default-series: precise
When I do a juju -v bootstrap, I get an error:
Code:
2013-01-01 00:30:38,317 ERROR Listing valid maas-tags failed: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
.
.
.
<h2>
The requested URL /MAAS/api/1.0/tags/ was not found on this server.
</h2>
.
.
.
2013-01-01 00:30:38,319 INFO Bootstrapping environment 'maas' (origin: distro type: maas)...
2013-01-01 00:30:38,415 DEBUG Verifying writable storage
2013-01-01 00:30:38,523 DEBUG Launching juju bootstrap instance.
2013-01-01 00:30:41,432 INFO 'bootstrap' command finished successfully
So it had an error retrieving tags (I presume api change or something). But then says it was successful.
Then when I try and do a juju -v status:
Code:
2013-01-01 00:21:03,770 DEBUG Initializing juju status runtime
2013-01-01 00:21:03,776 INFO Connecting to environment...
2013-01-01 00:21:04,012 DEBUG Connecting to environment using peanut2...
2013-01-01 00:21:04,013 DEBUG Spawning SSH process with remote_user="ubuntu" remote_host="peanut2" remote_port="2181" local_port="45988".
2013-01-01 00:21:04,521:13325(0x7f8afd86c700):ZOO_INFO@log_env@658: Client environment:zookeeper.version=zookeeper C client 3.3.5
2013-01-01 00:21:04,521:13325(0x7f8afd86c700):ZOO_INFO@log_env@662: Client environment:host.name=peanut1
2013-01-01 00:21:04,521:13325(0x7f8afd86c700):ZOO_INFO@log_env@669: Client environment:os.name=Linux
2013-01-01 00:21:04,521:13325(0x7f8afd86c700):ZOO_INFO@log_env@670: Client environment:os.arch=3.2.0-29-generic
2013-01-01 00:21:04,521:13325(0x7f8afd86c700):ZOO_INFO@log_env@671: Client environment:os.version=#46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012
2013-01-01 00:21:04,522:13325(0x7f8afd86c700):ZOO_INFO@log_env@679: Client environment:user.name=mike
2013-01-01 00:21:04,523:13325(0x7f8afd86c700):ZOO_INFO@log_env@687: Client environment:user.home=/home/mike
2013-01-01 00:21:04,523:13325(0x7f8afd86c700):ZOO_INFO@log_env@699: Client environment:user.dir=/etc
2013-01-01 00:21:04,523:13325(0x7f8afd86c700):ZOO_INFO@zookeeper_init@727: Initiating client connection, host=localhost:45988 sessionTimeout=10000 watcher=0x7f8afb8106b0 sessionId=0 sessionPasswd=<null> context=0x19ab4d0 flags=0
2013-01-01 00:21:04,523:13325(0x7f8af3fff700):ZOO_INFO@check_events@1585: initiated connection to server [127.0.0.1:45988]
2013-01-01 00:21:04,604:13325(0x7f8af3fff700):ZOO_ERROR@handle_socket_error_msg@1603: Socket [127.0.0.1:45988] zk retcode=-4, errno=112(Host is down): failed while receiving a server response
2013-01-01 00:21:07,940:13325(0x7f8af3fff700):ZOO_WARN@zookeeper_interest@1461: Exceeded deadline by 83ms
2013-01-01 00:21:07,940:13325(0x7f8af3fff700):ZOO_ERROR@handle_socket_error_msg@1579: Socket [127.0.0.1:45988] zk retcode=-4, errno=111(Connection refused): server refused to accept the client
2013-01-01 00:21:11,277:13325(0x7f8af3fff700):ZOO_ERROR@handle_socket_error_msg@1579: Socket [127.0.0.1:45988] zk retcode=-4, errno=111(Connection refused): server refused to accept the client
2013-01-01 00:21:14,614:13325(0x7f8af3fff700):ZOO_ERROR@handle_socket_error_msg@1579: Socket [127.0.0.1:45988] zk retcode=-4, errno=111(Connection refused): server refused to accept the client
2013-01-01 00:21:17,950:13325(0x7f8af3fff700):ZOO_ERROR@handle_socket_error_msg@1579: Socket [127.0.0.1:45988] zk retcode=-4, errno=111(Connection refused): server refused to accept the client
Any ideas what's going on here?
Bookmarks