[Bug 955576] [NEW] 'local:' services not started on reboot
Jamie Strandboge
jamie at ubuntu.com
Wed Mar 14 22:52:04 UTC 2012
Public bug reported:
If I use setup ~/.juju/environments.yaml to have:
environments:
local:
type: local
data-dir: /home/jamie/juju-local
admin-secret: abcdefghijklmnopqrstuvwxyz1234567890
control-bucket: foo-bucket
default-series: oneiric
Then do:
$ juju bootstrap
$ juju deploy --repository=/usr/share/doc/juju/examples local:oneiric/mysql
$ juju deploy --repository=/usr/share/doc/juju/examples local:oneiric/wordpress
(wait a while)
$ juju add-relation wordpress mysql
$ juju expose wordpress
At this point everything is working. I can see services as started and I
can bring up the wordpress page in the public address for the wordpress
service. This is great!
However, if I reboot the host, nothing is started:
* zookeeper
* twisted storage
* juju machine agent
* lxc instances
If I try to 'juju bootstrap', I cannot because it tells me it is already bootstrapped. Instead I have to grab from ps the commands to start things:
$ java -cp /home/jamie/juju-local/jamie-local/zookeeper:/usr/share/java/jline.jar:/usr/share/java/log4j-1.2.jar:/usr/share/java/xercesImpl.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/zookeeper.jar -Dzookeeper.log.dir=/home/jamie/juju-local/jamie-local/zookeeper/log -Dzookeeper.root.logger=INFO,CONSOLE -Dlog4j.configuration=file:/home/jamie/juju-local/jamie-local/zookeeper/log4j.properties org.apache.zookeeper.server.quorum.QuorumPeerMain /home/jamie/juju-local/jamie-local/zookeeper/zoo.cfg &
$ /usr/bin/python /usr/bin/twistd --pidfile /home/jamie/juju-local/jamie-local/storage-server.pid --logfile /home/jamie/juju-local/jamie-local/storage-server.log -d /home/jamie/juju-local/jamie-local/files web --port tcp:33698:interface=192.168.123.1 --path /home/jamie/juju-local/jamie-local/files &
$ lxc-start --daemon -n jamie-local-mysql-0 -l DEBUG -o /home/jamie/juju-local/jamie-local/units/mysql-0/container.log
$ lxc-start --daemon -n jamie-local-wordpress-0 -l DEBUG -o /home/jamie/juju-local/jamie-local/units/wordpress-0/container.log
** Affects: juju (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to juju in Ubuntu.
https://bugs.launchpad.net/bugs/955576
Title:
'local:' services not started on reboot
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/juju/+bug/955576/+subscriptions
More information about the Ubuntu-server-bugs
mailing list