summaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/test/resources/vf-csar.JSON
blob: 097b319a27c8203ed50530d04cfb8e1bf71c29e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{
  "networks": {
  },
  "service": {
    "category": "Mobility",
    "description": "Bla bla",
    "serviceRole":"null",
    "serviceType":"null",
    
    "inputs": {
      "greatdefect0_availability_zone_max_count": {
        "constraints": [
        ],
        "default": 1,
        "description": "",
        "entry_schema": null,
        "required": true,
        "type": "integer"
      },
      "greatdefect0_itc_name_0": {
        "constraints": [
        ],
        "default": "ab",
        "description": "ixla itc instance name",
        "entry_schema": null,
        "required": true,
        "type": "string"
      },
      "greatdefect0_vf_module_id": {
        "constraints": [
        ],
        "default": "abc",
        "description": "Unique ID for this VF Module instance",
        "entry_schema": null,
        "required": true,
        "type": "string"
      }
    },
    "invariantUuid": "bd9bf71a-df22-4c95-8638-89f15d875395",
    "name": "Moriya_new_test",
    "serviceEcompNaming": "true",
    "toscaModelURL": null,
    "uuid": "48a52540-8772-4368-9cdb-1f124ea5c931",
    "version": "0.1"
  },
  "vfModules": {
    "greatdefect0..Greatdefect..base_ixla..module-0": {
      "commands": {
      },
      "customizationUuid": "316e323d-611d-4007-a647-b1d2ecdaee9e",
      "description": null,
      "invariantUuid": "80ff85fb-cb11-42cb-9737-e47095d42756",
      "modelCustomizationName": "Greatdefect..base_ixla..module-0",
      "name": "Greatdefect..base_ixla..module-0",
      "uuid": "01166434-ef34-4969-aaf2-626203d72e48",
      "version": "3",
      "volumeGroupAllowed": false
    },
    "greatdefect0..Greatdefect..module_1_ixla..module-2": {
      "commands": {
      },
      "customizationUuid": "1106fca3-235a-4f92-8d5a-960a7336b32f",
      "description": null,
      "invariantUuid": "e0297a51-c670-452e-b31c-c5b37c6ad40f",
      "modelCustomizationName": "Greatdefect..module_1_ixla..module-2",
      "name": "Greatdefect..module_1_ixla..module-2",
      "uuid": "6f09e053-56a6-4fbb-8299-e1de616825cc",
      "version": "3",
      "volumeGroupAllowed": false
    },
    "greatdefect0..Greatdefect..module_2_ixla..module-1": {
      "commands": {
      },
      "customizationUuid": "b52c1fda-fbbf-4de3-ad9b-190d4a14990c",
      "description": null,
      "invariantUuid": "23befc6e-aa97-4004-b215-4979c3f84913",
      "modelCustomizationName": "Greatdefect..module_2_ixla..module-1",
      "name": "Greatdefect..module_2_ixla..module-1",
      "uuid": "dea8e41f-c996-4557-b521-263210d96baa",
      "version": "3",
      "volumeGroupAllowed": false
    }
  },
  "vnfs": {
    "greatdefect 0": {
      "commands": {
        "availability_zone_max_count": {
          "command": "get_input",
          "displayName": "availability_zone_max_count",
          "inputName": "greatdefect0_availability_zone_max_count"
        },
        "itc_name_0": {
          "command": "get_input",
          "displayName": "itc_name_0",
          "inputName": "greatdefect0_itc_name_0"
        },
        "vf_module_id": {
          "command": "get_input",
          "displayName": "vf_module_id",
          "inputName": "greatdefect0_vf_module_id"
        }
      },
      "customizationUuid": "9123ced3-fbcd-42f7-b103-5965c54bbd66",
      "description": "checl-IdanWithSecondFix",
      "inputs": {
        "availability_zone_max_count": {
          "constraints": [
          ],
          "default": 1,
          "description": "",
          "entry_schema": null,
          "required": true,
          "type": "integer"
        },
        "itc_name_0": {
          "constraints": [
          ],
          "default": "ab",
          "description": "ixla itc instance name",
          "entry_schema": null,
          "required": true,
          "type": "string"
        },
        "vf_module_id": {
          "constraints": [
          ],
          "default": "abc",
          "description": "Unique ID for this VF Module instance",
          "entry_schema": null,
          "required": true,
          "type": "string"
        }
      },
      "invariantUuid": "d149c45a-b42f-419a-9fac-f9c359fc2034",
      "modelCustomizationName": "greatdefect 0",
      "name": "greatdefect",
      "properties": {
        "availability_zone_max_count": "get_input:greatdefect0_availability_zone_max_count",
        "itc_flavor_name": "nv.c8r24d160",
        "itc_image_name": "NIMBUS_IXLA-ITC_8.20_EA_KVM_210117.qcow2",
        "itc_name_0": "get_input:greatdefect0_itc_name_0",
        "itm_flavor_name": "nv.c2r4d50",
        "itm_image_name": "NIMBUS_IXLA-ITM_8.20.EA_KVM.qcow2",
        "vf_module_id": "get_input:greatdefect0_vf_module_id"
      },
      "uuid": "3b25707a-d345-4a80-8744-73adf8f2e67b",
      "version": "3.0",
      "vfModules": {
      },
      "volumeGroups": {
      }
    }
  },
  "volumeGroups": {
  }
}
uns docker engine daemon. -- Check that WSSimulator.war exists after first step No.1 in webseal-simulator/sdc-simulator folder. 3. Run `docker build -t openecomp/sdc-simulator:1.1-STAGING-latest <PATH/sdc-simulator>` Example: docker build -t openecomp/sdc-simulator:1.1-STAGING-latest /tmp/docker/sdc-simulator/ -- If running behind a proxy: `docker build --build-arg http_proxy=http://URL:PORT --build-arg https_proxy=http://URL:PORT -t openecomp/sdc-simulator:1.1-STAGING-latest /tmp/docker/sdc-simulator/` 4. Validate that images pushed to the local repo by executing `docker images` 5. Copy the script /webseal-simulator/scripts/simulator_docker_run.sh to the docker engine environment and run: `simulator_docker_run.sh -r 1.1-STAGING-latest` 6. Run `docker ps` to verify that sdc-simulator docker is up and running. 7. Enter to UI: `http://<ip address>:8285/login` # WAR compilation - To compile WSSimulator.war: 1. Build web simulator WAR file: run `mvn clean install` on project "webseal simulator". This will generate war file (WSSimulator.war) in the target folder. 2. Ftp war file: webseal-simulator\target\WSSimulator.war to your localhost vagrant machine: /home/vagrant/webseal-simulator/webapps folder 3. Ftp configuration file: webseal-simulator\src\main\resources\webseal.conf to your localhost vagrant machine: /home/vagrant/webseal-simulator/config 4. Add users to simulator: open configuration file - webseal.conf and add new user to the user list. Note: You need to define the user in the SDC as well. 5. To run the simulator, enter to your local vagrant and run: startWebsealSimulator.sh -- Restart the simulator: Stop the simulator: stopWebsealSimulator.sh Start the simulator: startWebsealSimulator.sh 6. Enter to UI: http://<ip address>:8285/login ### SDC import normatives from CLI SDC needs to work with predefined basic normatives, in order to update the database with the normatives need to: 1. From catalog-be project copy: src\main\resources\import\tosca -> to <machine ip address>:catalog-be/import/tosca src\main\resources\scripts\import\tosca ->to <machine ip address>:catalog-be/scripts/import/tosca 2. cd catalog-be/scripts/import/tosca 3. Run: python importNormativeAll.py 4. Wait until all normatives are loaded to the database ### SDC APIs TBD ##### Main API endpoints in the first open source release - ***to be completed*** APIHandler health checks TBD # Configuration of SDC TBD Here are the main parameters you could change: TBD The credentials are defined in 2 places: TBD # Logging TBD ### Jetty TBD ### Debuging TBD # Testing SDC Functionalities TBD ### Frontend Local Env - onboarding Steps: ------ Install nodejs & gulp 1. download nodejs from here: https://nodejs.org/en/ (take the "current" version with latest features) & install it. 2. install gulp by running the following command: npm install --global gulp-cli Install DOX-UI a: ----------------- 1. pull for latest changes 2. go to folder dox-sequence-diagram-ui 3. run npm install 4. wait for it... 5. go to folder dox-ui 6. run npm install 7. create a copy of devConfig.defaults.json file and name it devConfig.json (we already configured git to ignore it so it will not be pushed) 8. in that file, populate the fields of the IP addresses of your BE machine you'd like to connect (pay attention, it is a JSON file): For example http://<host>:<port> 9. after everything was successful, run gulp 10. after server was up, your favorite UI will wait for you at: http://localhost:9000/sdc1/proxy-designer1#/onboardVendor Troubleshooting: ---------------- | Problem | Why is this happening | Solution | -------------------------------------------------------------------------------------------------------------------------------------------------------- | npm cannot reach destination | onboarding proxy | When within onboarding network, you should set onboarding proxy to NPM as the following: | | | | npm config set proxy http://genproxy:8080 | | | | npm config set https-proxy http://genproxy:8080 | | | | | | git protocol is blocked | onboarding network | When within onboarding network, you should set globally that when git | | and cannot connect | rules for protocols | protocol is used, then it will be replaced with "https" | | | | git config --global url."https://".insteadOf git:// | -------------------------------------------------------------------------------------------------------------------------------------------------------- # Getting Help *** to be completed on rrelease *** SDC@lists.openecomp.org SDC Javadoc and Maven site *** to be completed on rrelease ***