[Openstack] [Devstack][Neutron][Neutron N1KV Plugin] How to enable in local.conf?
foss geek
thefossgeek at gmail.com
Fri Sep 19 17:16:24 UTC 2014
Hi Pritesh,
I'm struggling to understand the below issue still.
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.
Any help to troubleshoot this issue?
$ screen-q-svc.log
create failed (client error)*: Network Profile default_network_profile
could not be found.*
*WARNING neutron.plugins.cisco.n1kv.n1kv_neutron_plugin [-] No policy
profile populated from VSM*
Thanks
On Thu, Sep 18, 2014 at 4:04 PM, foss geek <thefossgeek at gmail.com> wrote:
> Hi Pritesh,
>
> My Linux Distribution is : Ubuntu 14.04 64 Bit
>
> Devstack : Icehouse
>
> Nexus : Cisco Nexus 1000V Version 4.2.1.SV2(2.2) for VMware vSphere 5.0
>
>
> I am using the below configuration:
>
> I have commented the below variable:
>
>
> #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
>
> 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?
>
>
> $ cat local.conf
> [[local|localrc]]
>
> # Enable Logging
> LOGFILE=/opt/stack/logs/stack.sh.log
> VERBOSE=True
> LOG_COLOR=True
> SCREEN_LOGDIR=/opt/stack/logs
>
> # Reclone each time
> RECLONE=yes
>
> # Credentials
> DATABASE_PASSWORD=devstack
> ADMIN_PASSWORD=devstack
> SERVICE_PASSWORD=devstack
> SERVICE_TOKEN=devstack
> RABBIT_PASSWORD=devstack
>
> # Services
>
> 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
> disable_service n-net
> disable_service q-agt
> disable_service q-l3
> enable_service mysql
> enable_service q-svc
> enable_service q-dhcp
> enable_service q-meta
> enable_service q-lbaas
> enable_service neutron
> enable_service tempest
> VOLUME_BACKING_FILE_SIZE=2052M
>
> # Nexus 1000v Virtual Switch
> Q_PLUGIN=cisco
> declare -a Q_CISCO_PLUGIN_SUBPLUGINS=(n1kv)
> Q_CISCO_PLUGIN_DEVSTACK_VSM=False
> Q_CISCO_PLUGIN_VSM_IP=192.168.1.8
> Q_CISCO_PLUGIN_VSM_USERNAME=admin
> Q_CISCO_PLUGIN_VSM_PASSWORD=admin
>
> #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
> Q_CISCO_PLUGIN_INTEGRATION_BRIDGE=br-int
> Q_CISCO_PLUGIN_HOST_MGMT_INTF=eth0
>
>
> # VMware vCenter Nova Info
> VIRT_DRIVER=vsphere
> VMWAREAPI_IP=192.168.1.9
> VMWAREAPI_USER=root
> VMWAREAPI_PASSWORD=tcl at 123
> VMWAREAPI_CLUSTER=ssoccluster
>
> # Branches
> KEYSTONE_BRANCH=stable/icehouse
> NOVA_BRANCH=stable/icehouse
> NEUTRON_BRANCH=stable/icehouse
> SWIFT_BRANCH=stable/icehouse
> GLANCE_BRANCH=stable/icehouse
> CINDER_BRANCH=stable/icehouse
> HEAT_BRANCH=stable/icehouse
> TROVE_BRANCH=stable/icehouse
> HORIZON_BRANCH=stable/icehouse
>
>
> I am getting the below error in Devstack:
>
>
> 2014-09-18 09:32:32.619 | + TENANT_ID=9d41a50b578d4cf4bb4f06859b509a80
> 2014-09-18 09:32:32.625 | + die_if_not_set 374 TENANT_ID 'Failure
> retrieving TENANT_ID for demo'
> 2014-09-18 09:32:32.630 | + local exitcode=0
> 2014-09-18 09:32:32.636 | + is_baremetal
> 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 ]]
> 2014-09-18 09:32:32.652 | + return 1
> 2014-09-18 09:32:32.658 | ++ grep ' id '
> *2014-09-18 09:32:32.663 | ++ neutron net-create --tenant-id
> 9d41a50b578d4cf4bb4f06859b509a80 private*
> *2014-09-18 09:32:32.669 | ++ get_field 2*
> *2014-09-18 09:32:32.674 | ++ read data*
> *2014-09-18 09:32:34.153 | Not Found (HTTP 404) (Request-ID:
> req-0e1d7413-ab35-4c7c-928b-caf4bc1c718f)*
> *2014-09-18 09:32:34.201 | + NET_ID=*
> *2014-09-18 09:32:34.206 | + die_if_not_set 396 NET_ID 'Failure creating
> NET_ID for 9d41a50b578d4cf4bb4f06859b509a80'*
> *2014-09-18 09:32:34.212 | + local exitcode=0*
> *2014-09-18 09:32:34.217 | [Call Trace]*
> *2014-09-18 09:32:34.223 | ./stack.sh:1197:create_neutron_initial_network*
> *2014-09-18 09:32:34.228 |
> /opt/stack/devstack/lib/neutron:396:die_if_not_set*
> *2014-09-18 09:32:34.234 | /opt/stack/devstack/functions-common:245:die*
> *2014-09-18 09:32:34.239 | [ERROR]
> /opt/stack/devstack/functions-common:396 Failure creating NET_ID for
> 9d41a50b578d4cf4bb4f06859b509a80*
>
>
> $ screen-q-svc.log
>
> <snip>
>
> 2014-09-18 15:02:34.150 INFO neutron.api.v2.resource
> [req-0e1d7413-ab35-4c7c-928b-caf4bc1c718f admin
> aa66ac8a6e48477393a1859fb08b8a2c] create failed (client error)*: Network
> Profile default_network_profile could not be found.*
>
>
> 2014-09-18 15:54:40.735 WARNING
> neutron.plugins.cisco.n1kv.n1kv_neutron_plugin [-] No policy profile
> populated from VSM
> 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
> 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
> *2014-09-18 15:54:50.763 WARNING
> neutron.plugins.cisco.n1kv.n1kv_neutron_plugin [-] No policy profile
> populated from VSM*
>
> <snip>
>
>
> $ 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
>
>
>
>
> At this devstack error stage my cisco_plugins.ini file looks like:
>
>
> # cat cisco_plugins.ini
>
> <snip>
>
> [cisco_n1k]
>
> # (StrOpt) Specify the name of the integration bridge to which the VIFs are
> # attached.
> #
> # integration_bridge = br-int
>
> # (StrOpt) Name of the policy profile to be associated with a port when no
> # policy profile is specified during port creates.
> #
> # default_policy_profile =
> # Example: default_policy_profile = service_profile
>
> # (StrOpt) Name of the policy profile to be associated with a port owned by
> # network node (dhcp, router).
> #
> # network_node_policy_profile =
> # Example: network_node_policy_profile = dhcp_pp
>
> # (StrOpt) Name of the network profile to be associated with a network
> when no
> # network profile is specified during network creates. Admin should
> pre-create
> # a network profile with this name.
> #
> # default_network_profile =
> # Example: default_network_profile = network_pool
>
> # (StrOpt) Time in seconds for which the plugin polls the VSM for updates
> in
> # policy profiles.
> #
> # poll_duration =
> # Example: poll_duration = 180
>
> # (IntOpt) Timeout duration in seconds for the http request
> #
> # http_timeout =
> # Example: http_timeout = 15
>
> [database]
> connection = mysql://root:devstack@127.0.0.1/cisco_neutron?charset=utf8
>
> [CISCO_PLUGINS]
> vswitch_plugin =
> neutron.plugins.cisco.n1kv.n1kv_neutron_plugin.N1kvNeutronPluginV2
>
> [N1KV:192.168.1.8]
> password = admin
> username = admin
>
> [CISCO_N1K]
> network_vlan_ranges = vlan:1:4094
> vxlan_id_ranges = 5000:10000
> enable_tunneling = True
> integration_bridge = br-int
>
> <snip>
>
>
> any help?
>
> Thanks
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140919/bf88e0da/attachment.html>
More information about the Openstack
mailing list