Ask Your Question

prasoontelang's profile - activity

2017-05-24 09:09:23 -0500 received badge  Good Answer (source)
2016-06-30 04:22:42 -0500 received badge  Famous Question (source)
2016-04-13 05:02:33 -0500 received badge  Good Answer (source)
2015-11-19 08:36:09 -0500 received badge  Notable Question (source)
2015-03-30 21:27:10 -0500 received badge  Notable Question (source)
2015-03-01 07:01:47 -0500 edited question RDO icehouse network agents “alive” status keep changing state

Host OS: RHEL 6.5 Icehouse: RDO epel-6

The network agents “alive” status keep changing state. For example, when running the neutron agent-list command you can see the alive status changing back and forth.

[root@icehouse0-1 ~(keystone_admin)]# neutron agent-list
+--------------------------------------+--------------------+-------------------------------+-------+----------------+
| id                                   | agent_type         | host                          | alive | admin_state_up |
+--------------------------------------+--------------------+-------------------------------+-------+----------------+
| 0fd2917a-67b6-4bc5-900a-7aedba949ac7 | Open vSwitch agent | icehouse0-3.lab.com           | xxx   | True           |
| 39667d88-aa67-4e87-8c39-be763d3123da | DHCP agent         | icehouse0-1.lab.com           | xxx   | True           |
| 673d1a73-fb14-4a4d-9562-056d8b9f4af6 | L3 agent           | icehouse0-1.lab.com           | xxx   | True           |
| 7595c00f-6090-4ea0-8c77-d9b23e0ec6da | Open vSwitch agent | icehouse0-1.lab.com           | xxx   | True           |
| a7331375-3c67-4797-882d-07cd506e17ae | Open vSwitch agent | icehouse0-2.lab.com           | :-)   | True           |
| aec85ab1-efa0-4ee7-b429-a76373f21234 | Metadata agent     | icehouse0-1.lab.com           | :-)   | True           |
| da24954b-906b-45a0-b5c2-fc0e5c4972ba | Loadbalancer agent | icehouse0-1.lab.com           | :-)   | True           |
+--------------------------------------+--------------------+-------------------------------+-------+----------------+
[root@icehouse0-1 ~(keystone_admin)]# neutron agent-list
+--------------------------------------+--------------------+-------------------------------+-------+----------------+
| id                                   | agent_type         | host                          | alive | admin_state_up |
+--------------------------------------+--------------------+-------------------------------+-------+----------------+
| 0fd2917a-67b6-4bc5-900a-7aedba949ac7 | Open vSwitch agent | icehouse0-3.lab.com           | xxx   | True           |
| 39667d88-aa67-4e87-8c39-be763d3123da | DHCP agent         | icehouse0-1.lab.com           | xxx   | True           |
| 673d1a73-fb14-4a4d-9562-056d8b9f4af6 | L3 agent           | icehouse0-1.lab.com           | :-)   | True           |
| 7595c00f-6090-4ea0-8c77-d9b23e0ec6da | Open vSwitch agent | icehouse0-1.lab.com           | xxx   | True           |
| a7331375-3c67-4797-882d-07cd506e17ae | Open vSwitch agent | icehouse0-2.lab.com           | xxx   | True           |
| aec85ab1-efa0-4ee7-b429-a76373f21234 | Metadata agent     | icehouse0-1.lab.com           | :-)   | True           |
| da24954b-906b-45a0-b5c2-fc0e5c4972ba | Loadbalancer agent | icehouse0-1.lab.com           | :-)   | True           |
+--------------------------------------+--------------------+-------------------------------+-------+----------------+
[root@icehouse0-1 ~(keystone_admin)]# neutron agent-list
+--------------------------------------+--------------------+-------------------------------+-------+----------------+
| id                                   | agent_type         | host                          | alive | admin_state_up |
+--------------------------------------+--------------------+-------------------------------+-------+----------------+
| 0fd2917a-67b6-4bc5-900a-7aedba949ac7 | Open vSwitch agent | icehouse0-3.lab.com           | xxx   | True           |
| 39667d88-aa67-4e87-8c39-be763d3123da | DHCP agent         | icehouse0-1.lab.com           | xxx   | True           |
| 673d1a73-fb14-4a4d-9562-056d8b9f4af6 | L3 agent           | icehouse0-1.lab.com           | :-)   | True           |
| 7595c00f-6090-4ea0-8c77-d9b23e0ec6da | Open vSwitch agent | icehouse0-1.lab.com           | :-)   | True           |
| a7331375-3c67-4797-882d-07cd506e17ae | Open vSwitch agent | icehouse0-2.lab.com           | xxx   | True           |
| aec85ab1-efa0-4ee7-b429-a76373f21234 | Metadata agent     | icehouse0-1.lab.com           | :-)   | True           |
| da24954b-906b-45a0-b5c2-fc0e5c4972ba | Loadbalancer agent | icehouse0-1.lab.com           | :-)   | True           |
+--------------------------------------+--------------------+-------------------------------+-------+----------------+
[root@icehouse0-1 ~(keystone_admin)]#

