发起问题

GSCORREA 的档案 - activity

2020-05-07 14:12:44 -0500 获得奖牌  受欢迎的问题 (source)
2020-05-05 10:09:48 -0500 问了问题 how create condition with for_each variable

I have a need to create a condition using a for_each variable to be used with a if statement inside of the for_each template. Look at the cond_icmp below and how I am trying to use it inside of the for each, the result is that when I get protocol icmp the port_max is getting the value of 65535 instead of 255. If what I want to do is not possible, please feel free to suggest an alternative.

heat_template_version: 2018-08-31

parameters:
  SecGrpName: "ud,ems,uir,hss_data,calea,prov,core_direct,hsl,proxy"
  SecGrpdir: "ingress,egress"
  SecGrpProt: "tcp,udp,icmp"
  secIndex:
    type: number

conditions: 
  cond_diam_ss7: { or: [ { equals : [ { get_param: secIndex }, 1 ] } , { equals : [ { get_param: secIndex }, 2 ] } ] }
  cond_general: { and: [ { not: { equals : [ { get_param: secIndex }, 10 ] } } , { not: { equals : [ { get_param: secIndex }, 11 ] } } ] }
  cond_icmp: { equals: [<%secprot%>, 'icmp'] }

resources:
  security_group_general:
    type: OS::Neutron::SecurityGroup
    condition: cond_general
    properties:
      name: { list_join: [ '_', [ 'FTC-ATTLAB', { get_param: [ SecGrpName, { get_param: secIndex } ] }, 'sec_group_name'] ] }
      rules:
        repeat:
          for_each:
            <%secdir%>: { get_param: SecGrpdir }
            <%secprot%>: { get_param: SecGrpProt }
          template:
            direction: <%secdir%>
            ethertype: IPv4
            port_range_min: { if: [equals: [<%secprot%>, "icmp"],0,1 ] }
            port_range_max: { if: [equals: [<%secprot%>, "icmp"],255,65535 ] }
            protocol: <%secprot%>
            remote_ip_prefix: 0.0.0.0/0
2020-04-29 15:01:33 -0500 获得奖牌  热门的问题 (source)
2020-04-29 01:44:32 -0500 获得奖牌  著名问题 (source)
2020-04-29 01:44:32 -0500 获得奖牌  热门的问题 (source)
2020-04-28 08:51:03 -0500 获得奖牌  受欢迎的问题 (source)
2020-04-28 07:27:20 -0500 获得奖牌  受欢迎的问题 (source)
2020-04-27 18:30:31 -0500 问了问题 Is it possible to create multiple openstack resources using same heat resource

What I am trying to achieve is a way to create several entities (in this case networks) using same resource and iterating through a list of parameters, like the example below.

    parameters:
      netName:
        type: comma_delimited_list
        label: netName
        default: "calea,diam,ss7,proxy"
        description: Network name
    resources:
      repeat:
        template:
          networks:
            type: OS::Neutron::Net
              properties:
                name:
                  list_join: ['_', [ 'int', <%name%>, 'net']]
        for_each:
          <%name%>: { get_param: netName }
2020-04-27 15:30:02 -0500 获得奖牌  编辑 (source)
2020-04-27 15:16:17 -0500 问了问题 trying to create networks using the for_each loop and receiving "Unknown Property rules"

heat yaml:

heat_template_version: 2018-08-31

parameters:
netName:
  type: comma_delimited_list
  label: netName
  default: "calea,diam,ss7,proxy"
  description: Network name
resources:
  networks:
  type: OS::Neutron::Net
properties:
  rules:
    repeat:
      for_each:
        <%name%>: { get_param: netName }
      template:
        name: 
          list_join: ['_', [ 'int', <%name%>, 'net']]

Error:

openstack orchestration template validate -t base.yaml ERROR: Property error: resources.networks.properties: Unknown Property rules

2017-02-24 01:26:44 -0500 获得奖牌  著名问题 (source)
2017-02-24 01:26:44 -0500 获得奖牌  受欢迎的问题 (source)
2017-02-24 01:26:44 -0500 获得奖牌  热门的问题 (source)
2016-10-17 11:34:46 -0500 获得奖牌  著名问题 (source)
2016-09-01 08:06:44 -0500 获得奖牌  热门的问题 (source)
2016-08-31 18:31:38 -0500 获得奖牌  受欢迎的问题 (source)
2016-08-31 16:50:29 -0500 评论回答 would like to know how to configure openstack mitaka with provider network on a single node with a single interface using devstack

