openstack havana bootstrap

Bug #1260007 reported by tindaro tornabene
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
juju-core
New
Undecided
Unassigned

Bug Description

 juju --version
1.16.5-precise-amd64

2013-12-11 16:57:52 DEBUG juju.environs.simplestreams simplestreams.go:436 read metadata index at "http://controller:8080/v1/AUTH_d0df6fee11754175b5675e2dc2c80aac/juju-d6efe413458b2a9f7ef37f85dc71d0e4/tools/streams/v1/index.json"
2013-12-11 16:57:52 DEBUG juju.environs.simplestreams simplestreams.go:577 candidate matches for products ["com.ubuntu.juju:12.04:amd64" "com.ubuntu.juju:12.04:i386" "com.ubuntu.juju:12.04:arm"] are [{Wed, 11 Dec 2013 17:57:51 +0100 products:1.0 content-download [] streams/v1/com.ubuntu.juju:released:tools.json [com.ubuntu.juju:12.04:amd64 com.ubuntu.juju:12.04:armhf com.ubuntu.juju:12.04:i386 com.ubuntu.juju:12.10:amd64 com.ubuntu.juju:12.10:i386 com.ubuntu.juju:13.04:amd64 com.ubuntu.juju:13.04:i386 com.ubuntu.juju:13.10:amd64 com.ubuntu.juju:13.10:armhf com.ubuntu.juju:13.10:i386 com.ubuntu.juju:14.04:amd64 com.ubuntu.juju:14.04:armhf com.ubuntu.juju:14.04:i386]}]
2013-12-11 16:57:52 DEBUG juju.environs.simplestreams simplestreams.go:889 finding products at path "streams/v1/com.ubuntu.juju:released:tools.json"
2013-12-11 16:57:52 INFO juju.environs.boostrap bootstrap.go:71 environs: picked newest version: 1.16.5
2013-12-11 16:57:52 DEBUG juju.environs.simplestreams simplestreams.go:458 fetchData failed for "http://controller:8080/v1/AUTH_d0df6fee11754175b5675e2dc2c80aac/juju-d6efe413458b2a9f7ef37f85dc71d0e4/streams/v1/index.sjson": failed to GET object streams/v1/index.sjson from container juju-d6efe413458b2a9f7ef37f85dc71d0e4
caused by: Resource at http://controller:8080/v1/AUTH_d0df6fee11754175b5675e2dc2c80aac/juju-d6efe413458b2a9f7ef37f85dc71d0e4/streams/v1/index.sjson not found
caused by: request (http://controller:8080/v1/AUTH_d0df6fee11754175b5675e2dc2c80aac/juju-d6efe413458b2a9f7ef37f85dc71d0e4/streams/v1/index.sjson) returned unexpected status: 404; error info: <html><h1>Not Found</h1><p>The resource could not be found.</p></html>
2013-12-11 16:57:52 DEBUG juju.environs.simplestreams simplestreams.go:432 cannot load index "http://controller:8080/v1/AUTH_d0df6fee11754175b5675e2dc2c80aac/juju-d6efe413458b2a9f7ef37f85dc71d0e4/streams/v1/index.sjson": invalid URL "http://controller:8080/v1/AUTH_d0df6fee11754175b5675e2dc2c80aac/juju-d6efe413458b2a9f7ef37f85dc71d0e4/streams/v1/index.sjson" not found
2013-12-11 16:57:52 DEBUG juju.environs.simplestreams simplestreams.go:458 fetchData failed for "http://controller:8080/v1/AUTH_d0df6fee11754175b5675e2dc2c80aac/juju-d6efe413458b2a9f7ef37f85dc71d0e4/streams/v1/index.json": failed to GET object streams/v1/index.json from container juju-d6efe413458b2a9f7ef37f85dc71d0e4
caused by: Resource at http://controller:8080/v1/AUTH_d0df6fee11754175b5675e2dc2c80aac/juju-d6efe413458b2a9f7ef37f85dc71d0e4/streams/v1/index.json not found
caused by: request (http://controller:8080/v1/AUTH_d0df6fee11754175b5675e2dc2c80aac/juju-d6efe413458b2a9f7ef37f85dc71d0e4/streams/v1/index.json) returned unexpected status: 404; error info: <html><h1>Not Found</h1><p>The resource could not be found.</p></html>
2013-12-11 16:57:52 DEBUG juju.environs.simplestreams simplestreams.go:432 cannot load index "http://controller:8080/v1/AUTH_d0df6fee11754175b5675e2dc2c80aac/juju-d6efe413458b2a9f7ef37f85dc71d0e4/streams/v1/index.json": invalid URL "http://controller:8080/v1/AUTH_d0df6fee11754175b5675e2dc2c80aac/juju-d6efe413458b2a9f7ef37f85dc71d0e4/streams/v1/index.json" not found
2013-12-11 16:57:53 DEBUG juju.environs.simplestreams simplestreams.go:436 read metadata index at "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson"
2013-12-11 16:57:53 DEBUG juju.environs.simplestreams simplestreams.go:440 skipping index because of error getting latest metadata "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson": index file has no data for cloud {regionOne http://controller:5000/v2.0} not found
2013-12-11 16:57:53 DEBUG juju.environs.simplestreams simplestreams.go:436 read metadata index at "http://cloud-images.ubuntu.com/releases/streams/v1/index.json"
2013-12-11 16:57:53 DEBUG juju.environs.simplestreams simplestreams.go:440 skipping index because of error getting latest metadata "http://cloud-images.ubuntu.com/releases/streams/v1/index.json": index file has no data for cloud {regionOne http://controller:5000/v2.0} not found
2013-12-11 16:57:53 ERROR juju supercommand.go:282 cannot start bootstrap instance: index file has no data for cloud {regionOne http://controller:5000/v2.0} not found

Curtis Hovey (sinzui)
Changed in juju-core:
status: New → Incomplete
Revision history for this message
Curtis Hovey (sinzui) wrote :

Looks like Juju couldn't fix tools for the private cloud. Were tools published to a location in the private cloud? Does the tools-url in the config point to the tools path in the bucket's location.

eg. Did to select the tools collect the juju tools you want in the cloud and run juju sync-tools to places the tools in you private bucket, or did someone do the same to a public/shared bucket in the cloud?

I suspect that juju does work if you upload the tools while bootstrapping
    juju bootstrap --upload-tools.

tags: added: bootstrap openstack-provider
Revision history for this message
tindaro tornabene (tindaro-tornabene) wrote :
Download full text (4.2 KiB)

HiI solved this problem this way :
my bucket control did not contain the image of the simplestream glance . I created the 2 files imagemetadata.json index.json the image previously uploaded to glance

| ID | Name | Disk Format | Container Format | Size | Status |

| F5fb8c22 - 1bd2 - 4cfd - ACD1 - 10cd7fc45c32 | CirrOS 0.3.1 | qcow2 | coffins | 13,147,648 | active |
| 0600ba77 - 53f7 - 4772 - b5ba - df18ddeb71a3 | precise -server- amd64 - cloudimg | qcow2 | coffins | 255 066 112 | active |

and using the following command juju I created the 2 files .
# juju -metadata generate- image -i 0600ba77 - 53f7 - 4772 - b5ba - df18ddeb71a3
Boilerplate image metadata files " index.json , imagemetadata.json " not have been written to ~ /. Juju .
Copy the files to the path " streams/v1 " in your public cloud 's bucket .
after which I uploaded to the bucket all in control by Swift .
# swift upload juju-64a08a56c0390b3124ac6edaa6d282e7/streams/v1 / imagemetadata.json index.json
I check the picture
# juju- validated metadata -images
ids for image matching region " regionOne "
0600ba77 - 53f7 - 4772 - b5ba - df18ddeb71a3
Everything is ok .
Anyway now when I search for a file index.sjon part that I do not know how to create a file is signed ? ? . I can help utilities juju -metadata sign? ?
finally launch
# bootstrap juju and me is instantiated in OpenStack
logg I find myself in this
-------------------------------------------------- -----
} : Mirror date for " com.ubuntu.juju : released: tools" not found
13.12.2013 08:28:08 DEBUG juju.environs.simplestreams simplestreams.go : 436 read metadata index at
13.12.2013 08:28:08 DEBUG juju.environs.simplestreams simplestreams.go : 577 candidate matches for products [" com.ubuntu.juju : 12.04 : amd64 " " com.ubuntu.juju : 12.04 : i386" "com . ubuntu.juju : 12.04 : arm "] are [{ Fri, 13 Dec 2013 09:24:57 +0100 products: 1.0 content- download [ ] streams/v1/com.ubuntu.juju : released: tools.json [ com . ubuntu.juju : 12.04 : amd64 com.ubuntu.juju : 12.04 : armhf com.ubuntu.juju : 12.04 : i386 com.ubuntu.juju : 12:10 : amd64 com.ubuntu.juju : 12:10 : i386 com.ubuntu.juju : 13.04 amd64 com.ubuntu.juju : 13.04 i386 com.ubuntu.juju : 13.10 : amd64 com.ubuntu.juju : 13.10 : armhf com.ubuntu.juju : 13.10 : i386 com.ubuntu.juju : 14:04 : amd64 com. ubuntu.juju : 14:04 : armhf com.ubuntu.juju : 14:04 : i386 ]} ]
13.12.2013 08:28:08 DEBUG juju.environs.simplestreams simplestreams.go : 889 finding products at path " streams/v1/com.ubuntu.juju : released: tools.json "
12/13/2013 08:28:08 INFO juju.environs.boostrap bootstrap.go : 71 environs : picked newest version: 1.16.5
13.12.2013 08:28:08 DEBUG juju.environs.simplestreams simplestreams.go : 458 fetchData failed for GET failed to object streams/v1/index.sjson container from juju- 0e8ffd072aab6f2fe36c5bb865cacaa2
Caused by: Resource at not found
Caused by : request returned unexpected status : 404 , error info: <html> <h1> Not Found </ h1> The resource <p> Could not be found. </ p> < / html>
13.12.2013 08:28:08 DEBUG juju.environs.simplestreams simplestreams.go : 432 can not load index invalid URL not found
13.12.2013 08:28:08 DEBUG juju.environs.simplestreams simplestreams.go ...

Read more...

Revision history for this message
tindaro tornabene (tindaro-tornabene) wrote :

nel cloud-init si presenza questo errore e non parte mongodb..........
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
+ mkdir -p /var/lib/juju
+ mkdir -p /var/log/juju
+ bin=/var/lib/juju/tools/1.16.5-precise-amd64
+ mkdir -p /var/lib/juju/tools/1.16.5-precise-amd64
+ wget --no-verbose -O /var/lib/juju/tools/1.16.5-precise-amd64/tools.tar.gz http://10.10.130.29:8080/v1/AUTH_d0df6fee11754175b5675e2dc2c80aac/juju-0e8ffd072aab6f2fe36c5bb865cacaa2/tools/releases/juju-1.16.5-precise-amd64.tgz
Authorization failed.
failed: /var/lib/cloud/instance/scripts/runcmd [6]
2013-12-13 09:04:11,441 - cc_scripts_user.py[WARNING]: failed to run-parts in /var/lib/cloud/instance/scripts
2013-12-13 09:04:11,474 - __init__.py[WARNING]: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/__init__.py", line 117, in run_cc_modules
    cc.handle(name, run_args, freq=freq)
  File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/__init__.py", line 78, in handle
    [name, self.cfg, self.cloud, cloudinit.log, args])
  File "/usr/lib/python2.7/dist-packages/cloudinit/__init__.py", line 327, in sem_and_run
    func(*args)
  File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/cc_scripts_user.py", line 31, in handle
    util.runparts(runparts_path)
  File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line 229, in runparts
    raise RuntimeError('runparts: %i failures' % failed)
RuntimeError: runparts: 1 failures

2013-12-13 09:04:11,491 - __init__.py[ERROR]: config handling of scripts-user, None, [] failed

ec2:
ec2: #############################################################

Revision history for this message
tindaro tornabene (tindaro-tornabene) wrote :

Sorry for comment italian.
in cloud-init presence this error and will not start mongodb ..........
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
+ mkdir -p /var/lib/juju
+ mkdir -p /var/log/juju
+ bin=/var/lib/juju/tools/1.16.5-precise-amd64
+ mkdir -p /var/lib/juju/tools/1.16.5-precise-amd64
+ wget --no-verbose -O /var/lib/juju/tools/1.16.5-precise-amd64/tools.tar.gz http://10.10.130.29:8080/v1/AUTH_d0df6fee11754175b5675e2dc2c80aac/juju-0e8ffd072aab6f2fe36c5bb865cacaa2/tools/releases/juju-1.16.5-precise-amd64.tgz
Authorization failed.
failed: /var/lib/cloud/instance/scripts/runcmd [6]
2013-12-13 09:04:11,441 - cc_scripts_user.py[WARNING]: failed to run-parts in /var/lib/cloud/instance/scripts
2013-12-13 09:04:11,474 - __init__.py[WARNING]: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/__init__.py", line 117, in run_cc_modules
    cc.handle(name, run_args, freq=freq)
  File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/__init__.py", line 78, in handle
    [name, self.cfg, self.cloud, cloudinit.log, args])
  File "/usr/lib/python2.7/dist-packages/cloudinit/__init__.py", line 327, in sem_and_run
    func(*args)
  File "/usr/lib/python2.7/dist-packages/cloudinit/CloudConfig/cc_scripts_user.py", line 31, in handle
    util.runparts(runparts_path)
  File "/usr/lib/python2.7/dist-packages/cloudinit/util.py", line 229, in runparts
    raise RuntimeError('runparts: %i failures' % failed)
RuntimeError: runparts: 1 failures

2013-12-13 09:04:11,491 - __init__.py[ERROR]: config handling of scripts-user, None, [] failed

ec2:
ec2: #############################################################

Revision history for this message
tindaro tornabene (tindaro-tornabene) wrote :

Ho risolto questo problema,
------------------------------------------------causa
 wget --no-verbose -O /var/lib/juju/tools/1.16.5-precise-amd64/tools.tar.gz http://10.10.130.29:8080/v1/AUTH_d0df6fee11754175b5675e2dc2c80aac/juju-0e8ffd072aab6f2fe36c5bb865cacaa2/tools/releases/juju-1.16.5-precise-amd64.tgz
Authorization failed.
---------------------------------------------------
Il problema era la configurazione di juju. mancav il filtro urltemp nella pipe del proxy-server di swift.
Le bucket di swift non pernetteva di scaricare dal proxy-server.

Thancks Curtis

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for juju-core because there has been no activity for 60 days.]

Changed in juju-core:
status: Incomplete → Expired
Revision history for this message
Francois Deppierraz (francois-ctrlaltdel) wrote :

Experienced the same issue with juju-core-1.16.6-0ubuntu1 running against a private Openstack havana cloud.

'juju bootstrap --upload-tools' didn't helped either but I had to call 'juju sync-tools' before 'juju bootstrap'.

Would be happy to provide any other information necessary.

Changed in juju-core:
status: Expired → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.