Check whether project and network exists in Network_Isolator (HIL)
Right now the add_project command directly adds the project and provisioning network to db. But a check must be done such that the project and network exists in Network_Isolator (HIL).
@ravisantoshgudimetla @apoorvemohan @naved001 @sirushtim will we allow admin level networks in this or should the provisioning network be part of the project ?
@chemistry-sourabh Lot of that code has not been reviewed by us I guess. And I am wondering, whats the downside of not exposing this call to end user. Why can't this be like register call which does lazy registration and gets the information from HIL? A lot of admin operations can be simplified this way and also provides a minimal set of API, I guess. I might have missed something here but I just want to know everyone's thoughts on this.
So you are suggesting remove the add_project call entirely and let it fetch from HIL if it doesn't exist in our DB ? I kind of like this, but what about the initial admin project ? We wouldn't need to bootstrap BMI anymore, but does HIL let us know if the user is an admin ?
but what about the initial admin project ? We wouldn't need to bootstrap BMI anymore, but does HIL let us know if the user is an admin ?
I am confused here, why do we need admin project?
but does HIL let us know if the user is an admin ?
Easiest way to do it is list_projects(or some command accessible to admin user and check). Since, HIL supports roles now(using keystone), we can pass user info who has admin access in config file that we are using.
We need admin project as bmi as admin operations.
We need admin project as bmi as admin operations.
Ok, thats not informative either. Even for BMI admin operations, we can have a project in HIL that has some other privileges. I didn't understand what do you want exactly here.
I am not at all talking about HIL's admin project. I am stating that BMI needs its form of admin project. This can be a HIL admin project which might be easier to implement as we dont need to do db stuff. But we need an admin project so that the admin can do admin operations like db manipulations, etc.
This needs to be discussed further, I am not sure this qualifies as a bug.
as part of the redesign, bmi won't be asking hil to connect networks anyway.
Edit: It needs to talk to for other reasons (check ownership, get mac address)
@chemistry-sourabh @naved001 can we close this?