Failure while attempting to deploy charm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Amulet |
Fix Released
|
Critical
|
Marco Ceppi |
Bug Description
I have been having this problem when trying to use Amulet as of Friday night(1/24/2014). After importing and attempting to add a new charm, I receive the following error after running d.setup() , I have tried using amulet from trunk and the packaged source.
Below is a quick example of adding memcached, In my /tmp dir it appears that the
amulet_
In [2]: d = amulet.Deployment()
In [3]: d.add('memcached')
In [4]: d.setup()
-------
OSError Traceback (most recent call last)
<ipython-
----> 1 d.setup()
/usr/lib/
123 _, s = tempfile.
124 with open(s, 'w') as f:
--> 125 f.write(
126
127 try:
/usr/lib/
102
103 def schema(self):
--> 104 return self.deployer_
105
106 def configure(self, service, options):
/usr/lib/
144 def deployer_map(self, services, relations):
145 if self.use_sentries:
--> 146 self.build_
147
148 deployer_map = {
/usr/lib/
171 if not '_has_sentry' in details or not details[
172 sentry = Builder('%s-sentry' % service, self.sentry_
--> 173 subordinate=True)
174 self.add(
175 self.relate(
/usr/lib/
37
38 if subordinate:
---> 39 self.require(
40
41 os.chmod(
/usr/lib/
45 opts = {}
46 opts['interface'] = interface
---> 47 self._add_
48
49 def provide(self, relation, interface, opts=None):
/usr/lib/
73 os.symlink(
74
---> 75 self.write_
76
77 def write_metadata(
/usr/lib/
80 m.write(metadata)
81
---> 82 self.save()
83
84 def save(self):
/usr/lib/
91 stderr=devnull)
92 except subprocess.
---> 93 raise IOError('Unable to update bzr repo')
OSError: Unable to update bzr repo
description: | updated |
Changed in amulet: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
assignee: | nobody → Marco Ceppi (marcoceppi) |
milestone: | none → 1.2.1 |
Changed in amulet: | |
status: | Fix Committed → Fix Released |
To Reproduce This:
Start from a freshly installed OS.
1.) Create an instance with canonistack
2.) Log into the instance and issue the following:
sudo add-apt-repository ppa:juju/stable
sudo apt-get update
sudo apt-get install amulet
3.) Install Ipython3
sudo apt-get install ipython3
4.) launch ipython3 and issue the following
import amulet 'mysql: db', 'mediawiki:db') 'mediawiki' )
d = amulet.Deployer()
d.add('mysql')
d.add('mediawiki')
d.relate(
d.expose(
d.setup()
After Issuing d.setup() the bzr repo will fail to create.