aboutsummaryrefslogtreecommitdiffstats
path: root/undercloud-vm-ironic-config.yaml
blob: 1a90504aff5bdfa28fce9d561210fe4d267206d8 (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
resources:
  undercloudNovaConfig:
    type: OS::Heat::StructuredConfig
    properties:
      config:
        nova:
          compute_hostname: undercloud
          compute_driver: ironic.nova.virt.ironic.driver.IronicDriver
          compute_manager: ironic.nova.compute.manager.ClusteredComputeManager
          db: mysql://nova:unset@localhost/nova
          default_ephemeral_format: ext4
          host: 127.0.0.1
          metadata-proxy: false
          tuning:
            ram_allocation_ratio: 1.0
            reserved_host_memory_mb: 0
          service-password: {get_input: nova_service_password}
  undercloudIronicConfig:
    type: OS::Heat::StructuredConfig
    properties:
      config:
        ironic:
          db: mysql://ironic:unset@localhost/ironic
          service-password: {get_input: ironic_service_password}
          virtual_power_ssh_key: {get_input: virtual_power_ssh_key}
n class="p">, 'Upload', 'toaster', 'ngDialog', function($scope, $state, $stateParams, mainFactory, Upload, toaster, ngDialog) { init(); function init() { getDetailTaskForList(); } $scope.goBack = function goBack() { window.history.back(); } function getDetailTaskForList(id) { mainFactory.getTaskDetail().get({ 'taskId': $stateParams.taskId }).$promise.then(function(response) { if (response.status == 1) { if (response.result.task.status == -1) { response.result.task['stausWidth'] = '5%'; } else if (response.result.task.status == 0) { response.result.task['stausWidth'] = '50%'; } else if (response.result.task.status == 1) { response.result.task['stausWidth'] = '100%'; } else if (response.result.task.status == 2) { response.result.task['stausWidth'] = 'red'; } $scope.result = response.result.task; $scope.testcaseinfo = response.result.task.result.testcases; var key = Object.keys($scope.testcaseinfo); $scope.testcaseResult = $scope.testcaseinfo[key]; $scope.envIdForTask = response.result.task.environment_id; getItemIdDetail(); } }, function(error) { toaster.pop({ type: 'error', title: 'fail', body: 'unknow error', timeout: 3000 }); }) } $scope.goToExternal = function goToExternal(id) { var url = Grafana_URL +':'+$scope.jumpPort+'/dashboard/db'+ '/' + id; window.open(url, '_blank'); } function getItemIdDetail() { $scope.displayContainerInfo = []; mainFactory.ItemDetail().get({ 'envId': $scope.envIdForTask }).$promise.then(function(response) { if (response.status == 1) { if (response.result.environment.container_id.grafana != null) { getConDetail(response.result.environment.container_id.grafana); } else { $scope.jumpPort = 3000; } } }, function(error) { toaster.pop({ type: 'error', title: 'fail', body: 'unknow error', timeout: 3000 }); }) } function getConDetail(id) { mainFactory.containerDetail().get({ 'containerId': id }).$promise.then(function(response) { if (response.status == 1) { // $scope.podData = response.result; $scope.jumpPort = response.result.container.port; } }, function(error) { toaster.pop({ type: 'error', title: 'fail', body: 'unknow error', timeout: 3000 }); }) } } ]);