Juju-Openstack provider "juju metadata generate-image" needs a controller to exist

Bug #1799250 reported by Yanos Angelopoulos
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Ian Booth

Bug Description

Trying to use Juju with OpenStack as cloud provider, I did the following:

1) juju add-cloud - I chose "openstack"

cloud name : "test1"

2) juju add-credential test1

3) Then: juju bootstrap test1
ERROR failed to bootstrap model: no image metadata found

4) juju metadata generate-image -d ~/simplestreams -i {os_iamge_id} -s xenial -r RegionOne -u https://test1_openstack:5000/v3
ERROR No controllers registered.

So no way to proceed..

Thanks to "hml" and "rick_h__" from the IRC channel I got around it doing:

"juju bootstrap localhost test_lxd"
"mkdir -p ~/simplestreams/images"
"juju metadata generate-image -d ~/simplestreams -i {os_iamge_id} -s xenial -r RegionOne -u https://test1_openstack:5000/v3"

"juju bootstrap test1 test1-controller --metadata-source ~/simplestreams/images"

Changed in juju:
status: New → Triaged
importance: Undecided → High
tags: removed: openstack
Revision history for this message
Richard Harding (rharding) wrote :

Can you please speak to what version of Juju you have? I'd have expected this to be corrected in https://bugs.launchpad.net/juju/+bug/1785205

Revision history for this message
Richard Harding (rharding) wrote :

Marking as incomplete as we await and I'll see if I can dupe around the 2.4.3 release.

Revision history for this message
Richard Harding (rharding) wrote :

So on 2.4.5 I can see that if I use juju-metadata I get the help and the command works but if I do juju metadata that it fails with the no controller error. Marking as confirmed and something we should clean up.

Changed in juju:
milestone: none → 2.5-beta1
Revision history for this message
Yanos Angelopoulos (yan0s) wrote :

The version used was 2.4.4 as a snap container.

Changed in juju:
milestone: 2.5-beta1 → 2.5-beta2
Ian Booth (wallyworld)
Changed in juju:
assignee: nobody → Ian Booth (wallyworld)
status: Triaged → In Progress
Revision history for this message
Ian Booth (wallyworld) wrote :
Ian Booth (wallyworld)
Changed in juju:
status: In Progress → Fix Committed
Ian Booth (wallyworld)
Changed in juju:
milestone: 2.5-beta2 → 2.5-beta3
Changed in juju:
status: Fix Committed → Fix Released
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.