PageSourceSearch

https://www.bsc.es/supportkc/assets/js/4f2a7400.56c3bf0b.js

js bsc.es collected 2026-09-24 08:44:41 UTC 7,516 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunksupportkc_new=self.webpackChunksupportkc_new||[]).push([[3829],{3905:(e,t,n)=>{n.d(t,{Zo:()=>l,kt:()=>k});var r=n(67294);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var i=r.createContext({}),p=function(e){var t=r.useContext(i),n=t;return e&&(n="function"==typeof e?e(t):c(c({},t),e)),n},l=function(e){var t=p(e.components);return r.createElement(i.Provider,{value:t},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,a=e.mdxType,o=e.originalType,i=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),u=p(n),m=a,k=u["".concat(i,".").concat(m)]||u[m]||d[m]||o;return n?r.createElement(k,c(c({ref:t},l),{},{components:n})):r.createElement(k,c({ref:t},l))}));function k(e,t){var n=arguments,a=t&&t.mdxType;if("string"==typeof e||a){var o=n.length,c=new Array(o);c[0]=m;var s={};for(var i in t)hasOwnProperty.call(t,i)&&(s[i]=t[i]);s.originalType=e,s[u]="string"==typeof e?e:a,c[1]=s;for(var p=2;p<o;p++)c[p]=n[p];return r.createElement.apply(null,c)}return r.createElement.apply(null,n)}m.displayName="MDXCreateElement"},54335:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>i,contentTitle:()=>c,default:()=>d,frontMatter:()=>o,metadata:()=>s,toc:()=>p});var r=n(87462),a=(n(67294),n(3905));const o={sidebar_position:10,sidebar_label:"Orchestration",title:"OpenStack"},c="Orchestration",s={unversionedId:"Openstack/orchestration",id:"Openstack/orchestration",title:"OpenStack",description:"Here we provide a simple template if you want to orchestrate instance creation. Take the following text as template and modify it as needed.",source:"@site/docs-ncloud/Openstack/orchestration.md",sourceDirName:"Openstack",slug:"/Openstack/orchestration",permalink:"/supportkc/docs-ncloud/Openstack/orchestration",draft:!1,tags:[],version:"current",sidebarPosition:10,frontMatter:{sidebar_position:10,sidebar_label:"Orchestration",title:"OpenStack"},sidebar:"tutorialSidebar",previous:{title:"OpenStack Endpoints",permalink:"/supportkc/docs-ncloud/Openstack/endpoints"},next:{title:"General OpenStack Documentation",permalink:"/supportkc/docs-ncloud/Openstack/generaldoc"}},i={},p=[{value:"Template creation",id:"template-creation",level:2},{value:"Stack Creation",id:"stack-creation",level:2}],l={toc:p},u="wrapper";function d(e){let{components:t,...n}=e;return(0,a.kt)(u,(0,r.Z)({},l,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"orchestration"},"Orchestration"),(0,a.kt)("p",null,"Here we provide a simple template if you want to orchestrate instance creation. Take the following text as template and modify it as needed."),(0,a.kt)("h2",{id:"template-creation"},"Template creation"),(0,a.kt)("p",null,"Template example:"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-bash"},"$ cat demo-template.yml\nheat_template_version: 2015-10-15\ndescription: Launch a basic instance with CentOS image\n\nparameters:\n  NetID:\n    type: string\n    description: Network ID to use for the instance.\n\nresources:\n  server:\n    type: OS::Nova::Server\n    properties:\n      image: CentOS\n      flavor: bsc.t\n      key_name: key-user\n      networks:\n      - network: { get_param: NetID }\n\noutputs:\n  instance_name:\n    description: Name of the instance.\n    value: { get_attr: [ server, name ] }\n  instance_ip:\n    description: IP address of the instance.\n    value: { get_attr: [ server, first_address ] }\n")),(0,a.kt)("h2",{id:"stack-creation"},"Stack Creation"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-bash"},'$ openstack stack create -t demo-template.yml --parameter "NetID=e53ae870-8fd6-4c26-ab65-1161788b26d0" demo-stack\n+---------------------+-----------------------------------------------------------------------------------------------------------------+\n| Field               | Value                                                                                                           |\n+---------------------+-----------------------------------------------------------------------------------------------------------------+\n| stack_name          | demo-stack                                                                                                      |\n| description         | Launch a basic instance with CentOS image using the ``bsc.t`` flavor, ``key-user`` key,  and net-bsc99 network. |\n| creation_time       | 2021-10-29T13:21:15Z                                                                                            |\n| updated_time        | None                                                                                                            |\n| stack_status        | CREATE_IN_PROGRESS                                                                                              |\n| stack_status_reason | Stack CREATE started                                                                                            |\n+---------------------+-----------------------------------------------------------------------------------------------------------------+\n\n$ openstack stack list\n+--------------------------------------+------------+-----------------+----------------------+--------------+\n| ID                                   | Stack Name | Stack Status    | Creation Time        | Updated Time |\n+--------------------------------------+------------+-----------------+----------------------+--------------+\n| 488f7d41-f538-45bb-b849-e17bd9feaccb | demo-stack | CREATE_COMPLETE | 2021-10-29T13:21:15Z | None         |\n+--------------------------------------+------------+-----------------+----------------------+--------------+\n\n$ openstack server list\n+--------------------------------------+------------------------------------------+---------+---------------------------+--------+---------+\n| ID                                   | Name                                     | Status  | Networks                  | Image  | Flavor  |\n+--------------------------------------+------------------------------------------+---------+---------------------------+--------+---------+\n| e2e7c4e1-b7bc-4e1a-b2a4-b44110d114a7 | demo-stack-server-z3fh3d4rmz4x           | ACTIVE  | net-bsc99=192.168.20.115  | CentOS | bsc.t   |\n+--------------------------------------+------------------------------------------+---------+---------------------------+--------+---------+\n')))}d.isMDXComponent=!0}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.