[
https://issues.apache.org/jira/browse/CLOUDSTACK-9462?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15878166#comment-15878166
]
ASF GitHub Bot commented on CLOUDSTACK-9462:
--------------------------------------------
Github user rhtyd commented on the issue:
https://github.com/apache/cloudstack/pull/1950
Install log on Ubuntu 16.10:
root@antrix:/# apt-get install cloudstack-management -V
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
cloudstack-management (4.10.0.0-SNAPSHOT)
0 upgraded, 1 newly installed, 0 to remove and 36 not upgraded.
Need to get 0 B/345 MB of archives.
After this operation, 377 MB of additional disk space will be used.
Selecting previously unselected package cloudstack-management.
(Reading database ... 311454 files and directories currently installed.)
Preparing to unpack .../cloudstack-management_4.10.0.0-SNAPSHOT_all.deb ...
Unpacking cloudstack-management (4.10.0.0-SNAPSHOT) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up cloudstack-management (4.10.0.0-SNAPSHOT) ...
usermod: no changes
Created symlink
/etc/systemd/system/multi-user.target.wants/cloudstack-management.service →
/lib/systemd/system/cloudstack-management.service.
Processing triggers for systemd (231-9ubuntu2) ...
Processing triggers for ureadahead (0.100.0-19) ...
Db setup:
root@antrix:/# cloudstack-setup-databases cloud:cloud --deploy-as=root:
Mysql user name:cloud
[ OK ]
Mysql user password:******
[ OK ]
Mysql server ip:localhost
[ OK ]
Mysql server port:3306
[ OK ]
Mysql root user name:root
[ OK ]
Mysql root user password:******
[ OK ]
Checking Cloud database files ...
[ OK ]
Checking local machine hostname ...
[ OK ]
Checking SELinux setup ...
[ OK ]
Detected local IP address as 127.0.1.1, will use as cluster management
server node IP[ OK ]
Preparing /etc/cloudstack/management/db.properties
[ OK ]
Applying /usr/share/cloudstack-management/setup/create-database.sql [ OK ]
Applying /usr/share/cloudstack-management/setup/create-schema.sql
[ OK ]
Applying /usr/share/cloudstack-management/setup/create-database-premium.sql
[ OK ]
Applying /usr/share/cloudstack-management/setup/create-schema-premium.sql
[ OK ]
Applying /usr/share/cloudstack-management/setup/server-setup.sql
[ OK ]
Applying /usr/share/cloudstack-management/setup/templates.sql
[ OK ]
Processing encryption ...
[ OK ]
Finalizing setup ...
[ OK ]
CloudStack has successfully initialized database, you can check your
database configuration in /etc/cloudstack/management/db.properties
Setup mgmt server:
cloudstack-setup-management --tomcat7
Starting to configure CloudStack Management Server:
Configure Firewall ... [OK]
Configure CloudStack Management Server ...[Failed]
Failed to configure CloudStack Management Server, please see the
/var/log/cloudstack/management/setupManagement.log for detail
Try to restore your system:
Restore Firewall ... [OK]
Restore CloudStack Management Server ...[OK]
To fix this, I updated the JAVA_HOME in /etc/default/cloudstack-management
After this mgmt server successfully started:
root@antrix:/etc/cloudstack/management# cloudstack-setup-management
--tomcat7
Starting to configure CloudStack Management Server:
Configure Firewall ... [OK]
Configure CloudStack Management Server ...[OK]
CloudStack Management Server setup is Done!
LGTM.
We might want to add in the install docs after the default JAVA_HOME.
Alternatively, we can set the default for the
/etc/default/cloudstack-management to:
JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64" @ustcweizhou ?
> Systemd packaging for Ubuntu 16.04
> ----------------------------------
>
> Key: CLOUDSTACK-9462
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9462
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Reporter: Rohit Yadav
> Assignee: Rohit Yadav
> Fix For: 4.10.0.0, 4.9.1.0
>
>
> Support for building deb packages that will work on Ubuntu 16.04
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)