ERROR juju.cmd.juju.commands bootstrap.go:784 failed to bootstrap model: cannot package bootstrap agent binary: no prepackaged agent available and no jujud binary can be f ound

Bug #1869219 reported by David Ames
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Critical
Harry Pidcock

Bug Description

Snap edge version of juju:
snap-id: e2CPHpB1fUxcKtCyJTsm5t3hN9axJ0yj
tracking: latest/edge
refresh-date: today at 14:34 UTC
channels:
  edge: 2.8-beta1+develop-2fefd3d 2020-03-26 (11063) 81MB classic

On a Bionic VM

juju bootstrap --debug (REDACTED SSH KEYS)

14:49:48 INFO juju.cmd supercommand.go:91 running juju [2.8-beta1 0 gc go1.10.4]
14:49:48 DEBUG juju.cmd supercommand.go:92 args: []string{"/snap/juju/11063/bin/juju", "bootstrap", "--debug", "serverstack/serverstack", "thedac-serverstack"}
14:49:48 INFO cmd cloudcredential.go:91 no credentials found, checking environment
14:49:48 DEBUG juju.cmd.juju.commands bootstrap.go:1135 authenticating with region "serverstack" and credential "thedac" ()
14:49:48 DEBUG juju.cmd.juju.commands bootstrap.go:1263 provider attrs: map[external-network: use-openstack-gbp:false policy-target-group: use-floating-ip:false use-default-secgrou
p:false network:]
14:49:49 INFO cmd authkeys.go:114 Adding contents of "/home/ubuntu/.local/share/juju/ssh/juju_id_rsa.pub" to authorized-keys
14:49:49 INFO cmd authkeys.go:114 Adding contents of "/home/ubuntu/.ssh/id_rsa.pub" to authorized-keys
14:49:49 DEBUG juju.cmd.juju.commands bootstrap.go:1322 preparing controller with config: map[logging-config: default-space: http-proxy: fan-config: use-openstack-gbp:false agent-m
etadata-url: ignore-machine-addresses:false proxy-ssh:false snap-store-proxy: disable-network-management:false snap-https-proxy: firewall-mode:instance development:false uuid:b47f8
786-9a05-452f-858e-7a105ebda57f use-floating-ip:false juju-https-proxy: apt-ftp-proxy: juju-no-proxy:127.0.0.1,localhost,::1 provisioner-harvest-mode:destroyed authorized-keys:ssh-
rsa REDACTED
ssh-rsa REDACTED
 apt-no-proxy: juju-http-proxy: automatically-retry-hooks:true external-network: resource-tags: max-status-history-size:5G apt-https-proxy: enable-os-upgrade:true backup-dir: logfo
rward-enabled:false update-status-hook-interval:5m max-action-results-age:336h https-proxy: snap-http-proxy: ftp-proxy: test-mode:false enable-os-refresh-update:true apt-mirror: ss
l-hostname-verification:true agent-stream:released default-series:bionic type:openstack transmit-vendor-metrics:true policy-target-group: apt-http-proxy: snap-store-assertions: con
tainer-image-metadata-url: container-image-stream:released name:controller no-proxy:127.0.0.1,localhost,::1 cloudinit-userdata: max-action-results-size:5G image-stream:released image-metadata-url: juju-ftp-proxy: use-default-secgroup:false snap-store-proxy-url: network: max-status-history-age:336h container-inherit-properties: container-networking-method: eg
ress-subnets: net-bond-reconfigure-delay:17]
14:49:49 INFO juju.provider.openstack provider.go:165 opening model "controller"
14:49:50 DEBUG goose client.go:547 auth details: &{Token:REDACTED TenantName:thedac UserId:a409a56a1b494983917c8aaa40110140 Domain: RegionServiceURLs:map[serverstack:map[volumev2:http://10.245.161.160:8776/v2/2d8c0c1ed43c44dca4690a084fa18631 volumev3:http://10.245.161.160:8776/v3/2d8c0c1ed43c44dca4690a084fa18631 metric:ht
tp://10.245.160.68:8041 identity:http://10.245.161.156:5000/v3 alarming:http://10.245.160.37:8042 compute:http://10.245.161.158:8774/v2.1 object-store:http://10.245.161.162:80/swif
t/v1 placement:http://10.245.161.158:8778 product-streams:http://10.245.161.162:80/swift/v1/simplestreams/data/ dns:http://10.245.160.45:9001 image:http://10.245.161.161:9292 netwo
rk:http://10.245.161.159:9696]]}
14:49:50 INFO cmd bootstrap.go:764 Creating Juju controller "thedac-serverstack" on serverstack/serverstack
14:49:50 DEBUG goose apiversion.go:274 discovered API versions: [{Version:{Major:2 Minor:0} Links:[{Href:http://10.245.161.158:8774/v2/ Rel:self}] Status:SUPPORTED} {Version:{Major
:2 Minor:1} Links:[{Href:http://10.245.161.158:8774/v2.1/ Rel:self}] Status:CURRENT}]
14:49:50 INFO juju.cmd.juju.commands bootstrap.go:833 combined bootstrap constraints:
14:49:50 DEBUG juju.environs.bootstrap bootstrap.go:308 model "controller" supports application/machine networks: true
14:49:50 DEBUG juju.environs.bootstrap bootstrap.go:310 network management by juju enabled: true
14:49:50 INFO cmd bootstrap.go:352 Loading image metadata
14:49:50 DEBUG juju.environs imagemetadata.go:126 obtained image datasource "keystone catalog"
14:49:50 DEBUG juju.environs imagemetadata.go:126 obtained image datasource "default cloud images"
14:49:50 DEBUG juju.environs imagemetadata.go:126 obtained image datasource "default ubuntu cloud images"
14:49:50 DEBUG juju.environs.bootstrap bootstrap.go:827 constraints for image metadata lookup &{{{serverstack http://10.245.161.156:5000/v3} [win81 cosmic win2008r2 win7 win10 cent
os7 zesty win2012hv win2012r2 eoan win2016 win8 opensuseleap saucy quantal wily bionic disco precise xenial win2012 win2019 genericlinux vivid utopic yakkety win2016hv trusty artfu
l focal win2012hvr2 win2016nano raring] [amd64 i386 armhf arm64 ppc64el s390x] released}}
14:49:50 DEBUG juju.environs.bootstrap bootstrap.go:839 found 18 image metadata in keystone catalog
14:49:51 DEBUG juju.environs.bootstrap bootstrap.go:839 found 0 image metadata in default cloud images
14:49:52 DEBUG juju.environs.simplestreams simplestreams.go:457 skipping index "http://cloud-images.ubuntu.com/releases/streams/v1/index.sjson" because of missing information: inde
x file has no data for cloud {serverstack http://10.245.161.156:5000/v3} not found
14:49:52 DEBUG juju.environs.bootstrap bootstrap.go:835 ignoring image metadata in default ubuntu cloud images: index file has no data for cloud {serverstack http://10.245.161.156:
5000/v3} not found
14:49:52 DEBUG juju.environs.bootstrap bootstrap.go:843 found 18 image metadata from all image data sources
14:49:52 INFO cmd bootstrap.go:429 Looking for packaged Juju agent version 2.8-beta1 for amd64
14:49:52 INFO juju.environs.bootstrap tools.go:72 looking for bootstrap agent binaries: version=2.8-beta1
14:49:52 DEBUG juju.environs.tools tools.go:102 finding agent binaries in stream: "devel, proposed, released"
14:49:52 DEBUG juju.environs.tools tools.go:104 reading agent binaries with major.minor version 2.8
14:49:52 DEBUG juju.environs.tools tools.go:112 filtering agent binaries by version: 2.8-beta1
14:49:52 DEBUG juju.environs.tools tools.go:115 filtering agent binaries by series: bionic
14:49:52 DEBUG juju.environs.tools tools.go:118 filtering agent binaries by architecture: amd64
14:49:52 DEBUG juju.environs.tools urls.go:138 trying datasource "keystone catalog"
14:49:52 DEBUG juju.environs.simplestreams simplestreams.go:692 using default candidate for content id "com.ubuntu.juju:devel:tools" are {20161007 mirrors:1.0 content-download stre
ams/v1/cpc-mirrors.sjson []}
14:49:54 DEBUG juju.environs.simplestreams simplestreams.go:692 using default candidate for content id "com.ubuntu.juju:proposed:tools" are {20161007 mirrors:1.0 content-download s
treams/v1/cpc-mirrors.sjson []}
14:49:55 DEBUG juju.environs.simplestreams simplestreams.go:692 using default candidate for content id "com.ubuntu.juju:released:tools" are {20161007 mirrors:1.0 content-download s
treams/v1/cpc-mirrors.sjson []}
14:49:56 INFO juju.environs.bootstrap tools.go:74 found 0 packaged agent binaries
14:49:56 INFO cmd bootstrap.go:453 No packaged binary found, preparing local Juju agent binary
14:49:56 DEBUG juju.environs.sync sync.go:311 Making agent binary tarball
14:49:56 DEBUG juju.environs.tools build.go:117 looking for: /snap/juju/11063/bin/juju
14:49:56 DEBUG juju.environs.tools build.go:194 checking: /snap/juju/11063/bin/jujud
14:49:56 INFO juju.environs.tools build.go:200 Found agent binary to upload (/snap/juju/11063/bin/jujud)
14:49:56 INFO juju.environs.tools build.go:202 target: /tmp/juju-tools918509500/jujud
14:49:57 INFO juju.environs.tools build.go:214 target jujuc: /tmp/juju-tools918509500/jujuc
14:49:57 INFO juju.environs.tools build.go:151 open source failed: open /snap/juju/11063/bin/jujuc: no such file or directory
14:49:57 ERROR juju.cmd.juju.commands bootstrap.go:784 failed to bootstrap model: cannot package bootstrap agent binary: no prepackaged agent available and no jujud binary can be found
14:49:57 DEBUG juju.cmd.juju.commands bootstrap.go:785 (error details: [{/build/juju/parts/juju/go/src/github.com/juju/juju/cmd/juju/commands/bootstrap.go:859: failed to bootstrap
model} {/build/juju/parts/juju/go/src/github.com/juju/juju/environs/bootstrap/bootstrap.go:612: } {/build/juju/parts/juju/go/src/github.com/juju/juju/environs/bootstrap/bootstrap.g
o:459: cannot package bootstrap agent binary} {/build/juju/parts/juju/go/src/github.com/juju/juju/environs/tools/build.go:262: no prepackaged agent available and no jujud binary ca
n be found}])
14:49:57 DEBUG juju.cmd.juju.commands bootstrap.go:1430 cleaning up after failed bootstrap
14:49:57 INFO juju.provider.common destroy.go:21 destroying model "controller"
14:49:57 INFO juju.provider.common destroy.go:32 destroying instances
14:49:57 DEBUG juju.provider.openstack provider.go:1666 terminating instances []
14:49:57 DEBUG goose apiversion.go:274 discovered API versions: [{Version:{Major:2 Minor:0} Links:[{Href:http://10.245.161.159:9696/v2.0/ Rel:self}] Status:CURRENT}]
14:49:58 INFO juju.provider.common destroy.go:56 destroying storage
14:49:58 DEBUG juju.provider.openstack cinder.go:118 volume URL: http://10.245.161.160:8776/v3/2d8c0c1ed43c44dca4690a084fa18631
14:49:59 INFO cmd supercommand.go:544 command finished

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

Looks like fallout from the jujuc changes that are mid-flight.

Changed in juju:
status: New → Triaged
importance: Undecided → Critical
milestone: none → 2.8-beta1
assignee: nobody → Harry Pidcock (hpidcock)
Revision history for this message
Harry Pidcock (hpidcock) wrote :
Changed in juju:
status: Triaged → In Progress
Harry Pidcock (hpidcock)
Changed in juju:
status: In Progress → Fix Committed
Harry Pidcock (hpidcock)
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.