05-06-2015 11:47 AM - edited 03-01-2019 06:34 AM
Task Name | Openstack Integration with UCSD |
Description | |
Prerequisites |
|
Category | Workflow |
Components | vSphere 5.x |
User Inputs |
Instructions for Regular Workflow Use:
Credits go to Jose Moreno and Russ Whitear.
The workflows on import into UCSD:
The workflow loacation:
The workflow:
PDF / PDF workflow conversion thanks to Simon Price (also attached):
Hi Orf Gelbrich,
We are doing POC for Openstack Integration with UCS Director. We are using UCSD 5.3 & Openstack ver 14 (Newton) installed on CentOS 7.
I imported the workflow and modified the values according my environment. While it reaching creating Openstack Network stage it throws an error.
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Nov 22, 2016 18:47:28 SGT Return code 201: successfully configured Openstack task.
Nov 22, 2016 18:47:28 SGT Response received: {'network': {'provider:physical_network': null, 'updated_at': '2016-11-22T10:47:27Z', 'revision_number': 2, 'mtu': 1450, 'id': 'c9dad07a-982a-4797-a4c9-1c376c00eec8', 'router:external': false, 'availability_zone_hints': [], 'availability_zones': [], 'ipv4_address_scope': null, 'shared': false, 'project_id': '4273c18b25db4059be78191339b5295b', 'status': 'ACTIVE', 'subnets': [], 'description': '', 'tags': [], 'ipv6_address_scope': null, 'provider:segmentation_id': 82, 'name': '$Name-NW1', 'admin_state_up': true, 'tenant_id': '4273c18b25db4059be78191339b5295b', 'created_at': '2016-11-22T10:47:27Z', 'provider:network_type': 'vxlan'}}
Nov 22, 2016 18:47:28 SGT VLAN ID found: 82, Network ID c9dad07a-982a-4797-a4c9-1c376c00eec8
Nov 22, 2016 18:47:28 SGT Invliad inner task name: custom_openstack_delete_network
Nov 22, 2016 18:47:28 SGT Error occured at line # 50
Nov 22, 2016 18:47:28 SGT [Line#50] var undoContext = ctxt.createInnerTaskContext(undoHandler);
Nov 22, 2016 18:47:28 SGT Task: Openstack - chained tasks (custom_openstack_create_nw_nologin) failed with error - sun.org.mozilla.javascript.internal.WrappedException: Wrapped java.lang.Exception: [InnerTaskExecution] Invliad inner task name: custom_openstack_delete_network (<Unknown source>#50) in <Unknown source> at line number 50, selectedContext=<None>
Nov 22, 2016 18:47:28 SGT Task #7 (Openstack - chained tasks (custom_openstack_create_nw_nologin)) failed after 0 seconds
Nov 22, 2016 18:47:28 SGT Input/Output values for Task #7 (Openstack - chained tasks (custom_openstack_create_nw_nologin)):
Nov 22, 2016 18:47:28 SGT [Local Input: Network Name = $Name-NW1]
Nov 22, 2016 18:47:28 SGT [Mapped Input: Openstack Controller IP = 192.168.1.205]
Nov 22, 2016 18:47:28 SGT [Mapped Input: token = 7b96e3d5dddc4b3cb7e44fbe97cd61bc]
Nov 22, 2016 18:47:28 SGT Completed workflow item number 8, with status Failed
-------------------------------------------------------------------------------------------------------------------------------------------------
Need your help in resolve the same. Thanks in Advance!!
Regards
Manibalan M
This does not look right…
Network Name = $Name-NW1]
The $Name did not resolve.
Orf Gelbrich
Check out UCS Director Workflow INDEX<https://communities.cisco.com/docs/DOC-56419> on Cisco Communities Site (Twitter @UCSDGURU)
I newly imported the workflow and modified the Openstack details still the same..
====================================================================================
Nov 22, 2016 20:46:28 SGT Executing custom action Openstack - chained tasks (custom_openstack_create_nw_nologin)
Nov 22, 2016 20:46:28 SGT Executing custom action Openstack - chained tasks (custom_openstack_create_nw_nologin)
Nov 22, 2016 20:46:28 SGT Executing custom script for openstack_create_nw_nologin
Nov 22, 2016 20:46:28 SGT Request to http://192.168.1.205:9696/v2.0/networks
Nov 22, 2016 20:46:28 SGT Sending payload: {'network': {'name': '$Name-network-01','admin_state_up': true}}
Nov 22, 2016 20:46:28 SGT Response received: {'network': {'provider:physical_network': null, 'updated_at': '2016-11-22T12:46:27Z', 'revision_number': 2, 'mtu': 1450, 'id': '32edc209-0466-4fdb-b41d-cdf43946b75d', 'router:external': false, 'availability_zone_hints': [], 'availability_zones': [], 'ipv4_address_scope': null, 'shared': false, 'project_id': '7a5f5e1012d64a2e84c81fbcc33fd5f0', 'status': 'ACTIVE', 'subnets': [], 'description': '', 'tags': [], 'ipv6_address_scope': null, 'provider:segmentation_id': 28, 'name': '$Name-network-01', 'admin_state_up': true, 'tenant_id': '7a5f5e1012d64a2e84c81fbcc33fd5f0', 'created_at': '2016-11-22T12:46:27Z', 'provider:network_type': 'vxlan'}}
Nov 22, 2016 20:46:28 SGT Return code 201: successfully configured Openstack task.
Nov 22, 2016 20:46:28 SGT Response received: {'network': {'provider:physical_network': null, 'updated_at': '2016-11-22T12:46:27Z', 'revision_number': 2, 'mtu': 1450, 'id': '32edc209-0466-4fdb-b41d-cdf43946b75d', 'router:external': false, 'availability_zone_hints': [], 'availability_zones': [], 'ipv4_address_scope': null, 'shared': false, 'project_id': '7a5f5e1012d64a2e84c81fbcc33fd5f0', 'status': 'ACTIVE', 'subnets': [], 'description': '', 'tags': [], 'ipv6_address_scope': null, 'provider:segmentation_id': 28, 'name': '$Name-network-01', 'admin_state_up': true, 'tenant_id': '7a5f5e1012d64a2e84c81fbcc33fd5f0', 'created_at': '2016-11-22T12:46:27Z', 'provider:network_type': 'vxlan'}}
Nov 22, 2016 20:46:28 SGT VLAN ID found: 28, Network ID 32edc209-0466-4fdb-b41d-cdf43946b75d
Nov 22, 2016 20:46:28 SGT Invliad inner task name: custom_openstack_delete_network
Nov 22, 2016 20:46:28 SGT Error occured at line # 50
Nov 22, 2016 20:46:28 SGT [Line#50] var undoContext = ctxt.createInnerTaskContext(undoHandler);
Nov 22, 2016 20:46:28 SGT Task: Openstack - chained tasks (custom_openstack_create_nw_nologin) failed with error - sun.org.mozilla.javascript.internal.WrappedException: Wrapped java.lang.Exception: [InnerTaskExecution] Invliad inner task name: custom_openstack_delete_network (<Unknown source>#50) in <Unknown source> at line number 50, selectedContext=<None>
Nov 22, 2016 20:46:28 SGT Task #7 (Openstack - chained tasks (custom_openstack_create_nw_nologin)) failed after 0 seconds
Nov 22, 2016 20:46:28 SGT Input/Output values for Task #7 (Openstack - chained tasks (custom_openstack_create_nw_nologin)):
Nov 22, 2016 20:46:28 SGT [Local Input: Network Name = $Name-network-01]
Nov 22, 2016 20:46:28 SGT [Mapped Input: Openstack Controller IP = 192.168.1.205]
Nov 22, 2016 20:46:28 SGT [Mapped Input: token = 40fe290411d7493eaf4eecaafaa37a49]
Nov 22, 2016 20:46:28 SGT Completed workflow item number 8, with status Failed
===================================================================================
Can I know what ver of Openstack it was tested before.
Thanks..
The network name “'$Name-network-01'” does not look right. $ABC are variables usually in UCSD and it looks like your variable $Name is not resolving or is getting no input.
Orf Gelbrich
Check out UCS Director Workflow INDEX<https://communities.cisco.com/docs/DOC-56419> on Cisco Communities Site (Twitter @UCSDGURU)
Okay, but the name was there already in the workflow, I didn't change anything in the network part. Can you suggest me any alternate to resolve the issue.
Thanks..
Where is $Name coming from. Is it in a field in a task? Is it in a Global var? Is it user input? Which task? Picture?
Orf Gelbrich
Check out UCS Director Workflow INDEX<https://communities.cisco.com/docs/DOC-56419> on Cisco Communities Site (Twitter @UCSDGURU)
Its in the 7th Task (custom_openstack_create_nw_test), Create OpenStack Network --> Task Inputs.
I am not able to add image here.
Thanks.
Here is my e-mail
ogelbric@cisco.com
Orf Gelbrich
Check out UCS Director Workflow INDEX<https://communities.cisco.com/docs/DOC-56419> on Cisco Communities Site (Twitter @UCSDGURU)
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: