[Openstack] [Devstack][Neutron][Neutron N1KV Plugin] How to enable in local.conf?

foss geek thefossgeek at gmail.com
Tue Sep 23 17:48:00 UTC 2014


Hi Pritesh,

Here is configuration pointed by you.

http://cisco-neutron-ci.cisco.com/logs/n1kv_neutron/3766/localrc.txt

I gone through the stack log file of the above configuration and compared
with my stack log. In my devstack log there no log of the below command
execution but it is there in your log file.

*neutron cisco-network-profile-create default_network_profile vlan
--segment_range 1-3000 --physical_network test-physnet1*

I also searched devstack icehouse code (taken from, git clone
https://github.com/openstack-dev/devstack.git -b stable/icehouse). It seems
there no line which executes above command.

 Is there modified version of devstack? or have any additional patch?

http://cisco-neutron-ci.cisco.com/logs/n1kv_neutron/3766/logs/stack.sh.log.gz

<snip>

*2014-09-09 15:46:28.847 | ++ echo '| e372231576564c37bad1a234518bb977 |
demo               |'*
*2014-09-09 15:46:28.861 | ++ read data*
*2014-09-09 15:46:28.861 | + TENANT_ID=e372231576564c37bad1a234518bb977*
*2014-09-09 15:46:28.862 | + die_if_not_set 383 TENANT_ID 'Failure
retrieving TENANT_ID for demo'*
*2014-09-09 15:46:28.862 | + local exitcode=0*
*2014-09-09 15:46:28.866 | + neutron cisco-network-profile-create
default_network_profile vlan --segment_range 1-3000 --physical_network
test-physnet1*
*2014-09-09 15:46:35.196 | Created a new network_profile:*
2014-09-09 15:46:35.196 |
+--------------------+--------------------------------------+
2014-09-09 15:46:35.196 | | Field              | Value
           |
2014-09-09 15:46:35.196 |
+--------------------+--------------------------------------+
2014-09-09 15:46:35.196 | | id                 |
b9968f2b-295d-499e-af33-8f2e196adec9 |
2014-09-09 15:46:35.196 | | multicast_ip_range |
           |
2014-09-09 15:46:35.196 | | name               | default_network_profile
           |
2014-09-09 15:46:35.196 | | physical_network   | test-physnet1
           |
2014-09-09 15:46:35.196 | | segment_range      | 1-3000
          |
2014-09-09 15:46:35.196 | | segment_type       | vlan
          |
2014-09-09 15:46:35.196 | | sub_type           |
           |
2014-09-09 15:46:35.196 |
+--------------------+--------------------------------------+
2014-09-09 15:46:35.220 | + is_baremetal
2014-09-09 15:46:35.220 | + [[
g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-cond,cinder,c-sch,c-api,c-vol,n-sch,n-novnc,n-xvnc,n-cauth,rabbit,mysql,q-svc,q-dhcp,q-meta,q-lbaas,tempest
=~ baremetal ]]
2014-09-09 15:46:35.220 | + return 1
2014-09-09 15:46:35.220 | + is_provider_network
2014-09-09 15:46:35.220 | + '[' '' == True ']'
2014-09-09 15:46:35.220 | + return 1
2014-09-09 15:46:35.221 | ++ get_field 2
2014-09-09 15:46:35.221 | ++ read data
2014-09-09 15:46:35.222 | ++ grep ' id '
2014-09-09 15:46:35.223 | ++ neutron net-create --tenant-id
e372231576564c37bad1a234518bb977 private
2014-09-09 15:46:36.183 | ++ '[' 2 -lt 0 ']'
2014-09-09 15:46:36.183 | ++ field='$3'
2014-09-09 15:46:36.183 | ++ awk '-F[ \t]*\\|[ \t]*' '{print $3}'
2014-09-09 15:46:36.184 | ++ echo '| id                        |
7ec45412-b3c8-4607-8806-acadf01a84af |'
2014-09-09 15:46:36.185 | ++ read data
2014-09-09 15:46:36.185 | + NET_ID=7ec45412-b3c8-4607-8806-acadf01a84af
2014-09-09 15:46:36.185 | + die_if_not_set 419 NET_ID 'Failure creating
NET_ID for test-physnet1 e372231576564c37bad1a234518bb977'
2014-09-09 15:46:36.185 | + local exitcode=0
2014-09-09 15:46:36.188 | ++ get_field 2
2014-09-09 15:46:36.188 | ++ read data
2014-09-09 15:46:36.188 | ++ grep ' id '
2014-09-09 15:46:36.189 | ++ neutron subnet-create --tenant-id
e372231576564c37bad1a234518bb977 --ip_version 4 --gateway 10.0.0.1 --name
private-subnet 7ec45412-b3c8-4607-8806-acadf01a84af 10.0.0.0/24

<snip>

Here is my stack log:

<snip>

2014-09-23 16:14:20.967 | + die_if_not_set 474 TENANT_ID 'Failure
retrieving TENANT_ID for demo'
2014-09-23 16:14:20.967 | + local exitcode=0
2014-09-23 16:14:20.973 | + is_baremetal
2014-09-23 16:14:20.973 | + [[
g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-cond,cinder,c-sch,c-api,c-vol,n-sch,n-novnc,n-xvnc,n-cauth,rabbit,horizon,mysql,q-svc,q-dhcp,q-meta,q-lbaas,tempest
=~ baremetal ]]
2014-09-23 16:14:20.973 | + return 1
2014-09-23 16:14:20.974 | + is_provider_network
2014-09-23 16:14:20.974 | + '[' '' == True ']'
2014-09-23 16:14:20.974 | + return 1
2014-09-23 16:14:20.975 | ++ neutron net-create --tenant-id
dcf1bc1fc11646c69e5b6236b044ced9 private
2014-09-23 16:14:20.976 | ++ grep ' id '
2014-09-23 16:14:20.979 | ++ get_field 2
2014-09-23 16:14:20.980 | ++ local data field
2014-09-23 16:14:20.980 | ++ read data
2014-09-23 16:14:22.536 | Not Found (HTTP 404) (Request-ID:
req-8efb173b-9852-46c0-9cd0-f3a15260ae08)
2014-09-23 16:14:22.591 | + NET_ID=
2014-09-23 16:14:22.591 | + die_if_not_set 505 NET_ID 'Failure creating
NET_ID for  dcf1bc1fc11646c69e5b6236b044ced9'
2014-09-23 16:14:22.591 | + local exitcode=0
2014-09-23 16:14:22.597 | [Call Trace]
2014-09-23 16:14:22.597 | ./stack.sh:1246:create_neutron_initial_network
2014-09-23 16:14:22.598 |
/home/devadmin/devstack/lib/neutron:505:die_if_not_set
2014-09-23 16:14:22.598 | /home/devadmin/devstack/functions-common:251:die
2014-09-23 16:14:22.602 | [ERROR]
/home/devadmin/devstack/functions-common:505 Failure creating NET_ID for
dcf1bc1fc11646c69e5b6236b044ced9
2014-09-23 16:14:23.606 | Error on exit

<snip>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140923/f5502a36/attachment.html>


More information about the Openstack mailing list