Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Loadbalancing Pool Floating-IP

So this morning I finished my Loadbalancing Test Template. Everything went well and the stack was created completely, but unfortunately the floating IP-Adresses for my pool weren't created.

  pool:
    type: OS::Neutron::Pool
    properties:
      protocol: HTTP
      monitors: [{get_resource: monitor}]
      subnet_id: {get_param: subnet}
      lb_method: ROUND_ROBIN
      vip:
        protocol_port: 80
  lb:
    type: OS::Neutron::LoadBalancer
    properties:
      protocol_port: 80
      pool_id: {get_resource: pool}

  lb_floating:
    type: OS::Neutron::FloatingIP
    properties:
      floating_network_id: {get_param: public}
      port_id: {get_attr: [pool, vip, port_id]}

public = the ID of my external Network 10.0.x.x and the subnet = the Subnet ID of my internal Network 196.0.x.x All my instances were created in the internal Network, but nothing has a external IP.

Do I have to create an extra port-resource for the pool?

Hope someone give me a tip where I made my mistake.

Loadbalancing Pool Floating-IP

So this morning I finished my Loadbalancing Test Template. Everything went well and the stack was created completely, but unfortunately the floating IP-Adresses for my pool weren't created.

  pool:
    type: OS::Neutron::Pool
    properties:
      protocol: HTTP
      monitors: [{get_resource: monitor}]
      subnet_id: {get_param: subnet}
      lb_method: ROUND_ROBIN
      vip:
        protocol_port: 80
  lb:
    type: OS::Neutron::LoadBalancer
    properties:
      protocol_port: 80
      pool_id: {get_resource: pool}

  lb_floating:
    type: OS::Neutron::FloatingIP
    properties:
      floating_network_id: {get_param: public}
      port_id: {get_attr: [pool, vip, port_id]}

public = the ID of my external Network 10.0.x.x 10.0.x.x

and the subnet = the Subnet ID of my internal Network 196.0.x.x 196.0.x.x

All my instances were created in the internal Network, but nothing has a external IP.

Do I have to create an extra port-resource for the pool?

Hope someone give me a tip where I made my mistake.

Loadbalancing Pool Floating-IP

So this morning I finished my Loadbalancing Test Template. Everything went well and the stack was created completely, but unfortunately the floating IP-Adresses for my pool weren't created.

  pool:
    type: OS::Neutron::Pool
    properties:
      protocol: HTTP
      monitors: [{get_resource: monitor}]
      subnet_id: {get_param: subnet}
      lb_method: ROUND_ROBIN
      vip:
        protocol_port: 80
  lb:
    type: OS::Neutron::LoadBalancer
    properties:
      protocol_port: 80
      pool_id: {get_resource: pool}

  lb_floating:
    type: OS::Neutron::FloatingIP
    properties:
      floating_network_id: {get_param: public}
      port_id: {get_attr: [pool, vip, port_id]}

public = the ID of my external Network 10.0.x.x

and the subnet = the Subnet ID of my internal Network 196.0.x.x

All my instances were created in the internal Network, but nothing has a external IP.

Do I have to create an extra port-resource for the pool?

Hope someone can give me a tip where I made my mistake.

Some Loadbalancing Pool Floating-IPQuestions

So this morning I finished my Loadbalancing Test Template. Everything went well and the stack was created completely, but unfortunately something does quite not work as expected. Before I create an new thread for every question I have i would like to ask multiple questions here and hope to answer them.

1) I added a floating IP resource for my pool, but the floating IP-Adresses for my pool weren't created.

  pool:
    type: OS::Neutron::Pool
    properties:
      protocol: HTTP
      monitors: [{get_resource: monitor}]
      subnet_id: {get_param: subnet}
      lb_method: ROUND_ROBIN
      vip:
        protocol_port: 80
  lb:
    type: OS::Neutron::LoadBalancer
    properties:
      protocol_port: 80
      pool_id: {get_resource: pool}

  lb_floating:
    type: OS::Neutron::FloatingIP
    properties:
      floating_network_id: {get_param: public}
      port_id: {get_attr: [pool, vip, port_id]}

public = the ID of my external Network 10.0.x.x

