Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

juju bootstrap will create instances through my private cloud(openstack), and run some command just like install mongo, jujud bootstrap, it will appears this:

2013-11-19 11:27:32 DEBUG juju.agent agent.go:442 initializing address [localhost:27017]
2013-11-19 11:27:32 INFO juju.state open.go:68 opening state; mongo addresses: ["localhost:27017"]; entity ""

and didn't do anything any more.

I hook the code and found the deadloop occurs in the function tls.Handshake.

Any one knows how to deal with it?

here is my environment.ymal

default: openstack

environments:
  ## https://juju.ubuntu.com/get-started/openstack/
  openstack:
    type: openstack
    admin-secret: dcf35222cf147ff2671658aa153a1ecf
    control-bucket: juju-openstack-25a4a752eeeb093324743335884df7b3
    auth-url: "http://xx.xx.xxx.xxx:5000/v2.0/"
    # override if your workstation is running a different series to which you are deploying
    # default-series: precise
    # The following are used for userpass authentication (the default)
    auth-mode: userpass
    # Usually set via the env variable OS_USERNAME, but can be specified here
    username: admin
    # Usually set via the env variable OS_PASSWORD, but can be specified here
    password: oHgb57uilT
    # Usually set via the env variable OS_TENANT_NAME, but can be specified here
    tenant-name: demo
    region: RegionOne
    state-port: 27017

and juju --debug bootstrap --upload-tools

