cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5008
Views
3
Helpful
8
Comments
Orf Gelbrich
Cisco Employee
Cisco Employee
Task NameOpenstack Integration with UCSD
Description
Prerequisites
  1. Tested on 5.3
CategoryWorkflow
ComponentsvSphere 5.x
User Inputs

Instructions for Regular Workflow Use:

  1. Download the attached .ZIP file below to your computer. *Remember the location of the saved file on your computer.
  2. Unzip the file on your computer. Should end up with a .WFD file.
  3. Log in to UCS Director as a user that has "system-admin" privileges.
  4. Navigate to "Policies-->Orchestration" and click on "Import".
  5. Click "Browse" and navigate to the location on your computer where the .WFD file resides. Choose the .WFD file and click "Open".
  6. Click "Upload" and then "OK" once the file upload is completed. Then click "Next".
  7. Click the "Select" button next to "Import Workflows". Click the "Check All" button to check all checkboxes and then the "Select" button.
  8. Click "Submit".
  9. A new folder should appear in "Policies-->Orchestration" that contains the imported workflow. You will now need to update the included tasks with information about the specific environment.

Credits go to Jose Moreno and Russ Whitear.

The workflows on import into UCSD:

Screen Shot 2015-05-06 at 1.39.03 PM.png

Screen Shot 2015-05-06 at 1.39.12 PM.png

The workflow loacation:

Screen Shot 2015-05-06 at 1.39.55 PM.png

The workflow:

Screen Shot 2015-05-06 at 1.40.39 PM.png

Screen Shot 2015-05-06 at 1.40.48 PM.png

Screen Shot 2015-05-06 at 1.41.00 PM.png

Screen Shot 2015-05-06 at 1.41.08 PM.png

PDF / PDF workflow conversion thanks to Simon Price (also attached):

Openstack - chained tasks.uml.png

Comments

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

Orf Gelbrich
Cisco Employee
Cisco Employee

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..

Orf Gelbrich
Cisco Employee
Cisco Employee

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..

Orf Gelbrich
Cisco Employee
Cisco Employee

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.

Orf Gelbrich
Cisco Employee
Cisco Employee

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)

Getting Started

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:

Quick Links