I have been trying to use MAAS to setup a local cloud (mostly for juju to deploy k8s and spark clusters for some projects). I have three Machines none of which have AMT/IPMI and have been looking forward to getting an APC PDU (Switched Rack PDU 7900) for integrated power management in MAAS.
Setup the PDC today and getting strange results. After I setup the power type to APC (IP, Outlet number, default delay), power status remains “Unknown”. Hitting the ‘Turn On’ and ‘Turn Off’ however work.
I am assuming that
/snap/maas/current/lib/python3.6/site-packages/provisioningserver/drivers/power/apc.py is what is used and it looks reasonable. I installed
snmp and ‘snmp-mibs-downloader’ on the maas machine to try the commands manually and all three of them (Outlet#7 say) work. So the PDU itself is configured correctly for the snmp v1 calls.
- query -
snmpget -v1 -c private 192.168.23.100 ".220.127.116.11.4.1.318.104.22.168.22.214.171.124.4.7"
- on -
snmpset -v1 -c private 192.168.23.100 ".126.96.36.199.4.1.3188.8.131.52.184.108.40.206.4.7" i 1
- off -
snmpset -v1 -c private 192.168.23.100 ".220.127.116.11.4.1.318.104.22.168.22.214.171.124.4.7" i 2
When I look in the logs with a
tail -f /var/snap/maas/common/maas.log, I see the following but no error reports for
power_query. I also do not see any mention of the change from
2020-07-29T02:07:32.116163-07:00 maas maas.drivers.power.manual: [info] You need to check power state of byqddw manually. 2020-07-29T02:07:32.149571-07:00 maas maas.drivers.power.manual: [info] You need to check power state of byqddw manually. 2020-07-29T02:08:48.447746-07:00 maas maas.power: [info] Changing power state (on) of node: TR32 (byqddw) 2020-07-29T02:14:13.917076-07:00 maas maas.power: [info] Changing power state (off) of node: TR32 (byqddw)
For a VM node (virsh power type), when I had issues with setup, I notice errors in both maas.log and rackd.log. However, not a peep about the APC power_query.
I tried upgrading to MAAS 2.8 from 2.7 but exact same behavior.
Any additional places to look for logs ?