The services are all up and running and no errors in the neutron log files. There are a few warnings in the server.log file.

[root@icehouse0-1 neutron(keystone_admin)]# pwd
/var/log/neutron
[root@icehouse0-1 neutron(keystone_admin)]# grep ERROR *
[root@icehouse0-1 neutron(keystone_admin)]# grep WARNING *
server.log:2014-05-06 13:46:11.406 4238 WARNING neutron.openstack.common.db.sqlalchemy.session [-] This application has not enabled MySQL traditional mode, which means silent data corruption may occur. Please encourage the application developers to enable this mode.
server.log:2014-05-06 13:46:11.710 4238 WARNING neutron.api.extensions [-] Extension fwaas not supported by any of loaded plugins
server.log:2014-05-06 13:46:11.712 4238 WARNING neutron.api.extensions [-] Extension flavor not supported by any of loaded plugins
server.log:2014-05-06 13:46:11.726 4238 WARNING neutron.api.extensions [-] Extension metering not supported by any of loaded plugins
server.log:2014-05-06 13:46:11.728 4238 WARNING neutron.api.extensions [-] Extension multi-provider not supported by any of loaded plugins
server.log:2014-05-06 13:46:11.731 4238 WARNING neutron.api.extensions [-] Extension port-security not supported by any of loaded plugins
server.log:2014-05-06 13:46:11.736 4238 WARNING neutron.api.extensions [-] Extension routed-service-insertion not supported by any of loaded plugins
server.log:2014-05-06 13:46:11.737 4238 WARNING neutron.api.extensions [-] Extension router-service-type not supported by any of loaded plugins
server.log:2014-05-06 13:46:11.746 4238 WARNING neutron.api.extensions [-] Extension vpnaas not supported by any of loaded plugins
server.log:2014-05-06 13:46:11.772 4238 WARNING keystoneclient.middleware.auth_token [-] Configuring admin ...
(more)
2015-02-26 23:55:54 -0500 received badge  Popular Question (source)
2015-02-26 23:55:54 -0500 received badge  Notable Question (source)
2014-12-11 19:09:54 -0500 received badge  Taxonomist
2014-12-02 05:45:23 -0500 marked best answer Adding a drop down tab on Dashboard

Openstack newbie here. I want to add a new drop down tab in the "Create Network" box that pops up on clicking "+Create Network" in the Networks panel of Admin. I don't have a good experience in Django framework.
I have located the file forms.py that has a class CreateNetwork in the path:
/opt/stack/horizon/openstack_dashboard/dashboards/admin/networks.

class CreateNetwork(forms.SelfHandlingForm):
    name = forms.CharField(max_length=255,
                           label=_("Name"),
                           required=False)
    tenant_id = forms.ChoiceField(label=_("Project"))
    if api.neutron.is_port_profiles_supported():
        net_profile_id = forms.ChoiceField(label=_("Network Profile"))
    admin_state = forms.BooleanField(label=_("Admin State"),
                                     initial=True, required=False)
    shared = forms.BooleanField(label=_("Shared"),
                                initial=False, required=False)
    external = forms.BooleanField(label=_("External Network"),
                                  initial=False, required=False)

    ## The new field
    new_field = forms.ChoiceField(choices=[(1, 'Freemium'), (2, 'Basic'), (3, 'Premium')],
                                           label=_("New Field"))
    ##

