Project

General

Profile

Task #7125

Updated by Nico Schottelius over 4 years ago

 

 h2. Discussion: https://chat.ungleich.ch/ungleich/pl/o8y3tz8wo7ytje7o8nk9suw4qo 


 > @mravi @ahmedbilal ping 
 >  
 > @mravi I'd like you to implement asap "ordering" and "products" with ucloud 
 >  
 > I think this is an important part that will also be used by other people who will be using ucloud in the end 
 >  
 > I imagine it as follows: 
 >  
 > We introduce a sub command ucloud order <product>  
 >  
 > that command talks to the API, the API to etcd 
 >  
 > the basic idea is that any product has two financial aspects: 
 >  
 >       one time cost (can be 0 ... x) 
 >  
 >       recurring cost (can be 0...x) and duration can be seconds to years - so we will need to store the unit with it 
 >  
 > For a lot of products the pricing will actually be 0 / 0 per x, like reverse DNS 
 >  
 > however treating everything somebody can book/buy, makes it easier to integrate 
 >  
 > @mravi I'd like you to implement the flow for buying an IPv6 VPN - adding products can for the moment "manual" or fiddling around directly with etcd 
 >  
 > However the logic should work for "any" product    / we should be able to easily hook new products into the system 
 > (edited) 
 >  
 > @mravi some additional commands that might be helpful: ucloud list-products and ucloud register-payment-method 
 >  
 > @mravi do you have any questions? 
 > mravi profile image 
 > 12:50 PM 
 >  
 > hmm,    you probably already told this before @nico but would like to have a reconfirmation from you -- "ucloud uses etcd/json for all data" right? So, we don't any other database or am I missing something ? 
 > nico profile image 
 > 12:50 PM 
 >  
 > @mravi I think we can go etcd only, beside you have a good reason against it 
 >  
 > @mravi Performance wise I don't think etcd will have a problem, but there will be some client logic arranging data, as compared to sql based 
 > mravi profile image 
 > 12:55 PM 
 >  
 > @nico ack .. I would need some introductory lessons into ucloud -- I've been following your discussions but do not know much about how can I kickstart my work  
 > nico profile image 
 > 12:56 PM 
 >  
 > @mravi I think you can start almost clean plate, assuming you write python + probably flask ; however @ahmedbilal knows a lot of details and you can ping him in here 
 >  
 > @mravi payment has so far not been a topic in ucloud at all - so everything related to this is rather new 
 > mravi profile image 
 > 12:57 PM 
 >  
 > ack 
 > nico profile image 
 > 12:58 PM 
 >  
 > @mravi it would be cool if you could create a "dirty" prototype, being able to "order" an IPv6 VPN for 120 CHF/y; a plus if it is for free as long as you have booked any VM 
 > mravi profile image 
 > 1:00 PM 
 >  
 > ok 

 h2. Hand over criteria 

 This task is done, if: 

 * I can order a VM and it is billed via credit card 
 * I can order a VPN and it is ... 
 ** for free, if I have an active VM 
 ** terminated, if I don't have an active VM and the VPN is for free 
 ** paid by credit card if not bound to an active product 

Back