10.0.x.x and the subnet = the Subnet ID of my internal Network 196.0.x.x

All my instances were created in the internal Network, but nothing has a external IP.

Do I have to create an extra port-resource for the pool?

Hope


2) The time it takes to create or delete an instance takes exact 10 minutes.

   Policy:
     type: OS::Heat::ScalingPolicy
     properties:
       adjustment_type: change_in_capacity
       auto_scaling_group_id: {get_resource: myServer_Group}
       cooldown: 30
       scaling_adjustment: 1

   Alarm:
     type: OS::Ceilometer::Alarm
     properties:
       meter_name: cpu_util
       statistic: avg
       period: 30
       evaluation_periods: 1
      threshold: 50
    alarm_actions:
     - {get_attr: [Policy, alarm_url]}
    comparison_operator: gt

So I set the Policy Cooldown to 30seconds and the period of the alarm also to 30seconds. I keep my Instance at 90% CPU so that the alarm should trigger within the first (or second) Period. Why does it stil take 10 minutes to trigger?


3) When a second Instance is generated the CPU% of the second one doesn't increase while the first one is still running at 90%. To get it to the limit i used

 cat /dev/urandom > /dev/null

and expected that the second one will also go up to 90% because of my loadbalancer or does it not work this way?

I hope that someone can give explain me a tip where I made my mistake.this events and thanks to everyone who help me with my Questions.

Some Loadbalancing Questions

So this morning I finished my Loadbalancing Test Template. Everything went well and the stack was created completely, but unfortunately something does quite not work as expected. Before I create an new thread for every question I have i would like to ask multiple questions here and hope to answer them.

1) I added a floating IP resource for my pool, but the floating IP-Adresses weren't created.

  pool:
    type: OS::Neutron::Pool
    properties:
      protocol: HTTP
      monitors: [{get_resource: monitor}]
      subnet_id: {get_param: subnet}
      lb_method: ROUND_ROBIN
      vip:
        protocol_port: 80
  lb:
    type: OS::Neutron::LoadBalancer
    properties:
      protocol_port: 80
      pool_id: {get_resource: pool}

  lb_floating:
    type: OS::Neutron::FloatingIP
    properties:
      floating_network_id: {get_param: public}
      port_id: {get_attr: [pool, vip, port_id]}

public = the ID of my external Network 10.0.x.x and the subnet = the Subnet ID of my internal Network 196.0.x.x

All my instances were created in the internal Network, but nothing has a external IP.

Do I have to create an extra port-resource for the pool?


2) The time it takes to create or delete an instance takes exact 10 minutes.

   Policy:
     type: OS::Heat::ScalingPolicy
     properties:
       adjustment_type: change_in_capacity
       auto_scaling_group_id: {get_resource: myServer_Group}
       cooldown: 30
       scaling_adjustment: 1

   Alarm:
     type: OS::Ceilometer::Alarm
     properties:
       meter_name: cpu_util
       statistic: avg
       period: 30
       evaluation_periods: 1
      threshold: 50
    alarm_actions:
     - {get_attr: [Policy, alarm_url]}
    comparison_operator: gt

So I set the Policy Cooldown to 30seconds and the period of the alarm also to 30seconds. I keep my Instance at 90% CPU so that the alarm should trigger within the first (or second) Period. Why does it stil take 10 minutes to trigger?


3) When a second Instance is generated the CPU% of the second one doesn't increase while the first one is still running at 90%. To get it to the limit i used

 cat /dev/urandom > /dev/null

and expected that the second one will also go up to 90% because of my loadbalancer or does it not work this way?

I hope that someone can explain me this events and thanks to everyone who help me with my Questions.

Some Loadbalancing Questions

So this morning I finished my Loadbalancing Test Template. Everything went well and the stack was created completely, but unfortunately something does quite not work as expected. Before I create an new thread for every question I have i would like to ask multiple questions here and hope to answer them.expected.

