[2.3] Active subnet mapping crashes.
Bug #1732561 reported by
Andres Rodriguez
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Critical
|
Andres Rodriguez |
Bug Description
Attempting to manually map a machine (either ping or nmap), this happens:
==> /var/log/
2017-11-15 23:47:12 provisioningser
2017-11-15 23:47:12 provisioningser
Traceback (most recent call last):
Failure: twisted.
Related branches
~andreserl/maas:fix_sudoers
Merged
into
maas:master
- Mike Pontillo (community): Approve
- MAAS Lander: Pending (unittests) requested
-
Diff: 21 lines (+3/-1)2 files modifieddebian/extras/99-maas-common-sudoers (+3/-0)
debian/extras/99-maas-sudoers (+0/-1)
Changed in maas: | |
milestone: | none → 2.3.0 |
importance: | Undecided → Critical |
status: | New → Triaged |
assignee: | nobody → Mike Pontillo (mpontillo) |
description: | updated |
summary: |
- [2.3] Mapping a subnet fails requesting sudo access + [2.3] Active subnet mapping crashes. |
Changed in maas: | |
assignee: | Mike Pontillo (mpontillo) → Andres Rodriguez (andreserl) |
Changed in maas: | |
status: | Triaged → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I think I see the problem.
In /etc/sudoers. d/99-maas- sudoers there is an entry as follows:
maas ALL= NOPASSWD: /usr/sbin/maas-rack scan-network *
Instead this should be placed in /etc/sudoers. d/99-maas- common- sudoers as follows:
maas ALL= NOPASSWD: /usr/lib/ maas/maas- common scan-network *
I must have missed this when we moved the commands from /usr/sbin/maas-rack to /usr/lib/ maas/maas- common.