Project

General

Profile

Task #7283

Task #6869: Challenge OpenStack and OpenNebula with ucloud

Cleanups for ucloud 0.0.2

Added by Nico Schottelius over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
11/01/2019
Due date:
% Done:

0%

Estimated time:
PM Check date:

Description

  • host/main.py: do not hard code /var/vm -> read this from a key in etcd
    • Not sure if we want to use threading or multiprocess - I'd say the latter is probably easier
  • don't just call main(), protect it by if name == '__main__'!

History

#1

Updated by Nico Schottelius over 1 year ago

  • Description updated (diff)
#2

Updated by Ahmed Bilal over 1 year ago

Nico Schottelius wrote:

  • host/main.py: do not hard code /var/vm -> read this from a key in etcd
    • Not sure if we want to use threading or multiprocess - I'd say the latter is probably easier
  • don't just call main(), protect it by if name '__main__'!
  • I already removed hard coded thingies but didn't pushed them yet.
  • Threading should be used in our case because we want to share variables e.g etcd_client handle
  • name '__main__' DONE.
#3

Updated by Nico Schottelius over 1 year ago

Not sure if I agree with you in terms of sharing - why would we want to
share the etcd_client handle and not reallocate/take a new one?

writes:

#4

Updated by Ahmed Bilal over 1 year ago

We can create new ones, but suppose we want to change some parameters i.e passing certificates path when opening connection to etcd key/value store than we have to change it in two places :). Still, if you say I would do it with processes. It may be better. Don't know yet.

#5

Updated by Ahmed Bilal over 1 year ago

Now, using process instead of threads.

#6

Updated by Ahmed Bilal over 1 year ago

  • Status changed from New to Resolved
#7

Updated by Ahmed Bilal over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF