[openstack-dev] [Neutron] VLAN trunking network for NFV

2015-03-24 Thread Daniele Casini

Hi all:

in reference to the following specification about the creation of VLAN 
trunking network for NFV


https://review.openstack.org/#/c/136554/3/specs/kilo/nfv-vlan-trunks.rst

I would like to better understand how the tagged traffic will be 
realized. In order to explain myself, I report the following use case:


A VNF is deployed in one VM, which has a trunk port carrying traffic for 
two VLANs over a single link able to transport more than one VLAN 
through a single integration-bridge (br-int) port. So, How does br-int 
manage the VLAN-ID? In other words, what are the action performed by the 
br-int when a VM forwards traffic to another host?
Does it put an additional tag or replace the existing one keeping the 
match with a table or something like that?


Thank you very much.

Daniele


__
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] questions on object/db usage

2014-11-05 Thread Daniele Casini

Hi All:

I replaced all*/db.instance_get_all_by_host()/*in nova and tested it 
using *tox*.
Might it be useful? If so, Which is the better way to propose it to 
OpenStack community?


Best regards,

Daniele


On 10/23/2014 09:01 PM, Dan Smith wrote:

When I fix some bugs, I found that some code in
nova/compute/api.py
   sometimes we use db ,sometimes we use objects do we have
any criteria for it? I knew we can't access db in compute layer code,
how about others ? prefer object or db direct access? thanks

Prefer objects, and any remaining db.* usage anywhere (other than the
object code itself) is not only a candidate for cleanup, it's much
appreciated :)

--Dan



___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [Python-novaclient] Python-novaclient tests fail

2014-10-13 Thread Daniele Casini

Hi All,

I am trying to test *python-novaclient* using 
/*pythonsetup.pytes**t*/asreported in 
http://docs.openstack.org/developer/python-novaclient/ 
cid:part1.07080205.06020204@dektech.com.au.

In order to figure out the test logic I ran tests but an error is occurred:

Exception:
Traceback (most recent call last):
  File /usr/local/lib/python2.7/dist-packages/pip/basecommand.py, 
line 122, in main

status = self.run(options, args)
  File 
/usr/local/lib/python2.7/dist-packages/pip/commands/install.py, line 
283, in run
requirement_set.install(install_options, global_options, 
root=options.root_path)
  File /usr/local/lib/python2.7/dist-packages/pip/req.py, line 1431, 
in install

requirement.uninstall(auto_confirm=True)
  File /usr/local/lib/python2.7/dist-packages/pip/req.py, line 598, 
in uninstall

paths_to_remove.remove(auto_confirm)
  File /usr/local/lib/python2.7/dist-packages/pip/req.py, line 1836, 
in remove

renames(path, new_path)
  File /usr/local/lib/python2.7/dist-packages/pip/util.py, line 295, 
in renames

shutil.move(old, new)
  File /usr/lib/python2.7/shutil.py, line 300, in move
rmtree(src)
  File /usr/lib/python2.7/shutil.py, line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
  File /usr/lib/python2.7/shutil.py, line 252, in rmtree
onerror(os.remove, fullname, sys.exc_info())
  File /usr/lib/python2.7/shutil.py, line 250, in rmtree
os.remove(fullname)
OSError: [Errno 13] Permission denied: 
'/usr/local/lib/python2.7/dist-packages/hacking/tests/test_doctest.pyc'


Storing debug log for failure in /home/devstack/.pip/pip.log

I am working on *master branch* and *no source code modification* are 
performed.


Do you know how to fix it?

Thanks,

Daniele.

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Python-novaclient] Python-novaclient tests fail

2014-10-13 Thread Daniele Casini

I have already used sudo but it still fails:

ImportError: cannot import name exceptions
Ran 63 tests in 0.146s (+0.014s)
FAILED (id=3, failures=63)
error: testr failed (1)

So, it is quite strange because I do not modify the source code.
Let me know if you have some suggestions.

Thanks,

Daniele.

On 10/13/2014 01:19 PM, Murugan, Visnusaran wrote:


Just a permission issue. Use a “sudo”. You could alternatively install 
novaclient under a virtualenv and run the same “python setup.py test” 
without sudo.


-Vishnu

*From:*Daniele Casini [mailto:daniele.cas...@dektech.com.au]
*Sent:* Monday, October 13, 2014 3:50 PM
*To:* openstack-dev@lists.openstack.org
*Subject:* [openstack-dev] [Python-novaclient] Python-novaclient tests 
fail


Hi All,

