summaryrefslogtreecommitdiffstats
path: root/vagrant/setup_compute.sh
blob: 0c3eba7b81758c8b1020a72a538e7d55f6848950 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash
set -ex

cd devstack
cp /vagrant/compute.conf local.conf
host=$(hostname)
ip=$(ifconfig | grep 192.168.0 | cut -f2 -d: | cut -f1 -d' ')
sed -i -e "s/HOSTIP/$ip/" -e "s/HOSTNAME/$host/" local.conf
./stack.sh

sudo pvcreate /dev/sdb
sudo vgextend vagrant-vg /dev/sdb
sudo lvextend -L +800G /dev/mapper/vagrant--vg-root
sudo resize2fs /dev/mapper/vagrant--vg-root

sudo pvcreate /dev/sdc
sudo vgextend stack-volumes-lvmdriver-1 /dev/sdc
uiltin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0

Consumed APIs
=============
VID consumes the following APIs from other components:

SDC
----

+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| /sdc/v1/catalog/services/meta                                                                                                 | Get available services                                                 |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| /sdc/v1/catalog/services/toscaModel                                                                                           | Download CSAR by UUID                                                  |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+

SO
---

+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| POST /e2eServiceInstances/v3                                                                                                  | Create E2E instance                                                    |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| POST /serviceInstances/v6                                                                                                     | Create instance                                                        |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| DELETE                                                                                                                        | Delete instance                                                        |
|   /serviceInstances/v6/<instance-id>                                                                                          |                                                                        |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| POST                                                                                                                          | Create VNF                                                             |
|   /serviceInstances/v6/<service_instance_id>/vnfs                                                                             |                                                                        |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| DELETE                                                                                                                        | Delete VNF                                                             |
|   /serviceInstances/v6/<service_instance_id>/vnfs/<vnf_id>                                                                    |                                                                        |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| POST                                                                                                                          | Create VF-Module                                                       |
|   /serviceInstances/v6/<service_instance_id>/vnfs/<vnf_instance_id>/vfModules                                                 |                                                                        |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| DELETE                                                                                                                        | Delete VF-Module                                                       |
|   /serviceInstances/v6/<service_instance_id>/vnfs/<vnf_instance_id>/vfModules                                                 |                                                                        |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| POST                                                                                                                          | Create Volume group                                                    |
|   /serviceInstances/v6/<service_instance_id>/vnfs/<vnf_instance_id>/volumeGroups                                              |                                                                        |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| DELETE                                                                                                                        | Delete Volume group                                                    |
|   /serviceInstances/v6/<service_instance_id>/vnfs/<vnf_instance_id>/volumeGroups                                              |                                                                        |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| POST                                                                                                                          | Create configuration                                                   |
|   /serviceInstances/v6/<service_instance_id>/configurations/                                                                  |                                                                        |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| DELETE                                                                                                                        | Delete configuration                                                   |
|   serviceInstances/v6/<service_instance_id>/configurations/<configuration_id>                                                 |                                                                        |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| POST                                                                                                                          | Create network                                                         |
|   /serviceInstances/v6/<service_instance_id>/networks                                                                         |                                                                        |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| DELETE                                                                                                                        | Delete network (network instance id)                                   |
|   /serviceInstances/v6/<service_instance_id>/networks/<network_instance_id>                                                   |                                                                        |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| GET /orchestrationRequests/v6                                                                                                 | Get orchestration status                                               |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| GET /tasks/v1                                                                                                                 | Get available manual tasks by request id                               |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+


A&AI
-----

+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| GET                                                                                                                           | Get all subscribers                                                    |
|   aai/v13/business/customers?subscriber-type=INFRA&depth=2                                                                    |                                                                        |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| GET aai/v13/                                                                                                                  | Get data for a specific subscriber including its available services    |
|   business/customers/customer/<global_customer_id>                                                                            |                                                                        |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| GET                                                                                                                           | Get all service types                                                  |
|   aai/v13/service-design-and-creation/services                                                                                |                                                                        |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| GET                                                                                                                           | Get services by owner entity id                                        |
|   aai/v13/business/owning-entities?<owning_entitiy_ids>                                                                       |                                                                        |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| GET                                                                                                                           | Get services by project name                                           |
|   aai/v13/business/projects?<project-names>                                                                                   |                                                                        |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| GET aai/v13/network/zones                                                                                                     | Get all AIC zones                                                      |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| POST search/named-query                                                                                                       | Get data regarding an instance and the instance's related nodes        |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| GET aai/v13/                                                                                                                  | Get AIC zones for a specific service instance                          |
|   business/customers/customer/<global_customer_id>/                                                                           |                                                                        |
|   /service-subscriptions/service-subscription/<service_type>/service-instances/service-instance/<service_instance_id>         |                                                                        |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| PUT Aai/v13/query?format=simple(types:                                                                                        | This is a custom query and has multiple types(declared in the url line)|
|   “query/vnfFromModelbyRegion?cloudRegionId”,”                                                                                |                                                                        |
|   vnf-topology-fromServiceInstance”)                                                                                          |                                                                        |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| Aai/v13/                                                                                                                      | Get the human readable version by version id                           |
|   service-design-and-creation/models?depth=2                                                                                  |                                                                        |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+
| business/customers/customer/<global_customer_id>/service-subscriptions/service-subscription/<service_Subscription_Id>?depth=0 | Get all service subscriptions                                          |
+-------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------+