Thanks for the reply Andres. I'm developing a MaaS plugin for Apache Cloudstack. The idea is that MaaS will be a provisioner for baremetal hosts. Now, in this Scenario, Cloudstack is incharge of networking. The way I have it designed currently is that MaaS resides in a specific VLAN and deploys the OS on the host. After the installation, I change the VLAN on the ToR switch from Cloudstack (Cloudstack has plugins for ToR switches as well), move it into the correct VLAN and move it to the the VLAN which Cloudstack has designated for a particular virtual network. This way, both VMs and Baremetal hosts can communicate.
Right now, I'm using preseed scripts to do most of the work like removing the MaaS cloud provider because Cloudstack will now become the cloud-init provider. I have documented this in an FS at https://cwiki.apache.org/confluence/display/CLOUDSTACK/MaaS+Integration+for+Baremetal+Provisioning+in+Cloudstack I see your point that I should not manually trigger a deployed event before the OS is installed. What I can do instead is to have some kind of firstboot action which will do the required setup for me. Does my approach make sense? Right now I am using preseed scripts to acomplish running post-install commands. Is there any way I can achieve the same using API calls? I'm open to any and all suggestions. So please don't hesitate to tell me if I am completely stupid and there is a better way to do things. Thanks, -Syed On Fri, Oct 6, 2017 at 9:55 AM, Andres Rodriguez < [email protected]> wrote: > Hi Syed, > > That is not possible. Doing so would mean that you are marking the machine > as deployed before it boots into the OS for the first time. This could > obviously lead you to think that the machine has deployed successfully when > you haven't proven that to be the case. > > Is there any specific use case you were looking to cover? > > Thanks! > > On Mon, Oct 2, 2017 at 12:30 PM, Syed Mushtaq <[email protected]> > wrote: > >> Hi All, >> >> Currently, when you deploy a node, the state change from Deploying to >> Deployed happens when MAAS receives a cloud-init request after the node >> boots up. Is it possible to manually trigger that from a preseed script? >> >> Thanks, >> -Syed >> >> -- >> Maas-devel mailing list >> [email protected] >> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm >> an/listinfo/maas-devel >> >> > > > -- > Andres Rodriguez > Engineering Manager, MAAS > Canonical USA, Inc. >
-- Maas-devel mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/maas-devel