1) I added a floating IP resource for my pool, but the floating IP-Adresses weren't created.

  pool:
    type: OS::Neutron::Pool
    properties:
      protocol: HTTP
      monitors: [{get_resource: monitor}]
      subnet_id: {get_param: subnet}
      lb_method: ROUND_ROBIN
      vip:
        protocol_port: 80
  lb:
    type: OS::Neutron::LoadBalancer
    properties:
      protocol_port: 80
      pool_id: {get_resource: pool}

  lb_floating:
    type: OS::Neutron::FloatingIP
    properties:
      floating_network_id: {get_param: public}
      port_id: {get_attr: [pool, vip, port_id]}

public = the ID of my external Network 10.0.x.x and the subnet = the Subnet ID of my internal Network 196.0.x.x

All my instances were created in the internal Network, but nothing has a external IP.

Do I have to create an extra port-resource for the pool?


2) The time it takes to create or delete an instance takes exact 10 minutes.

   Policy:
     type: OS::Heat::ScalingPolicy
     properties:
       adjustment_type: change_in_capacity
       auto_scaling_group_id: {get_resource: myServer_Group}
       cooldown: 30
       scaling_adjustment: 1

   Alarm:
     type: OS::Ceilometer::Alarm
     properties:
       meter_name: cpu_util
       statistic: avg
       period: 30
       evaluation_periods: 1
      threshold: 50
    alarm_actions:
     - {get_attr: [Policy, alarm_url]}
    comparison_operator: gt

So I set the Policy Cooldown to 30seconds and the period of the alarm also to 30seconds. I keep my Instance at 90% CPU so that the alarm should trigger within the first (or second) Period. Why does it stil take 10 minutes to trigger?

I hope that someone can explain me this events and thanks to everyone who help me with my Questions.

Some Floating Loadbalancing QuestionsIP

So this morning I finished my Loadbalancing Test Template. Everything went well and the stack was created completely, but unfortunately something does quite not work as expected.

1) I added a floating IP resource for my pool, but the floating IP-Adresses weren't created.

  pool:
    type: OS::Neutron::Pool
    properties:
      protocol: HTTP
      monitors: [{get_resource: monitor}]
      subnet_id: {get_param: subnet}
      lb_method: ROUND_ROBIN
      vip:
        protocol_port: 80
  lb:
    type: OS::Neutron::LoadBalancer
    properties:
      protocol_port: 80
      pool_id: {get_resource: pool}

  lb_floating:
    type: OS::Neutron::FloatingIP
    properties:
      floating_network_id: {get_param: public}
      port_id: {get_attr: [pool, vip, port_id]}

public = the ID of my external Network 10.0.x.x and the subnet = the Subnet ID of my internal Network 196.0.x.x

All my instances were created in the internal Network, but nothing has a external IP.

Do I have to create an extra port-resource for the pool?

click to hide/show revision 8
No.8 Revision

Floating Loadbalancing IP

So this morning I finished my Loadbalancing Test Template. Everything went well and the stack was created completely, but unfortunately something does quite not work as expected.

1) I added a floating IP resource for my pool, but the floating IP-Adresses weren't created.

  pool:
    type: OS::Neutron::Pool
    properties:
      protocol: HTTP
      monitors: [{get_resource: monitor}]
      subnet_id: {get_param: subnet}
      lb_method: ROUND_ROBIN
      vip:
        protocol_port: 80
  lb:
    type: OS::Neutron::LoadBalancer
    properties:
      protocol_port: 80
      pool_id: {get_resource: pool}

  lb_floating:
    type: OS::Neutron::FloatingIP
    properties:
      floating_network_id: {get_param: public}
      port_id: {get_attr: [pool, vip, port_id]}

public = the ID of my external Network 10.0.x.x and the subnet = the Subnet ID of my internal Network 196.0.x.x

All my instances were created in the internal Network, but nothing has a external IP.

Do I have to create an extra port-resource for the pool?

Update

Output of resource-show for the floating ip address:

+------------------------+-----------------------------------------...+
| Property               | Value                                   ...|
+------------------------+-----------------------------------------...+
| description            |                                         ...|
| links                  | http://controller:8004/v1/ad948ee0c33749...|
|                        | http://controller:8004/v1/ad948ee0c33749...|
| logical_resource_id    | lb_floating                             ...|
| physical_resource_id   | a3fd80f3-ec10-48fa-9d70-1c9f72bd0dcd    ...|
| required_by            |                                         ...|
| resource_name          | lb_floating                             ...|
| resource_status        | CREATE_COMPLETE                         ...|
| resource_status_reason | state changed                           ...|
| resource_type          | OS::Neutron::FloatingIP                 ...|
+------------------------+-----------------------------------------...+

