Repository navigation
[4.10] CLOUDSTACK-9462: Build packages on Ubuntu 14.04/16.04 and support tomcat6/tomcat7 - #1950
ustcweizhou wants to merge 1 commit into
Conversation
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-503 |
|
@blueorangutan test ubuntu kvm-ubuntu |
|
@borisstoyanov a Trillian-Jenkins test job (ubuntu mgmt + kvm-ubuntu) has been kicked to run smoke tests |
|
@borisstoyanov can you please identify the failures against Ubuntu environment, thanks. |
|
Hi @rhtyd, Ubuntu installation of ACS fails with the dependency error we discussed last week. Don't know where is the issue since it fails on the Trillian images, but you reported you were able to install it locally on 14.04. |
|
LGTM, I'll test it manually as soon as I get some free time. |
| Package: cloudstack-management | ||
| Architecture: all | ||
| Depends: ${misc:Depends}, ${python:Depends}, openjdk-8-jre-headless | java8-runtime-headless | java8-runtime, cloudstack-common (= ${source:Version}), tomcat6 | tomcat7, sudo, jsvc, python-mysql.connector, libmysql-java, augeas-tools, mysql-client, adduser, bzip2, ipmitool, lsb-release | ||
| Recommends: init-system-helpers |
There was a problem hiding this comment.
Can we force it to a specific version, default it builds with init-system-helpers (>= 1.18~); if we can add >= 1.14 to support ubuntu 14.04?
|
Install log on Ubuntu 16.10: Db setup: Setup mgmt server: To fix this, I updated the JAVA_HOME in /etc/default/cloudstack-management root@antrix:/etc/cloudstack/management# cloudstack-setup-management --tomcat7 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 ? |
|
/cc @karuturi LGTM, manual tests confirm that mgmt server can be installed and setup on Ubuntu 16.x with systemd support. |
|
Additional notes, I still found issues with mgmt server not working afterwards likely due to permission/sudoers issue: 017-02-22 18:37:25,076 INFO [c.c.s.ConfigurationServerImpl] (localhost-startStop-1:null) (logid:) Trying to inject public and private keys into systemvm iso |
|
@wido can you comment on this PR, thanks. |
| *.jar | ||
| *.war | ||
| *.mar | ||
| *.zip |
There was a problem hiding this comment.
Why? Are we adding ZIP files to the repo?
There was a problem hiding this comment.
@wido ,yes, ./core/test/resources/vhds/test.vhd.zip for testing.
|
@ustcweizhou can you check the permissions issue I hit in my test, as share in my comment above? |
|
@rhtyd The permission issue seems to be caused by ./scripts/vm/systemvm/injectkeys.sh |
fb3d78a to
73ad282
Compare
|
updated. |
|
@blueorangutan package |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-538 |
|
LGTM. Tested manually on local Ubuntu installation. Fixed the permission issue by fixing sudoers manually and JAVA_HOME issue by fixing the variable in /etc/default/cloudstack. @blueorangutan test ubuntu kvm-centos7 |
|
@rhtyd a Trillian-Jenkins test job (ubuntu mgmt + kvm-centos7) has been kicked to run smoke tests |
| Package: cloudstack-management | ||
| Architecture: all | ||
| Depends: ${misc:Depends}, ${python:Depends}, openjdk-8-jre-headless | java8-runtime-headless | java8-runtime, cloudstack-common (= ${source:Version}), tomcat6 | tomcat7, sudo, jsvc, python-mysql.connector, libmysql-java, augeas-tools, mysql-client, adduser, bzip2, ipmitool, lsb-release | ||
| Recommends: init-system-helpers (>= 1.14) |
There was a problem hiding this comment.
@ustcweizhou can you move init-system-helpers (>= 1.14) to Depends, or remove it if it's not necessary?
There was a problem hiding this comment.
@rhtyd Sorry I just noticed your comment. I will remove all 3 lines
Recommends: init-system-helpers (>= 1.14)
I am not sure if it will cause any issue. Please test it.
73ad282 to
1a294a9
Compare
1a294a9 to
9d5aee0
Compare
|
it would be nice if this can be merged into 4.10.0.0 |
|
LGTM for me |
|
Thanks @ustcweizhou |
|
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-618 |
|
@blueorangutan test ubuntu kvm-ubuntu |
|
@rhtyd a Trillian-Jenkins test job (ubuntu mgmt + kvm-ubuntu) has been kicked to run smoke tests |
|
Failed due to |
…cat6/tomcat7
Changes
(1) add systemd support in debian/control and debian/rules for 16.04
(2) add python-setuptools in Build-Depends in debian/control
(3) seperate cloudstack-management.service and cloudstack-management.default for CentOS7 and Ubuntu 16.04
(4) add server7-ssl.xml and server7-nonssl.xml in management installation
(5) link /usr/share/cloudstack-management/lib and /usr/share/cloudstack-management/bin to correct path (tomcat6 or tomcat7)
(6) link /etc/cloudstack/management/server.xml to correct file path (server-nonssl.xml or server7-nonssl.xml)
(7) remove *.zip from .gitignore to avoid build error caused by missing /vhds/test.vhd.zip
Instruction
(1) build packages on Ubuntu 16.04: dpkg-buildpackage -uc -us
Output on Ubuntu 16.04:
-rw-r--r-- 1 root root 4090 Feb 17 10:12 cloudstack_4.10.0.0-SNAPSHOT_amd64.changes
-rw-r--r-- 1 root root 1235 Feb 17 09:53 cloudstack_4.10.0.0-SNAPSHOT.dsc
-rw-r--r-- 1 root root 8018248 Feb 17 09:53 cloudstack_4.10.0.0-SNAPSHOT.tar.xz
-rw-r--r-- 1 root root 91868746 Feb 17 10:11 cloudstack-agent_4.10.0.0-SNAPSHOT_all.deb
-rw-r--r-- 1 root root 52882 Feb 17 10:12 cloudstack-cli_4.10.0.0-SNAPSHOT_all.deb
-rw-r--r-- 1 root root 98556216 Feb 17 10:08 cloudstack-common_4.10.0.0-SNAPSHOT_all.deb
-rw-r--r-- 1 root root 52864 Feb 17 10:12 cloudstack-docs_4.10.0.0-SNAPSHOT_all.deb
-rw-r--r-- 1 root root 585434 Feb 17 10:12 cloudstack-integration-tests_4.10.0.0-SNAPSHOT_all.deb
-rw-r--r-- 1 root root 323459934 Feb 17 10:10 cloudstack-management_4.10.0.0-SNAPSHOT_all.deb
-rw-r--r-- 1 root root 442656 Feb 17 10:12 cloudstack-marvin_4.10.0.0-SNAPSHOT_all.deb
-rw-r--r-- 1 root root 87037576 Feb 17 10:12 cloudstack-usage_4.10.0.0-SNAPSHOT_all.deb
(2) setup tomcat6/tomcat7 on management server:
tomcat6: cloudstack-setup-management --tomcat6
tomcat7: cloudstack-setup-management --tomcat7
Already tested on Ubuntu 16.04, upgraded from 4.7.1 to 4.10.0-SNAPSHOT
9d5aee0 to
0597b94
Compare
|
@ustcweizhou can you apply this change: diff --git a/debian/control b/debian/control Package: cloudstack-management |
|
@ustcweizhou I've fixed and ported the patch for 4.9 here: #2033 |
[master/4.10+] CLOUDSTACK-9462: Support for Ubuntu 14.04/16.04 with tomcat6/tomcat7This extends work from @ustcweizhou from #1950 by fixing some build issues to make this work with Ubuntu 14.04 and 16.04. This closes #1950 * pr/2033: CLOUDSTACK-9462: Build packages on Ubuntu 14.04/16.04 and support tomcat6/tomcat7 Signed-off-by: Rajani Karuturi <rajani.karuturi@accelerite.com>

