MAAS python scripts do not show the line numbers and the script name when errors are encountered

Bug #1431279 reported by CandorZ
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
maas (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

The issue appears to be with

options.execute(options)
except StandardError as error:

is throwing an error that says
'Namespace' object has no attribute debug

on executing the command

maas login <profilename> <url> <auth>

I am unable to resolve it...

Revision history for this message
Raphaël Badin (rvb) wrote :

Can you please provide the full stacktrace (it should be in the logs in /var/log/maas) and tell us which version you're using exactly?

Changed in maas (Ubuntu):
status: New → Incomplete
Revision history for this message
CandorZ (candorz) wrote :

I am using maas 1.7.1
Now that would be another bug that the following command should show maas version

maas --version (maas -v)

I couldnt make out much from the logs but I am still attaching the whole folder for your reference

Revision history for this message
Gavin Panella (allenap) wrote :

What was the exact command that was run?

Revision history for this message
CandorZ (candorz) wrote :

I tried the following commands

maas login maas http://127.0.0.1/MAAS/ 8h77Ye8uEmFEWwqYqr:vTCnwfQzqgdVBv9bRJ:yHuSe5YgAAPHZtkRp6HRgdU8W2tkgy9k

maas login ubcloud http://127.0.0.1/MAAS/ 8h77Ye8uEmFEWwqYqr:vTCnwfQzqgdVBv9bRJ:yHuSe5YgAAPHZtkRp6HRgdU8W2tkgy9k

maas login ubcloud http://127.0.0.1/MAAS/api/1.0 8h77Ye8uEmFEWwqYqr:vTCnwfQzqgdVBv9bRJ:yHuSe5YgAAPHZtkRp6HRgdU8W2tkgy9k

Revision history for this message
CandorZ (candorz) wrote :

I am using MAAS with Ubuntu under Hyper-V with xrdp.
There appears to be some issue with multiple sessions.
A simple restart and the first login to maas through CLI seems to be functional.

The above login command works fine with simultaneous xrdp sessions...

Also I am using a proxy, the command
maas <profile> boot-resources import
returns a
<h1>Length Required</h1>

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for maas (Ubuntu) because there has been no activity for 60 days.]

Changed in maas (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

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