Public bug reported: The maas-cli command is unable to connect to the api for a 1.9.2 server:
fginther@sandman:~$ maas login fginther http://10.245.200.27/MAAS/ API key (leave empty for anonymous access): Expected application/json, got: text/html; charset=utf-8 If the api version is specified, it will work: fginther@sandman:~$ maas login fginther http://10.245.200.27/MAAS/api/1.0/ API key (leave empty for anonymous access): You are now logged in to the MAAS server at http://10.245.200.27/MAAS/api/1.0/ with the profile name 'fginther'. For help with the available commands, try: maas fginther --help I would think the maas-cli should auto-discover the correct API to use or make it more obvious that there is an API mismatch. ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: maas-cli 2.0.0~beta3+bzr4941-0ubuntu1 ProcVersionSignature: Ubuntu 4.4.0-22.39-generic 4.4.8 Uname: Linux 4.4.0-22-generic x86_64 NonfreeKernelModules: wl ApportVersion: 2.20.1-0ubuntu2 Architecture: amd64 CurrentDesktop: Unity Date: Tue May 10 12:39:25 2016 EcryptfsInUse: Yes InstallationDate: Installed on 2015-05-24 (352 days ago) InstallationMedia: Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1) PackageArchitecture: all SourcePackage: maas UpgradeStatus: Upgraded to xenial on 2016-03-15 (56 days ago) ** Affects: maas (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug xenial -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1580279 Title: maas-cli 2.0 doesn't find 1.0 api To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/maas/+bug/1580279/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
