maas 1.7 boot-images command dumps html to console instead of readable output

Bug #1379898 reported by Jeff Lane 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
New
Undecided
Unassigned

Bug Description

While trying to get a showing of available boot images, instead I got an ugly dump of html. This system was running 1.5.4 and was just upgraded to 1.7.0 from the experimental PPA.

ubuntu@critical-maas:/etc/maas$ sudo maas maas boot-images report-boot-images
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Language" content="en-us" />
    <link rel="shortcut icon" href="/MAAS/static/img/favicon.ico"/>

    <link rel="stylesheet" href="/MAAS/combo/maas/?css/base.css&css/typography.css&css/forms.css&css/layout.css&css/modifiers.css&css/components/flash_messages.css&css/components/pagination.css&css/components/table_list.css&css/components/title_form.css&css/components/blocks.css&css/components/fluid.css&css/components/yui_panel.css&css/components/yui_overlay.css&css/components/yui_node_add.css&css/components/data_list.css&css/components/search_box.css&css/components/slider.css&css/components/spinner.css&css/ubuntu-webfonts.css&css/multiselect_widget.css" />
    <title>Error: Page not found | critical-maas MAAS
</title>
    <script type="text/javascript">
<!--
var YUI_config = {
    debug: false,
    combine: true,
    filter: 'min',
    root: '',
    base: '/MAAS/combo/yui/?',
    comboBase: '/MAAS/combo/yui/?',
};
var MAAS_config = {
    uris: {
        login: '/MAAS/accounts/login/',
        statics: '/MAAS/static/',
        maas_handler: '/MAAS/api/1.0/maas/',
        nodes_handler: '/MAAS/api/1.0/nodes/',
        account_handler: '/MAAS/api/1.0/account/',
        images_handler: '/MAAS/images/'
        },
    debug: false
};
// -->
</script>
<script type="text/javascript"
    src="/MAAS/combo/yui/?yui-base/yui-base-min.js">
</script>
<script type="text/javascript"
    src="/MAAS/combo/maas/?js/image.js&js/image_views.js&js/license_key.js&js/morph.js&js/user_panel.js&js/node_add.js&js/node.js&js/prefs.js&js/utils.js&js/node_views.js&js/node_check.js&js/shortpoll.js&js/enums.js&js/os_distro_select.js&js/power_parameters.js&js/nodes_chart.js&js/reveal.js">
</script>

</head>
<body class="">

  <div class="center-page-wrapper">
    <div class="center-page-content">

      <div id="body">
        <ul id="flash-messages">

        </ul>

          <h1 id="page-title">Error: Page not found</h1>

        <div id="content">
            <div id="sidebar"></div>

  <h2>
    The requested URL /MAAS/api/1.0/boot-images/ was not found on this server.
  </h2>

            <div class="clear"></div>
        </div>
      </div>
      <div id="footer">
        <img src="/MAAS/static/img/ubuntu_logo_footer.png" alt="Ubuntu" />

          <p>&copy; 2014 Canonical Ltd. Ubuntu and Canonical are registered
          trademarks of Canonical Ltd.
          <a class="space-left-small" href="https://maas.ubuntu.com/" target="_blank">View Documentation</a></p>

        <div class="clear"></div>
      </div>
    </div>
  </div>
</body>
</html>

doing some further digging, nothing in that path outside of /MAAS/ is valid. Trying the following from a browser returns 404s:

http://critical-maas/MAAS/api/
http://critical-maas/MAAS/api/1.0

Christian Reis (kiko)
Changed in maas:
milestone: none → 1.7.0
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Please do a "maas refresh"

Changed in maas:
milestone: 1.7.0 → none
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.