[
https://issues.apache.org/jira/browse/CLOUDSTACK-8852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14747153#comment-14747153
]
ASF GitHub Bot commented on CLOUDSTACK-8852:
--------------------------------------------
GitHub user bvbharatk opened a pull request:
https://github.com/apache/cloudstack/pull/840
CLOUDSTACK-8852 Database shows that management server is UP when it i…
…s actually stopped from the CCP GUI
This was happening as the stop method in clusterMnanagerImpl was not
getting callled. Added shutdown hooks to all sub contexts,
this enables spring to call the stop mehtods of the beans when
management server is shutting down.
Conflicts:
framework/spring/module/src/main/java/org/apache/cloudstack/spring/module/web/CloudStackContextLoaderListener.java
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/bvbharatk/cloudstack CLOUDSTACK-8852
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cloudstack/pull/840.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #840
----
commit 17a5d29b7008971cd7de963aa5a8db9f6cd3bd65
Author: Bharat Kumar <[email protected]>
Date: 2015-04-21T11:15:12Z
CLOUDSTACK-8852 Database shows that management server is UP when it is
actually stopped from the CCP GUI
This was happening as the stop method in clusterMnanagerImpl was not
getting callled. Added shutdown hooks to all sub contexts,
this enables spring to call the stop mehtods of the beans when
management server is shutting down.
Conflicts:
framework/spring/module/src/main/java/org/apache/cloudstack/spring/module/web/CloudStackContextLoaderListener.java
----
> Cloudstack Database shows that management server is UP when it is actually
> stopped
> -----------------------------------------------------------------------------------
>
> Key: CLOUDSTACK-8852
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-8852
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Affects Versions: 4.6.0
> Reporter: Bharat Kumar
> Assignee: Bharat Kumar
> Fix For: Future
>
>
> Stopped the cloudstack-management service on the CCP host
> Checked from the DB server using the command select * from mshost and it
> shows the status is up
> mysql> select * from mshost;
> +----+-----------------+---------------+----------------------+-------+---------+---------------+--------------+---------------------+---------+-------------+
> | id | msid | runid | name | state | version | service_ip | service_port |
> last_update | removed | alert_count |
> +----+-----------------+---------------+----------------------+-------+---------+---------------+--------------+---------------------+---------+-------------+
> | 1 | 108626471636843 | 1413421031361 | management.sunil.com | Up | 4.3.0.0 |
> 10.104.12.210 | 9090 | 2014-10-16 01:14:21 | NULL | 0 |
> +----+-----------------+---------------+----------------------+-------+---------+---------------+--------------+---------------------+---------+-------------+
> 1 row in set (0.00 sec)
> Shut down the management server and in the database still it shows the
> status as ‘Up’.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)