** Description changed: In MAAS, there used to be various after_commissioning_actions. These ranged from 0 to 3. Nowadays, the only one left is 0. This needs to be changed in maas-enlist. If this is not fixed, precise/quantal machines will not be able to enlist against a MAAS server in Quantal, and/or in Precise when it gets backported. [IMPACT] + + Currently, maas-enlist enlists a node with after_commissioning_action=2. + The default is 0. However, in newer MAAS releases the actions 1,2,3 no + longer exist. The default is still 0. Enlisting with 2 has really no + consequences and is no different to enlisting with 0. + + Not enlisting with after_commissioning_action=0 means that precise nodes + won't be able to enlist into MAAS running on quantal. + [TEST CASE] == Reproduce Failure == 1. Install a MAAS server in Quantal and maas-enlist: - sudo apt-get install maas maas-enlist + sudo apt-get install maas maas-enlist 2. Try to enlist own node: - maas-enlist --serverurl=localhost + maas-enlist --serverurl=localhost 3. A failure will be shown: - ubuntu@server-13542:~$ maas-enlist --serverurl localhost - {"after_commissioning_action": ["Select a valid choice. 2 is not one of the available choices."]} + ubuntu@server-13542:~$ maas-enlist --serverurl localhost + {"after_commissioning_action": ["Select a valid choice. 2 is not one of the available choices."]} == Fixed Version == 1. Install MAAS and the fixed version of maas-enlist 2. Enlist as above (maas-enlist --serverurl=localhost) 3. Success: ubuntu@server-13542:~$ maas-enlist --serverurl localhost { - "status": 0, - "macaddress_set": [ - { - "mac_address": "fa:16:3e:0b:f8:be" - } - ], - "power_parameters": "", - "netboot": true, - "hostname": "node-fa163e0bf8be.local", - "power_type": "", - "system_id": "node-0b48e4aa-cc54-11e1-9dc6-fa163e0bf8be", - "architecture": "amd64" - + "status": 0, + "macaddress_set": [ + { + "mac_address": "fa:16:3e:0b:f8:be" + } + ], + "power_parameters": "", + "netboot": true, + "hostname": "node-fa163e0bf8be.local", + "power_type": "", + "system_id": "node-0b48e4aa-cc54-11e1-9dc6-fa163e0bf8be", + "architecture": "amd64" [REGRESSION POTENTIAL] Minimal to None. Current MAAS in precise supports after_commissioning_action=0 as is the default when adding a node.
** Changed in: maas-enlist (Ubuntu Precise) Assignee: Andres Rodriguez (andreserl) => (unassigned) ** Changed in: maas-enlist (Ubuntu Precise) Status: Confirmed => New ** Changed in: maas-enlist (Ubuntu Precise) Importance: High => Critical -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1024010 Title: After Commission Action 2 no longer exists To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/maas-enlist/+bug/1024010/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs