Re: juju status ERROR current model controller devlocal not found

2017-12-04 Thread Rick Harding
Hi Feng, did you get anywhere with this? It looks like you're running
status on the controller itself. That's not a model to run status on. I'd
check out what juju list-models shows and run juju status on those.

I think what you need to do is to switch into the controller/model you want
to status or use the -m flag to specify it manually. Some helpful commands.

juju models
juju show-controller -c devlocal
juju status -m devlocal:controller
juju status -m devlocal:default
juju switch devlocal
juju models

On Mon, Dec 4, 2017 at 10:33 AM fengxia <fx...@lenovo.com> wrote:

> Hi Juju,
>
> I had a localhost controller bootstrapped and deployed 8 machines (LXDs)
> to it. Host is a KVM vm of Ubuntu 16.04 amd64.
>
> Now for some strange reason, `juju status` reports error as if it lost
> its model? `list-controllers` showed the controller looks fine. `lxc
> list` shows all the machines are up and running.
>
> Any idea of what this error is about, and how to debug it?
>
> --------
>
> (dev) fengxia@ubuntu:~$ juju status
> ERROR current model for controller devlocal not found
> (dev) fengxia@ubuntu:~$ juju list-controllers
> Use --refresh flag with this command to see the latest information.
>
> Controller  Model  User   Access Cloud/Region Models
> MachinesHA  Version
> devlocal*   -  admin  superuser  localhost/localhost 2     1
> none  2.2.6
>
> (dev) fengxia@ubuntu:~$ juju status
> ERROR current model for controller devlocal not found
> (dev) fengxia@ubuntu:~$ lxc list
>
> +---+-+---+--++---+
> | NAME  |  STATE  | IPV4  | IPV6 | TYPE|
> SNAPSHOTS |
>
> +---+-+---+--++---+
> | juju-6f4281-0 | RUNNING | 10.175.135.196 (eth0) |  | PERSISTENT |
> 0 |
>
> +---+-+---+--++---+
> | juju-7031bf-0 | RUNNING | 10.175.135.253 (eth0) |  | PERSISTENT |
> 0 |
>
> +---+-+---+--++---+
> | juju-7031bf-1 | RUNNING | 10.175.135.247 (eth0) |  | PERSISTENT |
> 0 |
>
> +---+-+---+--++---+
> | juju-7031bf-2 | RUNNING | 10.175.135.191 (eth0) |  | PERSISTENT |
> 0 |
>
> +---+-+---+--++---+
> | juju-7031bf-3 | RUNNING | 10.175.135.116 (eth0) |  | PERSISTENT |
> 0 |
>
> +---+-+---+--++---+
> | juju-7031bf-4 | RUNNING | 10.175.135.106 (eth0) |  | PERSISTENT |
> 0 |
>
> +---+-+---+--++---+
> | juju-7031bf-5 | RUNNING | 10.175.135.128 (eth0) |  | PERSISTENT |
> 0 |
>
> +---+-+---+--++---+
> | juju-7031bf-6 | RUNNING | 10.175.135.83 (eth0)  |  | PERSISTENT |
> 0 |
>
> +---+-+---+--++---+
> | juju-7031bf-7 | RUNNING | 10.175.135.223 (eth0) |  | PERSISTENT |
> 0 |
>
> +---+-+---+--++---+
>
> (dev) fengxia@ubuntu:~$ juju list-models
> Controller: devlocal
>
> Model   Cloud/Region Status Machines  Cores Access  Last
> connection
> controller  localhost/localhost  available 1  - admin   just
> now
> default localhost/localhost  available 8  - admin   11
> hours ago
>
> --
> Feng Xia
>
> Advisory Engineer
> Datacenter Group (DCG), Lenovo US
> 8000 Development Dr, Morrisiville, NC 27509
> W: http://www.lenovo.com
>
>
> --
> Juju mailing list
> Juju@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/juju
>
-- 
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju


juju status ERROR current model controller devlocal not found

2017-12-04 Thread fengxia

Hi Juju,

I had a localhost controller bootstrapped and deployed 8 machines (LXDs) 
to it. Host is a KVM vm of Ubuntu 16.04 amd64.


Now for some strange reason, `juju status` reports error as if it lost 
its model? `list-controllers` showed the controller looks fine. `lxc 
list` shows all the machines are up and running.


Any idea of what this error is about, and how to debug it?



(dev) fengxia@ubuntu:~$ juju status
ERROR current model for controller devlocal not found
(dev) fengxia@ubuntu:~$ juju list-controllers
Use --refresh flag with this command to see the latest information.

Controller  Model  User   Access Cloud/Region Models 
Machines    HA  Version
devlocal*   -  admin  superuser  localhost/localhost 2 1  
none  2.2.6


(dev) fengxia@ubuntu:~$ juju status
ERROR current model for controller devlocal not found
(dev) fengxia@ubuntu:~$ lxc list
+---+-+---+--++---+
| NAME  |  STATE  | IPV4  | IPV6 | TYPE    | 
SNAPSHOTS |

+---+-+---+--++---+
| juju-6f4281-0 | RUNNING | 10.175.135.196 (eth0) |  | PERSISTENT | 
0 |

+---+-+---+--++---+
| juju-7031bf-0 | RUNNING | 10.175.135.253 (eth0) |  | PERSISTENT | 
0 |

+---+-+---+--++---+
| juju-7031bf-1 | RUNNING | 10.175.135.247 (eth0) |  | PERSISTENT | 
0 |

+---+-+---+--++---+
| juju-7031bf-2 | RUNNING | 10.175.135.191 (eth0) |  | PERSISTENT | 
0 |

+---+-+---+--++---+
| juju-7031bf-3 | RUNNING | 10.175.135.116 (eth0) |  | PERSISTENT | 
0 |

+---+-+---+--++---+
| juju-7031bf-4 | RUNNING | 10.175.135.106 (eth0) |  | PERSISTENT | 
0 |

+---+-+---+--++---+
| juju-7031bf-5 | RUNNING | 10.175.135.128 (eth0) |  | PERSISTENT | 
0 |

+---+-+---+--++---+
| juju-7031bf-6 | RUNNING | 10.175.135.83 (eth0)  |  | PERSISTENT | 
0 |

+---+-+---+--++---+
| juju-7031bf-7 | RUNNING | 10.175.135.223 (eth0) |  | PERSISTENT | 
0 |

+---+-+---+--++---+

(dev) fengxia@ubuntu:~$ juju list-models
Controller: devlocal

Model   Cloud/Region Status Machines  Cores Access  Last 
connection

controller  localhost/localhost  available 1  - admin   just now
default localhost/localhost  available 8  - admin   11 
hours ago


--
Feng Xia

Advisory Engineer
Datacenter Group (DCG), Lenovo US
8000 Development Dr, Morrisiville, NC 27509
W: http://www.lenovo.com


--
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju