Re: [openstack-dev] [nova] [Pycharm] Pycharm Debugging
Missing title > Il giorno 06 giu 2017, alle ore 13:55, Giuseppe Di Lena > ha scritto: > > Hello guys, > are some of you using PyCharm to debugging and testing nova? > > I've cloned the Nova Project in my PC, and I want to run some unit tests with > the debugger. > I searched in these days, but I found nothing. > > Do you have some suggestions? > > Best regards Giuseppe __ 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-dev] [nova] [Pycharm]
Hello guys, are some of you using PyCharm to debugging and testing nova? I've cloned the Nova Project in my PC, and I want to run some unit tests with the debugger. I searched in these days, but I found nothing. Do you have some suggestions? Best regards Giuseppe __ 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
Re: [openstack-dev] [nova-scheduler] Get scheduler hint
Hi Chris, > I'm pretty sure a regular user can create a server group and specify the > anti-affinity filter. yes, but we want that the user specifies just the Robustness; the way in which we assign the instances to the compute nodes should be a black box for the regular user(and also for the admin). > Why do you need to track which compute nodes the instances are on? Because putting the instances in the correct compute nodes is just the first step of the algorithm that we are implementing, for the next steps we need to know where is each instance. Thank you for the question. Best regards Giuseppe > Il giorno 03 mag 2017, alle ore 21:01, Chris Friesen > ha scritto: > > On 05/03/2017 03:08 AM, Giuseppe Di Lena wrote: >> Thank you a lot for the help! >> >> I think that the problem can be solved using the anti-affinity filter, but >> we want a regular user can choose an instance and set the property(image, >> flavour, network, etc.) and a parameter Robustness >= 1(that is the number >> of copies of this particular instance). > > I'm pretty sure a regular user can create a server group and specify the > anti-affinity filter. And a regular user can certainly specify --min-count > and --max-count to specify the number of copies. > >> After that, we put every copy of this instance in a different compute, but >> we need to track where we put every copy of the instance (we need to know it >> for the algorithm that we would implement); > > Normally only admin-level users are allowed to know which compute nodes a > given instance is placed on. Why do you need to track which compute nodes > the instances are on? > > Chris > > __ > 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
Re: [openstack-dev] [nova-scheduler] Get scheduler hint
Thank you a lot for the help! I think that the problem can be solved using the anti-affinity filter, but we want a regular user can choose an instance and set the property(image, flavour, network, etc.) and a parameter Robustness >= 1(that is the number of copies of this particular instance). After that, we put every copy of this instance in a different compute, but we need to track where we put every copy of the instance (we need to know it for the algorithm that we would implement); EXAMPLE. With 4 compute nodes User create an instance(Server_1) with Robustness = 3. Server_1_copy1 ==> compute2 Server_1_copy2 ==> compute1 Server_1_copy3 ==> compute4 User create another instance (Host_1) with Robustness = 2 Host_1_copy1 ==> compute2 Host_1_copy2 ==> compute3 and we want to track in a table where are the copies of a particular instance. For Server_1 copy1 ==> compute2 copy2 ==> compute1 copy3 ==> compute4 same thing for Host_1 copy1 ==> compute2 copy2 ==> compute3 I hope that now is more clear. In your opinion what is the best way to do it? Best Regards Giuseppe > Il giorno 02 mag 2017, alle ore 22:08, Matt Riedemann > ha scritto: > > On 5/2/2017 2:15 PM, Chris Friesen wrote: >> It sounds to me that the problem could be solved by specifying >> --min-count and --max-count to specify the number of copies, and using >> server groups with the anti-affinity filter to ensure that they end up >> on different compute nodes. > > This is exactly what I was thinking. What else is involved or needed that > existing parts of the compute API don't already provide for that use case? > > -- > > Thanks, > > Matt > > __ > 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
Re: [openstack-dev] [nova-scheduler] Get scheduler hint
Thank you a lot! :-). Actually, we are also working in parallel to implement the algorithm with tacker, but for this project we will only use the basic modules in OpenStack and Heat. If the scheduler hints are no longer supported, what is the correct way to give the scheduler personalized input with the instance details? Best regards Giuseppe > Il giorno 02 mag 2017, alle ore 16:47, Jay Pipes ha > scritto: > > On 05/02/2017 09:58 AM, Giuseppe Di Lena wrote: >> Thank you for your answer :-) >> >> I'm pretty new in OpenStack and open source in general(I started two >> months ago, and I don't have any experience in developing big project). >> What we are trying to do is to implement our algorithm for Robust NFV >> chain; to do it we need to create multiple copies of the same instance >> and put them in different compute nodes. >> When we create an instance, we give as input the robustness(integer >> value >=1) that is the number of copy of an instance. >> For example Robustness = 3, it will create 3 instances and put them in 3 >> different compute nodes. > > OK, got it. What you want to do is actually not in Nova but rather in the > Neutron SFC and Tacker projects: > > https://github.com/openstack/networking-sfc > https://github.com/openstack/tacker > > Go ahead and read up on those two projects and get a feel for how they are > structured. You can head over to Freenode IRC on the #openstack-neutron > channel to chat about Neutron service function chaining. The #tacker channel > has folks interested in NFV orchestration and should be able to help you out. > > All the best, > -jay > > __ > 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
Re: [openstack-dev] [nova-scheduler] Get scheduler hint
Thank you for your answer :-) I'm pretty new in OpenStack and open source in general(I started two months ago, and I don't have any experience in developing big project). What we are trying to do is to implement our algorithm for Robust NFV chain; to do it we need to create multiple copies of the same instance and put them in different compute nodes. When we create an instance, we give as input the robustness(integer value >=1) that is the number of copy of an instance. For example Robustness = 3, it will create 3 instances and put them in 3 different compute nodes. Best regards > Il giorno 02 mag 2017, alle ore 14:25, Jay Pipes ha > scritto: > > Scheduler hints are neither portable nor going to be supported in Nova > long-term, so describe to us what problem you're trying to solve and maybe we > can help guide you in what you need to change in the scheduler. __ 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-dev] [nova-scheduler] Get scheduler hint
Hello all, I’m modifying nova-scheduler, implementing my own scheduler; there is a way to get all the list of the scheduler hints(for example when I lunch a new Instance, add a custom Hint MY_HINT, with value 100)? I tried with def select_destination(self, context, spec_obj): ….. spec_obj.get_scheduler_hint(‘MY_HINT’) # but it return None ….. thank you Giuseppe Di Lena __ 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