TestBootstrapPrintClouds fails if microk8s installed on box where run

Bug #1824413 reported by Heather Lanigan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Medium
Harry Pidcock

Bug Description

----------------------------------------------------------------------
FAIL: bootstrap_test.go:1790: BootstrapSuite.TestBootstrapPrintClouds

[LOG] 0:00.005 INFO juju.environs.tools Writing tools/streams/v1/index2.json
[LOG] 0:00.006 INFO juju.environs.tools Writing tools/streams/v1/index.json
[LOG] 0:00.006 INFO juju.environs.tools Writing tools/streams/v1/com.ubuntu.juju-released-tools.json
[LOG] 0:00.121 DEBUG juju.caas.kubernetes.clientconfig name "admin", user &api.AuthInfo{LocationOfOrigin:"", ClientCertificate:"", ClientCertificateData:[]uint8(nil), ClientKey:"", ClientKeyData:[]uint8(nil), Token:"", TokenFile:"", Impersonate:"", ImpersonateGroups:[]string(nil), ImpersonateUserExtra:map[string][]string(nil), Username:"admin", Password:"dVJIVzYyQnM0bWYyMlYxQkl4c3pLdGZPcnBKbjg0cFg3M21ramtzUmVoQT0K", AuthProvider:(*api.AuthProviderConfig)(nil), Exec:(*api.ExecConfig)(nil), Extensions:map[string]runtime.Object{}}
[LOG] 0:00.121 DEBUG juju.kubernetes.provider caasConfig: &{Type:kubernetes Contexts:map[microk8s:{CloudName:microk8s-cluster CredentialName:admin}] CurrentContext:microk8s Clouds:map[microk8s-cluster:{Endpoint:https://192.168.0.76:16443 Attributes:map[CAData:-----BEGIN CERTIFICATE-----
MIIDCTCCAfGgAwIBAgIUacH0lU8CFY0uwBBIxKvP5eZMvNMwDQYJKoZIhvcNAQEL
BQAwFDESMBAGA1UEAwwJMTI3LjAuMC4xMB4XDTE5MDQxMTE3NDc0OFoXDTQ2MDgy
NzE3NDc0OFowFDESMBAGA1UEAwwJMTI3LjAuMC4xMIIBIjANBgkqhkiG9w0BAQEF
AAOCAQ8AMIIBCgKCAQEAo9olKuHfm/tiji4QMHSgAvJVWBPEXmajW6JI2jAUdokc
xCshsYoXnVk4oI3xaJ4g9W0FYWveV8ILjiAJe8U/EgEqV/DCk3FOe8fDi2a601jz
gCo05X5qJqVQb23g87evBQSXPkYWiYh8fSMrMrTbw6ycdwWtUc1v4Dlw388bcEXv
gycXj8PU8Rx4aZvlDcUsng7z4XOU9XvMSq459+0qJ5zDody2XW7fs0Fcl+JmIspu
sRrx3f+pFESuF37akbTaaWt1eoiJ3YbuLYH7vRDL2A6TzjCBW8wkHQd+HOh+9xPU
yznEu82OAqhVRphCbzu6bLHQUXVmtPrD/VUoxm3c4QIDAQABo1MwUTAdBgNVHQ4E
FgQUMFGbpvoK0sx6i3rnsfa3KFcQy+4wHwYDVR0jBBgwFoAUMFGbpvoK0sx6i3rn
sfa3KFcQy+4wDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAGEEh
bFftMcshO+xz1nm90aVwTqE0+kO2cPcvmiEtrzToBEMc6o2qDmhY4XoaV2oKpdoz
IZjRExu4xj1bOBvNlNZFyTBejF73YoJwatSWaMwPuvidW8ofAQtsPnnTOJO9hTZ/
yN1/HqGRCutcV0qBEZ0L5kRJ2XVmniVwbtjIXyhyQLNWLowtdU3/qqGIOqZdbnx8
yXtYdt+Q69zj1SVCTIM1/+R8sQfXL5k4q2y1+xBlJxBH7PBcoHLf6GtZI21m6YsY
V5k8/UES1Sd0v/1ItDK20setmIU1lkx0DLS0R1hV3I8I7yHsBqY9KwBCcQ2tu09Z
c2/OjmJGvIndlBbYig==
-----END CERTIFICATE-----
]}] Credentials:map[admin:{authType:userpass attributes:map[username:admin password:dVJIVzYyQnM0bWYyMlYxQkl4c3pLdGZPcnBKbjg0cFg3M21ramtzUmVoQT0K] Revoked:false Label:kubernetes credential "admin" Invalid:false InvalidReason:}]}
bootstrap_test.go:1813:
    c.Assert(cmdtesting.Stdout(ctx), jc.DeepEquals, `
    You can bootstrap on these clouds. See ‘--regions <cloud>’ for all regions.
    Cloud Credentials Default Region
    aws fred us-west-1
                                     mary
    aws-china
    aws-gov
    azure
    azure-china
    cloudsigma
    google
    joyent
    oracle
    oracle-classic
    rackspace
    localhost
    dummy-cloud joe home
    dummy-cloud-dummy-region-config
    dummy-cloud-with-config
    dummy-cloud-with-region-config
    dummy-cloud-without-regions
    many-credentials-no-auth-types

    You will need to have a credential if you want to bootstrap on a cloud, see
    ‘juju autoload-credentials’ and ‘juju add-credential’. The first credential
    listed is the default. Add more clouds with ‘juju add-cloud’.
    `[1:])
