Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker as vim #34

Open
nephilimboy opened this issue Jun 27, 2017 · 5 comments
Open

docker as vim #34

nephilimboy opened this issue Jun 27, 2017 · 5 comments

Comments

@nephilimboy
Copy link

Hi...
i'm working on college project about vnf's service chain so i want to use docker(more specific... kubernetes) as vim for my test bed, is there any plan to use docker as vim in openmano? if not can you give me a hit how to do it?
thanks in advance

@alf-tierno
Copy link
Member

Hi,
Currently openmano does not suppor docker/kubernetes as a VIM. You can implement it easily following this steps: https://osm.etsi.org/wikipub/index.php/Developer_HowTo_for_RO_Module#Creating_a_new_VIM_plugin

On the other hand latest versions of openmano is no longer hosted at github but at ETSI, it is a component (called RO) of the OSM project (https://osm.etsi.org).

@nephilimboy
Copy link
Author

nephilimboy commented Jun 29, 2017

thanks for reply,, i wrote the vimconn_docker.py and put it in openmano package how can i cant install plugin in openmano,, i noticed in "nfvo.py" we have this line of code

 vim_dict={}
    for vim in content:
        extra={'datacenter_tenant_id': vim.get('datacenter_tenant_id')}
        if vim["config"] != None:
            extra.update(yaml.load(vim["config"]))
        if vim["type"] not in vimconn_imported:
            module_info=None
            try:
                module = "vimconn_" + vim["type"]
                module_info = imp.find_module(module)
                vim_conn = imp.load_module(vim["type"], *module_info)
                vimconn_imported[vim["type"]] = vim_conn
            except (IOError, ImportError) as e:
                if module_info and module_info[0]:
                    file.close(module_info[0])
                print "Cannot open VIM module '%s.py'; %s: %s" % ( module, type(e).__name__, str(e))
                return -HTTP_Bad_Request, "Unknown vim type %s" % vim["type"]

        try:
            #if not tenant:
            #    return -HTTP_Bad_Request, "You must provide a valid tenant name or uuid for VIM  %s" % ( vim["type"])
            vim_dict[ vim['datacenter_id'] ] = vimconn_imported[ vim["type"] ].vimconnector(
                            uuid=vim['datacenter_id'], name=vim['datacenter_name'],
                            tenant_id=vim.get('vim_tenant_id'), tenant_name=vim.get('vim_tenant_name'),
                            url=vim['vim_url'], url_admin=vim['vim_url_admin'], 
                            user=vim.get('user'), passwd=vim.get('passwd'),
                            config=extra
                    )

is that means openmano automatically find the vimconn_docker and i dont need to add my python docker connector to it? if not, how can i install my python class to openmano? cuz i already put my class in the folder but nothing happen when i create vnf's.
i used these command according to https://github.com/nfvlabs/openmano/wiki/using-openstack-as-a-VIM

./openmano datacenter-create  myos "test_url" --type=docker --config=test_config"

@alf-tierno
Copy link
Member

alf-tierno commented Jun 29, 2017 via email

@MoubarakZoure
Copy link

MoubarakZoure commented Mar 22, 2019

Hello nephilimboy
Please can you share with me your vim_connect class ?

@nephilimboy
Copy link
Author

Hi MoubarakZoure
Sadly i have lost my old customized Openmano source code and slides. As alf-tierno mentioned before, you can use the latest ETSI or use and customize other opensource solutions like my latest project https://nephilimboy.github.io/XNFV/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants