Giter Club home page Giter Club logo

mso-lo's People

Contributors

aitorzabala avatar fabioubaldi avatar mifot avatar thewall89 avatar tresegiangi avatar zvfvrv avatar

Watchers

 avatar  avatar  avatar

mso-lo's Issues

Subscriptions REST paths

Support the creation of subscription as described in SOL 005

  • add REST paths for /subscriptions
  • GET/POST/DELETE subscription records in site-inventory
  • GET/POST/DELETE subscription records in sqlite local DB

Driver objects or static classes

We should decide if the diver manager should return instances of Driver implementations or just static classes.

It could be possible that Driver implementations need to store some status about the connection to a specific NFVO, like IP address, username, authentication token, etc.

Check subscriptions and send notifications

Quoting Marc's slides:

To update asynchronously the status of NS
SOL005 -> NSLifecycleManagementNotification
Three types of notifications:

  • NsLcmOperationOccurrenceNotification -> Related to the OpOcc created in asynchronous operations. Inform about: NS id,
    OpOcc id, OpOcc status (START, RESULT), StateType (PROCESSING, COMPLETED, etc.) and affected components
  • NsIdentifierCreationNotification: Informs about NS id creation
  • NsIdentifierDeletionNotification: Informs about NS id deletion

Based on subscription: LccnSubscriptionRequest
Proposal:

  • Portal subscribes to NS id after the Instantiate Request (check with Giada).
  • MSNO generates notifications based on the notifications received from the driver(s)

All site NFVO supports this? No, neither OSM or ONAP support the notification. To implement a polling system at MSNO-LO to generate the notifications.

Draft workflow:
mscgenjs_chart

Requirements:

  • Have a queue/stack of resource statuses to check if status changes. Send notification ONLY if status of the monitored resource is changed. RabbitMq/Kafka
  • Run a separate thread on Flask that checks subscriptions and sends notifications (re-uses driver functions to get information from NFVO)

Possible issues:

  • Ability to create separate thread from Flask. Maybe we can use another process.
  • Looping on the list of subscriptions can take some time, increasing the average time of notifications. Run benchmark. Possible solution: spawn more threads in parallel to check the subs.

sqlite.py file error - development branch

While building and running containers using docker-compose.yaml I got an error like below (from container logs)

Traceback (most recent call last):
  File "./app.py", line 24, in <module>
    import data.sqlite as sqlite
ModuleNotFoundError: No module named 'data.sqlite'

(...)

--- no python application found, check your startup logs for errors ---
[pid: 13|app: -1|req: -1/2] 172.22.0.1 () {32 vars in 346 bytes} [Tue May 19 10:35:44 2020] GET /nfvo => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)

I checked container and it didn't contain sqlite.py in /usr/src/app/data directory. In my opinion is caused by volume mounted in that path (docker-compose.yaml file)

I fixed this error locally, so that's not very urgent :)

VIM selection for OSM driver

Some orchestrators may need to select the VIM. We should push some configuration to the driver so it can manage this information.

Precondtiion: VIM information is in the SQLite
Vim information should be retrieved from NFVO (already implemented for OSM).

MSNO retrieves VIM information:

- Change paths to `/nfvo/{nfvo_id}/vim/{vim_id}

MSNO selects the VIM for instantiation:

  • additional parameter in body of instantiate request

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.