On 10/2/18 6:17 PM, Mark Goddard wrote:


On Tue, 2 Oct 2018 at 17:10, Jim Rollenhagen <j...@jimrollenhagen.com <mailto:j...@jimrollenhagen.com>> wrote:

    On Tue, Oct 2, 2018 at 11:40 AM Eric Fried <openst...@fried.cc> wrote:

         > What Eric is proposing (and Julia and I seem to be in favor of), is
         > nearly the same as your proposal. The single difference is that these
         > config templates or deploy templates or whatever could *also* require
         > certain traits, and the scheduler would use that information to pick 
a
         > node. While this does put some scheduling information into the config
         > template, it also means that we can remove some of the flavor 
explosion
         > *and* mostly separate scheduling from configuration.
         >
         > So, you'd have a list of traits on a flavor:
         >
         > required=HW_CPU_X86_VMX,HW_NIC_ACCEL_IPSEC
         >
         > And you would also have a list of traits in the deploy template:
         >
         > {"traits": {"required": ["STORAGE_HARDWARE_RAID"]}, "config": <RAID
        blob>}
         >
         > This allows for making flavors that are reasonably flexible (instead 
of
         > two flavors that do VMX and IPSEC acceleration, one of which does 
RAID).
         > It also allows users to specify a desired configuration without also
         > needing to know how to correctly choose a flavor that can handle that
         > configuration.
         >
         > I think it makes a lot of sense, doesn't impose more work on users, 
and
         > can reduce the number of flavors operators need to manage.
         >
         > Does that make sense?

        This is in fact exactly what Jay proposed. And both Julia and I are in
        favor of it as an ideal long-term solution. Where Julia and I deviated
        from Jay's point of view was in our desire to use "the hack" in the
        short term so we can satisfy the majority of use cases right away
        without having to wait for that ideal solution to materialize.


    Ah, good point, I had missed that initially. Thanks. Let's do that.

    So if we all agree Jay's proposal is the right thing to do, is there any
    reason to start working on a short-term hack instead of putting those
    efforts into the better solution? I don't see why we couldn't get that done
    in one cycle, if we're all in agreement on it.


I'm still unclear on the ironic side of this. I can see that config of some sort is stored in glance, and referenced upon nova server creation. Somehow this would be synced to ironic by the nova virt driver during node provisioning. The part that's missing in my mind is how to map from a config in glance to a set of actions performed by ironic. Does the config in glance reference a deploy template, or a set of ironic deploy steps? Or does ironic (or OpenStack) define some config schema that it supports, and use it to generate a set of deploy steps?

I think the most straightforward way is through the same deploy steps mechanism we planned. Make the virt driver fetch the config from glance, then pass it to the provisioning API. As a bonus, we'll get the same API workflow with standalone and nova case.



    // jim
    __________________________________________________________________________
    OpenStack Development Mailing List (not for usage questions)
    Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
    <http://openstack-dev-requ...@lists.openstack.org?subject:unsubscribe>
    http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to