You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by "Noelantogerorge (via GitHub)" <gi...@apache.org> on 2023/06/15 12:27:31 UTC
[GitHub] [cloudstack] Noelantogerorge opened a new issue, #7635: VM instance that is not getting powered off when trigger from VM
Noelantogerorge opened a new issue, #7635:
URL: https://github.com/apache/cloudstack/issues/7635
<!--
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.
-->
UI
~~~
##### CLOUDSTACK VERSION
<!--
New line separated list of affected versions, commit ID for issues on main branch.
-->
4.18.0.0
~~~
##### CONFIGURATION
<!--
Information about the configuration if relevant, e.g. basic network, advanced networking, etc. N/A otherwise
-->
Advance networking
##### OS / ENVIRONMENT
<!--
Information about the environment if relevant, N/A otherwise
-->
All on Ubuntu 22.04
##### SUMMARY
<!-- Explain the problem/feature briefly -->
If we triger a shutdown from VM instace it get shutdown and when checking console of that VM it is not connecting. But I can see my VM instance on cloudstack is still running. If I go for a stop instance option in cloudstack then it will show stopped status.
Is it a issue that has to fix or some thing I have to configure on my VM to change this behaviour
##### 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.
-->
Just bring up a VM on cloustack and login to VM using console. Trigger a power off and wait for a while so that your console get disconnected. Once it is disconnected check the status of that VM in instance
##### EXPECTED RESULTS
<!-- What did you expect to happen when running the steps above? -->
Status should become stopped
##### ACTUAL RESULTS
<!-- What actually happened? -->
<!-- Paste verbatim command output between quotes below -->
It is still showing Running status
--
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
[GitHub] [cloudstack] soreana commented on issue #7635: VM status is not getting changed when shutdown is triggered from VM
Posted by "soreana (via GitHub)" <gi...@apache.org>.
soreana commented on issue #7635:
URL: https://github.com/apache/cloudstack/issues/7635#issuecomment-1594369203
> @soreana Yes, HA is true from my offerings
In that case when a VM turns off, CloudStack will start it after `kvm.ha.recover.wait.period` passed. Its default value is 10 minutes. So if something goes wrong for your VM and it turned off, CloudStack will start it after the 10 minutes. Can you please follow these steps and see if it fixes your issue?
1. Create a new service offering (make sure that the `Offering HA` is turned off).
2. Make sure that the `force.ha` global setting is set to `false`.
3. Restart management server if necessary.
4. Turn off the VM and switch its service offering.
5. Shutdown the vm from inside.
6. Check if CloudStack start it again.
--
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] VM status is not getting changed when shutdown is triggered from VM [cloudstack]
Posted by "WowYouCanReallyDance (via GitHub)" <gi...@apache.org>.
WowYouCanReallyDance commented on issue #7635:
URL: https://github.com/apache/cloudstack/issues/7635#issuecomment-1782910665
crying…… no one help me
--
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
[GitHub] [cloudstack] Noelantogerorge commented on issue #7635: VM status is not getting changed when shutdown is triggered from VM
Posted by "Noelantogerorge (via GitHub)" <gi...@apache.org>.
Noelantogerorge commented on issue #7635:
URL: https://github.com/apache/cloudstack/issues/7635#issuecomment-1600072260
@weizhouapache @soreana Thanks for the support.. I was had enabled ha in my offerings so cloudstack is trying to bring the VM up when I triggered a shutdown inside the VM So status is still in running in UI. As per @soreana comment I tried to changing the offering without HA and tried then cloudstack UI change the status to stopped.
Got clear understanding with @weizhouapache comment.
Thank you for the support....
--
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
[GitHub] [cloudstack] weizhouapache commented on issue #7635: VM status is not getting changed when shutdown is triggered from VM
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #7635:
URL: https://github.com/apache/cloudstack/issues/7635#issuecomment-1598564824
@Noelantogerorge
can you test again and wait for a bit longer time for VM state to be updated ?
--
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
[GitHub] [cloudstack] Noelantogerorge commented on issue #7635: VM status is not getting changed when shutdown is triggered from VM
Posted by "Noelantogerorge (via GitHub)" <gi...@apache.org>.
Noelantogerorge commented on issue #7635:
URL: https://github.com/apache/cloudstack/issues/7635#issuecomment-1594650403
@soreana
I had tested this and now VM status moved to stopped after some time of VM shutdown
Steps done
1. verified global setting Force ha (force.ha) is disable
2. created new compute offering with HA disable
3. Shutdown VM and change the compute offering to newly created one
4. started VM
5. login to console and trigged power off
6. VM powered off and console disconnected
7. checked on KVM and VM is not showing in running status
8. wait for about 5min to get stopped status on cloudstack
So HA on compute offering is nothing but if VM is stooped cloudstack will automattically bring that UP after a time period? I thought HA helps VM to move from 1 KVM to another when KVM get disconnected.
--
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
[GitHub] [cloudstack] DaanHoogland commented on issue #7635: VM status is not getting changed when shutdown is triggered from VM
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #7635:
URL: https://github.com/apache/cloudstack/issues/7635#issuecomment-1594233513
@Noelantogerorge I'll investigate how this is supposed to work on KVM (when out-of-bounds things happen te a VM) I don't know by head. In general I think a VM shouldn't be managed out of bounds.
So the scenario is:
- the VM-OS is shutdown from within the VM
- KVM marks it as stopped automatically
- nothing happens in ACS
is that correct?
--
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
[GitHub] [cloudstack] Noelantogerorge closed issue #7635: VM status is not getting changed when shutdown is triggered from VM
Posted by "Noelantogerorge (via GitHub)" <gi...@apache.org>.
Noelantogerorge closed issue #7635: VM status is not getting changed when shutdown is triggered from VM
URL: https://github.com/apache/cloudstack/issues/7635
--
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
[GitHub] [cloudstack] DaanHoogland commented on issue #7635: VM status is not getting changed when shutdown is triggered from VM
Posted by "DaanHoogland (via GitHub)" <gi...@apache.org>.
DaanHoogland commented on issue #7635:
URL: https://github.com/apache/cloudstack/issues/7635#issuecomment-1593069640
@Noelantogerorge is the status showing as stopped on the hypervisor? In normal circumstances the VM is actually still running on the hypervisor, even when the OS is stopped. Cloudstack has to deal with the information it gets from the hypervisor. I just replayed your scenario on a vmware env in 4.15 but I think this never changed. When you shut down/power down the virtual machine on the hypervisor it should show stopped in CloudStack as well, after a while.
--
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
[GitHub] [cloudstack] soreana commented on issue #7635: VM status is not getting changed when shutdown is triggered from VM
Posted by "soreana (via GitHub)" <gi...@apache.org>.
soreana commented on issue #7635:
URL: https://github.com/apache/cloudstack/issues/7635#issuecomment-1594308385
@Noelantogerorge Is the high availability turned on? You can confirm that by checking the global setting `force.ha` value and the `Offering HA` value in the system offering.
--
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
[GitHub] [cloudstack] weizhouapache commented on issue #7635: VM status is not getting changed when shutdown is triggered from VM
Posted by "weizhouapache (via GitHub)" <gi...@apache.org>.
weizhouapache commented on issue #7635:
URL: https://github.com/apache/cloudstack/issues/7635#issuecomment-1594670601
> @soreana I had tested this and now VM status moved to stopped after some time of VM shutdown Steps done
>
> 1. verified global setting Force ha (force.ha) is disable
> 2. created new compute offering with HA disable
> 3. Shutdown VM and change the compute offering to newly created one
> 4. started VM
> 5. login to console and trigged power off
> 6. VM powered off and console disconnected
> 7. checked on KVM and VM is not showing in running status
> 8. wait for about 5min to get stopped status on cloudstack
>
> So HA on compute offering is nothing but if VM is stooped cloudstack will automattically bring that UP after a time period? I thought HA helps VM to move from 1 KVM to another when KVM get disconnected.
Hi @Noelantogerorge you are right.
You may know there are two levels of HA: vm HA and Host HA.
For vm ha, if vm is stopped unexpectedly, for example shutdown inside vm, or destroyed using "virsh destroy" , after a graceful period the vm will be updated to Stopped state. If vm HA is enabled, cloudstack will bring it up.
For host ha, if host is not connected, cloudstack will determine the host status via its neighbours . Depends on the result, host will be updated to Disconnected or Down. If host is Down, cloudstack will start the vms on other hosts (if vm ha is enabled). Currently it supports only hosts with NFS storage or OOM.
--
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
[GitHub] [cloudstack] soreana commented on issue #7635: VM status is not getting changed when shutdown is triggered from VM
Posted by "soreana (via GitHub)" <gi...@apache.org>.
soreana commented on issue #7635:
URL: https://github.com/apache/cloudstack/issues/7635#issuecomment-1595339341
@Noelantogerorge
I believe that the Wei's comment answered your question. Let us know if you need any further assistance and we would be more than happy to help.
--
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
[GitHub] [cloudstack] Noelantogerorge commented on issue #7635: VM status is not getting changed when shutdown is triggered from VM
Posted by "Noelantogerorge (via GitHub)" <gi...@apache.org>.
Noelantogerorge commented on issue #7635:
URL: https://github.com/apache/cloudstack/issues/7635#issuecomment-1593118916
@DaanHoogland Thanks for the reply
I just checked my KVM host and VM is not in running status It is still showing running in cloudstack
when I futher dig on it I can see that on triggering a shutdown from VM console it is getting power off and on cloudstack status is running where as on KVM host VM is not showing in running status. After some time it automatically get started on KVM and I can get console also.
--
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
[GitHub] [cloudstack] Noelantogerorge commented on issue #7635: VM status is not getting changed when shutdown is triggered from VM
Posted by "Noelantogerorge (via GitHub)" <gi...@apache.org>.
Noelantogerorge commented on issue #7635:
URL: https://github.com/apache/cloudstack/issues/7635#issuecomment-1594353656
@soreana Yes, HA is true from my offerings
--
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] VM status is not getting changed when shutdown is triggered from VM [cloudstack]
Posted by "WowYouCanReallyDance (via GitHub)" <gi...@apache.org>.
WowYouCanReallyDance commented on issue #7635:
URL: https://github.com/apache/cloudstack/issues/7635#issuecomment-1780921911
> @Noelantogerorge I believe that the Wei's comment answered your question. Let us know if you need any further assistance and we would be more than happy to help.
Thanks first, I think the VM state should changed on the VMs list table immediately while it gets shutdown. What do you think about this? Or, there's some settings control of 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
[GitHub] [cloudstack] Noelantogerorge commented on issue #7635: VM status is not getting changed when shutdown is triggered from VM
Posted by "Noelantogerorge (via GitHub)" <gi...@apache.org>.
Noelantogerorge commented on issue #7635:
URL: https://github.com/apache/cloudstack/issues/7635#issuecomment-1593091504
@DaanHoogland Thank you for your reply
I just login to KVM host and check the status of VM it is not running
Actions Done
- log in to VM instalnce through console and trigger shutdown
- VM shutdown and console shows no fail to connect to server/token expires
- checked the status of VM on KVM and it is not running
- Checked the status on cloudstack it is still in running state
--
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
[GitHub] [cloudstack] Noelantogerorge commented on issue #7635: VM status is not getting changed when shutdown is triggered from VM
Posted by "Noelantogerorge (via GitHub)" <gi...@apache.org>.
Noelantogerorge commented on issue #7635:
URL: https://github.com/apache/cloudstack/issues/7635#issuecomment-1594277932
@DaanHoogland yes thats our scenario
--
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