[15:12] <roaksoax> smoser: whne you have a chance, could you please review/approve:
[15:12] <roaksoax> https://code.launchpad.net/~andreserl/maas/ipmi_usercreation_ilo_versions_trunk/+merge/148579
[15:12] <roaksoax> https://code.launchpad.net/~andreserl/maas/ipmi_usercreation_ilo_versions/+merge/147460
[15:12] <roaksoax> thank!
[15:17] <smoser> roaksoax, 2 comments, that i'll add to review.
[15:17] <roaksoax> smoser: cool thanks
[15:19] <smoser> review updated.
[15:19] <smoser> sorry that took so long
[15:19] <roaksoax> smoser: thanks!! no worries :)
[15:22] <roaksoax> smoser: updated!
[15:55] <smoser> roaksoax, my only comment is on the drop of 'maas-commission' user
[15:55] <smoser> why did that go? or am i just reading it wrong
[15:56] <roaksoax> smoser:  because it adds more complication on replacing users with iLO3
[15:56] <roaksoax> smoser: and I'm not sure whether it would work
[15:57] <smoser> well, it added more complication in *all* cases.
[15:57] <smoser> but it was deemed necessary/important
[15:57] <roaksoax> smoser: right, so I don't know whether you can replace a user in iLO3, and don't have HW to test it
[15:58] <roaksoax> smoser: either way, a different password is created
[15:58] <roaksoax> smoser: so I think it no longer makes sense to have 2 different users
[15:59] <roaksoax> smoser: that's one of the things that created issues at the drill
[16:00] <smoser> well you dont have to *replace* a user, do you?
[16:00] <smoser> you delete then add, or add then delete.
[16:00] <smoser> right?
[16:00] <smoser> i understand that we dont hav a way to easily test this, but that should'nt be justificaiton for removing code that was deemed necessary previously.
[16:02] <roaksoax> smoser: it was deemed necessary to differentiate in what stage the user was added right?
[16:03] <roaksoax> there was no other reason why we did that
[16:04] <roaksoax> just only to differentiate what stage added the usre
[16:04] <roaksoax> is that still necessary?
[16:15] <roaksoax> rvba: around?
[16:17] <rvba> roaksoax: hi
[16:17] <rvba> What's up?
[16:17] <smoser> roaksoax, i believe it was deemed necessary to avoid deleting a 'maas' user (and corrupting maas usage) if a node booted into enlistment.
[16:17] <smoser> i think.
[16:19] <roaksoax> rvba: so, since bigjools is in leave... I was wondering whether you could help us get the GenericIpAddressField thing in MAAS rather than in django
[16:19] <roaksoax> rvba: the technical board adviced to implement that on the maas side rather than on the django side
[16:19] <roaksoax> rvba: and we need that for sru
[16:22] <roaksoax> smoser: we don't delete IPMI users actually. And we don't correct cause if the node boots into enlistment/commissioning, if it has been previsouly added to MAAS, then it will use the credentials it has there regardless of whether they are maas-commission or maas username's
[16:23] <rvba> roaksoax: too bad we can't SRU Django.  Technically, this should adding GenericIpAddressField in MAAS should not really be complicated (but I'll look into it).  What about the other feature from 1.4 that we use?
[16:23] <roaksoax> rvba: the other 2 patches are good to go
[16:23] <roaksoax> rvba: but will require external testing. The only thing is to move the genericIPAddressField to maas instead of django
[16:24] <rvba> "the other 2 patches are good to go" thank goodness for that!
[16:25] <roaksoax> :)
[16:25] <rvba> roaksoax: I'll have a look at this tomorrow.  Can you file a bug for this please? (maybe there is already one…?)
[16:26] <roaksoax> rvba: sure I'll do that if there's not one :)
[16:26] <rvba> ta
[16:31] <rvba> roaksoax: please add a reference to the tech board decision in the bug's description.  So that everyone will know why we're doing this.
[16:31] <roaksoax> rvba: ack!
[16:49] <smoser> roaksoax, i thought that the general flow/idea was:
[16:50] <smoser>  * if a system boots into enlistment, create a new ipmi user 'maas-commission'
[16:50] <smoser>  that was only to be used for the commsisioning turn on (and would only be ever used for that)
[16:51] <smoser>  * in commissioning (after admin acceptance of node), the 'maas' user is adde,d and from there out, the 'maas' user is used for power control
[16:51] <smoser> by removing the 'maas-commission' user, you potentially report to MAAS-SERVER-X credentials from MAAS-SERVER-Y. thats at leas tone fallout from removing the maas-commission user.
[16:52] <smoser> but thats probably not that big of a deal.
[16:52] <smoser> the point is, though, that we very explicitly decided to use this temporary "first-commission only" user.
[16:52] <smoser> and you're dropping that.
[16:52] <smoser> Daviey, was involved in that discussion, perhaps he has other thoughts.
[16:57] <roaksoax> smoser: we never remove the maas-commission user, we replace it
[16:57] <roaksoax> or at least that's how it works on iLo1
[16:58] <roaksoax> smoser: the only difference was that there was a different user name, and obviously a different password
[16:58] <smoser> roaksoax, my concern (possibly un-founded) resulted from readingg lines 31-35 at https://code.launchpad.net/~andreserl/maas/ipmi_usercreation_ilo_versions_trunk/+merge/148579
[16:58] <roaksoax> so if the node had user 'maas' and then for some reason commissioning run, it would have created a new user/[pass and updated maas, or if it failed to update, it would have a different user/pass in the bmc than what it is stored in maas
[16:59] <smoser> not commissioning, enlistment.
[16:59] <roaksoax> smoser: right, so it is exactly the same case
[16:59] <smoser> the 'maas-commissioning' was explicitly there for enlistment
[16:59] <Daviey> smoser: I'm not emotional either way.. that just seemed a sane way
[17:00] <smoser> as enlistment potentially (i think very unlikely) results in accidentally breaking something for someone
[17:00] <smoser> (ie, if they accendentally pxe booted off a new network... something i thought then was un-likely)
[17:00] <roaksoax> look, if the node is set to 'Ready', and it enlists again, it will change the creds in the BMC either way
[17:00] <Daviey> well, that was slightly different
[17:00] <smoser> not if it enlists to a new maas.
[17:01] <smoser> or a maas it did not intend to enlist to
[17:01] <roaksoax> smoser: in iLO3 yes
[17:01] <roaksoax> i mean
[17:01] <roaksoax> iLO1/2 yes
[17:01] <roaksoax> it would have *replaced* the user regardless of what user it would have been
[17:01] <roaksoax> smoser: so if the BMC had user 'maas', and it enlisted against any other MAAS, the 'maas' user would have been replaced with 'maas-commission
[17:02] <smoser> previously, that would not have happened.
[17:02] <roaksoax> smoser: it would
[17:02] <smoser> at least that was not what we intended.
[17:02] <smoser> the goal before was that enlistment would create a maas-commission user
[17:02] <smoser> and only ever break or change a user named 'maas-commission'
[17:02] <roaksoax> smoser: yes, and we agreed that that user should be *replaced*
[17:03] <smoser> i dont think "replaced" matters.
[17:03] <roaksoax> smoser: exactly, which means that maas-comission or only maas doesn't matter either way
[17:03] <smoser> surely you're not suggesting that previously "maas-commision" would "replace" "maas" user
[17:03] <smoser> as that would be stupid, and the same as deleting.
[17:03] <roaksoax> smoser: that would have happened if you would enlist that machine to a different MAAS
[17:04] <roaksoax> smoser: if you enlist the machine to a different maas, it will replace the existing 'maas' user with 'maas-commission'
[17:04] <roaksoax> that's how it
[17:04] <roaksoax> that's how it always worked
[17:04] <roaksoax> because we decided to have a temporary user/password combination that would later be replaced by the 'maas' user
[17:05] <roaksoax> but then it was *replace*
[17:06] <smoser> roaksoax, you're missing something. or i'm missing something
[17:06] <smoser> i dont care what happens on commission
[17:07] <roaksoax> smoser: so 1. enlistment would create maas-commission in User3. 2. commissioning would replace User3 (maas-commission) with user 'maas'. If that machine is enlisted in another MAAS, the User3 (whjich was previously 'maas') would be replaced by 'maas-commission' again
[17:09] <smoser> well, that was a bug then.
[17:09] <roaksoax> smoser: so using only 'maas' makes more sense
[17:10] <smoser> well, other than it is destructive
[17:10] <smoser> in enlistment
[17:10] <smoser> which is why we had this 'maas-commission' user
[17:10] <smoser> but you're dropping that.
[17:10] <smoser> even if the implementation was broken, it was still there in concept, and now you're removing it.
[17:11] <smoser> if its known broken, i'd just make sure we remove all 'maas-commision' strings anywhere.
[17:15] <roaksoax> smoser: well then the whole IPMI stuff needs re-factoring to support those 2 things differently
[17:16] <roaksoax> smoser: but won't be able to say it works 100% until i can test that with iLO3
[17:20] <smoser> roaksoax, well, for now then i think its probably best to pull it completely
[17:20] <roaksoax> smoser: ack!