Uh oh!
There was an error while loading. Please reload this page.
template: Ensuring template is cross zone if type changed to system - #4522
Conversation
Uh oh!
There was an error while loading. Please reload this page.
yadvr
commented
Dec 8, 2020
cc @ravening@weizhouapache pl review |
blueorangutan
commented
Dec 8, 2020
@rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
ravening
commented
Dec 8, 2020
@rhtyd will review this when its ready |
blueorangutan
commented
Dec 8, 2020
@ravening a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
665e951 to
c59d0c8Comparedavidjumani
commented
Dec 8, 2020
@blueorangutan package |
blueorangutan
commented
Dec 8, 2020
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Dec 8, 2020
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2468 |
davidjumani
commented
Dec 8, 2020
@blueorangutan test |
blueorangutan
commented
Dec 8, 2020
@davidjumani a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
| s_logger.info("Copying template to all zones since it will be a system template"); | ||
| List<DataCenterVO> zones = _dcDao.listEnabledZones(); | ||
| if (zones != null) { | ||
| List<Long> zoneIds = zones.stream().map(zone -> zone.getId()).collect(Collectors.toList()); |
There was a problem hiding this comment.
Should we skip the zone on which the template is already in?
There was a problem hiding this comment.
this seems to be handled by
cloudstack/server/src/main/java/com/cloud/template/TemplateManagerImpl.java
Lines 931 to 936 in c59d0c8
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
blueorangutan
commented
Dec 8, 2020
Trillian test result (tid-3321)
|
davidjumani
commented
Dec 9, 2020
Updated the PR to just add a cross zone check when trying to change a template to a System / Builtin template |
022a476 to
ab2f68cComparedavidjumani
commented
Dec 9, 2020
@blueorangutan package |
blueorangutan
commented
Dec 9, 2020
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Dec 9, 2020
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2470 |
davidjumani
commented
Dec 9, 2020
@blueorangutan test |
blueorangutan
commented
Dec 10, 2020
Trillian test result (tid-3323)
|
yadvr
commented
Dec 11, 2020
@davidjumani can you kick pkg/test again? |
davidjumani
commented
Dec 11, 2020
@blueorangutan package |
blueorangutan
commented
Dec 11, 2020
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Dec 11, 2020
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2479 |
davidjumani
commented
Dec 11, 2020
@blueorangutan test |
blueorangutan
commented
Dec 11, 2020
@davidjumani a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
blueorangutan
commented
Dec 12, 2020
Trillian test result (tid-3336)
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
yadvr
commented
Dec 14, 2020
@davidjumani can you revert the two lines I've comments on, move the conditional up if that makes sense? Let's keep the changes minimal if possible, easier to review and test. Thanks. |
ab2f68c to
bec4e0bComparedavidjumani
commented
Dec 14, 2020
@blueorangutan package |
blueorangutan
commented
Dec 14, 2020
@davidjumani a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
blueorangutan
commented
Dec 14, 2020
Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2490 |
yadvr
commented
Dec 14, 2020
@weizhouapache@DaanHoogland should we consider this for RC2, with current changes it addresses concerns from #3945 |
blueorangutan
commented
Dec 14, 2020
@rhtyd a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
weizhouapache
commented
Dec 14, 2020
@rhtyd I am ok to merge this into 4.15.0.0 |
blueorangutan
commented
Dec 15, 2020
Trillian test result (tid-3347)
|
* master: server: add conditions for custom offerings (apache#4540) vr: Ensuring dnsmasq.leases file is populated (apache#4529) template: Ensuring template is cross zone if type changed to system (apache#4522) storage: Fix hypervisor type cast to string (apache#4516) db upgrade: fix sql exception: Access denied; you need (at least one of) the SUPER privilege(s) for this operation (apache#4533) CLOUDSTACK-10423:Potential sensitive information disclosure (apache#4536) jobs: The patch remove the password from resultObject and make it be humanreadable (apache#4538) listphysicalnetworks: Honouring keyword parameter (apache#4511) Fix NPE when Volume exists on secondary store but doesn't have a download URL (apache#4530) apidoc issue (apache#4532) db: Fix description of volume.stats.interval which is in milliseconds not seconds (apache#4526) kvm: set cpu topology only if cpucore per socket is positive value (apache#4527) xenserver: check and eject patch vbd for systemvms (apache#4525) Fix warning when setup cloudstack-common (apache#4523) kvm: FIX cpucorespersocket is not working on KVM (apache#4497) change debug to warn for unknown exceptions (apache#4521) Fix failure in validating IP address in case of multiple Management Servers (apache#4507) Update log output for FirstFitPlanner (apache#4515) ui: deprecate old UI and move to legacy to be served at /client/legacy (apache#4518)
Description
This PR enhances #3945 by ensuring that all to-be System templates are cross zone
Types of changes
How Has This Been Tested?