← Back to team overview

curtin-dev team mailing list archive

[Bug 1885638] Re: partition number required when preserving existing partitions

 

** Also affects: curtin
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of curtin
developers, which is subscribed to curtin.
https://bugs.launchpad.net/bugs/1885638

Title:
  partition number required when preserving existing partitions

Status in curtin:
  Incomplete
Status in subiquity:
  New

Bug description:
  When preserving existing partitions, the partition number must be
  explicitly provided.  When existing partitions are not preserved,
  partition numbers do not need to be provided for curtin to create the
  same disk layout.  The curtin documentation indicates partition
  numbers are not required.

  A user-data file is attached that demonstrates the problem. For
  anybody trying to use it, it is designed to be run on an EFI system.
  Partitioning is done via an early command.

  At the time the error occurs, neither /var/log/curtin nor
  /var/log/installer/subiquity-curtin-install.conf exists, so I don't
  think curtin is involved.

  The actual error message is:

  2020-06-29 23:03:10,964 INFO root:39 start: subiquity/InstallProgress/install/curtin_install: installing system
   2020-06-29 23:03:10,965 DEBUG subiquitycore.controller.installprogress:259 curtin_install
   2020-06-29 23:03:10,965 DEBUG subiquity.models.subiquity:324 merging config from <subiquity.models.subiquity.DebconfSelectionsModel object at 0x7fd472f2c400>
   2020-06-29 23:03:10,966 DEBUG subiquity.models.subiquity:324 merging config from <subiquity.models.filesystem.FilesystemModel object at 0x7fd472f2c828>
   2020-06-29 23:03:10,966 DEBUG subiquity.models.filesystem:1591 mountpoints {'/boot/efi': 'espmount', '/': 'rootmount'}
   2020-06-29 23:03:10,966 ERROR root:39 finish: subiquity/InstallProgress/install/curtin_install: FAIL: '<' not supported between instances of 'NoneType' and 'NoneType'
   2020-06-29 23:03:10,967 ERROR subiquitycore.controller.installprogress:145 curtin_error
   Traceback (most recent call last):
     File "/snap/subiquity/1938/lib/python3.6/site-packages/subiquity/controllers/installprogress.py", line 304, in install
       await self.curtin_install(context=context)
     File "/snap/subiquity/1938/lib/python3.6/site-packages/subiquitycore/context.py", line 142, in decorated_async
       return await meth(self, **kw)
     File "/snap/subiquity/1938/lib/python3.6/site-packages/subiquity/controllers/installprogress.py", line 268, in curtin_install
       curtin_cmd = self._get_curtin_command()
     File "/snap/subiquity/1938/lib/python3.6/site-packages/subiquity/controllers/installprogress.py", line 236, in _get_curtin_command
       self.model.render(syslog_identifier=ident))
     File "/snap/subiquity/1938/lib/python3.6/site-packages/subiquity/models/subiquity.py", line 325, in render
       merge_config(config, model.render())
     File "/snap/subiquity/1938/lib/python3.6/site-packages/subiquity/models/filesystem.py", line 1618, in render
       'config': self._render_actions(),
     File "/snap/subiquity/1938/lib/python3.6/site-packages/subiquity/models/filesystem.py", line 1601, in _render_actions
       if can_emit(obj):
     File "/snap/subiquity/1938/lib/python3.6/site-packages/subiquity/models/filesystem.py", line 1568, in can_emit
       if p._number < obj._number and p.id not in emitted_ids:
   TypeError: '<' not supported between instances of 'NoneType' and 'NoneType'

To manage notifications about this bug go to:
https://bugs.launchpad.net/curtin/+bug/1885638/+subscriptions