Floating Loadbalancing IP

So this morning I finished my Loadbalancing Test Template. Everything went well and the stack was created completely, but unfortunately something does quite not work as expected.

1) I added a floating IP resource for my pool, but the floating IP-Adresses weren't created.

  pool:
    type: OS::Neutron::Pool
    properties:
      protocol: HTTP
      monitors: [{get_resource: monitor}]
      subnet_id: {get_param: subnet}
      lb_method: ROUND_ROBIN
      vip:
        protocol_port: 80
  lb:
    type: OS::Neutron::LoadBalancer
    properties:
      protocol_port: 80
      pool_id: {get_resource: pool}

  lb_floating:
    type: OS::Neutron::FloatingIP
    properties:
      floating_network_id: {get_param: public}
      port_id: {get_attr: [pool, vip, port_id]}

public = the ID of my external Network 10.0.x.x and the subnet = the Subnet ID of my internal Network 196.0.x.x

All my instances were created in the internal Network, but nothing has a external IP.

Do I have to create an extra port-resource for the pool?

Update

Output of resource-show for the floating ip address:

+------------------------+-----------------------------------------...+
| Property               | Value                                   ...|
+------------------------+-----------------------------------------...+
| description            |                                         ...|
| links                  | http://controller:8004/v1/ad948ee0c33749...|
|                        | http://controller:8004/v1/ad948ee0c33749...|
| logical_resource_id    | lb_floating                             ...|
| physical_resource_id   | a3fd80f3-ec10-48fa-9d70-1c9f72bd0dcd    ...|
| required_by            |                                         ...|
| resource_name          | lb_floating                             ...|
| resource_status        | CREATE_COMPLETE                         ...|
| resource_status_reason | state changed                           ...|
| resource_type          | OS::Neutron::FloatingIP                 ...|
+------------------------+-----------------------------------------...+

Output of neutron floatingip-list

+--------------------------------------+-----------------+-------------------+-----------+
| id                                   | fixed_ip_address| floating_ip_address | port_id |
+--------------------------------------+-----------------+-------------------+-----------+
| 0f4640f6-a307-4d81-8302-d244c26812ff |              | 10.0.100.16|                     |
| 19659c84-0362-4a9c-bd22-5790257d4c82 |              | 10.0.100.21|                     |
| 26d19489-2760-42bb-adfc-d906cf6f7eb1 |              | 10.0.100.76|                     |
| 31749b21-6ce6-4f16-ae73-21382d0a5f69 |              | 10.0.100.18|                     |
| 41bb0da2-f58d-4cb2-8852-94c3d42da255 |              | 10.0.100.20|                     |
| 7c802527-7d26-42bd-ad65-b62a83934876 |              | 10.0.100.77|                     |
| a3fd80f3-ec10-48fa-9d70-1c9f72bd0dcd | 192.168.1.85 | 10.0.100.89| 1d287d0c-3e7a-4afa- |
|                                      |              |            | b58a-e80fd61118ed   |
| ac101ef7-447f-4db2-bfd4-23e428dd6b01 |              | 10.0.100.14|                     |
| aed67890-321f-4dab-a31b-1517363c4b20 |              | 10.0.100.22|                     |
| be562ec7-6a60-4a80-8ee5-93fa3efbba48 |              | 10.0.100.19|                     |
| c2754b98-3781-4d88-a504-d841cb212efb |              | 10.0.100.15|                     |
| d6c6a48f-3040-48a7-8bfc-56b2721b6efd |              | 10.0.100.17|                     |
| f040c26e-91b9-451c-97e7-07f8818deba8 |              | 10.0.100.12|                     |
| fd3b847e-76f0-4a8a-bbe0-287d70e3c4fb |              | 10.0.100.13|                     |
+--------------------------------------+--------------+------------+---------------------+