Skip to content

Commit b205548

Browse files
committed
Merge release branch 4.18 to main
* 4.18: VR: remove apache2 config for removed VPC tiers (#7982) fix units labels (#8001)
2 parents 3c60829 + 10d7e6c commit b205548

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

engine/api/src/main/java/org/apache/cloudstack/engine/orchestration/service/VolumeOrchestrationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public interface VolumeOrchestrationService {
7979
Long.class,
8080
"storage.max.volume.size",
8181
"2000",
82-
"The maximum size for a volume (in GB).",
82+
"The maximum size for a volume (in GiB).",
8383
true);
8484

8585
VolumeInfo moveVolume(VolumeInfo volume, long destPoolDcId, Long destPoolPodId, Long destPoolClusterId, HypervisorType dataDiskHyperType)

engine/schema/src/main/resources/META-INF/db/schema-301to302.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'manag
5151
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'management-server', 'secstorage.capacity.standby', '10', 'The minimal number of command execution sessions that system is able to serve immediately(standby capacity)');
5252
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'management-server', 'secstorage.cmd.execution.time.max', '30', 'The max command execution time in minute');
5353
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'management-server', 'secstorage.session.max', '50', 'The max number of command execution sessions that a SSVM can handle');
54-
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Storage', 'DEFAULT', 'management-server', 'storage.max.volume.size', '2000', 'The maximum size for a volume (in GB).');
54+
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Storage', 'DEFAULT', 'management-server', 'storage.max.volume.size', '2000', 'The maximum size for a volume (in GiB).');
5555
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'management-server', 'task.cleanup.retry.interval', '600', 'Time (in seconds) to wait before retrying cleanup of tasks if the cleanup failed previously. 0 means to never retry.');
5656
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'management-server', 'vmware.additional.vnc.portrange.start', '50000', 'Start port number of additional VNC port range');
5757
INSERT IGNORE INTO `cloud`.`configuration` VALUES ('Advanced', 'DEFAULT', 'management-server', 'vmware.percluster.host.max', '8', 'maxmium hosts per vCenter cluster(do not let it grow over 8)');

systemvm/debian/opt/cloud/bin/cs/CsAddress.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,8 +668,12 @@ def post_config_change(self, method):
668668
logging.info("Not making dns publicly available")
669669

670670
if self.config.has_metadata():
671-
app = CsApache(self)
672-
app.setup()
671+
if method == "add":
672+
app = CsApache(self)
673+
app.setup()
674+
elif method == "delete":
675+
app = CsApache(self)
676+
app.remove()
673677

674678
# If redundant then this is dealt with
675679
# by the primary backup functions

systemvm/debian/opt/cloud/bin/cs/CsApp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class CsApache(CsApp):
3434
""" Set up Apache """
3535

3636
def remove(self):
37-
file = "/etc/apache2/sites-enabled/vhost-%s.conf" % self.dev
37+
file = "/etc/apache2/sites-enabled/vhost-%s.conf" % self.ip
3838
if os.path.isfile(file):
3939
os.remove(file)
4040
CsHelper.service("apache2", "restart")

0 commit comments

Comments
 (0)