mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Sometimes, the permission of secondary-stoarage/templates is 755, no-writable.
Fix it by "chmod 777 -R" for secondary storage
This commit is contained in:
parent
964f8f1fe3
commit
ccf629360a
@ -556,6 +556,7 @@ public class NfsSecondaryStorageResource extends ServerResourceBase implements S
|
||||
// Change permissions for the mountpoint
|
||||
script = new Script(!_inSystemVM, "chmod", _timeout, s_logger);
|
||||
script.add("777", mountPoint);
|
||||
script.add("-R");
|
||||
result = script.execute();
|
||||
if (result != null) {
|
||||
s_logger.warn("Unable to set permissions for " + mountPoint + " due to " + result);
|
||||
|
||||
@ -424,3 +424,5 @@ INSERT INTO `cloud`.`guest_os_hypervisor` (hypervisor_type, guest_os_name, guest
|
||||
INSERT INTO `cloud`.`guest_os_hypervisor` (hypervisor_type, guest_os_name, guest_os_id) VALUES ('KVM', 'Other', 60);
|
||||
INSERT INTO `cloud`.`guest_os_hypervisor` (hypervisor_type, guest_os_name, guest_os_id) VALUES ('KVM', 'Other', 103);
|
||||
|
||||
-- temporarily added for vmware, will be moved when vmware support is fully in-place
|
||||
INSERT INTO `cloud`.`host_master`(`type`, `service_address`, `admin`, `password`) VALUES('VSphere', 'vsphere-1.lab.vmops.com', 'Administrator', 'Suite219');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user