Ask Your Question
0

Invalid input for operation: GRE networks are not enabled.

asked 2012-12-10 21:53:20 -0600

rushmep3 gravatar image

hi I am trying to create a with GRE provider network using quantum (Folsom release on Ubuntu 12.04 ) and i have a problem but i think no mestake on my ovs_quantum_plugin.ini file in the network node :

[DATABASE] sql_connection = mysql://quantum:password@10.38.97.1:3306/quantum reconnect_interval = 2

[OVS] tenant_network_type = gre tunnel_id_ranges = 1:1000 enable_tunneling = True integration_bridge = br-int tunnel_bridge = br-tun local_ip = 10.10.10.1

[AGENT] polling_interval = 2 root_helper = sudo /usr/bin/quantum-rootwrap /etc/quantum/rootwrap.conf

error return by quantum-network.sh : root@openstack-networker:~# ./quantum.sh Invalid input for operation: GRE networks are not enabled. usage: quantum subnet-create [-h] [-f {shell,table}] [-c COLUMN] [--variable VARIABLE] [--prefix PREFIX] [--request-format {json,xml}] [--tenant-id tenant-id] [--name NAME] [--ip-version {4,6}] [--gateway gateway] [--no-gateway] [--allocation-pool ALLOCATION_POOL] network cidr ...

in the controler node : the quantum server log file : 2013-04-02 17:25:33 ERROR [quantum.api.v2.resource] create failed Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/quantum/api/v2/resource.py", line 96, in resource result = method(request=request, *args) File "/usr/lib/python2.7/dist-packages/quantum/api/v2/base.py", line 335, in create obj = obj_creator(request.context, *kwargs) File "/usr/lib/python2.7/dist-packages/quantum/plugins/openvswitch/ovs_quantum_plugin.py", line 402, in create_network network['network']) File "/usr/lib/python2.7/dist-packages/quantum/plugins/openvswitch/ovs_quantum_plugin.py", line 339, in _process_provider_create raise q_exc.InvalidInput(error_message=msg) InvalidInput: Invalid input for operation: GRE networks are not enabled. 2013-04-02 17:25:33 DEBUG [eventlet.wsgi.server] 10.38.97.2 - - [02/Apr/2013 17:25:33] "POST /v2.0/networks.json HTTP/1.1" 400 195 0.066017 2013-04-02 17:25:33 DEBUG [keystone.middleware.auth_token] Authenticating user token

it my second install and i not understand why that not WORK.

HELP me please.

edit retag flag offensive close merge delete

7 answers

Sort by ยป oldest newest most voted
0

answered 2013-04-02 20:22:57 -0600

You should not have the --config-file=/path you should run:

quantum-server --config-file /etc/quantum/quantum.conf -- config-file /etc/quantum/quantum/plugins/openvswitch/ovs_quantum_plugin.ini

Also, does: /etc/quantum/quantum/plugins/openvswitch/ovs_quantum_plugin.ini (exist and readable by the user you are running as?)

edit flag offensive delete link more
0

answered 2013-04-03 06:37:03 -0600

Fine, my error has in the path : /etc/quantum/quantum/plugins/openvswitch cf : quantum-server --config-file=/etc/quantum/quantum.conf --config-file=/etc/quantum/quantum/plugins/openvswitch/ovs_quantum_plugin.ini --log-dir=/var/log/quantum --log-file=quantum-server.log

Thank you very mutch Aaron.

edit flag offensive delete link more
0

answered 2012-12-12 19:11:02 -0600

rushmep3 gravatar image

The server.log shows the below:

2012-12-12 11:09:33 DEBUG [amqplib] using channel_id: 1 2012-12-12 11:09:33 DEBUG [amqplib] Channel open 2012-12-12 11:09:33 ERROR [quantum.api.v2.resource] create failed Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/quantum/api/v2/resource.py", line 95, in resource result = method(request=request, *args) File "/usr/lib/python2.7/dist-packages/quantum/api/v2/base.py", line 331, in create obj = obj_creator(request.context, *kwargs) File "/usr/lib/python2.7/dist-packages/quantum/plugins/openvswitch/ovs_quantum_plugin.py", line 398, in create_network network['network']) File "/usr/lib/python2.7/dist-packages/quantum/plugins/openvswitch/ovs_quantum_plugin.py", line 335, in _process_provider_create raise q_exc.InvalidInput(error_message=msg) InvalidInput: Invalid input for operation: GRE networks are not enabled. 2012-12-12 11:09:33 DEBUG [eventlet.wsgi.server] 192.168.5.227 - - [12/Dec/2012 11:09:33] "POST /v2.0/networks.json HTTP/1.1" 400 195 0.101701 2012-12-12 11:09:34 DEBUG [keystone.middleware.auth_token] Authenticating user token 2012-12-12 11:09:34 DEBUG [keystone.middleware.auth_token] Removing headers from request environment: X-Identity-Status,X-Tenant-Id,X-Tenant-Name,X-User-Id,X-User-Name,X-Roles,X-Service-Catalog,X-User,X-Tenant,X-Role