juju --debug bootstrap --upload-tools
2013-11-20 02:06:05 INFO juju.provider.openstack provider.go:126 opening environment "openstack"
2013-11-20 02:06:05 DEBUG juju.environs.tools storage.go:87 Uploading tools for [unknown precise]
2013-11-20 02:06:05 DEBUG juju.environs.tools build.go:109 looking for: bin/juju
2013-11-20 02:06:05 DEBUG juju.environs.tools build.go:150 checking: /home/chenxi05/project/gocode/bin/jujud
2013-11-20 02:06:05 INFO juju.environs.tools build.go:156 found existing jujud
2013-11-20 02:06:05 INFO juju.environs.tools build.go:166 target: /tmp/juju-tools098431528/jujud
2013-11-20 02:06:05 DEBUG juju.environs.tools build.go:217 forcing version to 1.13.3.1
2013-11-20 02:06:05 DEBUG juju.environs.tools build.go:37 adding entry: &tar.Header{Name:"FORCE-VERSION", Mode:436, Uid:0, Gid:0, Size:8, ModTime:time.Time{sec:63520509965, nsec:0, loc:(*time.Location)(0x1095da0)}, Typeflag:0x30, Linkname:"", Uname:"ubuntu", Gname:"ubuntu", Devmajor:0, Devminor:0, AccessTime:time.Time{sec:63520509965, nsec:0, loc:(*time.Location)(0x1095da0)}, ChangeTime:time.Time{sec:63520509965, nsec:0, loc:(*time.Location)(0x1095da0)}}
2013-11-20 02:06:05 DEBUG juju.environs.tools build.go:37 adding entry: &tar.Header{Name:"jujud", Mode:509, Uid:0, Gid:0, Size:19240512, ModTime:time.Time{sec:63520509965, nsec:0, loc:(*time.Location)(0x1095da0)}, Typeflag:0x30, Linkname:"", Uname:"ubuntu", Gname:"ubuntu", Devmajor:0, Devminor:0, AccessTime:time.Time{sec:63520509965, nsec:0, loc:(*time.Location)(0x1095da0)}, ChangeTime:time.Time{sec:63520509965, nsec:0, loc:(*time.Location)(0x1095da0)}}
2013-11-20 02:06:08 INFO juju.environs.tools storage.go:106 built 1.13.3.1-unknown-amd64 (4206kB)
2013-11-20 02:06:08 INFO juju.environs.tools storage.go:112 uploading 1.13.3.1-precise-amd64
2013-11-20 02:06:09 INFO juju.environs.tools storage.go:112 uploading 1.13.3.1-unknown-amd64
2013-11-20 02:06:10 INFO juju.environs.tools tools.go:29 reading tools with major version 1
2013-11-20 02:06:10 INFO juju.environs.tools tools.go:34 filtering tools by version: 1.13.3.1
2013-11-20 02:06:10 INFO juju.environs.tools tools.go:37 filtering tools by series: precise
2013-11-20 02:06:10 DEBUG juju.environs.tools storage.go:41 reading v1.* tools
2013-11-20 02:06:11 DEBUG juju.environs.tools storage.go:61 found 1.13.3.1-precise-amd64
2013-11-20 02:06:11 DEBUG juju.environs.tools storage.go:61 found 1.13.3.1-unknown-amd64
2013-11-20 02:06:21 INFO juju.environs.boostrap bootstrap.go:57 bootstrapping environment "openstack"
2013-11-20 02:06:21 INFO juju.environs.tools tools.go:29 reading tools with major version 1
2013-11-20 02:06:21 INFO juju.environs.tools tools.go:34 filtering tools by version: 1.13.3.1
2013-11-20 02:06:21 INFO juju.environs.tools tools.go:37 filtering tools by series: precise
2013-11-20 02:06:21 DEBUG juju.environs.tools storage.go:41 reading v1.* tools
2013-11-20 02:06:21 DEBUG juju.environs.tools storage.go:61 found 1.13.3.1-precise-amd64
2013-11-20 02:06:21 DEBUG juju.environs.tools storage.go:61 found 1.13.3.1-unknown-amd64
2013-11-20 02:06:21 DEBUG juju.environs.simplestreams simplestreams.go:351 cannot load index "http://10.38.250.221:8081/v1/AUTH_c8ac55a301db40e4ac7380b7994c2a34/juju-dist/streams/v1/index.sjson": unauthorised access to URL "http://xx.xx.xxx.xxx:8081/v1/AUTH_c8ac55a301db40e4ac7380b7994c2a34/juju-dist/streams/v1/index.sjson"
2013-11-20 02:06:21 DEBUG juju.environs.simplestreams simplestreams.go:351 cannot load index "http://127.0.0.1:8001/releases/streams/v1/index.sjson": cannot find URL "http://127.0.0.1:8001/releases/streams/v1/index.sjson" not found
2013-11-20 02:06:21 DEBUG juju.environs.simplestreams simplestreams.go:351 cannot load index "http://10.38.250.221:8081/v1/AUTH_c8ac55a301db40e4ac7380b7994c2a34/juju-dist/streams/v1/index.json": unauthorised access to URL "http://xx.xx.xxx.xxx:8081/v1/AUTH_c8ac55a301db40e4ac7380b7994c2a34/juju-dist/streams/v1/index.json"
2013-11-20 02:06:21 DEBUG juju.environs.simplestreams simplestreams.go:356 read metadata index at "http://127.0.0.1:8001/releases/streams/v1/index.json"
2013-11-20 02:06:21 DEBUG juju.environs.simplestreams simplestreams.go:491 candidate matches for products ["com.ubuntu.cloud:server:12.04:amd64"] are [0xc20018c580]
2013-11-20 02:06:21 DEBUG juju.environs.simplestreams simplestreams.go:836 finding products at path "streams/v1/com.ubuntu.cloud:released:aws.json"
2013-11-20 02:06:21 DEBUG juju.provider.openstack provider.go:646 openstack user data; 10696 bytes
2013-11-20 02:06:22 INFO juju.provider.openstack provider.go:693 started instance "fabe2986-66e4-4ce1-affe-83c38f250369"
2013-11-20 02:06:23 INFO juju supercommand.go:284 command finished

what's more, I copy the releases/streams/v1/index.json to local, and point the imageid to my glanceid, the instance started and juju install and start the mongodb automation. When the jujud bootstrap start, it hangs everytime. help~~~ please~~~

share|improve this question

closed as off-topic by fossfreedom Apr 30 at 21:02

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This describes a problem that can't be reproduced that seemingly went away on its own or was only relevant to a very specific period of time. It's off-topic as it's unlikely to help future readers." – fossfreedom
If this question can be reworded to fit the rules in the help center, please edit the question.

    
Could you share the contents of ~/.juju/environments.yaml please? Also, could you re-run juju bootstrap using juju --verbose bootstrap –  jackweirdy Nov 19 '13 at 18:08
1  
Actually, use --debug instead of --verbose. –  thumper Nov 20 '13 at 0:41
    
This question hasn't been updated in a while and is using an unsupported version of Juju, so I'm going to vote to close it. If this is still an issue please try with Juju 1.18+, thanks! –  Jorge Castro Apr 30 at 20:50
add comment

Browse other questions tagged or ask your own question.