... obtained string = "" +
... "You can bootstrap on these clouds. See ‘--regions <cloud>’ for all regions.\n" +
... "Cloud Credentials Default Region\n" +
... "aws fred us-west-1\n" +
... " mary \n" +
... "aws-china \n" +
... "aws-gov \n" +
... "azure \n" +
... "azure-china \n" +
... "cloudsigma \n" +
... "google \n" +
... "joyent \n" +
... "oracle \n" +
... "oracle-classic \n" +
... "rackspace \n" +
... "localhost \n" +
... "microk8s \n" +
... "dummy-cloud joe home\n" +
... "dummy-cloud-dummy-region-config \n" +
... "dummy-cloud-with-config \n" +
... "dummy-cloud-with-region-config \n" +
... "dummy-cloud-without-regions \n" +
... "many-credentials-no-auth-types \n" +
... "\n" +
... "You will need to have a credential if you want to bootstrap on a cloud, see\n" +
... "‘juju autoload-credentials’ and ‘juju add-credential’. The first credential\n" +
... "listed is the default. Add more clouds with ‘juju add-cloud’.\n"
... expected string = "" +
... "You can bootstrap on these clouds. See ‘--regions <cloud>’ for all regions.\n" +
... "Cloud Credentials Default Region\n" +
... "aws fred us-west-1\n" +
... " mary \n" +
... "aws-china \n" +
... "aws-gov \n" +
... "azure \n" +
... "azure-china \n" +
... "cloudsigma \n" +
... "google \n" +
... "joyent \n" +
... "oracle \n" +
... "oracle-classic \n" +
... "rackspace \n" +
... "localhost \n" +
... "dummy-cloud joe home\n" +
... "dummy-cloud-dummy-region-config \n" +
... "dummy-cloud-with-config \n" +
... "dummy-cloud-with-region-config \n" +
... "dummy-cloud-without-regions \n" +
... "many-credentials-no-auth-types \n" +
... "\n" +
... "You will need to have a credential if you want to bootstrap on a cloud, see\n" +
... "‘juju autoload-credentials’ and ‘juju add-credential’. The first credential\n" +
... "listed is the default. Add more clouds with ‘juju add-cloud’.\n"
... mismatch at top level: unequal; obtained "You can bootstrap on these clouds. See ‘--regions <cloud>’ for all regions.\nCloud Credentials Default Region\naws fred us-west-1\n mary \naws-china \naws-gov \nazure \nazure-china \ncloudsigma \ngoogle \njoyent \noracle \noracle-classic \nrackspace \nlocalhost \nmicrok8s \ndummy-cloud joe home\ndummy-cloud-dummy-region-config \ndummy-cloud-with-config \ndummy-cloud-with-region-config \ndummy-cloud-without-regions \nmany-credentials-no-auth-types \n\nYou will need to have a credential if you want to bootstrap on a cloud, see\n‘juju autoload-credentials’ and ‘juju add-credential’. The first credential\nlisted is the default. Add more clouds with ‘juju add-cloud’.\n"; expected "You can bootstrap on these clouds. See ‘--regions <cloud>’ for all regions.\nCloud Credentials Default Region\naws fred us-west-1\n mary \naws-china \naws-gov \nazure \nazure-china \ncloudsigma \ngoogle \njoyent \noracle \noracle-classic \nrackspace \nlocalhost \ndummy-cloud joe home\ndummy-cloud-dummy-region-config \ndummy-cloud-with-config \ndummy-cloud-with-region-config \ndummy-cloud-without-regions \nmany-credentials-no-auth-types \n\nYou will need to have a credential if you want to bootstrap on a cloud, see\n‘juju autoload-credentials’ and ‘juju add-credential’. The first credential\nlisted is the default. Add more clouds with ‘juju add-cloud’.\n"

