model migration fails when using a previous client and breaks current client

Bug #1808551 reported by Richard Harding
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Triaged
Low
Unassigned

Bug Description

Take 2

juju bootstrap guimaas
juju bootstrap guimaas g2

juju add-model wishitworked

juju deploy percona-cluster
juju deploy keystone
juju relate percona-cluster keystone

js - wait wait wait

juju show-controller guimaas
guimaas:
  details:
    uuid: f19931fb-0291-4bed-8745-242f53ddaf1d
    controller-uuid: f19931fb-0291-4bed-8745-242f53ddaf1d
  models:
    controller:
      uuid: 6ae8468e-72d3-49e2-85cf-9a4dc9435d3a
      model-uuid: 6ae8468e-72d3-49e2-85cf-9a4dc9435d3a
      machine-count: 1
      core-count: 4
    default:
      uuid: 17603a5d-2ba5-4bd4-824e-d18a77197033
      model-uuid: 17603a5d-2ba5-4bd4-824e-d18a77197033

juju show-controller g2
g2:
  details:
    uuid: 41cb89ae-94cb-4dce-8ec6-f7ee548701f2
    controller-uuid: 41cb89ae-94cb-4dce-8ec6-f7ee548701f2
  models:
    controller:
      uuid: 5c2e11b7-be14-4c57-8068-ff40662934b0
      model-uuid: 5c2e11b7-be14-4c57-8068-ff40662934b0
      machine-count: 1
      core-count: 4
    default:
      uuid: c0da9b79-af77-4e41-80b3-22018ed3ddb6
      model-uuid: c0da9b79-af77-4e41-80b3-22018ed3ddb6
      machine-count: 1
      core-count: 4
    wishitworked:
      uuid: fe632009-ca03-4f66-876e-de2fbd6afdbc
      model-uuid: fe632009-ca03-4f66-876e-de2fbd6afdbc
      machine-count: 2
      core-count: 8

juju migrate wishitworked guimaas
juju show-controller guimaas
guimaas:
  details:
    uuid: f19931fb-0291-4bed-8745-242f53ddaf1d
    controller-uuid: f19931fb-0291-4bed-8745-242f53ddaf1d
  models:
    controller:
      uuid: 6ae8468e-72d3-49e2-85cf-9a4dc9435d3a
      model-uuid: 6ae8468e-72d3-49e2-85cf-9a4dc9435d3a
      machine-count: 1
      core-count: 4
    default:
      uuid: 17603a5d-2ba5-4bd4-824e-d18a77197033
      model-uuid: 17603a5d-2ba5-4bd4-824e-d18a77197033
    wishitworked:
      uuid: fe632009-ca03-4f66-876e-de2fbd6afdbc
      model-uuid: fe632009-ca03-4f66-876e-de2fbd6afdbc
      machine-count: 2
      core-count: 8

juju migrate wishitworked g2
juju show-controller g2
g2:
  details:
    uuid: 41cb89ae-94cb-4dce-8ec6-f7ee548701f2
    controller-uuid: 41cb89ae-94cb-4dce-8ec6-f7ee548701f2
  models:
    controller:
      uuid: 5c2e11b7-be14-4c57-8068-ff40662934b0
      model-uuid: 5c2e11b7-be14-4c57-8068-ff40662934b0
      machine-count: 1
      core-count: 4
    default:
      uuid: c0da9b79-af77-4e41-80b3-22018ed3ddb6
      model-uuid: c0da9b79-af77-4e41-80b3-22018ed3ddb6
      machine-count: 1
      core-count: 4
    wishitworked:
      uuid: fe632009-ca03-4f66-876e-de2fbd6afdbc
      model-uuid: fe632009-ca03-4f66-876e-de2fbd6afdbc
      machine-count: 2
      core-count: 8

juju migrate wishitworked guimaas

juju add-user rick -c g2
juju add-user rick -c guimaas
juju grant rick superuser -c g2
juju grant rick superuser -c guimaas

< go to Mac machine with 2.4.7 homebrew client>
juju register...g2
juju register...guimaas

juju switch g2

juju migrate admin/wishitworked guimaas --debug
10:49:58 INFO juju.cmd supercommand.go:56 running juju [2.4.7 gc go1.11.2]
10:49:58 DEBUG juju.cmd supercommand.go:57 args: []string{"juju", "migrate", "admin/wishitworked", "guimaas", "--debug"}
10:49:58 INFO juju.juju api.go:67 connecting to API addresses: [10.0.0.156:17070]
10:49:58 DEBUG juju.api apiclient.go:883 successfully dialed "wss://10.0.0.156:17070/api"
10:49:58 INFO juju.api apiclient.go:603 connection established to "wss://10.0.0.156:17070/api"
10:49:58 DEBUG juju.api monitor.go:35 RPC connection died
10:49:58 INFO juju.juju api.go:67 connecting to API addresses: [10.0.0.32:17070]
10:49:58 DEBUG juju.api apiclient.go:883 successfully dialed "wss://10.0.0.32:17070/api"
10:49:58 INFO juju.api apiclient.go:603 connection established to "wss://10.0.0.32:17070/api"
ERROR target prechecks failed: model fe632009-ca03-4f66-876e-de2fbd6afdbc has been removed (not found)
10:49:58 DEBUG cmd supercommand.go:459 error stack:
target prechecks failed: model fe632009-ca03-4f66-876e-de2fbd6afdbc has been removed (not found)
github.com/juju/juju/api/controller/controller.go:331:

<Note the model UUID is in fact the UUID of the wishitworked model. Not sure what it thinks has been removed>

<move back to the admin user on the 2.5-rc1 client>

juju migrate wishitworked guimaas --debug
10:57:49 INFO juju.cmd supercommand.go:57 running juju [2.5-rc1 gc go1.10.4]
10:57:49 DEBUG juju.cmd supercommand.go:58 args: []string{"/snap/juju/6172/bin/juju", "migrate", "wishitworked", "guimaas", "--debug"}
10:57:49 INFO juju.juju api.go:67 connecting to API addresses: [10.0.0.32:17070]
10:57:49 DEBUG juju.api apiclient.go:883 successfully dialed "wss://10.0.0.32:17070/api"
10:57:49 INFO juju.api apiclient.go:603 connection established to "wss://10.0.0.32:17070/api"
ERROR target prechecks failed: model fe632009-ca03-4f66-876e-de2fbd6afdbc has been removed (not found)
10:57:49 DEBUG cmd supercommand.go:496 error stack:
target prechecks failed: model fe632009-ca03-4f66-876e-de2fbd6afdbc has been removed (not found)
/build/juju/parts/juju/go/src/github.com/juju/juju/api/controller/controller.go:331:

Ian Booth (wallyworld)
Changed in juju:
milestone: 2.5.1 → 2.5.2
Changed in juju:
milestone: 2.5.2 → 2.5.3
Changed in juju:
milestone: 2.5.3 → 2.5.4
Changed in juju:
milestone: 2.5.4 → 2.5.5
Changed in juju:
milestone: 2.5.6 → 2.5.8
Changed in juju:
milestone: 2.5.8 → 2.5.9
Revision history for this message
Anastasia (anastasia-macmood) wrote :

Removing from a milestone as this work will not be done in 2.5 series.

Changed in juju:
milestone: 2.5.9 → none
tags: added: model-migration
Revision history for this message
Canonical Juju QA Bot (juju-qa-bot) wrote :

This bug has not been updated in 2 years, so we're marking it Low importance. If you believe this is incorrect, please update the importance.

Changed in juju:
importance: High → Low
tags: added: expirebugs-bot
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.