[
https://issues.apache.org/jira/browse/CLOUDSTACK-1694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13613128#comment-13613128
]
Sangeetha Hariharan edited comment on CLOUDSTACK-1694 at 3/25/13 9:18 PM:
--------------------------------------------------------------------------
Tested upgrade from 4.0 to the latest build from 4.1 build (Commit
ba410630546266508b3cf4c1da9751a3f44503b4) :
1. Install and configure 4.0 setup
2. Create 4.1 repo and update the packages to 4.1
3. Tried to start Management server.
Management server fails to start.
All the issues that Sailaja has reported still reproduces with the latest 4.1
build.
To proceed further , I had to do the following steps manually:
Issue1 : Failed to start management server as there is no tomcat6.conf file
Resolved: Created a copy of tomcat6-nonssl.conf to tomcat6.conf
Issue2 : Failed to start MS as there is no server.xml
Resolved: Created a copy of server-nonssl.xml to server.xml
Issue3: Failed to start MS as connection to DB failed.
Resolved this issue by copying the original db.properties (which used to be in
/etc/cloud/management/db.properties .It is removed as part of upgrade) to
/etc/cloudstack/management/db.properties.
After this we see the management server starts.
But we see the version in DB is still at 4.0.
Also we are able to log in to the management server as admin user but we are
not presented with the dashboard view and user is presented with the following
error message - "The given command does not exist or it is not available for
user"
apilog.log:
2013-03-25 13:40:13,470 INFO [cloud.api.ApiServer] (catalina-exec-19:null)
(userId=2 accountId=2 sessionId=477A36D68C43BF607B120C101BAC9394) 10.216.132.72
-- POST command=login domain=/
2013-03-25 13:40:13,530 INFO [cloud.api.ApiServer] (catalina-exec-18:null)
10.216.132.72 -- GET
command=listCapabilities&response=json&sessionkey=j1yRhgpqVLP55aACJc1tnMvsgoo%3D&_=1364244047351
432 The given command does not exist or it is not available for user
2013-03-25 13:40:13,552 INFO [cloud.api.ApiServer] (catalina-exec-5:null)
10.216.132.72 -- GET
command=listSwifts&response=json&sessionkey=j1yRhgpqVLP55aACJc1tnMvsgoo%3D&_=1364244047413
432 The given command does not exist or it is not available for user
mysql> select * from version;
+----+----------------------+---------------------+----------+
| id | version | updated | step |
+----+----------------------+---------------------+----------+
| 1 | 4.0.0.20130314045651 | 2013-03-25 10:54:37 | Complete |
+----+----------------------+---------------------+----------+
1 row in set (0.00 sec)
>From management server , we see upgrade scripts being executed , but there is
>a rollback that happens during the upgrade process that indicates a failure in
>upgrade procedure. No sql exceptions seen during the upgrade steps.
2013-03-25 13:26:03,427 DEBUG [utils.db.ScriptRunner] (Timer-1:null) -- Schema
upgrade from 4.0.0 to 4.1.0;
2013-03-25 13:26:03,427 DEBUG [utils.db.ScriptRunner] (Timer-1:null) --;
2013-03-25 13:26:03,427 DEBUG [utils.db.ScriptRunner] (Timer-1:null) use cloud
2013-03-25 13:26:03,429 DEBUG [utils.db.ScriptRunner] (Timer-1:null) SET
foreign_key_checks = 0
2013-03-25 13:26:03,430 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_template add size bigint unsigned
2013-03-25 13:26:03,602 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_template add state varchar(255)
2013-03-25 13:26:03,638 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_template add update_count bigint unsigned
2013-03-25 13:26:03,659 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_template add updated datetime
2013-03-25 13:26:03,673 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table storage_pool add storage_provider_id bigint unsigned
2013-03-25 13:26:03,728 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table storage_pool add scope varchar(255)
2013-03-25 13:26:03,755 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table storage_pool modify id bigint unsigned AUTO_INCREMENT UNIQUE NOT NULL
2013-03-25 13:26:03,766 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table template_spool_ref add state varchar(255)
2013-03-25 13:26:03,778 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table template_spool_ref add update_count bigint unsigned
2013-03-25 13:26:03,788 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table volumes add disk_type varchar(255)
2013-03-25 13:26:03,824 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table volumes drop foreign key `fk_volumes__account_id`
2013-03-25 13:26:03,858 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_instance add column disk_offering_id bigint unsigned
2013-03-25 13:26:03,920 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_instance add column cpu int(10) unsigned
2013-03-25 13:26:03,942 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_instance add column ram bigint unsigned
2013-03-25 13:26:03,955 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_instance add column owner varchar(255)
2013-03-25 13:26:03,968 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_instance add column speed int(10) unsigned
2013-03-25 13:26:03,980 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_instance add column host_name varchar(255)
2013-03-25 13:26:03,997 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_instance add column display_name varchar(255)
2013-03-25 13:26:04,031 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_instance add column `desired_state` varchar(32) NULL
2013-03-25 13:26:04,047 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table data_center add column owner varchar(255)
2013-03-25 13:26:04,424 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table data_center add column created datetime COMMENT 'date created'
2013-03-25 13:26:04,438 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table data_center add column lastUpdated datetime COMMENT 'last updated'
2013-03-25 13:26:04,448 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table data_center add column engine_state varchar(32) NOT NULL DEFAULT
'Disabled' CO
MMENT 'the engine state of the zone'
2013-03-25 13:26:04,459 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table host_pod_ref add column owner varchar(255)
2013-03-25 13:26:04,526 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table host_pod_ref add column created datetime COMMENT 'date created'
2013-03-25 13:26:04,536 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table host_pod_ref add column lastUpdated datetime COMMENT 'last updated'
2013-03-25 13:26:04,548 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table host_pod_ref add column engine_state varchar(32) NOT NULL DEFAULT
'Disabled' C
OMMENT 'the engine state of the zone'
2013-03-25 13:26:04,562 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table host add column owner varchar(255)
2013-03-25 13:26:04,587 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table host add column lastUpdated datetime COMMENT 'last updated'
2013-03-25 13:26:04,600 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table host add column engine_state varchar(32) NOT NULL DEFAULT 'Disabled'
COMMENT '
the engine state of the zone'
2013-03-25 13:26:04,612 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table cluster add column owner varchar(255)
2013-03-25 13:26:04,665 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table cluster add column created datetime COMMENT 'date created'
2013-03-25 13:26:04,676 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table cluster add column lastUpdated datetime COMMENT 'last updated'
2013-03-25 13:26:04,688 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table cluster add column engine_state varchar(32) NOT NULL DEFAULT 'Disabled'
COMMEN
T 'the engine state of the zone'
2013-03-25 13:26:04,701 DEBUG [utils.db.ScriptRunner] (Timer-1:null) CREATE
TABLE `cloud`.`vm_compute_tags` ( `id` bigint unsigned NOT NULL
AUTO_INCREMENT CO
MMENT 'id', `vm_id` bigint unsigned NOT NULL COMMENT 'vm id', `compute_tag`
varchar(255) NOT NULL COMMENT 'name of tag', PRIMARY KEY(`id`) ) ENGINE=InnoD
B DEFAULT CHARSET=utf8
2013-03-25 13:26:04,715 DEBUG [utils.db.ScriptRunner] (Timer-1:null) CREATE
TABLE `cloud`.`vm_root_disk_tags` ( `id` bigint unsigned NOT NULL
AUTO_INCREMENT
COMMENT 'id', `vm_id` bigint unsigned NOT NULL COMMENT 'vm id',
`root_disk_tag` varchar(255) NOT NULL COMMENT 'name of tag', PRIMARY
KEY(`id`) ) ENGINE=I
nnoDB DEFAULT CHARSET=utf8
2013-03-25 13:26:04,719 DEBUG [utils.db.ScriptRunner] (Timer-1:null) CREATE
TABLE `cloud`.`vm_network_map` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT
COM
MENT 'id', `vm_id` bigint unsigned NOT NULL COMMENT 'vm id', `network_id`
bigint unsigned NOT NULL COMMENT 'network id', PRIMARY KEY(`id`) )
ENGINE=InnoD
B DEFAULT CHARSET=utf8
................
................
2013-03-25 13:26:06,022 DEBUG [utils.db.ScriptRunner] (Timer-1:null) SET
foreign_key_checks = 1
2013-03-25 13:26:06,022 DEBUG [upgrade.dao.Upgrade40to41] (Timer-1:null)
Updating region table with Id: 1
2013-03-25 13:26:06,033 DEBUG [db.Transaction.Transaction] (Timer-1:null)
Rolling back the transaction: Time = 2630 Name = Upgrade; called by
-Transaction.rollback:890-Transaction.removeUpTo:833-Transaction.close:657-DatabaseUpgradeChecker.upgrade:263-DatabaseUpgradeChecker.check:358-NativeMethodAccessorImpl.invoke0:-2-NativeMethodAccessorImpl.invoke:57-DelegatingMethodAccessorImpl.invoke:43-Method.invoke:616-AopUtils.invokeJoinpointUsingReflection:319-ReflectiveMethodInvocation.invokeJoinpoint:183-ReflectiveMethodInvocation.proceed:150
2013-03-25 13:26:13,390 INFO [utils.component.ComponentContext] (main:null)
Configuring com.cloud.bridge.persist.dao.CloudStackAccountDaoImpl
2013-03-25 13:26:13,402 INFO [utils.db.GenericDaoBase] (main:null) Register
dao interface in GenericDaoBase entity-DAO map.
com.cloud.bridge.persist.dao.CloudStackAccountDao
was (Author: sangeethah):
Tested upgrade from 4.0 to the latest build from 4.1 build (Commit
ba410630546266508b3cf4c1da9751a3f44503b4) :
1. Install and configure 4.0 setup
2. Create 4.1 repo and update the packages to 4.1
3. Tried to start Management server.
Management server fails to start.
All the issues that Sailaja has reported still reproduces with the latest 4.1
build.
To proceed further , I had to do the following steps manually:
Issue1 : Failed to start management server as there is no tomcat6.conf file
Resolved: Created a copy of tomcat6-nonssl.conf to tomcat6.conf
Issue2 : Failed to start MS as there is no server.xml
Resolved: Created a copy of server-nonssl.xml to server.xml
Issue3: Failed to start MS as connection to DB failed.
Resolved this issue by copying the original db.properties (which used to be in
/etc/cloud/management/db.properties .It is removed as part of upgrade) to
/etc/cloudstack/management/db.properties.
After this we see the management server starts.
But we see the version in DB is still at 4.1.
Also we are able to log in to the management server as admin user but we are
not presented with the dashboard view and user is presented with the following
error message - "The given command does not exist or it is not available for
user"
apilog.log:
2013-03-25 13:40:13,470 INFO [cloud.api.ApiServer] (catalina-exec-19:null)
(userId=2 accountId=2 sessionId=477A36D68C43BF607B120C101BAC9394) 10.216.132.72
-- POST command=login domain=/
2013-03-25 13:40:13,530 INFO [cloud.api.ApiServer] (catalina-exec-18:null)
10.216.132.72 -- GET
command=listCapabilities&response=json&sessionkey=j1yRhgpqVLP55aACJc1tnMvsgoo%3D&_=1364244047351
432 The given command does not exist or it is not available for user
2013-03-25 13:40:13,552 INFO [cloud.api.ApiServer] (catalina-exec-5:null)
10.216.132.72 -- GET
command=listSwifts&response=json&sessionkey=j1yRhgpqVLP55aACJc1tnMvsgoo%3D&_=1364244047413
432 The given command does not exist or it is not available for user
mysql> select * from version;
+----+----------------------+---------------------+----------+
| id | version | updated | step |
+----+----------------------+---------------------+----------+
| 1 | 4.0.0.20130314045651 | 2013-03-25 10:54:37 | Complete |
+----+----------------------+---------------------+----------+
1 row in set (0.00 sec)
>From management server , we see upgrade scripts being executed , but there is
>a rollback that happens during the upgrade process that indicates a failure in
>upgrade procedure. No sql exceptions seen during the upgrade steps.
2013-03-25 13:26:03,427 DEBUG [utils.db.ScriptRunner] (Timer-1:null) -- Schema
upgrade from 4.0.0 to 4.1.0;
2013-03-25 13:26:03,427 DEBUG [utils.db.ScriptRunner] (Timer-1:null) --;
2013-03-25 13:26:03,427 DEBUG [utils.db.ScriptRunner] (Timer-1:null) use cloud
2013-03-25 13:26:03,429 DEBUG [utils.db.ScriptRunner] (Timer-1:null) SET
foreign_key_checks = 0
2013-03-25 13:26:03,430 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_template add size bigint unsigned
2013-03-25 13:26:03,602 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_template add state varchar(255)
2013-03-25 13:26:03,638 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_template add update_count bigint unsigned
2013-03-25 13:26:03,659 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_template add updated datetime
2013-03-25 13:26:03,673 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table storage_pool add storage_provider_id bigint unsigned
2013-03-25 13:26:03,728 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table storage_pool add scope varchar(255)
2013-03-25 13:26:03,755 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table storage_pool modify id bigint unsigned AUTO_INCREMENT UNIQUE NOT NULL
2013-03-25 13:26:03,766 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table template_spool_ref add state varchar(255)
2013-03-25 13:26:03,778 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table template_spool_ref add update_count bigint unsigned
2013-03-25 13:26:03,788 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table volumes add disk_type varchar(255)
2013-03-25 13:26:03,824 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table volumes drop foreign key `fk_volumes__account_id`
2013-03-25 13:26:03,858 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_instance add column disk_offering_id bigint unsigned
2013-03-25 13:26:03,920 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_instance add column cpu int(10) unsigned
2013-03-25 13:26:03,942 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_instance add column ram bigint unsigned
2013-03-25 13:26:03,955 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_instance add column owner varchar(255)
2013-03-25 13:26:03,968 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_instance add column speed int(10) unsigned
2013-03-25 13:26:03,980 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_instance add column host_name varchar(255)
2013-03-25 13:26:03,997 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_instance add column display_name varchar(255)
2013-03-25 13:26:04,031 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table vm_instance add column `desired_state` varchar(32) NULL
2013-03-25 13:26:04,047 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table data_center add column owner varchar(255)
2013-03-25 13:26:04,424 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table data_center add column created datetime COMMENT 'date created'
2013-03-25 13:26:04,438 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table data_center add column lastUpdated datetime COMMENT 'last updated'
2013-03-25 13:26:04,448 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table data_center add column engine_state varchar(32) NOT NULL DEFAULT
'Disabled' CO
MMENT 'the engine state of the zone'
2013-03-25 13:26:04,459 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table host_pod_ref add column owner varchar(255)
2013-03-25 13:26:04,526 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table host_pod_ref add column created datetime COMMENT 'date created'
2013-03-25 13:26:04,536 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table host_pod_ref add column lastUpdated datetime COMMENT 'last updated'
2013-03-25 13:26:04,548 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table host_pod_ref add column engine_state varchar(32) NOT NULL DEFAULT
'Disabled' C
OMMENT 'the engine state of the zone'
2013-03-25 13:26:04,562 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table host add column owner varchar(255)
2013-03-25 13:26:04,587 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table host add column lastUpdated datetime COMMENT 'last updated'
2013-03-25 13:26:04,600 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table host add column engine_state varchar(32) NOT NULL DEFAULT 'Disabled'
COMMENT '
the engine state of the zone'
2013-03-25 13:26:04,612 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table cluster add column owner varchar(255)
2013-03-25 13:26:04,665 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table cluster add column created datetime COMMENT 'date created'
2013-03-25 13:26:04,676 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table cluster add column lastUpdated datetime COMMENT 'last updated'
2013-03-25 13:26:04,688 DEBUG [utils.db.ScriptRunner] (Timer-1:null) alter
table cluster add column engine_state varchar(32) NOT NULL DEFAULT 'Disabled'
COMMEN
T 'the engine state of the zone'
2013-03-25 13:26:04,701 DEBUG [utils.db.ScriptRunner] (Timer-1:null) CREATE
TABLE `cloud`.`vm_compute_tags` ( `id` bigint unsigned NOT NULL
AUTO_INCREMENT CO
MMENT 'id', `vm_id` bigint unsigned NOT NULL COMMENT 'vm id', `compute_tag`
varchar(255) NOT NULL COMMENT 'name of tag', PRIMARY KEY(`id`) ) ENGINE=InnoD
B DEFAULT CHARSET=utf8
2013-03-25 13:26:04,715 DEBUG [utils.db.ScriptRunner] (Timer-1:null) CREATE
TABLE `cloud`.`vm_root_disk_tags` ( `id` bigint unsigned NOT NULL
AUTO_INCREMENT
COMMENT 'id', `vm_id` bigint unsigned NOT NULL COMMENT 'vm id',
`root_disk_tag` varchar(255) NOT NULL COMMENT 'name of tag', PRIMARY
KEY(`id`) ) ENGINE=I
nnoDB DEFAULT CHARSET=utf8
2013-03-25 13:26:04,719 DEBUG [utils.db.ScriptRunner] (Timer-1:null) CREATE
TABLE `cloud`.`vm_network_map` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT
COM
MENT 'id', `vm_id` bigint unsigned NOT NULL COMMENT 'vm id', `network_id`
bigint unsigned NOT NULL COMMENT 'network id', PRIMARY KEY(`id`) )
ENGINE=InnoD
B DEFAULT CHARSET=utf8
................
................
2013-03-25 13:26:06,022 DEBUG [utils.db.ScriptRunner] (Timer-1:null) SET
foreign_key_checks = 1
2013-03-25 13:26:06,022 DEBUG [upgrade.dao.Upgrade40to41] (Timer-1:null)
Updating region table with Id: 1
2013-03-25 13:26:06,033 DEBUG [db.Transaction.Transaction] (Timer-1:null)
Rolling back the transaction: Time = 2630 Name = Upgrade; called by
-Transaction.rollback:890-Transaction.removeUpTo:833-Transaction.close:657-DatabaseUpgradeChecker.upgrade:263-DatabaseUpgradeChecker.check:358-NativeMethodAccessorImpl.invoke0:-2-NativeMethodAccessorImpl.invoke:57-DelegatingMethodAccessorImpl.invoke:43-Method.invoke:616-AopUtils.invokeJoinpointUsingReflection:319-ReflectiveMethodInvocation.invokeJoinpoint:183-ReflectiveMethodInvocation.proceed:150
2013-03-25 13:26:13,390 INFO [utils.component.ComponentContext] (main:null)
Configuring com.cloud.bridge.persist.dao.CloudStackAccountDaoImpl
2013-03-25 13:26:13,402 INFO [utils.db.GenericDaoBase] (main:null) Register
dao interface in GenericDaoBase entity-DAO map.
com.cloud.bridge.persist.dao.CloudStackAccountDao
> Issues to start/access Management Server after upgrade from 4.0 to 4.1
> ----------------------------------------------------------------------
>
> Key: CLOUDSTACK-1694
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-1694
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Install and Setup, Management Server
> Affects Versions: 4.1.0
> Reporter: Sailaja Mada
> Assignee: Pradeep Soundararajan
> Priority: Blocker
> Fix For: 4.1.0
>
> Attachments: apilog.log, catalina.out, management-server.log
>
>
> Setup: Advanced Networking Zone with Xen 6.0.2 host
> Steps:
> 1. Install and configure 4.0 setup
> 2. Create 4.1 repo and update the packages to 4.1
> 3. Tried to start Management server
> Issue1 : Failed to start management server as there is no tomcat6.conf file
> Resolved: Created a copy of tomcat6-nonssl.conf to tomcat6.conf
> Issue2 : Failed to start MS as there is no server.xml
> Resolved: Created a copy of server-nonssl.xml to server.xml
> Issue3: Failed to start MS as connection to DB failed when DB access is set
> with password.
> Resolved: db.properties file is the newly created file and it has cloud user
> password as cloud , where as my db has password as the cloud user password.
> Tried changing it to password and ran cloudstack-setup-encryption. MS failed
> to start again. I changed it to cleartext. Then Management server started.
> Issue4 : DB version is not updated to 4.1.
> 2013-03-18 12:18:19,947 INFO [cloud.upgrade.DatabaseIntegrityChecker]
> (Timer-1:null) Performing database integrity check
> 2013-03-18 12:18:19,988 DEBUG [cloud.upgrade.DatabaseIntegrityChecker]
> (Timer-1:null) No duplicate hosts with the same local storage found in
> database
> 2013-03-18 12:18:19,995 DEBUG [upgrade.dao.VersionDaoImpl] (Timer-1:null)
> Checking to see if the database is at a version before it was the version
> table is created
> 2013-03-18 12:18:20,062 INFO [utils.component.ComponentContext]
> (Timer-1:null) Running SystemIntegrityChecker managementServerNode
> 2013-03-18 12:18:20,072 INFO [utils.component.ComponentContext]
> (Timer-1:null) Running SystemIntegrityChecker premiumDatabaseUpgradeChecker
> 2013-03-18 12:18:20,072 INFO [cloud.upgrade.DatabaseUpgradeChecker]
> (Timer-1:null) Grabbing lock to check for database upgrade.
> 2013-03-18 12:18:20,073 DEBUG [upgrade.dao.VersionDaoImpl] (Timer-1:null)
> Checking to see if the database is at a version before it was the version
> table is created
> 2013-03-18 12:18:20,081 INFO [cloud.upgrade.DatabaseUpgradeChecker]
> (Timer-1:null) DB version = 4.0.0.20130314045651 Code Version = 4.1.0-SNAPSHOT
> 2013-03-18 12:18:20,081 INFO [cloud.upgrade.DatabaseUpgradeChecker]
> (Timer-1:null) Database upgrade must be performed from 4.0.0.20130314045651
> to 4.1.0-SNAPSHOT
> 2013-03-18 12:18:20,085 DEBUG [cloud.upgrade.DatabaseUpgradeChecker]
> (Timer-1:null) Running upgrade Upgrade40to41 to upgrade from 4.0.0-4.1.0 to
> 4.1.0
> 2013-03-18 12:18:20,104 DEBUG [utils.script.Script] (Timer-1:null) Looking
> for db/schema-40to410.sql in the classpath
> 2013-03-18 12:18:20,131 DEBUG [utils.script.Script] (Timer-1:null) System
> resource: file:/usr/share/cloudstack-management/setup/db/schema-40to410.sql
> 2013-03-18 12:18:20,131 DEBUG [utils.script.Script] (Timer-1:null) Absolute
> path = /usr/share/cloudstack-management/setup/db/schema-40to410.sql
> 2013-03-18 12:18:20,157 DEBUG [utils.db.ScriptRunner] (Timer-1:null) --
> Licensed to the Apache Software Foundation (ASF) under one
> 2013-03-18 12:18:20,157 DEBUG [utils.db.ScriptRunner] (Timer-1:null) -- or
> more contributor license agreements. See the NOTICE file
> Now Packages got upgraded and Ms started . But
> Issue 5: Admin Failed to Access Management Server after upgrade from 4.0 to
> 4.1.
> 2013-03-15 14:57:40,307 INFO [cloud.api.ApiServer] (catalina-exec-2:null)
> 10.144.6.39 -- GET
> command=listCapabilities&response=json&sessionkey=iz3R6InbJpcujm59mnfAyVhxFi8%3D&_=1363339696558
> 401 unable to verify user credentials
> 2013-03-15 14:57:52,836 INFO [cloud.api.ApiServer] (catalina-exec-25:null)
> (userId=2 accountId=2 sessionId=BB2EFE205EB7BD4B18764E2A62FC92B0) 10.144.6.39
> -- POST command=login domain=/
> 2013-03-15 14:57:52,858 INFO [cloud.api.ApiServer] (catalina-exec-9:null)
> 10.144.6.39 -- GET
> command=listCapabilities&response=json&sessionkey=grCL9c4pqkBoadh5wR9UeGG0DNc%3D&_=1363339709156
> 432 The given command does not exist or it is not available for user
> 2013-03-15 14:57:52,873 INFO [cloud.api.ApiServer] (catalina-exec-15:null)
> 10.144.6.39 -- GET
> command=listSwifts&response=json&sessionkey=grCL9c4pqkBoadh5wR9UeGG0DNc%3D&_=1363339709174
> 432 The given command does not exist or it is not available for user
> 2013-03-15 14:58:02,760 INFO [cloud.api.ApiServer] (catalina-exec-5:null)
> (userId=2 accountId=2 sessionId=42D6696ACE3E2D92A83051F83EC9DEBB) 10.144.6.39
> -- POST command=login domain=/
> 2013-03-15 14:58:02,778 INFO [cloud.api.ApiServer] (catalina-exec-8:null)
> 10.144.6.39 -- GET
> command=listCapabilities&response=json&sessionkey=Kf8n0aN%2BrFAIccQmIs%2BN6HSGJKY%3D&_=1363339719078
> 432 The given command does not exist or it is not available for user
> 2013-03-15 14:58:02,803 INFO [cloud.api.ApiServer] (catalina-exec-11:null)
> 10.144.6.39 -- GET
> command=listSwifts&response=json&sessionkey=Kf8n0aN%2BrFAIccQmIs%2BN6HSGJKY%3D&_=1363339719097
> 432 The given command does not exist or it is not available for user
> 2013-03-15 14:58:35,120 INFO [cloud.api.ApiServer] (catalina-exec-14:null)
> 10.144.6.39 -- GET
> command=listCapabilities&response=json&sessionkey=Kf8n0aN%2BrFAIccQmIs%2BN6HSGJKY%3D&_=1363339751394
> 432 The given command does not exist or it is not available for user
> 2013-03-15 14:58:48,637 INFO [cloud.api.ApiServer] (catalina-exec-20:null)
> (userId=2 accountId=2 sessionId=6D393B5E8AEEA3D4DE35DAED11BEDDD6) 10.144.6.39
> -- POST command=login domain=/
> 2013-03-15 14:58:48,719 INFO [cloud.api.ApiServer] (catalina-exec-7:null)
> 10.144.6.39 -- GET
> command=listCapabilities&response=json&sessionkey=bWJUWg0w2C5bU3ts7gES43tM30w%3D&_=1363339764994
> 432 The given command does not exist or it is not available for user
> 2013-03-15 14:58:48,778 INFO [cloud.api.ApiServer] (catalina-exec-24:null)
> 10.144.6.39 -- GET
> command=listSwifts&response=json&sessionkey=bWJUWg0w2C5bU3ts7gES43tM30w%3D&_=1363339765053
> 432 The given command does not exist or it is not available for user
> Followed below steps at the management server to get the repo of 4.1 ready :
> a) yum install httpd [ Webserver]
> b) Allo 80/8250 port
> iptables -I INPUT -p tcp --dport 8250 -j ACCEPT
> iptables -I INPUT -p tcp --dport 80 -j ACCEPT
> c) yum install createrepo
> d)Download 4.1 packages and run createrepo ./ under this extracted folder
> where packages exists
> e) Copy the packages folder to /var/www/html [cp -R
> CloudStack-non-OSS-4.1-101-rhel6.3 /var/www/html/]
> f) yum update cloud-*
> It updated the packages:
> apache-cloudstack
>
> | 1.3 kB 00:00
> apache-cloudstack/primary
>
> | 3.5 kB 00:00
> apache-cloudstack
>
> 9/9
> Setting up Update Process
> Resolving Dependencies
> --> Running transaction check
> ---> Package cloud-aws-api.x86_64 0:4.0.0-0.142.el6.4.0.0 will be obsoleted
> ---> Package cloud-client.x86_64 0:4.0.0-0.142.el6.4.0.0 will be obsoleted
> ---> Package cloud-client-ui.x86_64 0:4.0.0-0.142.el6.4.0.0 will be obsoleted
> ---> Package cloud-core.x86_64 0:4.0.0-0.142.el6.4.0.0 will be obsoleted
> ---> Package cloud-deps.x86_64 0:4.0.0-0.142.el6.4.0.0 will be obsoleted
> ---> Package cloud-python.x86_64 0:4.0.0-0.142.el6.4.0.0 will be obsoleted
> ---> Package cloud-scripts.x86_64 0:4.0.0-0.142.el6.4.0.0 will be obsoleted
> ---> Package cloud-server.x86_64 0:4.0.0-0.142.el6.4.0.0 will be obsoleted
> ---> Package cloud-setup.x86_64 0:4.0.0-0.142.el6.4.0.0 will be obsoleted
> ---> Package cloud-utils.x86_64 0:4.0.0-0.142.el6.4.0.0 will be obsoleted
> ---> Package cloudstack-awsapi.x86_64 0:4.1.0-SNAPSHOT.el6 will be obsoleting
> ---> Package cloudstack-common.x86_64 0:4.1.0-SNAPSHOT.el6 will be obsoleting
> ---> Package cloudstack-management.x86_64 0:4.1.0-SNAPSHOT.el6 will be
> obsoleting
> --> Finished Dependency Resolution
> Dependencies Resolved
> =====================================================================================================================================================================================================
> Package Arch
> Version Repository
> Size
> =====================================================================================================================================================================================================
> Installing:
> cloudstack-awsapi x86_64
> 4.1.0-SNAPSHOT.el6
> apache-cloudstack 60 M
> replacing cloud-aws-api.x86_64 4.0.0-0.142.el6.4.0.0
> cloudstack-common x86_64
> 4.1.0-SNAPSHOT.el6
> apache-cloudstack 92 M
> replacing cloud-core.x86_64 4.0.0-0.142.el6.4.0.0
> replacing cloud-deps.x86_64 4.0.0-0.142.el6.4.0.0
> replacing cloud-python.x86_64 4.0.0-0.142.el6.4.0.0
> replacing cloud-scripts.x86_64 4.0.0-0.142.el6.4.0.0
> replacing cloud-setup.x86_64 4.0.0-0.142.el6.4.0.0
> replacing cloud-utils.x86_64 4.0.0-0.142.el6.4.0.0
> cloudstack-management x86_64
> 4.1.0-SNAPSHOT.el6
> apache-cloudstack 57 M
> replacing cloud-client.x86_64 4.0.0-0.142.el6.4.0.0
> replacing cloud-client-ui.x86_64 4.0.0-0.142.el6.4.0.0
> replacing cloud-server.x86_64 4.0.0-0.142.el6.4.0.0
> Transaction Summary
> =====================================================================================================================================================================================================
> Install 3 Package(s)
> Total download size: 209 M
> Is this ok [y/N]: y
> Downloading Packages:
> (1/3): cloudstack-awsapi-4.1.0-SNAPSHOT.el6.x86_64.rpm
>
> | 60 MB 00:00
> (2/3): cloudstack-common-4.1.0-SNAPSHOT.el6.x86_64.rpm
>
> | 92 MB 00:01
> (3/3): cloudstack-management-4.1.0-SNAPSHOT.el6.x86_64.rpm
>
> | 57 MB 00:02
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> Total
>
> 44 MB/s | 209 MB 00:04
> Running rpm_check_debug
> Running Transaction Test
> Transaction Test Succeeded
> Running Transaction
> Installing : cloudstack-common-4.1.0-SNAPSHOT.el6.x86_64
>
> 1/13
> Installing : cloudstack-awsapi-4.1.0-SNAPSHOT.el6.x86_64
>
> 2/13
> Installing : cloudstack-management-4.1.0-SNAPSHOT.el6.x86_64
>
> 3/13
> Please download vhd-util from
> http://download.cloud.com.s3.amazonaws.com/tools/vhd-util and put it in
> /usr/share/cloudstack-common/scripts/vm/hypervisor/xenserver/
> Erasing : cloud-client-ui-4.0.0-0.142.el6.4.0.0.x86_64
>
> 4/13
> Erasing : cloud-client-4.0.0-0.142.el6.4.0.0.x86_64
>
> 5/13
> Stopping cloud-management:[ OK ]
> warning: /etc/cloud/management/server.xml saved as
> /etc/cloud/management/server.xml.rpmsave
> warning: /etc/cloud/management/db.properties saved as
> /etc/cloud/management/db.properties.rpmsave
> Erasing : cloud-setup-4.0.0-0.142.el6.4.0.0.x86_64
>
> 6/13
> Erasing : cloud-server-4.0.0-0.142.el6.4.0.0.x86_64
>
> 7/13
> Erasing : cloud-core-4.0.0-0.142.el6.4.0.0.x86_64
>
> 8/13
> Erasing : cloud-aws-api-4.0.0-0.142.el6.4.0.0.x86_64
>
> 9/13
> Erasing : cloud-deps-4.0.0-0.142.el6.4.0.0.x86_64
>
> 10/13
> Erasing : cloud-utils-4.0.0-0.142.el6.4.0.0.x86_64
>
> 11/13
> Erasing : cloud-scripts-4.0.0-0.142.el6.4.0.0.x86_64
>
> 12/13
> Erasing : cloud-python-4.0.0-0.142.el6.4.0.0.x86_64
>
> 13/13
> Installed products updated.
> Verifying : cloudstack-common-4.1.0-SNAPSHOT.el6.x86_64
>
> 1/13
> Verifying : cloudstack-management-4.1.0-SNAPSHOT.el6.x86_64
>
> 2/13
> Verifying : cloudstack-awsapi-4.1.0-SNAPSHOT.el6.x86_64
>
> 3/13
> Verifying : cloud-aws-api-4.0.0-0.142.el6.4.0.0.x86_64
>
> 4/13
> Verifying : cloud-python-4.0.0-0.142.el6.4.0.0.x86_64
>
> 5/13
> Verifying : cloud-scripts-4.0.0-0.142.el6.4.0.0.x86_64
>
> 6/13
> Verifying : cloud-utils-4.0.0-0.142.el6.4.0.0.x86_64
>
> 7/13
> Verifying : cloud-deps-4.0.0-0.142.el6.4.0.0.x86_64
>
> 8/13
> Verifying : cloud-core-4.0.0-0.142.el6.4.0.0.x86_64
>
> 9/13
> Verifying : cloud-client-4.0.0-0.142.el6.4.0.0.x86_64
>
> 10/13
> Verifying : cloud-client-ui-4.0.0-0.142.el6.4.0.0.x86_64
>
> 11/13
> Verifying : cloud-server-4.0.0-0.142.el6.4.0.0.x86_64
>
> 12/13
> Verifying : cloud-setup-4.0.0-0.142.el6.4.0.0.x86_64
>
> 13/13
> Installed:
> cloudstack-awsapi.x86_64 0:4.1.0-SNAPSHOT.el6
> cloudstack-common.x86_64 0:4.1.0-SNAPSHOT.el6
> cloudstack-management.x86_64 0:4.1.0-SNAPSHOT.el6
> Replaced:
> cloud-aws-api.x86_64 0:4.0.0-0.142.el6.4.0.0 cloud-client.x86_64
> 0:4.0.0-0.142.el6.4.0.0 cloud-client-ui.x86_64 0:4.0.0-0.142.el6.4.0.0
> cloud-core.x86_64 0:4.0.0-0.142.el6.4.0.0
> cloud-deps.x86_64 0:4.0.0-0.142.el6.4.0.0 cloud-python.x86_64
> 0:4.0.0-0.142.el6.4.0.0 cloud-scripts.x86_64 0:4.0.0-0.142.el6.4.0.0
> cloud-server.x86_64 0:4.0.0-0.142.el6.4.0.0
> cloud-setup.x86_64 0:4.0.0-0.142.el6.4.0.0 cloud-utils.x86_64
> 0:4.0.0-0.142.el6.4.0.0
> Complete!
> ===================================================
> :
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira