swap command fails with: "AttributeError: 'Namespace' object has no attribute 'maxsize'"

Bug #1360318 reported by Jason Hobbs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
curtin
Fix Released
Critical
Jason Hobbs
curtin (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I tested the curtin 'swap' command this morning and hit an error:

Traceback (most recent call last):
  File "/root/curtin/curtin/commands/main.py", line 96, in main
    sys.exit(args.func(args))
  File "/root/curtin/curtin/commands/swap.py", line 53, in swap_main
    if args.maxsize is not None:
AttributeError: 'Namespace' object has no attribute 'maxsize'
'Namespace' object has no attribute 'maxsize'
Traceback (most recent call last):
  File "/root/curtin/curtin/commands/main.py", line 96, in main
    sys.exit(args.func(args))
  File "/root/curtin/curtin/commands/install.py", line 267, in cmd_install
    stage.run()
  File "/root/curtin/curtin/commands/install.py", line 104, in run
    util.subp(cmd, shell=shell, env=self.env)
  File "/root/curtin/curtin/util.py", line 68, in subp
    cmd=args)
ProcessExecutionError: Unexpected error while running command.
Command: curtin swap --size=auto
Exit code: 3
Reason: -
Stdout: ''
Stderr: ''

Tags: server-hwe
tags: added: server-hwe
Changed in curtin:
status: New → In Progress
assignee: nobody → Jason Hobbs (jason-hobbs)
Changed in curtin:
status: In Progress → Fix Committed
Changed in curtin:
importance: Undecided → Critical
Scott Moser (smoser)
Changed in curtin (Ubuntu):
status: New → Fix Released
Revision history for this message
Scott Moser (smoser) wrote : Fixed in Curtin 17.1

This bug is believed to be fixed in curtin in 17.1. If this is still a problem for you, please make a comment and set the state back to New

Thank you.

Changed in curtin:
status: Fix Committed → Fix Released
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.