I added another variable just to see if it is visible in the GUI but it fails. I also tried changing the label names of the fields that was visible, example changing External Network to Network External, to verify if I am in the right file, but the changes were not reflected on the Dashboard.

Can anyone suggest me ways to make changes on the fly such that I can test it's visibility on the dashboard by a normal refresh? Thanks

2014-11-20 21:32:43 -0500 commented question Neutron service not starting

Also can you paste the /etc/neutron/neutron.conf and /etc/neutron/plugins/ml2/ml2_conf.ini, it would be easy to correlate with the logs.

2014-11-20 21:18:51 -0500 received badge  Popular Question (source)
2014-11-20 03:37:08 -0500 asked a question Deleting floating ip also disassociates the floating ip on active instances without a warning

I had associated a floating IP to an instance and then I deleted the floating ips under the access & security panel from the dashboard.

I don't know if it is by design but I was expecting some sort of a warning saying that the "floating IP is in use" and not allow the deletion. Similar to how subnet cannot be deleted if there are active instances.

I would like to know what was the intent behind this.

(picked from launchpad)

2014-10-31 05:56:01 -0500 received badge  Nice Answer (source)
2014-10-22 03:46:52 -0500 received badge  Famous Question (source)
2014-08-31 23:09:16 -0500 received badge  Necromancer (source)
2014-08-31 23:09:16 -0500 received badge  Self-Learner (source)
2014-08-31 23:08:33 -0500 received badge  Famous Question (source)
2014-08-31 12:50:25 -0500 answered a question Invoke ML2 plugin methods from the mechanism driver

I figured out later that it is done using NeutronManager in neutron/manager.py

2014-08-31 12:43:56 -0500 commented question Why can't connect to Gerrit’s SSHD port

did you add a remote using "git review -s" ?

2014-08-31 12:05:53 -0500 commented question Expecting an auth URL via either --os-auth-url or env[OS_AUTH_URL]

This is a frequently asked question in this forum, refer to this other question. If it's a different problem, update the question.

2014-08-29 08:43:39 -0500 received badge  Famous Question (source)
2014-08-29 08:43:07 -0500 received badge  Famous Question (source)
2014-08-29 06:24:38 -0500 commented answer CINDER ERROR: No suitable rootwrap found

Does the info in the following links help? Launchpad Devstack & Redhat

2014-08-29 06:08:13 -0500 answered a question CINDER ERROR: No suitable rootwrap found

Thanks for the log!

Following lines from 58-62 seems to be the trigger

2014-08-28 20:16:49 Downloading/unpacking oslo.config>=1.4.0.0a3 (from cinder==2014.2.0.dev213.g9bddf33)
2014-08-28 20:16:49   Could not find a version that satisfies the requirement oslo.config>=1.4.0.0a3 (from cinder==2014.2.0.dev213.g9bddf33) (from versions: 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.3.0)
2014-08-28 20:16:49 Cleaning up...
2014-08-28 20:16:49 No distributions matching the version for oslo.config>=1.4.0.0a3 (from cinder==2014.2.0.dev213.g9bddf33)
2014-08-28 20:16:49 Storing complete log in /home/ubuntu/.pip/pip.log

and then later this is the error:

2014-08-28 20:16:49 ++ echo /usr/local/bin/oslo-rootwrap
2014-08-28 20:16:49 + CINDER_ROOTWRAP=/usr/local/bin/oslo-rootwrap
2014-08-28 20:16:49 + [[ ! -x /usr/local/bin/oslo-rootwrap ]]
2014-08-28 20:16:49 + die 176 'No suitable rootwrap found.'

Does downloading oslo.rootwrap package help?

sudo pip install oslo.rootwrap
2014-08-29 04:30:19 -0500 commented question CINDER ERROR: No suitable rootwrap found