how would I do that. I think I can get a second NIC. I can not get any other IP ADDRESS. How would I configure local.conf on devstack to do this?

2016-08-31 15:23:55 -0500 问了问题 would like to know how to configure openstack mitaka with provider network on a single node with a single interface using devstack

I have a single system with a single network interface and 2 ip addresses. I would like to configure a provider network on neutron (on devstack). My idea is to have a several VMs but one of them with a provider IP that I can use to access the provider network.

My single interface has IP 20.20.20.15 and I have an extra IP 20.20.20.16 that I want to provide to one VM so it can access the provider network.

It seems that in order to use floating IP I would need to have available at least 3 IP addresses, what I do not have (not sure if this is true)

IP address 20.20.20.15 is my HOST ip address.

2016-01-28 05:52:58 -0500 获得奖牌  著名问题 (source)
2015-11-24 17:07:21 -0500 获得奖牌  热门的问题 (source)
2015-11-16 13:03:53 -0500 获得奖牌  受欢迎的问题 (source)
2015-10-30 19:16:40 -0500 问了问题 how to setup local.conf for cinder with multinode devstack

I have 2 nodes on my multimode devstack.

My first node is the controller and I do not wantr use its local storage. My second node is the compute node and I have a VG of 689 GB name VOLUMES4CLOUDVMS.

How do I setup the controller and compute local.conf to have a total of 689GB available to be used in my environment.

Right now I did setup the controller and did not enable c-vol and on the compute I did enable c-vol and set the following.

VOLUME_GROUP="VOLUMES4CLOUDVMS" VOLUME_NAME_PREFIX="CLOUD_" VOLUME_BACKING_FILE_SIZE=689G

The vg on the compute shows. --- Volume group --- VG Name VOLUMES4CLOUDVMS System ID Format lvm2 Metadata Areas 3 Metadata Sequence No 2 VG Access read/write VG Status resizable MAX LV 0 Cur LV 0 Open LV 0 Max PV 0 Cur PV 3 Act PV 3 VG Size 689.01 GiB PE Size 4.00 MiB Total PE 176387 Alloc PE / Size 0 / 0 Free PE / Size 176387 / 689.01 GiB VG UUID OH9QCp-L2Vl-5vMv-7MVc-grJl-hLq8-w2mjvQ

--- Volume group --- VG Name VOLUMES4CLOUDVMS-lvmdriver-1 System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 1 VG Access read/write VG Status resizable MAX LV 0 Cur LV 0 Open LV 0 Max PV 0 Cur PV 1 Act PV 1 VG Size 689.00 GiB PE Size 4.00 MiB Total PE 176383 Alloc PE / Size 0 / 0 Free PE / Size 176383 / 689.00 GiB VG UUID 5kKM3w-Bn4l-a9nF-eKlE-WSLJ-1FW9-SR5QDC

--- Volume group --- VG Name VOLUMES4CLOUDVMS-default System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 1 VG Access read/write VG Status resizable MAX LV 0 Cur LV 0 Open LV 0 Max PV 0 Cur PV 1 Act PV 1 VG Size 689.00 GiB PE Size 4.00 MiB Total PE 176383 Alloc PE / Size 0 / 0 Free PE / Size 176383 / 689.00 GiB VG UUID dJ1ZRC-OU0J-IhVg-60fh-COme-8JMR-XchpwA

But horizon shows 114GB available on the controller node and 114GB available on the compute node when I wanted it to show only 689GB on the compute node.

2015-10-30 18:21:25 -0500 回答问题 How to fix error 404 when devstack install on compute node tries to create alt_demo project on controller node.

I found what was causing the error. When I did source the controller node admin file, the variable OS_AUTH_TYPE got set with value of v2password and somehow it was breaking the logic used to decide the type of auth to use to access the controller node.

Once I unset that variable the command worked.

I would like to know exactly what was getting broken by having this variable set.

2015-10-28 12:55:42 -0500 获得奖牌  粉丝
2015-10-20 21:27:22 -0500 问了问题 How to fix error 404 when devstack install on compute node tries to create alt_demo project on controller node.

During the devstack installation on a compute node there is step to create a project on the controller node. Failed command below

