CLI does not tell users to issue a "refresh" when the API gets out of date
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Gavin Panella | ||
1.7 |
Fix Released
|
Critical
|
Gavin Panella | ||
maas (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I try to list boot images using the CLI.
In case there are none, I expect the CLI to tell me so, and not dump a 404 from the web server.
$ maas maas boot-images -h
usage: /usr/lib/
[-h] COMMAND ...
optional arguments:
-h, --help show this help message and exit
drill down:
COMMAND
report-
read
$ maas maas boot-images report-boot-images
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
<html xmlns="http://
<head>
<meta http-equiv=
<meta http-equiv=
<link rel="shortcut icon" href="/
<link rel="stylesheet" href="/
<title>Error: Page not found | server MAAS
</title>
<script type="text/
<!--
var YUI_config = {
debug: false,
combine: true,
filter: 'min',
root: '',
base: '/MAAS/
comboBase: '/MAAS/
};
var MAAS_config = {
uris: {
login: '/MAAS/
statics: '/MAAS/static/',
},
debug: false
};
// -->
</script>
<script type="text/
src=
</script>
<script type="text/
src=
</script>
</head>
<body class="">
<div class="
<div class="
<div id="body">
<ul id="flash-
</ul>
<h1 id="page-
<div id="content">
<div id="sidebar"></div>
<h2>
The requested URL /MAAS/api/
</h2>
<div class="
</div>
</div>
<div id="footer">
<img src="/MAAS/
<p>© 2012 Canonical Ltd. Ubuntu and Canonical are registered
<a class="
<div class="
</div>
</div>
</div>
</body>
</html>
$ maas maas boot-images read
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
<html xmlns="http://
<head>
<meta http-equiv=
<meta http-equiv=
<link rel="shortcut icon" href="/
<link rel="stylesheet" href="/
<title>Error: Page not found | server MAAS
</title>
<script type="text/
<!--
var YUI_config = {
debug: false,
combine: true,
filter: 'min',
root: '',
base: '/MAAS/
comboBase: '/MAAS/
};
var MAAS_config = {
uris: {
login: '/MAAS/
statics: '/MAAS/static/',
},
debug: false
};
// -->
</script>
<script type="text/
src=
</script>
<script type="text/
src=
</script>
</head>
<body class="">
<div class="
<div class="
<div id="body">
<ul id="flash-
</ul>
<h1 id="page-
<div id="content">
<div id="sidebar"></div>
<h2>
The requested URL /MAAS/api/
</h2>
<div class="
</div>
</div>
<div id="footer">
<img src="/MAAS/
<p>© 2012 Canonical Ltd. Ubuntu and Canonical are registered
<a class="
<div class="
</div>
</div>
</div>
</body>
</html>
# dpkg -l maas* |cat
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Description
+++-===
ii maas 1.5+bzr2252-
ii maas-cli 1.5+bzr2252-
ii maas-cluster-
ii maas-common 1.5+bzr2252-
ii maas-dhcp 1.5+bzr2252-
ii maas-dns 1.5+bzr2252-
ii maas-region-
ii maas-region-
I can provide the contents of /var/log/maas via scp to a shared server, its' 21MB tarred/gzipped.
Related branches
- Raphaël Badin (community): Approve
-
Diff: 892 lines (+530/-45)13 files modifiedsrc/maas/development.py (+7/-1)
src/maascli/api.py (+29/-1)
src/maascli/tests/test_api.py (+50/-1)
src/maascli/tests/test_utils.py (+1/-1)
src/maascli/utils.py (+1/-1)
src/maasserver/api/doc.py (+123/-4)
src/maasserver/api/doc_handler.py (+14/-28)
src/maasserver/api/nodes.py (+2/-1)
src/maasserver/api/support.py (+8/-1)
src/maasserver/api/tests/test_describe.py (+10/-2)
src/maasserver/api/tests/test_doc.py (+256/-3)
src/maasserver/api/tests/test_support.py (+14/-1)
utilities/update-new-and-modified-copyright (+15/-0)
- Gavin Panella (community): Abstain (mentor)
- Raphaël Badin (community): Approve
- Ricardo Bánffy (community): Approve
-
Diff: 919 lines (+549/-45)14 files modifieddocs/changelog.rst (+2/-0)
src/maas/development.py (+1/-1)
src/maascli/api.py (+29/-1)
src/maascli/tests/test_api.py (+50/-1)
src/maascli/tests/test_utils.py (+1/-1)
src/maascli/utils.py (+1/-1)
src/maasserver/api/doc.py (+123/-4)
src/maasserver/api/doc_handler.py (+14/-28)
src/maasserver/api/support.py (+8/-1)
src/maasserver/api/tests/test_describe.py (+10/-2)
src/maasserver/api/tests/test_doc.py (+256/-3)
src/maasserver/api/tests/test_support.py (+14/-1)
src/maastesting/fixtures.py (+25/-1)
utilities/update-new-and-modified-copyright (+15/-0)
information type: | Private → Public |
tags: | added: upgrade |
summary: |
- On upgraded MAAS 1.5, listing boot images fails + CLI does not tell users to issue a "refresh" when the API gets out of + date |
Changed in maas: | |
importance: | Medium → High |
Changed in maas: | |
milestone: | 1.7.0 → next |
Changed in maas: | |
milestone: | next → 1.7.1 |
Changed in maas: | |
status: | Triaged → In Progress |
assignee: | nobody → Graham Binns (gmb) |
Changed in maas: | |
status: | In Progress → Invalid |
status: | Invalid → In Progress |
Changed in maas: | |
milestone: | 1.7.1 → 1.7.2 |
Changed in maas: | |
status: | In Progress → Triaged |
assignee: | Graham Binns (gmb) → nobody |
Changed in maas: | |
milestone: | 1.7.2 → 1.7.3 |
Changed in maas: | |
assignee: | nobody → Gavin Panella (allenap) |
status: | Triaged → In Progress |
Changed in maas: | |
milestone: | 1.7.3 → 1.8.0 |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
I don't know if this problem existed before upgrading to 1.5, but here's the upgrade information anyway:
# grep maas dpkg.log dpkg.log.1 1:2014- 05-21 13:22:38 upgrade maas 1.4+bzr1693+ dfsg-0ubuntu2. 3~ctools0 1.5+bzr2252- 0ubuntu1~ ctools0
dpkg.log.