could you paste the complete log using paste.openstack.org ? The main cause could be something else.

2014-08-28 13:13:37 -0500 commented question neutron security group not working

Could you comment this line in the code and see if this issue persists? I am not sure if this is the right way to do. :(

2014-08-27 12:56:25 -0500 commented question neutron security group not working

Restart the neutron-server and then look for something like " INFO neutron.api.extensions [-] Loaded extension: security-group", do you see that?

2014-08-27 09:41:13 -0500 commented question neutron security group not working

What does core_plugin in /etc/neutron/neutron.conf say? Does that plugin have 'security-group' in the list supported_extension_aliases member variable?

2014-08-27 08:01:23 -0500 commented answer unable to run openstack tempest testcases in group

can you copy the txt file to http://paste.openstack.org/ and add the link to the question? It will be more easy to debug. :)

2014-08-27 01:15:31 -0500 edited question "NotImplementedError" error while creating snapshot in cinder

I am using NFS with cinder service . Currently I am able to create/delete Volumes but I am getting following error while creating a snapshot.

    2014-08-25 05:42:26.092 1775 ERROR oslo.messaging._drivers.common [req-c81a5d3e-c5a8-4579-8136-54d0310aafd5 2ca1137e67d741e0839e67e4959a8eea 8c9fb6577a1e45879f35e3e43b34de58 - - -]
    [
    'Traceback (most recent call last):\n',

    '  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply\n    incoming.message))\n',

    '  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 176, in _dispatch\n    return self._do_dispatch(endpoint, method, ctxt, args)\n',

     '  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 122, in _do_dispatch\n    result = getattr(endpoint, method)(ctxt, **new_args)\n',

     '  File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 484, in create_snapshot\n {\'status\': \'error\'})\n', 

    '  File "/usr/lib/python2.6/site-packages/cinder/openstack/common/excutils.py", line 68, in __exit__\n    six.reraise(self.type_, self.value, self.tb)\n',

    '  File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 475, in create_snapshot\n    model_update = self.driver.create_snapshot(snapshot_ref)\n', 

    '  File "/usr/lib/python2.6/site-packages/cinder/volume/driver.py", line 222, in create_snapshot\n    raise NotImplementedError()\n', 

    '  NotImplementedError\n'
]

The snapshot ends up in error state and I am not getting any error while deleting the snapshot .

2014-08-25 22:14:23 -0500 commented answer Neutron Service missing when installing OpenStack using devstack

good to know that it worked, please mark the right answer and close the question so only unresolved questions appear on ask.openstack.org . And as SGPJ pointed out, please add that as a comment so that the responses are perfectly ordered. Thanks! :)

2014-08-25 10:47:50 -0500 edited question iperf isn't work between VMs which are placed in other host

Hello, I tried to measure network performance BTW VM which connected through GRE tunnel. So, I configured neutron(ML2/GRE). then I verified TCP performance between VMs which are placed on same host. but I could not make iperf connection bTW VMs (on other host), but ping is ok.

bellow thing is current Security group configuration. I think that I allow all thing to execute iperf.

+-------------+-----------+---------+-----------+--------------+
| IP Protocol | From Port | To Port | IP Range  | Source Group |
+-------------+-----------+---------+-----------+--------------+
| udp         | 1         | 65535   | 0.0.0.0/0 |              |
| tcp         | 1         | 65535   | 0.0.0.0/0 |              |
| icmp        | -1        | -1      | 0.0.0.0/0 |              |
+-------------+-----------+---------+-----------+--------------+

Do you have any comment?

2014-08-24 23:06:24 -0500 answered a question Error installing neutron on Ubuntu 13.04

If you do not have anything important, did you try dropping the neutron database and trying the script again?

Error Number 150 in mysql represents that it failed to conform to the foreign key references in the table. There could be multiple reasons for that failure, including the difference in the encoding (UTF-8 or others) of the database.

-Prasoon

2014-08-24 13:39:37 -0500 answered a question unable to run openstack tempest testcases in group

