[2.5] <head><title>404 - No Such Resource</title></head> when accessing API

Bug #1791988 reported by Andres Rodriguez
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Unassigned

Bug Description

maas-integration.TestMAASIntegration.test_create_admin ... ok
maas-integration.TestMAASIntegration.test_restart_dbus_avahi ... SKIP: Avahi/DBUS are not used anymore
maas-integration.TestMAASIntegration.test_update_maas_url ... ok
maas-integration.TestMAASIntegration.test_update_maas_url_rack ... ok
maas-integration.TestMAASIntegration.test_check_initial_services_systemctl ... ok
maas-integration.TestMAASIntegration.test_check_rpc_info ... ok
maas-integration.TestMAASIntegration.test_update_preseed_arm ... SKIP: Don't test ARM nodes
maas-integration.TestMAASIntegration.test_login_api ... ok
maas-integration.TestMAASIntegration.test_maas_logged_in ... ok
maas-integration.TestMAASIntegration.test_set_main_archive ... ok
maas-integration.TestMAASIntegration.test_main_archive_in_enlist_userdata_package_mirrors_config ... SKIP: Cloud-init "package_mirror" config is used in MAAS 2.0 and earlier
maas-integration.TestMAASIntegration.test_main_archive_in_enlist_userdata_apt_config ... ok
maas-integration.TestMAASIntegration.test_set_http_proxy ... ok
maas-integration.TestMAASIntegration.test_add_ssh_key ... ERROR

======================================================================
ERROR: maas-integration.TestMAASIntegration.test_add_ssh_key
----------------------------------------------------------------------
testtools.testresult.real._StringException: Empty attachments:
  stderr for maas maas ['sshkeys', 'create', 'key=ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0+sjtoLfaLY45+yyAG5yvYzWuTkcve836XEYlbklPLGkuqY15EhH605R80SBEx74zGgM3NB6eFsJNAdXmKQCiVoX4QTs/OIKXDM1y0LWzyvV+Fby8P1OAaJUe1+dLsrcDV/jwFpUkRcqPcmzMiOhsxcUljJojkWM3IoZHTSqhkQrjP4S79JfmmmlCLkdtfn/talmFjMWNtOB19WLjt8FOjJqejX+fh2XQE89yYaxq/vmbstuqDGFhmLeGV1OayutJLuZk8bjoCvIlAfKzoqwljnnKgyZ4DV6mZOR3o21M0Vz8HBFRKkoe8jvrWFR6oUuY0bpFCAf6l9CU5utYAd7t root@autopkgtest\n']
  stderr for maas maas ['sshkeys', 'read']

retcode for maas maas ['sshkeys', 'create', 'key=ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0+sjtoLfaLY45+yyAG5yvYzWuTkcve836XEYlbklPLGkuqY15EhH605R80SBEx74zGgM3NB6eFsJNAdXmKQCiVoX4QTs/OIKXDM1y0LWzyvV+Fby8P1OAaJUe1+dLsrcDV/jwFpUkRcqPcmzMiOhsxcUljJojkWM3IoZHTSqhkQrjP4S79JfmmmlCLkdtfn/talmFjMWNtOB19WLjt8FOjJqejX+fh2XQE89yYaxq/vmbstuqDGFhmLeGV1OayutJLuZk8bjoCvIlAfKzoqwljnnKgyZ4DV6mZOR3o21M0Vz8HBFRKkoe8jvrWFR6oUuY0bpFCAf6l9CU5utYAd7t root@autopkgtest\n']: {{{2}}}
retcode for maas maas ['sshkeys', 'read']: {{{0}}}
stdout for maas maas ['sshkeys', 'create', 'key=ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0+sjtoLfaLY45+yyAG5yvYzWuTkcve836XEYlbklPLGkuqY15EhH605R80SBEx74zGgM3NB6eFsJNAdXmKQCiVoX4QTs/OIKXDM1y0LWzyvV+Fby8P1OAaJUe1+dLsrcDV/jwFpUkRcqPcmzMiOhsxcUljJojkWM3IoZHTSqhkQrjP4S79JfmmmlCLkdtfn/talmFjMWNtOB19WLjt8FOjJqejX+fh2XQE89yYaxq/vmbstuqDGFhmLeGV1OayutJLuZk8bjoCvIlAfKzoqwljnnKgyZ4DV6mZOR3o21M0Vz8HBFRKkoe8jvrWFR6oUuY0bpFCAf6l9CU5utYAd7t root@autopkgtest\n']: {{{
<html>
  <head><title>404 - No Such Resource</title></head>
  <body>
    <h1>No Such Resource</h1>
    <p>No such child resource.</p>
  </body>
</html>
}}}

stdout for maas maas ['sshkeys', 'read']: {{{[]}}}

Traceback (most recent call last):
  File "/tmp/autopkgtest.d26v7w/build.4mK/real-tree/debian/tests/common.py", line 1434, in test_add_ssh_key
    self.assertEqual(ssh_key, keys[0]['key'])
IndexError: list index out of range

Related branches

Revision history for this message
Andres Rodriguez (andreserl) wrote :

On a CI run I saw this. This CI run also failed is same as https://bugs.launchpad.net/maas/+bug/1791987

Logs:

http://<internal-ip>/job/maas-bionic-master-git/48/artifact/results/artifacts/maas-logs/var/log/maas/regiond.log

Changed in maas:
importance: Undecided → Critical
status: New → Triaged
milestone: none → 2.5.0beta1
Changed in maas:
status: Triaged → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.