openstack --os-url=http://<controllerip>:5000/v3 --os-identity-api-version=3 project create alt_demo --domain=default --or-show -f value -c id

This steps fails with error 404.

2015-10-20 21:45:47.287 | The resource could not be found. (HTTP 404)

I entered the same command with debug option and got the following. P.S: I did change the controller IP address and password for security reasons.

openstack --os-url=http://<controllerip>:5000/v3 --os-identity-api-version=3 project create alt_demo --domain=default --or-show -f value -c id --debug START with options: ['--os-url=http://<controllerip>:5000/v3', '--os-identity-api-version=3', 'project', 'create', 'alt_demo', '--domain=default', '--or-show', '-f', 'value', '-c', 'id', '--debug'] options: Namespace(access_token_endpoint='', auth_type='v2password', auth_url='http://<controllerip>:35357', cacert='', client_id='', client_secret='', cloud='', debug=True, default_domain='default', deferred_help=False, domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', log_file=None, os_compute_api_version='', os_identity_api_version='3', os_image_api_version='', os_network_api_version='', os_object_api_version='', os_project_id=None, os_project_name=None, os_volume_api_version='', password='<password>', project_domain_id='default', project_domain_name='', project_id='', project_name='admin', protocol='', region_name='', scope='', service_provider_endpoint='', timing=False, token='', trust_id='', url='http://<controllerip>:5000/v3', user_domain_id='default', user_domain_name='', user_id='', username='admin', verbose_level=3, verify=None) defaults: {'auth_type': 'password', 'compute_api_version': '2', 'key': None, 'database_api_version': '1.0', 'api_timeout': None, 'baremetal_api_version': '1', 'cacert': None, 'image_api_use_tasks': False, 'floating_ip_source': 'neutron', 'orchestration_api_version': '1', 'interface': None, 'network_api_version': '2', 'image_format': 'qcow2', 'object_api_version': '1', 'image_api_version': '2', 'verify': True, 'identity_api_version': '2.0', 'volume_api_version': '1', 'cert': None, 'secgroup_source': 'neutron', 'dns_api_version': '2', 'disable_vendor_agent': {}} cloud cfg: {'auth_type': 'v2password', 'compute_api_version': '2', 'orchestration_api_version': '1', 'database_api_version': '1.0', 'interface': None, 'network_api_version': '2', 'image_format': 'qcow2', 'object_api_version': '1', 'image_api_version': '2', 'verify': True, 'timing': False, 'dns_api_version': '2', 'project_domain_id': 'default', 'project_name': 'admin', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, 'baremetal_api_version': '1', 'auth': {'username': 'admin', 'tenant_name': 'admin', 'password': '<password>', 'auth_url': 'http://<controllerip>:35357'}, 'default_domain': 'default', 'image_api_use_tasks': False, 'floating_ip_source': 'neutron', 'key': None, 'cacert': None, 'user_domain_id': 'default', 'deferred_help': False, 'identity_api_version': '3', 'volume_api_version': '1', 'url': 'http://<controllerip>:5000/v3', 'cert': None, 'secgroup_source': 'neutron', 'debug': True, 'disable_vendor_agent': {}} compute API version 2, cmd group openstack.compute.v2 network API version 2, cmd group openstack.network.v2 image API version 2, cmd group openstack.image.v2 volume API version 1, cmd group openstack.volume.v1 identity API version 3, cmd group openstack.identity.v3 object_store API version 1, cmd group openstack.object_store.v1 command: project create -> openstackclient.identity.v3.project.CreateProject Auth plugin v2password selected auth_type: v2password Using auth plugin: v2password Using parameters {'username': 'admin', 'tenant_name': 'admin', 'password': '<password>', 'auth_url': 'http://<controllerip>:35357'} Get auth_ref Making authentication request to http://<controllerip>:35357/tokens Starting new HTTP connection (1): <controllerip> "POST /tokens HTTP/1.1" 404 93 Request returned failure status: 404 The resource could not be found. (HTTP 404) Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/cliff/app.py", line 367, in run_subcommand self.prepare_to_run_command(cmd) File "/usr/local/lib/python2.7/dist-packages/openstackclient/shell.py", line 344, in prepare_to_run_command self.client_manager.auth_ref File "/usr/local/lib/python2.7/dist-packages/openstackclient/common/clientmanager.py", line 189, in auth_ref self._auth_ref = self.auth.get_auth_ref ... (more)