You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "btzq (via GitHub)" <gi...@apache.org> on 2024/05/29 14:24:55 UTC

[I] Autoscale Load Balancing Rule looses VMs during a node failure. [cloudstack]

btzq opened a new issue, #9145:
URL: https://github.com/apache/cloudstack/issues/9145

   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   Autoscaling, Load Balancer
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main branch.
   -->
   
   ~~~
   4.19.0
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
   -->
   
   
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   We have a few Autoscale Rules running in production. For simplicity, lets say we have 1 Autoscale Rule, with 4 VMs currently under the Rule. 
   
   2 of the VMs are located in a server that has experienced a node failure.
   
   During the node failure, the VMs are restarted in a new node.  The 2 VMs started up again in the new server. When you go to the Autoscale Load Balancing Rule, you will notice that these 2 VMs are not under the Autoscale Rule anymore. They are now orphans. 
   
   But, the autoscale rule will still state it has a total of 4 scaled up VMs
   
   In summary, 
   - Total No. Of VMs resulting from Autoscale : 4 VMs
   - No. of VMs under LB Rule: 2 VMs
   - No. Of VMs as Orphans : 2VMs
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   - Create Autoscale Rule with Multiple VMs
   - Live Migrate VMs to another host
   - Force Power Off the Host to simulate node failure
   - Wait for VMs to restart in new Node
   - Go to Autoscale Load Balancer, and display the list of VMs under the load balancing rule
   - If cannot replicate the issue, retry it again until it happens. It may be intermittent.
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   A logic should be implemented to:
   - Scale up the VMs when it has detected the node is down (to fufill the scale up requirement)
   - Do not restart the VMs from the host failure to prevent confusion.
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   VMs are missing from the load balancing rule
   ~~~
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Autoscale Load Balancing Rule looses VMs during a node failure. [cloudstack]