edit flag offensive delete link more
0

answered 2012-12-19 20:34:42 -0600

rushmep3 gravatar image

I made a mistake while editing the ovs_quantum_plugin.ini file. After moving the gre tunneling settings under the {ovs} tage I was able to create the GRE network.

edit flag offensive delete link more
0

answered 2013-04-02 15:30:39 -0600

hi I am trying to create a with GRE provider network using quantum (Folsom release on Ubuntu 12.04 ) and i have the same problem but i think no mestake on my ovs_quantum_plugin.ini file in the network node :

[DATABASE] sql_connection = mysql://quantum:password@10.38.97.1:3306/quantum reconnect_interval = 2

[OVS] tenant_network_type = gre tunnel_id_ranges = 1:1000 enable_tunneling = True integration_bridge = br-int tunnel_bridge = br-tun local_ip = 10.10.10.1

[AGENT] polling_interval = 2 root_helper = sudo /usr/bin/quantum-rootwrap /etc/quantum/rootwrap.conf

in the controler node : the quantum server log file : 2013-04-02 17:25:33 ERROR [quantum.api.v2.resource] create failed Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/quantum/api/v2/resource.py", line 96, in resource result = method(request=request, *args) File "/usr/lib/python2.7/dist-packages/quantum/api/v2/base.py", line 335, in create obj = obj_creator(request.context, *kwargs) File "/usr/lib/python2.7/dist-packages/quantum/plugins/openvswitch/ovs_quantum_plugin.py", line 402, in create_network network['network']) File "/usr/lib/python2.7/dist-packages/quantum/plugins/openvswitch/ovs_quantum_plugin.py", line 339, in _process_provider_create raise q_exc.InvalidInput(error_message=msg) InvalidInput: Invalid input for operation: GRE networks are not enabled. 2013-04-02 17:25:33 DEBUG [eventlet.wsgi.server] 10.38.97.2 - - [02/Apr/2013 17:25:33] "POST /v2.0/networks.json HTTP/1.1" 400 195 0.066017 2013-04-02 17:25:33 DEBUG [keystone.middleware.auth_token] Authenticating user token

it my second install and i not understand why that not WORK.

HELP me please.

edit flag offensive delete link more
0

answered 2013-04-02 17:19:24 -0600

You need to be running quantum-server with --confile /path/to/ovs_quantum_plugin.ini

and have: [OVS] tenant_network_type = gre tunnel_id_ranges = 1:1000 enable_tunneling = True

in that section.

edit flag offensive delete link more
0

answered 2013-04-02 18:48:32 -0600

on the controler node, i turn the command : quantum-server --config-file=/etc/quantum/quantum.conf --config-file=/etc/quantum/quantum/plugins/openvswitch/ovs_quantum_plugin.ini --log-dir=/var/log/quantum --log-file=quantum-server.log

and the result : Traceback (most recent call last): File "/usr/bin/quantum-server", line 26, in <module> server() File "/usr/lib/python2.7/dist-packages/quantum/server/__init__.py", line 34, in main config.parse(sys.argv) File "/usr/lib/python2.7/dist-packages/quantum/common/config.py", line 62, in parse version='%%prog %s' % version_string()) File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/cfg.py", line 1026, in __call__ self._parse_config_files() File "/usr/lib/python2.7/dist-packages/quantum/openstack/common/cfg.py", line 1496, in _parse_config_files raise ConfigFilesNotFoundError(not_read_ok) quantum.openstack.common.cfg.ConfigFilesNotFoundError: Failed to read some config files: /etc/quantum/quantum/plugins/openvswitch/ovs_quantum_plugin.ini

So, by conf file is bad, but where ? : [DATABASE] sql_connection = mysql://quantum:password@localhost:3306/quantum reconnect_interval = 2

[OVS] tenant_network_type = gre tunnel_id_ranges = 1:1000 enable_tunneling = True [AGENT] polling_interval = 2 root_helper = sudo /usr/bin/quantum-rootwrap /etc/quantum/rootwrap.conf

I don't understant, thanks four your help

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-12-10 21:53:20 -0600

Seen: 91 times

Last updated: Apr 03 '13