Changes
(1) add systemd support in debian/control and debian/rules for 16.04
(2) add python-setuptools in Build-Depends in debian/control
(3) seperate cloudstack-management.service and cloudstack-management.default for CentOS7 and Ubuntu 16.04
(4) add server7-ssl.xml and server7-nonssl.xml in management installation
(5) link /usr/share/cloudstack-management/lib and /usr/share/cloudstack-management/bin to correct path (tomcat6 or tomcat7)
(6) link /etc/cloudstack/management/server.xml to correct file path (server-nonssl.xml or server7-nonssl.xml)
(7) remove *.zip from .gitignore to avoid build error caused by missing /vhds/test.vhd.zip
Instruction
(1) build packages on Ubuntu 16.04: dpkg-buildpackage -uc -us
Output on Ubuntu 16.04:
-rw-r--r-- 1 root root 4090 Feb 17 10:12 cloudstack_4.10.0.0-SNAPSHOT_amd64.changes
-rw-r--r-- 1 root root 1235 Feb 17 09:53 cloudstack_4.10.0.0-SNAPSHOT.dsc
-rw-r--r-- 1 root root 8018248 Feb 17 09:53 cloudstack_4.10.0.0-SNAPSHOT.tar.xz
-rw-r--r-- 1 root root 91868746 Feb 17 10:11 cloudstack-agent_4.10.0.0-SNAPSHOT_all.deb
-rw-r--r-- 1 root root 52882 Feb 17 10:12 cloudstack-cli_4.10.0.0-SNAPSHOT_all.deb
-rw-r--r-- 1 root root 98556216 Feb 17 10:08 cloudstack-common_4.10.0.0-SNAPSHOT_all.deb
-rw-r--r-- 1 root root 52864 Feb 17 10:12 cloudstack-docs_4.10.0.0-SNAPSHOT_all.deb
-rw-r--r-- 1 root root 585434 Feb 17 10:12 cloudstack-integration-tests_4.10.0.0-SNAPSHOT_all.deb
-rw-r--r-- 1 root root 323459934 Feb 17 10:10 cloudstack-management_4.10.0.0-SNAPSHOT_all.deb
-rw-r--r-- 1 root root 442656 Feb 17 10:12 cloudstack-marvin_4.10.0.0-SNAPSHOT_all.deb
-rw-r--r-- 1 root root 87037576 Feb 17 10:12 cloudstack-usage_4.10.0.0-SNAPSHOT_all.deb
(2) setup tomcat6/tomcat7 on management server:
tomcat6: cloudstack-setup-management --tomcat6
tomcat7: cloudstack-setup-management --tomcat7
Already tested on Ubuntu 16.04, upgraded from 4.7.1 to 4.10.0.0-SNAPSHOT