[LOG] 0:00.141 INFO juju.provider.dummy reset model
[LOG] 0:00.144 INFO juju.testing reset successfully reset admin password
OOPS: 0 passed, 1 FAILED
--- FAIL: TestPackage (4.28s)
FAIL
exit status 1
FAIL github.com/juju/juju/cmd/juju/commands 5.414s

$ snap info microk8s
name: microk8s
summary: Kubernetes for workstations and appliances
publisher: Canonical✓
contact: https://github.com/ubuntu/microk8s
license: unset
description: |
  MicroK8s is a small, fast, secure, single node Kubernetes that installs on just about any Linux
  box. Use it for offline development, prototyping, testing, or use it on a VM as a small, cheap,
  reliable k8s for CI/CD. It's also a great k8s for appliances - develop your IoT apps for k8s and
  deploy them to MicroK8s on your boxes.
commands:
  - microk8s.config
  - microk8s.ctr
  - microk8s.disable
  - microk8s.enable
  - microk8s.inspect
  - microk8s.istioctl
  - microk8s.kubectl
  - microk8s.reset
  - microk8s.start
  - microk8s.status
  - microk8s.stop
services:
  microk8s.daemon-apiserver: simple, enabled, active
  microk8s.daemon-apiserver-kicker: simple, enabled, active
  microk8s.daemon-containerd: simple, enabled, active
  microk8s.daemon-controller-manager: simple, enabled, active
  microk8s.daemon-etcd: simple, enabled, active
  microk8s.daemon-kubelet: simple, enabled, active
  microk8s.daemon-proxy: simple, enabled, active
  microk8s.daemon-scheduler: simple, enabled, active
snap-id: EaXqgt1lyCaxKaQCU349mlodBkDCXRcg
tracking: edge
refresh-date: today at 13:47 EDT
channels:
  stable: v1.14.0 2019-03-28 (492) 214MB classic
  candidate: v1.14.1 2019-04-09 (512) 214MB classic
  beta: v1.14.1 2019-04-09 (512) 214MB classic
  edge: v1.14.1 2019-04-10 (517) 214MB classic
  1.14/stable: v1.14.0 2019-03-28 (491) 214MB classic
  1.14/candidate: v1.14.0 2019-03-28 (491) 214MB classic
  1.14/beta: v1.14.0 2019-03-28 (491) 214MB classic
  1.14/edge: v1.14.1 2019-04-10 (518) 214MB classic
  1.13/stable: v1.13.4 2019-04-03 (438) 229MB classic
  1.13/candidate: v1.13.5 2019-04-05 (493) 237MB classic
  1.13/beta: v1.13.5 2019-04-05 (493) 237MB classic
  1.13/edge: v1.13.5 2019-04-01 (493) 237MB classic
  1.12/stable: v1.12.6 2019-04-03 (435) 251MB classic
  1.12/candidate: v1.12.7 2019-04-05 (504) 259MB classic
  1.12/beta: v1.12.7 2019-04-05 (504) 259MB classic
  1.12/edge: v1.12.7 2019-04-03 (504) 259MB classic
  1.11/stable: v1.11.9 2019-04-10 (495) 252MB classic
  1.11/candidate: v1.11.9 2019-04-05 (495) 252MB classic
  1.11/beta: v1.11.9 2019-04-05 (495) 252MB classic
  1.11/edge: v1.11.9 2019-04-01 (495) 252MB classic
  1.10/stable: v1.10.13 2019-02-25 (411) 200MB classic
  1.10/candidate: v1.10.13 2019-02-18 (411) 200MB classic
  1.10/beta: v1.10.13 2019-02-18 (411) 200MB classic
  1.10/edge: v1.10.13 2019-04-04 (506) 208MB classic
installed: v1.14.1 (517) 214MB classic

Tags: unit-tests
Revision history for this message
Anastasia (anastasia-macmood) wrote :
Changed in juju:
milestone: none → 2.7-beta1
assignee: nobody → Harry Pidcock (hpidcock)
status: Triaged → Fix Committed
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.