Repository navigation
[4.9] CLOUDSTACK-9462: Build packages on Ubuntu 12.04/16.04 and support tomcat6/tomcat7 - #1916
ustcweizhou wants to merge 1 commit into
Conversation
|
Why the ubuntu12 control file? Just to keep Ubuntu 12.04 support in there for CloudStack Management servers? Since that would mean you'd have to rename files when building DEB packages for older distributions. Why would we still care about 12.04 in newer releases? Starting at 4.10 you need Java 8 anyway. |
|
@wido We will use packaging/build_deb.sh to build packages. It will get the os version, then copy corresponding files (debian control/rules) according to os version , add os version (eg, precise/xenial) to tags . |
| if [ ! -f "/etc/cloudstack/management/server.xml" ]; then | ||
| ln -s /etc/cloudstack/management/server-nonssl.xml /etc/cloudstack/management/server.xml | ||
| fi | ||
| fi |
There was a problem hiding this comment.
Not sure if we this is the best way. Usually creating directories and moving symlinks is not the way to go in postinst files.
When cleaning packages or upgrading this might break things. Can you think of a different way?
There was a problem hiding this comment.
@wido I was thinking of other ways but could not find. Do you have any idea?
We can remove this change and ask users to execute "cloudstack-setup-management --tomcat7" after each upgrade. It seems not wise.
I have tested the upgrade from 4.7.1 to 4.9.3.0-SNAPSHOT on ubuntu 12.04 and 16.04 without any issue.
I did not test the os upgrade or tomcat upgrade.
|
|
||
| override_dh_systemd_enable: | ||
| dh_systemd_enable -pcloudstack-agent -pcloudstack-usage | ||
| dh_systemd_enable -pcloudstack-management -pcloudstack-agent -pcloudstack-usage |
There was a problem hiding this comment.
Shouldn't we somehow clean up any left behind script in /etc/init.d of the management server?
There was a problem hiding this comment.
@wido we should if we do not support ubuntu 12.04 anymore. I prefer to remove it in 4.10. I can create another PR for it. This PR is only for 4.9 branch.
fba99e5 to
ac28264
Compare
…cat6/tomcat7
Changes
(1) seperate debian/control and debian/rules for Ubuntu 12.04/16.04
(2) add python-setuptools in Build-Depends
(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 12.04/16.04: packaging/build_deb.sh
Output on Ubuntu 12.04: cloudstack-management_4.9.3.0-SNAPSHOT~precise_all.deb
Output on Ubuntu 16.04: cloudstack-management_4.9.3.0-SNAPSHOT~xenial_all.deb
(2) setup tomcat6/tomcat7 on management server: cloudstack-setup-management --tomcat7
Already tested on Ubuntu 12.04 and Ubuntu 16.04, upgraded from 4.7.1 to 4.9.3.0-SNAPSHOT
ac28264 to
af6e7f3
Compare
|
Good point to remove Ubuntu 12.04 in 4.10. I didn't notice this is for 4.9. Not really paid attention to it. I personally dislike the moving of the control file while building the deps though. Don't see another way however. |
|
@ustcweizhou can you check/fix the failures? |
|
@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-463 |
|
@blueorangutan package |
|
@borisstoyanov a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-480 |
|
@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 check Trillian failures? |
|
@rhtyd then I will close this PR, and create another PR for 4.10/master. |
|
@rhtyd I remember Trillian having some issues when using ubuntu images, but cannot find the build failure. |
|
@borisstoyanov a Trillian-Jenkins test job (ubuntu mgmt + kvm-ubuntu) has been kicked to run smoke tests |
|
@ustcweizhou I think it would be good to add support for 16.04/systemd to run mgmt server. But Given 12.04 will EOL in next 2.5 months, let's have support for 16.04 in 4.9 as well, drop support for 4.9. |
|
@rhtyd As 4.9 is LTS version, it seems not good to drop ubuntu 12.04 support in next minor release (4.9.3 ?), some customers may still use ubuntu 12.04 as management server. I will aim to add this support from 4.10. |
|
@ustcweizhou makes sense, in that case please close this PR and open a new PR for 4.10/master that adds support for cloudstack mgmt server on ubuntu 16.04, dropping support for 12.04 etc. |
|
@ustcweizhou @rhtyd Seems good to me. Let's drop 12.04 support in 4.10 Java 8 anyway which is not supported on 12.04, so we will need to drop it. If we just can get rid of 14.04 then I'm very happy (joke). Everything systemd 👍 |
|
we got this failure when installing cloudstack-management installing on 14.04 |
|
@borisstoyanov It is weird I did not specify the minimal version of init-system-helpers in debian/control. Did you build the packages on ubuntu 16.04 and install it on ubuntu 14.04 ? by the way, could you tell me what command you use to build the packages ? dpkg-buildpackage or packaging/build-deb.sh ? |
|
Thanks @ustcweizhou, |
|
close this as new PR for apache/4.10 : #1950 |
Changes
(1) seperate debian/control and debian/rules for Ubuntu 12.04/16.04
(2) add python-setuptools in Build-Depends
(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 12.04/16.04: packaging/build_deb.sh
Output on Ubuntu 12.04: cloudstack-management_4.9.3.0-SNAPSHOT
precise_all.debxenial_all.debOutput on Ubuntu 16.04: cloudstack-management_4.9.3.0-SNAPSHOT
(2) setup tomcat6/tomcat7 on management server: cloudstack-setup-management --tomcat7
Already tested on Ubuntu 12.04 and Ubuntu 16.04, upgraded from 4.7.1 to 4.9.3.0-SNAPSHOT