<div dir="ltr">Excellent, thanks for the clarification John. I'll update my environments.yaml file now.<div><br></div><div>Cheers,<br><div class="gmail_extra"><br><br><div class="gmail_quote">On 24 January 2013 15:15, John Meinel <span dir="ltr"><<a href="mailto:john@arbash-meinel.com" target="_blank">john@arbash-meinel.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><p>There is an "openstack_s3" provider and an "openstack" provider that uses swift. I'm using the latter, and it is working fine.</p>


<p>John<br>
=:-></p>
<div class="gmail_quote"><div><div class="h5">On Jan 24, 2013 4:51 PM, "Lee Tobin" <<a href="mailto:leetobin@gmail.com" target="_blank">leetobin@gmail.com</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div><div class="h5">
<div dir="ltr">Thanks for the reply Martin. Yes, I should have been more explicit when explaining my problem.<div><br></div><div>I understand it's not the done thing to experiment with Juju in this manner however I wanted to do quite a bit of destructive testing hence the virtualised environment.</div>




<div><br></div><div>During install, I tweaked config files quite a bit so I'm not surprised it has zombie entries. </div><div><br></div><div>The openstack provier doesn't support swift though? Correct? Swift is also a requirement for my testing.</div>




<div><br></div><div>I'll try investigating the 'instance_type' issue you discovered.</div><div><br></div><div>Cheers,</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On 23 January 2013 17:59, Martin Packman <span dir="ltr"><<a href="mailto:martin.packman@canonical.com" target="_blank">martin.packman@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">




<div>On 19/01/2013, Lee Tobin <<a href="mailto:leetobin@gmail.com" target="_blank">leetobin@gmail.com</a>> wrote:<br>
> Hello,<br>
><br>
> I'm new to Juju, it looks great however could someone please help?<br>
<br>
</div>Note that the normal way to experiment with Juju on your own box is to<br>
use the local provider:<br>
<br>
<<a href="http://askubuntu.com/questions/65359/how-do-i-configure-juju-for-local-usage" target="_blank">http://askubuntu.com/questions/65359/how-do-i-configure-juju-for-local-usage</a>><br>
<br>
If you want to test Juju on Openstack you really need a number of<br>
machines, so getting an account on the HP Cloud is one of the easiest<br>
options:<br>
<br>
<<a href="https://www.hpcloud.com/" target="_blank">https://www.hpcloud.com/</a>><br>
<br>
I doubt anyone else has tried running Juju against devstack in a VM,<br>
so even if you get your Openstack deployment fixed, you may still find<br>
you can't do much with it.<br>
<div><br>
> So, I've created 2 VMs in Virtualbox, a Juju box and a Devstack box. Single<br>
> node Devstack box with swift running.<br>
<br>
</div>It's really helpful when reporting problems to be explicit about what<br>
exactly you're using, what version of Ubuntu, what version of<br>
Openstack set up how, what version of Juju, and so on.<br>
<br>
The first confusing thing is you're using the EC2 provider rather than<br>
the native Openstack one, but have a bunch of extra config options in<br>
your environments.yaml that don't actually apply. If you switch,<br>
running `juju -v bootstrap` gives details about the underlying<br>
Openstack api calls and their responses, which can be useful for<br>
diagnosing problems.<br>
<br>
Unmangled from your log, the most relevent exception seems indicate<br>
your openstack deployment is slightly misconfigured:<br>
<br>
Traceback (most recent call last):<br>
  File "/opt/stack/nova/nova/compute/manager.py", line 688, in _run_instance<br>
    injected_files, admin_password)<br>
  File "/opt/stack/nova/nova/compute/manager.py", line 960, in _spawn<br>
    block_device_info)<br>
  File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1039, in spawn<br>
    block_device_info)<br>
  File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1952, in<br>
_create_domain_and_network<br>
    self.firewall_driver.prepare_instance_filter(instance, network_info)<br>
  File "/opt/stack/nova/nova/virt/firewall.py", line 188, in<br>
prepare_instance_filter<br>
    ipv4_rules, ipv6_rules = self.instance_rules(instance, network_info)<br>
  File "/opt/stack/nova/nova/virt/firewall.py", line 403, in instance_rules<br>
    instance)<br>
  File "/opt/stack/nova/nova/network/api.py", line 253, in get_instance_nw_info<br>
    result = self._get_instance_nw_info(context, instance)<br>
  File "/opt/stack/nova/nova/network/api.py", line 263, in _get_instance_nw_info<br>
    'rxtx_factor': instance['instance_type']['rxtx_factor'],<br>
TypeError: string indices must be integers<br>
<br>
You could try working out how your 'instance_type' ended up being a<br>
string rather than a dict, but as mentioned at the start, you probably<br>
just want to use something other than a local devstack for playing<br>
with juju.<br>
<span><font color="#888888"><br>
Martin<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Lee</div>
</div>
<br></div></div><span class=""><font color="#888888">--<br>
Juju mailing list<br>
<a href="mailto:Juju@lists.ubuntu.com" target="_blank">Juju@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
<br></font></span></blockquote></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Lee</div>
</div></div></div>