Posted by "harikrishna-patnala (via GitHub)" <gi...@apache.org>.
harikrishna-patnala commented on issue #9145:
URL: https://github.com/apache/cloudstack/issues/9145#issuecomment-3490620220

   > I had some research on source code for this issue it looks like the issue happens during scaling down:
   > 
   >     * the VM has been removed from LB
   > 
   >     * the VM has been removed autoscale VM group
   > 
   >     * but VM is not destroyed/expunged the vm due to some reasons (host reboot, agent is disconnected,etc ?)
   > 
   > 
   > [@btzq](https://github.com/btzq) can you share more info
   > 
   >     * the value of global setting `vm.destroy.forcestop`
   > 
   >     * the ha flag of VMs
   
   @btzq can you please share these details.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Autoscale Load Balancing Rule looses VMs during a node failure. [cloudstack]

Posted by "btzq (via GitHub)" <gi...@apache.org>.
btzq commented on issue #9145:
URL: https://github.com/apache/cloudstack/issues/9145#issuecomment-2618598892

   @vishesh92 , we actually encountered a legitimate node failure. Something to do with CPU caused OS To crash and restart due to incompatibility or bug with that HPE ILO Firmware version. So it wasnt exactly a power off, more like entire system crashed and rebooted on its own. 
   
   We we'rent doing any live migrations during that time. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Autoscale Load Balancing Rule looses VMs during a node failure. [cloudstack]

Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #9145:
URL: https://github.com/apache/cloudstack/issues/9145#issuecomment-2701515583

   @btzq is this issue still actual?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Autoscale Load Balancing Rule looses VMs during a node failure. [cloudstack]

Posted by "sureshanaparti (via GitHub)" <gi...@apache.org>.
sureshanaparti commented on issue #9145:
URL: https://github.com/apache/cloudstack/issues/9145#issuecomment-3758389602

   @btzq I tried with the steps mentioned, but couldn't reproduce the issue. I think, in your case, instances were listed successfully through _listVirtualMachines_ (with _autoscalevmgroupid_ parameterr) call but not listed with  _listLoadBalancerRuleInstances_ (with _id_ parameter) call. The earlier call picks the instances from autoscale_vmgroup_vm_map table, later one from load_balancer_vm_map table. During the VM HA to another node, I noticed the instance record is not removed from the _load_balancer_vm_map_ table. In case you reproduce the issue, Can you share the logs and confirm the records in the autoscale_vmgroup_vm_map  and load_balancer_vm_map  tables for the autoscale group and load balancer rules. Thanks.
   
   For now, I've improved some of the related code here: https://github.com/apache/cloudstack/pull/12446


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Autoscale Load Balancing Rule looses VMs during a node failure. [cloudstack]

Posted by "btzq (via GitHub)" <gi...@apache.org>.
btzq commented on issue #9145:
URL: https://github.com/apache/cloudstack/issues/9145#issuecomment-3490912474

   Hi @harikrishna-patnala , 
   
   The Global Settings of 'vm.destroy.forcestop' = disabled. 
   
   For the HA Flag of VMs, do you mean 'Offer HA' in the Compute Offering of the VMs? If so, all of our compute offerings are 'true' for that.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Autoscale Load Balancing Rule looses VMs during a node failure. [cloudstack]

Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #9145:
URL: https://github.com/apache/cloudstack/issues/9145#issuecomment-3370566249

   I had some research on source code for this issue
   it looks like the issue happens during scaling down: 
   - the VM has been removed from LB
   - the VM has been removed autoscale VM group
   - but VM is not destroyed/expunged the vm due to some reasons (host reboot, agent is disconnected,etc ?)
   
   @btzq can you share more info
   - the value of global setting `vm.destroy.forcestop`
   - the ha flag of VMs


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Autoscale Load Balancing Rule looses VMs during a node failure. [cloudstack]

Posted by "btzq (via GitHub)" <gi...@apache.org>.
btzq commented on issue #9145:
URL: https://github.com/apache/cloudstack/issues/9145#issuecomment-2702587858

   Yes @DaanHoogland , its still an issue. 
   
   As per my previous comment, we experienced this issue in 4.19.1.1
   
   And the screen recording was sent to Pearl via ShapeBlue helpdesk, and she sent it to Vishesh. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Autoscale Load Balancing Rule looses VMs during a node failure. [cloudstack]

Posted by "vishesh92 (via GitHub)" <gi...@apache.org>.
vishesh92 commented on issue #9145:
URL: https://github.com/apache/cloudstack/issues/9145#issuecomment-2606413893

   @btzq I am not able to reproduce the issue. Are you powering off the host during the live migration?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Autoscale Load Balancing Rule looses VMs during a node failure. [cloudstack]

Posted by "btzq (via GitHub)" <gi...@apache.org>.
btzq commented on issue #9145:
URL: https://github.com/apache/cloudstack/issues/9145#issuecomment-2650872739

   Hi @vishesh92 , 
   
   We experienced and outage with where the hypervisor host was alive, but the CS Agent was not able to talk to CS MGMT during heartbeat checks. As a result, VMs were live migrated out or restarted in another host. 
   
   It caused alot of issues with our VR, where we had to recreate it. 
   
   But we managed to re-encounter this issue which i reported in the ticket. 
   
   Some observations made:
   - Ping VMs Directly via Private IP -> Works Fine
   - Hit LB to reach VMs -> Cant Reach
   - Recreate VMs by using rolling upgrade method -> Doesnt add VMs to the LB
   - Disable ASG, Destory all VMs, Create VMs from scratch -> VMs created are added back to the LB
   
   I have a video recording but its got some sensitive customer info. So i will send it to Shapeblue directly. 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Autoscale Load Balancing Rule looses VMs during a node failure. [cloudstack]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #9145:
URL: https://github.com/apache/cloudstack/issues/9145#issuecomment-5577805108

   This issue is stale because it has been open for 120 days with no activity. It may be removed by administrators of this project at any time. Remove the stale label or comment to request for removal of it to prevent this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org