Hi abhi24790,

I think you are looking for -c as the option to execute the tests from the config file?

Let us know if that works.

-Prasoon

2014-08-24 13:10:12 -0500 answered a question Neutron Service missing when installing OpenStack using devstack

Hi fhussain,

I had faced the similar issue. I haven't looked at the code but it seems if you specify ENABLED_SERVICES in your localrc, it doesn't really look into services specified in "enable_service". This was perhaps the reason why the networking services remained disabled.

# disable_service n-net
# enable_service q-svc
# enable_service q-agt
# enable_service q-dhcp
# enable_service q-l3
# enable_service q-meta
# enable_service neutron
# Optional, to enable tempest configuration as part of devstack
# enable_service tempest
ENABLED_SERVICES += neutron,q-meta,q-l3,q-dhcp,q-agt,q-svc
ENABLED_SERVICES -= n-net

^This should help you solve your problem. Make sure ENABLED_SERVICES has been initialized before using it. Or put it afer # Services.

Let us know if this helps.

-Prasoon

2014-08-24 12:54:59 -0500 commented question iperf isn't work between VMs which are placed in other host

is the switch that you are using in the middle has the ip filtering/firewall disabled?

2014-08-12 04:02:07 -0500 answered a question Running extensions for vendor specific mechanism drivers in ML2

Hey Mithil,

One approach that quickly comes in my head for achieving what you are asking could be by having your plugin which inherits from Ml2Plugin class in neutron.plugins.ml2.plugin. Following is how your class would look:

class MyPlugin(Ml2Plugin):
    def create_foxinsock(self, context, foxinsocks):
        # you have foxinsock containing all your extensions attribute
    [.. rest of the code ..]

Use this class as your core_plugin in /etc/neutron/neutron.conf.

With this, all (create/delete/update/get)_(network/subnet/port) operations would be taken care in Ml2Plugin class. All other extension methods will be handled here. Remember that you should append your extension aliases with that provided in class Ml2Plugin under supported_extension_aliases to load all extensions supported by ML2 as well as by your plugin.

Hope this helps.

~Prasoon

2014-08-06 03:03:05 -0500 received badge  Notable Question (source)
2014-08-04 08:44:27 -0500 edited answer Multiple network matches found for name 'public-120', use an ID to be more specific.

This happens when you have multiple entries with the same name.

Just replace your network name with the ID.

The Neutron CLI client is smart enough to detect whether it is a name or an ID.

So, your command would look like:

[root@ost-comp-3 ~]# neutron subnet-create <NETWORK-ID> 10.29.120.128/26 --name public-sub-120 --enable_dhcp=True --allocation-pool start=10.29.120.180,end=10.29.120.182 --dns_nameservers list=true xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx
2014-08-01 12:51:57 -0500 received badge  Popular Question (source)
2014-08-01 05:33:14 -0500 asked a question Invoke ML2 plugin methods from the mechanism driver

Hello!

I want to invoke ML2 plugin methods from my mechanism driver. Is there a way to do that?

Example, when I create a subnet, I intend to call create_port of the ML2 plugin method from the create_subnet_postcommit method of my driver.

  • Prasoon
2014-07-24 06:53:12 -0500 received badge  Famous Question (source)
2014-07-04 02:37:02 -0500 received badge  Popular Question (source)
2014-07-04 02:37:02 -0500 received badge  Notable Question (source)
2014-06-05 01:39:03 -0500 marked best answer Horizon displaying data from a table in Neutron handled database

Say I have created a new table "tab" in ovs_neutron database which has columns c1, c2, etc. c1 is a foreign key to the id column of the networks table. In the GUI of <ip>/admin/networks/, I want a column in the Networks table which contain the values taken from the "tab" table handled by neutron.

Is there any API available in horizon or neutron to which I can call and read from my own defined table? If not, how should I define my own method at both horizon and neutron to read and display data from the "tab" table using the web services?

If the question isn't clear, I can elaborate.

Thanks in advance

2014-06-04 23:09:04 -0500 received badge  Famous Question (source)