[2.3] Active subnet mapping crashes.

Bug #1732561 reported by Andres Rodriguez
6
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/maas/rackd.log <==
2017-11-15 23:47:12 provisioningserver.rpc.clusterservice: [info] Scan all networks: sudo: a password is required

2017-11-15 23:47:12 provisioningserver.rpc.clusterservice: [critical] Failed to scan all networks.

Traceback (most recent call last):
Failure: twisted.internet.error.ProcessTerminated: A process has ended with a probable error condition: process ended with exit code 1.

Related branches

Changed in maas:
milestone: none → 2.3.0
importance: Undecided → Critical
status: New → Triaged
assignee: nobody → Mike Pontillo (mpontillo)
description: updated
Revision history for this message
Mike Pontillo (mpontillo) wrote :

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.

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.
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.