<div dir="ltr">Hi Pritesh,<div><br></div><div>I'm struggling to understand the below issue still. </div><div><br></div><div>I guess the N1KV plugin tries to pull policy profiles from VSM. It seems either VSM Error or VSM Connection issue it is not able to pull policy profiles from VMS.</div><div><br></div><div>Any help to troubleshoot this issue?<br></div><div><br></div><div><div style="font-family:arial,sans-serif;font-size:13.3333339691162px">$ screen-q-svc.log<b><br></b></div><div style="font-family:arial,sans-serif;font-size:13.3333339691162px"><br></div><div style="font-family:arial,sans-serif;font-size:13.3333339691162px"><span style="font-size:13.3333339691162px">create failed (client error)</span><b style="font-size:13.3333339691162px">: Network Profile default_network_profile could not be found.</b><br></div><div style="font-family:arial,sans-serif;font-size:13.3333339691162px"><div><br></div><div><b>WARNING neutron.plugins.cisco.n1kv.n1kv_neutron_plugin [-] No policy profile populated from VSM</b></div></div><div style="font-family:arial,sans-serif;font-size:13.3333339691162px"><br></div><div style="font-family:arial,sans-serif;font-size:13.3333339691162px">Thanks</div><div style="font-family:arial,sans-serif;font-size:13.3333339691162px"><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 18, 2014 at 4:04 PM, foss geek <span dir="ltr"><<a href="mailto:thefossgeek@gmail.com" target="_blank">thefossgeek@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi Pritesh,<div><br></div><div>My Linux Distribution is : Ubuntu 14.04 64 Bit<br></div><div><br></div><div>Devstack : Icehouse</div><div><br></div><div>Nexus : Cisco Nexus 1000V Version 4.2.1.SV2(2.2) for VMware vSphere 5.0<br></div><div><br></div><div><br></div><div>I am using the below configuration:</div><div><br></div><div>I have commented the below variable:</div><div><br></div><div>#Q_CISCO_PLUGIN_UVEM_DEB_IMAGE=/var/lib/jenkins/prod/nexus_1000v_vem-12.04-5.2.1.SK1.2.1.29.S0-1.deb<br></div><div><br></div><div>In my case I am trying Openstack + VMWare + nexus_1000v, I am not sure from where I will get .deb file so that to copy it to devstack box. Is it same for all the hypervisor? </div><div><br></div><div><br></div><div><div><div class="h5"><div>$ cat local.conf</div><div>[[local|localrc]]</div><div><br></div><div># Enable Logging</div><div>LOGFILE=/opt/stack/logs/stack.sh.log</div><div>VERBOSE=True</div><div>LOG_COLOR=True</div><div>SCREEN_LOGDIR=/opt/stack/logs</div><div><br></div><div># Reclone each time</div><div>RECLONE=yes</div><div><br></div><div># Credentials</div><div>DATABASE_PASSWORD=devstack</div><div>ADMIN_PASSWORD=devstack</div><div>SERVICE_PASSWORD=devstack</div><div>SERVICE_TOKEN=devstack</div><div>RABBIT_PASSWORD=devstack</div><div><br></div><div># Services</div><div>ENABLED_SERVICES=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</div><div>disable_service n-net</div><div>disable_service q-agt</div><div>disable_service q-l3</div><div>enable_service mysql</div><div>enable_service q-svc</div><div>enable_service q-dhcp</div><div>enable_service q-meta</div><div>enable_service q-lbaas</div><div>enable_service neutron</div><div>enable_service tempest</div><div>VOLUME_BACKING_FILE_SIZE=2052M</div><div><br></div><div># Nexus 1000v Virtual Switch</div><div>Q_PLUGIN=cisco</div><div>declare -a Q_CISCO_PLUGIN_SUBPLUGINS=(n1kv)</div><div>Q_CISCO_PLUGIN_DEVSTACK_VSM=False</div></div></div><div>Q_CISCO_PLUGIN_VSM_IP=192.168.1.8</div><div>Q_CISCO_PLUGIN_VSM_USERNAME=admin</div><div>Q_CISCO_PLUGIN_VSM_PASSWORD=admin</div><div>#Q_CISCO_PLUGIN_UVEM_DEB_IMAGE=/var/lib/jenkins/prod/nexus_1000v_vem-12.04-5.2.1.SK1.2.1.29.S0-1.deb</div><span class=""><div>Q_CISCO_PLUGIN_INTEGRATION_BRIDGE=br-int</div><div>Q_CISCO_PLUGIN_HOST_MGMT_INTF=eth0</div><div><br></div><div><br></div><div># VMware vCenter Nova Info</div><div>VIRT_DRIVER=vsphere</div></span><div>VMWAREAPI_IP=192.168.1.9</div><div>VMWAREAPI_USER=root</div><div>VMWAREAPI_PASSWORD=tcl@123</div><span class=""><div>VMWAREAPI_CLUSTER=ssoccluster</div><div><br></div><div># Branches</div><div>KEYSTONE_BRANCH=stable/icehouse</div><div>NOVA_BRANCH=stable/icehouse</div><div>NEUTRON_BRANCH=stable/icehouse</div><div>SWIFT_BRANCH=stable/icehouse</div><div>GLANCE_BRANCH=stable/icehouse</div><div>CINDER_BRANCH=stable/icehouse</div><div>HEAT_BRANCH=stable/icehouse</div><div>TROVE_BRANCH=stable/icehouse</div><div>HORIZON_BRANCH=stable/icehouse</div><div><br></div><div><br></div></span><div>I am getting the below error in Devstack:</div><div><br></div><div><br></div><div><div>2014-09-18 09:32:32.619 | + TENANT_ID=9d41a50b578d4cf4bb4f06859b509a80</div><div>2014-09-18 09:32:32.625 | + die_if_not_set 374 TENANT_ID 'Failure retrieving TENANT_ID for demo'</div><div>2014-09-18 09:32:32.630 | + local exitcode=0</div><div>2014-09-18 09:32:32.636 | + is_baremetal</div><div>2014-09-18 09:32:32.641 | + [[ 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 ]]</div><div>2014-09-18 09:32:32.652 | + return 1</div><div>2014-09-18 09:32:32.658 | ++ grep ' id '</div><div><b>2014-09-18 09:32:32.663 | ++ neutron net-create --tenant-id 9d41a50b578d4cf4bb4f06859b509a80 private</b></div><div><b>2014-09-18 09:32:32.669 | ++ get_field 2</b></div><div><b>2014-09-18 09:32:32.674 | ++ read data</b></div><div><b>2014-09-18 09:32:34.153 | Not Found (HTTP 404) (Request-ID: req-0e1d7413-ab35-4c7c-928b-caf4bc1c718f)</b></div><div><b>2014-09-18 09:32:34.201 | + NET_ID=</b></div><div><b>2014-09-18 09:32:34.206 | + die_if_not_set 396 NET_ID 'Failure creating NET_ID for 9d41a50b578d4cf4bb4f06859b509a80'</b></div><div><b>2014-09-18 09:32:34.212 | + local exitcode=0</b></div><div><b>2014-09-18 09:32:34.217 | [Call Trace]</b></div><div><b>2014-09-18 09:32:34.223 | ./stack.sh:1197:create_neutron_initial_network</b></div><div><b>2014-09-18 09:32:34.228 | /opt/stack/devstack/lib/neutron:396:die_if_not_set</b></div><div><b>2014-09-18 09:32:34.234 | /opt/stack/devstack/functions-common:245:die</b></div><div><b>2014-09-18 09:32:34.239 | [ERROR] /opt/stack/devstack/functions-common:396 Failure creating NET_ID for 9d41a50b578d4cf4bb4f06859b509a80</b></div></div><div><b><br></b></div><div><b><br></b></div><div>$ screen-q-svc.log<b><br></b></div><div><br></div><div><snip></div><div><br></div><div><div>2014-09-18 15:02:34.150 INFO neutron.api.v2.resource [req-0e1d7413-ab35-4c7c-928b-caf4bc1c718f admin aa66ac8a6e48477393a1859fb08b8a2c] create failed (client error)<b>: Network Profile default_network_profile could not be found.</b></div><div><br></div><div><br></div><div>2014-09-18 15:54:40.735 WARNING neutron.plugins.cisco.n1kv.n1kv_neutron_plugin [-] No policy profile populated from VSM</div><div>2014-09-18 15:54:50.740 DEBUG neutron.plugins.cisco.n1kv.n1kv_neutron_plugin [-] _populate_policy_profiles from (pid=6478) _populate_policy_profiles /opt/stack/neutron/neutron/plugins/cisco/n1kv/n1kv_neutron_plugin.py:175</div><div>2014-09-18 15:54:50.763 DEBUG neutron.plugins.cisco.n1kv.n1kv_client [-] status_code 404 from (pid=6478) _do_request /opt/stack/neutron/neutron/plugins/cisco/n1kv/n1kv_client.py:464</div><div><b>2014-09-18 15:54:50.763 WARNING neutron.plugins.cisco.n1kv.n1kv_neutron_plugin [-] No policy profile populated from VSM</b></div></div><div><br></div><div><div><snip></div></div><div><br></div><div><br></div><div><div style="color:rgb(0,0,0);font-family:'Trebuchet MS',sans-serif;font-size:15px;background:rgb(240,240,240)"><pre style="margin-top:0px;margin-bottom:0px;padding:5px 0px;font-family:'Bitstream Vera Sans Mono',monospace;font-size:13px">$ cat error.log
[WARNING] ./stack.sh:153 Expected filename suffix: '-flat'. Filename provided: cirros-0.3.0-i386-disk
[ERROR] /opt/stack/devstack/functions-common:396 Failure creating NET_ID for 9d41a50b578d4cf4bb4f06859b509a80
</pre></div></div><div><br></div><div><br></div><div><br></div></div><div>At this devstack error stage my cisco_plugins.ini file looks like:</div><div><br></div><div><div><br></div><div># cat cisco_plugins.ini</div><div><br></div><div><snip></div><div><br></div><div>[cisco_n1k]</div><div><br></div><div># (StrOpt) Specify the name of the integration bridge to which the VIFs are</div><div># attached.</div><div>#</div><div># integration_bridge = br-int</div><div><br></div><div># (StrOpt) Name of the policy profile to be associated with a port when no</div><div># policy profile is specified during port creates.</div><div>#</div><div># default_policy_profile =</div><div># Example: default_policy_profile = service_profile</div><div><br></div><div># (StrOpt) Name of the policy profile to be associated with a port owned by</div><div># network node (dhcp, router).</div><div>#</div><div># network_node_policy_profile =</div><div># Example: network_node_policy_profile = dhcp_pp</div><div><br></div><div># (StrOpt) Name of the network profile to be associated with a network when no</div><div># network profile is specified during network creates. Admin should pre-create</div><div># a network profile with this name.</div><div>#</div><div># default_network_profile =</div><div># Example: default_network_profile = network_pool</div><div><br></div><div># (StrOpt) Time in seconds for which the plugin polls the VSM for updates in</div><div># policy profiles.</div><div>#</div><div># poll_duration =</div><div># Example: poll_duration = 180</div><div><br></div><div># (IntOpt) Timeout duration in seconds for the http request</div><div>#</div><div># http_timeout =</div><div># Example: http_timeout = 15</div><div><br></div><div>[database]</div><div>connection = mysql://<a href="http://root:devstack@127.0.0.1/cisco_neutron?charset=utf8" target="_blank">root:devstack@127.0.0.1/cisco_neutron?charset=utf8</a></div><div><br></div><div>[CISCO_PLUGINS]</div><div>vswitch_plugin = neutron.plugins.cisco.n1kv.n1kv_neutron_plugin.N1kvNeutronPluginV2</div><div><br></div><div>[N1KV:192.168.1.8]</div><div>password = admin</div><div>username = admin</div><div><br></div><div>[CISCO_N1K]</div><div>network_vlan_ranges = vlan:1:4094</div><div>vxlan_id_ranges = 5000:10000</div><div>enable_tunneling = True</div><div>integration_bridge = br-int</div></div><div><br></div><div><snip></div><div><br></div><div><br></div><div>any help?</div><div><br></div><div>Thanks</div><div><br></div></div>
</blockquote></div><br></div></div></div>