Ask Your Question

zarkone's profile - activity

2017-01-15 15:41:00 -0500 received badge  Notable Question (source)
2017-01-15 15:41:00 -0500 received badge  Popular Question (source)
2016-09-13 00:30:29 -0500 received badge  Enthusiast
2016-09-02 00:24:59 -0500 asked a question Nova scheduler 3rd-party (custom) driver connection in Newton

Before Newton release, I just used full module path in nova.conf to plugin. But now blueprints suggest to use prepared entry points from nova.scheduler namespace.

How I should plug 3rd-party, not built-in drivers?

I actually tried to add entry points manually to /usr/lib/python2.7/site-packages/nova-13.1.0-py2.7.egg-info/entry_points.txt, but sometimes scheduler don't catchup this freshly added points after restart for some reason, and it doesn't look like correct way.

2016-09-02 07:20:41.654 22149 CRITICAL nova [-] RuntimeError: (u'Cannot load scheduler driver from configuration %(conf)s.', {'conf': 'custom_scheduler'})
2016-09-02 07:20:41.654 22149 ERROR nova Traceback (most recent call last):
2016-09-02 07:20:41.654 22149 ERROR nova   File "/usr/bin/nova-scheduler", line 10, in <module>
2016-09-02 07:20:41.654 22149 ERROR nova     sys.exit(main())
2016-09-02 07:20:41.654 22149 ERROR nova   File "/usr/lib/python2.7/site-packages/nova/cmd/scheduler.py", line 43, in main
2016-09-02 07:20:41.654 22149 ERROR nova     topic=CONF.scheduler_topic)
2016-09-02 07:20:41.654 22149 ERROR nova   File "/usr/lib/python2.7/site-packages/nova/service.py", line 296, in create
2016-09-02 07:20:41.654 22149 ERROR nova     db_allowed=db_allowed)
2016-09-02 07:20:41.654 22149 ERROR nova   File "/usr/lib/python2.7/site-packages/nova/service.py", line 182, in __init__
2016-09-02 07:20:41.654 22149 ERROR nova     self.manager = manager_class(host=self.host, *args, **kwargs)
2016-09-02 07:20:41.654 22149 ERROR nova   File "/usr/lib/python2.7/site-packages/nova/scheduler/manager.py", line 75, in __init__
2016-09-02 07:20:41.654 22149 ERROR nova     {'conf': scheduler_driver})
2016-09-02 07:20:41.654 22149 ERROR nova RuntimeError: (u'Cannot load scheduler driver from configuration %(conf)s.', {'conf': 'custom_scheduler'})
2016-07-15 00:31:36 -0500 answered a question devstack connect to host <> port 22: No route to host

Openstack Neutron uses Linux network namespaces to create & manage private networks.

from man IP-NETNS:

A network namespace is logically another copy of the network stack, with its own routes, firewall rules, and network devices

In order to ssh login to your instance without floating ip (i.e., having only private ip), you need to use network namespace:

find out your namespace id:

ip netns

login:

ip netns exec qdhcp-6021a3b4-8587-4f9c-8064-0103885dfba2

futher info: http://docs.openstack.org/user-guide/cli_cheat_sheet.html (http://docs.openstack.org/user-guide/...)

2016-04-13 11:38:39 -0500 answered a question How to get instance_action from python-novaclient?

To use it from Python, you need to plug extension (because it's from contrib, as I understood):

from novaclient import extension
from novaclient.v2.contrib import instance_action

ia_extensions = [
        extension.Extension(instance_action.__name__.split(".")[-1],
                            instance_action),
]
nova = client.Client(some,auth,params,
                     extensions=ia_extensions)
...

nova.instance_action.list(vm)

Also:

https://github.com/openstack/python-novaclient/blob/85eb9f7236fdd4a1fc611c20ea3b25f053180aa1/novaclient/tests/unit/v2/contrib/test_instance_actions.py (example usage in test for novaclient)

https://github.com/openstack/python-novaclient/blob/a7bffe8a71bb051b8c4df873fb8cb187c0f83643/novaclient/v2/contrib/instance_action.py (source code)

2016-04-12 15:19:28 -0500 received badge  Supporter (source)