Hi All, I have 16.10 running in a container and am testing this against our datacenter using the docs found here:
https://jujucharms.com/docs/2.0/help-vmware Which advises the following config: root@juju-vmware:~# cat /root/.local/share/juju/clouds.yaml clouds: myvscloud: type: vsphere auth-types: [userpass] endpoint: 10.2.0.8 regions: dc0: endpoint: 10.2.0.8 This does not work. root@juju-vmware:~# juju bootstrap vsphere myvscloud --debug 15:38:47 INFO juju.cmd supercommand.go:63 running juju [2.0-rc3 gc go1.6.3] 15:38:47 DEBUG juju.cmd supercommand.go:64 args: []string{"juju", "bootstrap", "vsphere", "myvscloud", "--debug"} 15:38:47 DEBUG juju.cmd.juju.commands bootstrap.go:537 provider attrs: map[] 15:38:47 INFO cmd cmd.go:141 Adding contents of "/root/.local/share/juju/ssh/juju_id_rsa.pub" to authorized-keys 15:38:47 DEBUG juju.cmd.juju.commands bootstrap.go:595 preparing controller with config: map[authorized-keys:ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCxDagqFodKywSsG7itNj/J3JYYGdOuXA5QDiJ0FJuiLLag/W7cir+e3ofk2ly5J6U+um5edi7fI9sR1bEzCAFWZKs0mRI+6DcjkzxBPC0LsjmDx8rhk4b5l9er+c93UgyTYiBpsopYzekzQI2b+KSLI9t1SUSMUmS1sW7sTaw3KcSFfZYWb7jeQnXLK2EOV2NcTlcmlTEohKZZUYVSP5uth451mqViTB8BCbsYCtGtIeqvhkmdGVnj3qErn4rM0zcyeNHoTKv8rcERaNcEQUCqM5sk4z+d62NONuNUMtA/8RuzzBOMP3E89h8iy59zVP0LRPtaddl6K8fN4wB9wSgv juju-client-key type:vsphere name:controller uuid:e2f16e4a-fb8d-4a25-8686-81dc190894b9] 15:38:47 ERROR cmd supercommand.go:458 failed to create new client: datacenter 'dc0' not found 15:38:47 DEBUG cmd supercommand.go:459 (error details: [{github.com/juju/juju/cmd/juju/commands/bootstrap.go:662: } {github.com/juju/juju/environs/bootstrap/prepare.go:99: } {github.com/juju/juju/environs/bootstrap/prepare.go:160: } {github.com/juju/juju/provider/vsphere/provider.go:32: } {github.com/juju/juju/provider/vsphere/environ.go:47: failed to create new client} {github.com/juju/juju/provider/vsphere/client.go:61: } {datacenter 'dc0' not found}]) Now I look at the source and discover that "dc0" cannot be some arbitrary string, it must be named "Datacenter". # ~/juju-src/juju-core-2.0~rc3/src/github.com/juju/govmomi/find/finder.go func (f *Finder) DatacenterList(ctx context.Context, path ...string) ([]*object.Datacenter, error) { es, err := f.find(ctx, f.rootFolder, false, path...) if err != nil { return nil, err } var dcs []*object.Datacenter for _, e := range es { ref := e.Object.Reference() if ref.Type == "Datacenter" { dcs = append(dcs, object.NewDatacenter(f.client, ref)) } } return dcs, nil } Which gets me a whole lot further but not quite to the finish line. root@juju-vmware:~# juju bootstrap vsphere myvscloud --debug 16:04:15 INFO juju.cmd supercommand.go:63 running juju [2.0-rc3 gc go1.6.3] 16:04:15 DEBUG juju.cmd supercommand.go:64 args: []string{"juju", "bootstrap", "vsphere", "myvscloud", "--debug"} 16:04:15 DEBUG juju.cmd.juju.commands bootstrap.go:537 provider attrs: map[] 16:04:15 INFO cmd cmd.go:141 Adding contents of "/root/.local/share/juju/ssh/juju_id_rsa.pub" to authorized-keys 16:04:15 DEBUG juju.cmd.juju.commands bootstrap.go:595 preparing controller with config: map[name:controller uuid:cde9a49f-4a06-4d96-8197-87ddad561abf authorized-keys:ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCxDagqFodKywSsG7itNj/J3JYYGdOuXA5QDiJ0FJuiLLag/W7cir+e3ofk2ly5J6U+um5edi7fI9sR1bEzCAFWZKs0mRI+6DcjkzxBPC0LsjmDx8rhk4b5l9er+c93UgyTYiBpsopYzekzQI2b+KSLI9t1SUSMUmS1sW7sTaw3KcSFfZYWb7jeQnXLK2EOV2NcTlcmlTEohKZZUYVSP5uth451mqViTB8BCbsYCtGtIeqvhkmdGVnj3qErn4rM0zcyeNHoTKv8rcERaNcEQUCqM5sk4z+d62NONuNUMtA/8RuzzBOMP3E89h8iy59zVP0LRPtaddl6K8fN4wB9wSgv juju-client-key type:vsphere] 16:04:15 INFO cmd cmd.go:129 Creating Juju controller "vsphere" on myvscloud/Datacenter 16:04:15 DEBUG juju.environs imagemetadata.go:112 obtained image datasource "default cloud images" 16:04:15 DEBUG juju.environs imagemetadata.go:112 obtained image datasource "default ubuntu cloud images" 16:04:16 DEBUG juju.environs.simplestreams simplestreams.go:454 skipping index "https://streams.canonical.com/juju/images/releases/streams/v1/index.sjson" because of missing information: "image-downloads" data not found 16:04:18 INFO juju.cmd.juju.commands bootstrap.go:738 combined bootstrap constraints: 16:04:18 DEBUG juju.environs.bootstrap bootstrap.go:185 model "controller" supports service/machine networks: true 16:04:18 DEBUG juju.environs.bootstrap bootstrap.go:187 network management by juju enabled: true 16:04:18 INFO cmd cmd.go:141 Loading image metadata 16:04:18 INFO cmd cmd.go:129 Looking for packaged Juju agent version 2.0-rc3 for amd64 16:04:18 INFO juju.environs.bootstrap tools.go:72 looking for bootstrap agent binaries: version=2.0-rc3 16:04:18 INFO juju.environs.tools tools.go:101 finding agent binaries in stream "devel" 16:04:18 INFO juju.environs.tools tools.go:103 reading agent binaries with major.minor version 2.0 16:04:18 INFO juju.environs.tools tools.go:111 filtering agent binaries by version: 2.0-rc3 16:04:18 INFO juju.environs.tools tools.go:117 filtering agent binaries by architecture: amd64 16:04:18 DEBUG juju.environs.tools urls.go:109 trying datasource "keystone catalog" 16:04:18 DEBUG juju.environs.simplestreams simplestreams.go:680 using default candidate for content id "com.ubuntu.juju:devel:tools" are {20161007 mirrors:1.0 content-download streams/v1/cpc-mirrors.sjson []} 16:04:20 INFO juju.environs.bootstrap tools.go:74 found 15 packaged agent binaries 16:04:20 INFO cmd cmd.go:141 Starting new instance for initial controller Launching controller instance(s) on myvscloud/Datacenter... 16:04:20 DEBUG juju.environs imagemetadata.go:112 obtained image datasource "default cloud images" 16:04:20 DEBUG juju.environs imagemetadata.go:112 obtained image datasource "default ubuntu cloud images" 16:04:21 DEBUG juju.environs.simplestreams simplestreams.go:454 skipping index "https://streams.canonical.com/juju/images/releases/streams/v1/index.sjson" because of missing information: "image-downloads" data not found 16:04:22 DEBUG juju.cloudconfig.instancecfg instancecfg.go:782 Setting numa ctl preference to false 16:04:22 DEBUG juju.service discovery.go:62 discovered init system "systemd" from series "xenial" 16:04:22 DEBUG juju.provider.vmware environ_broker.go:93 Vmware user data; 1856 bytes 16:04:23 INFO juju.provider.common destroy.go:20 destroying model "controller" 16:04:23 INFO juju.provider.common destroy.go:31 destroying instances 16:04:24 ERROR juju.cmd.juju.commands bootstrap.go:918 error cleaning up: destroying instances: SystemError 16:04:24 ERROR cmd supercommand.go:458 failed to bootstrap model: cannot start bootstrap instance: SystemError 16:04:24 DEBUG cmd supercommand.go:459 (error details: [{github.com/juju/juju/cmd/juju/commands/bootstrap.go:807: failed to bootstrap model} {github.com/juju/juju/provider/common/bootstrap.go:47: } {github.com/juju/juju/provider/common/bootstrap.go:173: cannot start bootstrap instance} {github.com/juju/juju/provider/vsphere/environ_broker.go:44: } {github.com/juju/juju/provider/vsphere/environ_broker.go:121: } {github.com/juju/juju/provider/vsphere/environ_availzones.go:116: } {github.com/juju/juju/provider/vsphere/environ_broker.go:162: } {github.com/juju/juju/provider/vsphere/environ_instance.go:66: } {github.com/juju/juju/provider/vsphere/client.go:173: } {SystemError}]) What am I missing? Thanks. Peter -- Juju mailing list Juju@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju