[Bug 1034228] Re: maas-enlist script hard codes the path to the maas server
Andres Rodriguez
andreserl at ubuntu-pe.org
Wed Aug 8 15:26:58 UTC 2012
The reason why the API path was hardcoded is because maas-enlist was
intended to be used against a MAAS server deployed from the Debian
package. This meant that the API path would not change. Other reasons
are because in the preseed (in cobbler world) we were only able to send
the IP address of the MAAS server. Finally, for simplicity reasons (and
manual enlistment) it was decided to only pass the hostname/ip address
when enlistment.
Now, based on the discussion on IRC and to maintain backward
compatibility, the new approach will be:
1. If maas-enlist gets passed only the 'hostname/ip address' of the MAAS server, then it will automatically add '/MAAS/api/1.0/nodes' as default API path.
2. If maas-enlist gets passed a URL with the API path, it will override the default value and the URL will be used instead.
By doing so, we ensure that we maintain backwards compatibility.
I'm more than happy to fix this. I have assigned this to me.
** Changed in: maas-enlist (Ubuntu)
Assignee: (unassigned) => Andres Rodriguez (andreserl)
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to maas-enlist in Ubuntu.
https://bugs.launchpad.net/bugs/1034228
Title:
maas-enlist script hard codes the path to the maas server
To manage notifications about this bug go to:
https://bugs.launchpad.net/maas/+bug/1034228/+subscriptions
More information about the Ubuntu-server-bugs
mailing list