I am trying to test *python-novaclient* using 
*/python/**//**/setup.py/**//**/test/*asreported in 
http://docs.openstack.org/developer/python-novaclient/ 
cid:part1.07080205.06020204@dektech.com.au.
In order to figure out the test logic I ran tests but an error is 
occurred:


Exception:
Traceback (most recent call last):
  File /usr/local/lib/python2.7/dist-packages/pip/basecommand.py, 
line 122, in main

status = self.run(options, args)
  File 
/usr/local/lib/python2.7/dist-packages/pip/commands/install.py, line 
283, in run
requirement_set.install(install_options, global_options, 
root=options.root_path)
  File /usr/local/lib/python2.7/dist-packages/pip/req.py, line 1431, 
in install

requirement.uninstall(auto_confirm=True)
  File /usr/local/lib/python2.7/dist-packages/pip/req.py, line 598, 
in uninstall

paths_to_remove.remove(auto_confirm)
  File /usr/local/lib/python2.7/dist-packages/pip/req.py, line 1836, 
in remove

renames(path, new_path)
  File /usr/local/lib/python2.7/dist-packages/pip/util.py, line 295, 
in renames

shutil.move(old, new)
  File /usr/lib/python2.7/shutil.py, line 300, in move
rmtree(src)
  File /usr/lib/python2.7/shutil.py, line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
  File /usr/lib/python2.7/shutil.py, line 252, in rmtree
onerror(os.remove, fullname, sys.exc_info())
  File /usr/lib/python2.7/shutil.py, line 250, in rmtree
os.remove(fullname)
OSError: [Errno 13] Permission denied: 
'/usr/local/lib/python2.7/dist-packages/hacking/tests/test_doctest.pyc'


Storing debug log for failure in /home/devstack/.pip/pip.log

I am working on *master branch* and *no source code modification* are 
performed.


Do you know how to fix it?

Thanks,

Daniele.


  



___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


--
Daniele Casini

DEK Technologies
Via dei Castelli Romani, 22
00040 Pomezia (Roma)
E-mail: daniele.cas...@dektech.com.au
WEB: www.dektech.com.au

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [Python-novaclient] Python-novaclient tests fail

2014-10-13 Thread Daniele Casini
I have already use tox instead of python setup.py test and the test 
is successfully passed.


However, I do not understand because it does not pass using the way 
reported in the official document.


Thus, two questions occour to me:

Can I use tox in order to test python-novaclient? Should the official 
document (i.e http://docs.openstack.org/developer/python-novaclient/ 
?ui=2ik=fc0b506fdfview=attth=1490909bfc88b13cattid=0.0.1.1disp=embzwatsh=0) 
be changed adding tox, as well?


Thanks,

Daniele.


On 10/13/2014 01:29 PM, Andrey Kurilin wrote:

Simple way to run tests is using tox:
$ tox -epy27

For more details, look at nova guide: 
http://docs.openstack.org/developer/nova/devref/unit_tests.html


PS: Why novaclient guide recommends to use python setup.py test? A 
bit strange for me.


On Mon, Oct 13, 2014 at 1:19 PM, Daniele Casini 
daniele.cas...@dektech.com.au mailto:daniele.cas...@dektech.com.au 
wrote:


Hi All,

I am trying to test *python-novaclient* using
/*pythonsetup.pytes**t*/asreported in
http://docs.openstack.org/developer/python-novaclient/

?ui=2ik=fc0b506fdfview=attth=1490909bfc88b13cattid=0.0.1.1disp=embzwatsh=0.
In order to figure out the test logic I ran tests but an error is
occurred:

Exception:
Traceback (most recent call last):
  File
/usr/local/lib/python2.7/dist-packages/pip/basecommand.py, line
122, in main
status = self.run(options, args)
  File
/usr/local/lib/python2.7/dist-packages/pip/commands/install.py,
line 283, in run
requirement_set.install(install_options, global_options,
root=options.root_path)
  File /usr/local/lib/python2.7/dist-packages/pip/req.py, line
1431, in install
requirement.uninstall(auto_confirm=True)
  File /usr/local/lib/python2.7/dist-packages/pip/req.py, line
598, in uninstall
paths_to_remove.remove(auto_confirm)
  File /usr/local/lib/python2.7/dist-packages/pip/req.py, line
1836, in remove
renames(path, new_path)
  File /usr/local/lib/python2.7/dist-packages/pip/util.py, line
295, in renames
shutil.move(old, new)
  File /usr/lib/python2.7/shutil.py, line 300, in move
rmtree(src)
  File /usr/lib/python2.7/shutil.py, line 247, in rmtree
rmtree(fullname, ignore_errors, onerror)
  File /usr/lib/python2.7/shutil.py, line 252, in rmtree
onerror(os.remove, fullname, sys.exc_info())
  File /usr/lib/python2.7/shutil.py, line 250, in rmtree
os.remove(fullname)
OSError: [Errno 13] Permission denied:
'/usr/local/lib/python2.7/dist-packages/hacking/tests/test_doctest.pyc'

Storing debug log for failure in /home/devstack/.pip/pip.log

I am working on *master branch* and *no source code modification*
are performed.

Do you know how to fix it?

Thanks,

Daniele.


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
mailto:OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




--
Best regards,
Andrey Kurilin.


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


--
Daniele Casini

DEK Technologies
Via dei Castelli Romani, 22
00040 Pomezia (Roma)
E-mail: daniele.cas...@dektech.com.au
WEB: www.dektech.com.au

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev