Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
server: sync templates on adding new secondary storage
Signed-off-by: Abhishek Kumar <abhishek.kumar@shapeblue.com>
  • Loading branch information
sb-abhish3k committed Apr 29, 2019
commit 9749b5d0e6393f349f87756830fc7e812fa4e145
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
import org.apache.cloudstack.framework.config.Configurable;
import org.apache.cloudstack.framework.config.dao.ConfigurationDao;
import org.apache.cloudstack.managed.context.ManagedContextRunnable;
import org.apache.cloudstack.management.ManagementServerHost;
import org.apache.cloudstack.storage.command.DettachCommand;
import org.apache.cloudstack.storage.datastore.db.ImageStoreDao;
import org.apache.cloudstack.storage.datastore.db.ImageStoreDetailsDao;
Expand Down Expand Up @@ -115,7 +116,6 @@
import com.cloud.capacity.CapacityVO;
import com.cloud.capacity.dao.CapacityDao;
import com.cloud.cluster.ClusterManagerListener;
import org.apache.cloudstack.management.ManagementServerHost;
import com.cloud.configuration.Config;
import com.cloud.configuration.ConfigurationManager;
import com.cloud.configuration.ConfigurationManagerImpl;
Expand Down Expand Up @@ -2096,6 +2096,7 @@ public ImageStore discoverImageStore(String name, String url, String providerNam
} else {
// populate template_store_ref table
_imageSrv.addSystemVMTemplatesToSecondary(store);
_imageSrv.handleTemplateSync(store);
}

// associate builtin template with zones associated with this image store
Expand Down