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:
edison 2010-09-17 23:55:42 -07:00
parent 964f8f1fe3
commit ccf629360a
2 changed files with 3 additions and 0 deletions

View File

@ -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);

View File

@ -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');