IPMI auto-detection fails when LAN channel != 1

Bug #1742299 reported by Christopher Berner on 2018-01-09
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Christopher Berner

Bug Description

I have a ASUS RS400-E8-PS2, which has 2 LAN ports for management. One dedicated to the BMC, and one that's shared with the OS's LAN1. The dedicated one is mapped to LAN channel 1, and the shared one is mapped to LAN channel 8. If I use the dedicated port, MaaS automatic enlistment works fine. However, when trying to use the shared port it fails, because bmc-config returns for the IP address, unless --lan-channel=8 is used.

Related branches

Christopher Berner (cberner) wrote :

Let me know if you have any feedback on this fix. First time contributing to MAAS, so hope I did it right

Newell Jensen (newell-jensen) wrote :


Seems you have signed the contributor agreement if I am not mistaken? Since you wrote the code, how do you feel about creating a pull request and getting this patch reviewed by the MAAS team?

If you are up for it, take a look here:


Let us know if you have any questions.


Christopher Berner (cberner) wrote :

Sure, will do! Just cleaning up a couple more edge cases I found while testing on my hardware

Changed in maas:
status: New → Triaged
Dmitrii Shcherbakov (dmitriis) wrote :


From the git workflow perspective with launchpad you would need to:

1) clone a git repository locally
2) make your changes
3) create a merge proposal

➜ testrepo git init
Initialized empty Git repository in /tmp/testrepo/.git/

➜ testrepo git:(master) ✗ touch testfile && git add testfile && git commit -m 'testcommit'
[master (root-commit) 4b8cb6c] testcommit
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 testfile

➜ testrepo git:(master) git push --set-upstream git+ssh://git.launchpad.net/~cberner/+git/testrepo master
Counting objects: 3, done.
Writing objects: 100% (3/3), 221 bytes | 221.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To git+ssh://git.launchpad.net/~cberner/+git/testrepo
 * [new branch] master -> master
Branch master set up to track remote branch master from git+ssh://git.launchpad.net/~cberner/+git/testrepo.

This will create a repository under https://code.launchpad.net/~cberner/+git

https://code.launchpad.net/~cberner/+git/testrepo - this will be your personal project URL.

After that you can go to


And change the project "target" from "Personal" to "Project" and search for, e.g., "maas". In this example I will use "testrepo" as a target project instead.

As a result your repo URL will look like this: https://code.launchpad.net/~cberner/testrepo/+git/testrepo

This is because of how launchpad URLs are structured - lp is project-oriented



You can then create a merge proposal either via web ui or by visiting a URL directly:


Normally, before creating merge proposals, you also create a feature branch so that your own repo is structured and you can track multiple merge proposals in different branches.

You can see how other people use the same approach:


I hope that helps.

Changed in maas:
assignee: nobody → Christopher Berner (cberner)
importance: Undecided → Medium
milestone: none → 2.4.x
Mike Pontillo (mpontillo) wrote :

@cberner, to expand on Newell's comment about the contributor agreement, it is available here:


I think this will show up in Launchpad under the "Memberships" section once it has been verified.

I see you've already signed the Code of Conduct, which is great - thanks.

Newell Jensen (newell-jensen) wrote :

You will need to link the bug to the pull request by doing adding a commit message of the form mentioned here:


See the section "Linking to bugs" for details.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers