bootstrapping private openstack, with --metadata-source fails when instance-type constraint is specified

Bug #1567763 reported by Andrew Wilkins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
In Progress
High
Anastasia
1.25
Triaged
High
Unassigned

Bug Description

Helping a user get Juju (1.25.3) bootstrapped on their private OpenStack. We've generated custom image metadata using "juju metadata generate-image". Their default flavor's disk was too small, which caused bootstrap to fail with an error from Mongo. So we tried again with "--constraints instance-type=<their-flavor>" which has a bigger disk. That failed with:

2016-04-08 04:16:19 DEBUG juju.state open.go:306 closed state without error
2016-04-08 04:16:19 ERROR juju.cmd supercommand.go:429 cannot set initial environ constraints: index file has no data for cloud {RegionOne http://172.29.55.5:35357/v2.0} not found
2016-04-08 04:16:19 ERROR juju.cmd supercommand.go:429 failed to bootstrap environment: subprocess encountered error code 1

I think what's happening is that when we set the constraints in state, we validate instance-type against simplestreams metadata. We're trying to get that from the public source, which is failing because that naturally does not have information for the private cloud.

Revision history for this message
Andrew Wilkins (axwalk) wrote :

In the end, he served up the metadata on his web server and pointed juju at it with image-metadata-url.

Andrew Wilkins (axwalk)
description: updated
Changed in juju-core:
status: Triaged → New
Revision history for this message
Anastasia (anastasia-macmood) wrote :

Yes, supported architectures needs to be adjusted to also pull architectures from metadata in state.

There was a plan to get metadata from both public sources and from state and return union of both set eliminating duplicates.

Changed in juju-core:
status: New → Triaged
Curtis Hovey (sinzui)
tags: added: constraints
tags: added: bootstrap
tags: added: simplestreams
Changed in juju-core:
assignee: nobody → Anastasia (anastasia-macmood)
Revision history for this message
Anastasia (anastasia-macmood) wrote :
Changed in juju-core:
status: Triaged → In Progress
Revision history for this message
Anastasia (anastasia-macmood) wrote :

This is a duplicate of bug # 1591488 as bootstrapping any cloud with any constraint when using --metadata-source fails.

Feel free to re-open if you feel otherwise.

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.