cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Lamirault (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-528) Failed to create secondary storage
Date Mon, 13 May 2013 08:49:17 GMT

    [ https://issues.apache.org/jira/browse/CLOUDSTACK-528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13655850#comment-13655850
] 

Nicolas Lamirault commented on CLOUDSTACK-528:
----------------------------------------------

Hi,
it seems, value in configuration table are already encrypted :

select * from configuration where name = 'secondary.storage.vm' ;
+----------+----------+-------------------+----------------------+--------------------------+------------------------------------------------------------------------------------------------------------------------+
| category | instance | component         | name                 | value                 
  | description                                                                          
                                 |
+----------+----------+-------------------+----------------------+--------------------------+------------------------------------------------------------------------------------------------------------------------+
| Hidden   | DEFAULT  | management-server | secondary.storage.vm | c5j1YtdWPXA2NTcyWEkJwg==
| Deploys a VM per zone to manage secondary storage if true, otherwise secondary storage is
mounted on management server |
+----------+----------+-------------------+----------------------+--------------------------+------------------------------------------------------------------------------------------------------------------------+

$> java -classpath /usr/share/java/jasypt-1.9.0.jar org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI
decrypt.sh input="c5j1YtdWPXA2NTcyWEkJwg==" password=cloudstackprp verbose=false
true


select * from configuration where name = 'security.hash.key' ;                           
                                                                                         
                          
+----------+----------+-------------------+-------------------+------------------------------------------------------------------+-------------------------+
| category | instance | component         | name              | value                    
                                       | description             |
+----------+----------+-------------------+-------------------+------------------------------------------------------------------+-------------------------+
| Hidden   | DEFAULT  | management-server | security.hash.key | LhnMbg0+2YuuYqwGiKab+VC8oehnKRwcRJ7hojDVdq6vsANs+S+TPd7yymWIcX6n
| for generic key-ed hash |
+----------+----------+-------------------+-------------------+------------------------------------------------------------------+-------------------------+

$> java -classpath /usr/share/java/jasypt-1.9.0.jar org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI
decrypt.sh input="LhnMbg0+2YuuYqwGiKab+VC8oehnKRwcRJ7hojDVdq6vsANs+S+TPd7yymWIcX6n" password=cloudstackprp
verbose=false
0b873a52-5abb-451a-af62-114e98a0f73f

select * from configuration where name = 'router.ram.size' ;                             
                                                                                         
                          
+----------+----------+----------------+-----------------+--------------------------+------------------------------------+
| category | instance | component      | name            | value                    | description
                       |
+----------+----------+----------------+-----------------+--------------------------+------------------------------------+
| Hidden   | DEFAULT  | NetworkManager | router.ram.size | KNXD3Y9CDuSiyCiWOUJDVQ== | Default
RAM for router VM (in MB). |
+----------+----------+----------------+-----------------+--------------------------+------------------------------------+

$> java -classpath /usr/share/java/jasypt-1.9.0.jar org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI
decrypt.sh input="KNXD3Y9CDuSiyCiWOUJDVQ==" password=cloudstackprp verbose=false         
               
128

@edison, so 'secondary.storage.vm' is set to true in database. But according to the logs,
management server loads NfsSecondaryStorageResource.

2013-05-13 10:44:09,569 INFO  [storage.resource.NfsSecondaryStorageResource] (TP-Processor17:null)
Cmd ajoute : StartupCommand{type=SecondaryStorage, dataCenter='1', pod='null', cluster='null',
guid='nfs://rr.isia
.boi.cloud.mbs/ifs/cloud/chevilly/clustervmw-prp/secondarystorage', name='nfs://rr.isia.boi.cloud.mbs/ifs/cloud/chevilly/clustervmw-prp/secondarystorage',
id=null, version='4.1.0', iqn='NoIqn', publicIpAddress='nu
ll', publicNetmask='null', publicMacAddress='null', privateIpAddress='10.200.194.26', privateMacAddress='00:50:56:a9:50:b6',
privateNetmask='255.255.254.0', storageIpAddress='10.200.194.26', storageNetmask='255.25
5.254.0', storageMacAddress='00:50:56:a9:50:b6', storageIpAddressDeux='null', storageMacAddressDeux='null',
storageNetmaskDeux='null', agentTag='null', resourceName='null', gatewayIpAddress='null'}
2013-05-13 10:44:09,569 DEBUG [storage.resource.NfsSecondaryStorageResource] (TP-Processor17:null)
Executing: /bin/bash -c ln -sf /mnt/SecStorage /var/www/html/copy 
2013-05-13 10:44:09,573 DEBUG [storage.resource.NfsSecondaryStorageResource] (TP-Processor17:null)
Execution is successful.
2013-05-13 10:44:09,574 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Startup
cmds : 1
2013-05-13 10:44:09,574 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Cmd:
StartupCommand{type=SecondaryStorage, dataCenter='1', pod='null', cluster='null', guid='nfs://rr.isia.boi.cloud.mbs/ifs
/cloud/chevilly/clustervmw-prp/secondarystorage', name='nfs://rr.isia.boi.cloud.mbs/ifs/cloud/chevilly/clustervmw-prp/secondarystorage',
id=null, version='4.1.0', iqn='NoIqn', publicIpAddress='null', publicNetmask
='null', publicMacAddress='null', privateIpAddress='10.200.194.26', privateMacAddress='00:50:56:a9:50:b6',
privateNetmask='255.255.254.0', storageIpAddress='10.200.194.26', storageNetmask='255.255.254.0',
storageM
acAddress='00:50:56:a9:50:b6', storageIpAddressDeux='null', storageMacAddressDeux='null',
storageNetmaskDeux='null', agentTag='null', resourceName='null', gatewayIpAddress='null'}
2013-05-13 10:44:09,575 DEBUG [agent.transport.Request] (TP-Processor17:null) Seq -1--1: Startup
request from directly connected host:  { Cmd , MgmtId: -1, via: -1, Ver: v1, Flags: 111, [{"type":"SecondaryStorage"
,"dataCenter":"1","guid":"nfs://rr.isia.boi.cloud.mbs/ifs/cloud/chevilly/clustervmw-prp/secondarystorage","name":"nfs://rr.isia.boi.cloud.mbs/ifs/cloud/chevilly/clustervmw-prp/secondarystorage","version":"4.1.0","
iqn":"NoIqn","privateIpAddress":"10.200.194.26","privateMacAddress":"00:50:56:a9:50:b6","privateNetmask":"255.255.254.0","storageIpAddress":"10.200.194.26","storageNetmask":"255.255.254.0","storageMacAddress":"00:
50:56:a9:50:b6","wait":0}] }
2013-05-13 10:44:09,583 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Create
cmd com.cloud.agent.api.StartupSecondaryStorageCommand
2013-05-13 10:44:09,597 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Dispatch
event CREATE_HOST_VO_FOR_DIRECT_CONNECT for Host[-0-null]
2013-05-13 10:44:09,597 DEBUG [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Dispatching
resource state event CREATE_HOST_VO_FOR_DIRECT_CONNECT to BigSwitchVnsElement_EnhancerByCloudStack_9891f7d8
2013-05-13 10:44:09,597 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Event
ok ... create host
2013-05-13 10:44:09,597 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Result
dispatch event : null
2013-05-13 10:44:09,597 DEBUG [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Dispatching
resource state event CREATE_HOST_VO_FOR_DIRECT_CONNECT to JuniperSRXExternalFirewallElement_EnhancerByCloudStack
_a23c7e82
2013-05-13 10:44:09,597 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Event
ok ... create host
2013-05-13 10:44:09,597 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Result
dispatch event : null
2013-05-13 10:44:09,597 DEBUG [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Dispatching
resource state event CREATE_HOST_VO_FOR_DIRECT_CONNECT to KvmServerDiscoverer_EnhancerByCloudStack_4bfaeaf3
2013-05-13 10:44:09,597 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Event
ok ... create host
2013-05-13 10:44:09,597 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Result
dispatch event : null
2013-05-13 10:44:09,597 DEBUG [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Dispatching
resource state event CREATE_HOST_VO_FOR_DIRECT_CONNECT to PremiumSecondaryStorageManagerImpl_EnhancerByCloudStac
k_80f311a8
2013-05-13 10:44:09,597 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Event
ok ... create host
2013-05-13 10:44:09,597 INFO  [storage.secondary.SecondaryStorageManagerImpl] (TP-Processor17:null)
Create Host .......
2013-05-13 10:44:09,598 INFO  [storage.secondary.SecondaryStorageManagerImpl] (TP-Processor17:null)
Startup command: nfs://rr.isia.boi.cloud.mbs/ifs/cloud/chevilly/clustervmw-prp/secondarystorage
2013-05-13 10:44:09,598 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Result
dispatch event : null
2013-05-13 10:44:09,598 DEBUG [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Dispatching
resource state event CREATE_HOST_VO_FOR_DIRECT_CONNECT to NetworkUsageManagerImpl_EnhancerByCloudStack_e03e6207
2013-05-13 10:44:09,598 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Event
ok ... create host
2013-05-13 10:44:09,598 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Result
dispatch event : null
2013-05-13 10:44:09,598 DEBUG [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Dispatching
resource state event CREATE_HOST_VO_FOR_DIRECT_CONNECT to NiciraNvp
2013-05-13 10:44:09,598 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Event
ok ... create host
2013-05-13 10:44:09,598 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Result
dispatch event : null
2013-05-13 10:44:09,598 DEBUG [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Dispatching
resource state event CREATE_HOST_VO_FOR_DIRECT_CONNECT to OvmDiscoverer_EnhancerByCloudStack_b851821e
2013-05-13 10:44:09,598 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Event
ok ... create host
2013-05-13 10:44:09,598 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Result
dispatch event : null
2013-05-13 10:44:09,598 DEBUG [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Dispatching
resource state event CREATE_HOST_VO_FOR_DIRECT_CONNECT to F5ExternalLoadBalancerElement_EnhancerByCloudStack_728
74831
2013-05-13 10:44:09,598 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Event
ok ... create host
2013-05-13 10:44:09,598 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Result
dispatch event : null
2013-05-13 10:44:09,599 DEBUG [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Dispatching
resource state event CREATE_HOST_VO_FOR_DIRECT_CONNECT to VmwareServerDiscoverer_EnhancerByCloudStack_a25b8bb9
2013-05-13 10:44:09,599 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Event
ok ... create host
2013-05-13 10:44:09,599 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Result
dispatch event : null
2013-05-13 10:44:09,599 DEBUG [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Dispatching
resource state event CREATE_HOST_VO_FOR_DIRECT_CONNECT to XcpServerDiscoverer_EnhancerByCloudStack_4ee80a77
2013-05-13 10:44:09,599 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Event
ok ... create host
2013-05-13 10:44:09,599 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Result
dispatch event : null
2013-05-13 10:44:09,599 DEBUG [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Dispatching
resource state event CREATE_HOST_VO_FOR_DIRECT_CONNECT to ConsoleProxyManagerImpl_EnhancerByCloudStack_cf2006c0
2013-05-13 10:44:09,599 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Event
ok ... create host
2013-05-13 10:44:09,599 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Result
dispatch event : null
2013-05-13 10:44:09,599 DEBUG [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Dispatching
resource state event CREATE_HOST_VO_FOR_DIRECT_CONNECT to NetscalerElement_EnhancerByCloudStack_e427edda
2013-05-13 10:44:09,599 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Event
ok ... create host
2013-05-13 10:44:09,599 INFO  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Result
dispatch event : null
2013-05-13 10:44:09,602 WARN  [cloud.resource.ResourceManagerImpl] (TP-Processor17:null) Unable
to connect due to 
com.cloud.utils.exception.CloudRuntimeException: No resource state adapter response
        at com.cloud.resource.ResourceManagerImpl.createHostVO(ResourceManagerImpl.java:1841)
        at com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerImpl.java:1954)
        at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:852)
        at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:628)
        at org.apache.cloudstack.api.command.admin.host.AddSecondaryStorageCmd.execute(AddSecondaryStorageCmd.java:80)
        at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:162)
        at com.cloud.api.ApiServer.queueCommand(ApiServer.java:509)
        at com.cloud.api.ApiServer.handleRequest(ApiServer.java:359)
        at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:315)
        at com.cloud.api.ApiServlet.doGet(ApiServlet.java:66)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776)


with this code :

diff --git a/server/src/com/cloud/resource/ResourceManagerImpl.java b/server/src/com/cloud/resource/ResourceManagerImpl.java
index bd454cb..36ea41f 100755
--- a/server/src/com/cloud/resource/ResourceManagerImpl.java
+++ b/server/src/com/cloud/resource/ResourceManagerImpl.java
@@ -654,12 +654,16 @@ public class ResourceManagerImpl extends ManagerBase implements ResourceManager,
         URI uri = null;
 
         // Check if the zone exists in the system
+        s_logger.info("Search zone : " + dcId);
         DataCenterVO zone = _dcDao.findById(dcId);
         if (zone == null) {
                        throw new InvalidParameterValueException("Can't find zone by id "
                                        + dcId);
+        } else {
+            s_logger.info("Find zone " + zone.getId() + " " + zone.getName());
         }
 
+
         Account account = UserContext.current().getCaller();
                if (Grouping.AllocationState.Disabled == zone.getAllocationState()
                                && !_accountMgr.isRootAdmin(account.getType())) {
@@ -814,6 +818,7 @@ public class ResourceManagerImpl extends ManagerBase implements ResourceManager,
                                for (Map.Entry<? extends ServerResource, Map<String,
String>> entry : resources
                                                .entrySet()) {
                     ServerResource resource = entry.getKey();
+                    s_logger.info("Find resource " + resource.getName());
                     /*
                                         * For KVM, if we go to here, that means kvm agent
is
                                         * already connected to mgt svr.
@@ -1616,11 +1621,13 @@ public class ResourceManagerImpl extends ManagerBase implements ResourceManager,
                         break;
                     }
                 } else if (event == ResourceStateAdapter.Event.CREATE_HOST_VO_FOR_DIRECT_CONNECT)
{
+                    s_logger.info("Event ok ... create host");
                                        result = adapter.createHostVOForDirectConnectAgent(
                                                        (HostVO) args[0], (StartupCommand[])
args[1],
                                                        (ServerResource) args[2],
                                                        (Map<String, String>) args[3],
                                                        (List<String>) args[4]);
+                    s_logger.info("Result dispatch event : " + result);
                     if (result != null && singleTaker) {
                         break;
                     }

@@ -1723,6 +1730,7 @@ public class ResourceManagerImpl extends ManagerBase implements ResourceManager,
                        ServerResource resource, Map<String, String> details,
                        List<String> hostTags, ResourceStateAdapter.Event stateEvent)
{
         StartupCommand startup = cmds[0];
+        s_logger.info("Create cmd " + startup.toString());
         HostVO host = findHostByGuid(startup.getGuid());
         boolean isNew = false;
         if (host == null) {
@@ -1826,6 +1834,7 @@ public class ResourceManagerImpl extends ManagerBase implements ResourceManager,
             host.setResource(resource.getClass().getName());
         }
 
+        s_logger.info("Dispatch event " + stateEvent + " for " + host);
                host = (HostVO) dispatchToStateAdapters(stateEvent, true, host, cmds,
                                resource, details, hostTags);
         if (host == null) {
@@ -1909,6 +1918,11 @@ public class ResourceManagerImpl extends ManagerBase implements ResourceManager,
                 s_logger.info("Unable to fully initialize the agent because no StartupCommands
are returned");
                 return null;
             }
+            s_logger.info("Startup cmds : " + cmds.length);
+            for (StartupCommand cmd : cmds) {
+                s_logger.info("Cmd: " + cmd.describe());
+            }
+
 
             /* Generate a random version in a dev setup situation */



diff --git a/server/src/com/cloud/storage/secondary/SecondaryStorageManagerImpl.java b/server/src/com/cloud/storage/secondary/SecondaryStorageManagerImpl.java
index fca89dc..ea40787 100755
--- a/server/src/com/cloud/storage/secondary/SecondaryStorageManagerImpl.java
+++ b/server/src/com/cloud/storage/secondary/SecondaryStorageManagerImpl.java
@@ -1323,14 +1323,19 @@ public class SecondaryStorageManagerImpl extends ManagerBase implements
Secondar
        @Override
     public HostVO createHostVOForDirectConnectAgent(HostVO host, StartupCommand[] startup,
ServerResource resource, Map<String, String> details,
             List<String> hostTags) {
+
+        s_logger.info("Create Host .......");
+
                /* Called when add secondary storage on UI */
                StartupCommand firstCmd = startup[0];
+        s_logger.info("Startup command: " + firstCmd.getName());
                if (!(firstCmd instanceof StartupStorageCommand)) {
                        return null;
                }
 
                com.cloud.host.Host.Type type = null;
                StartupStorageCommand ssCmd = ((StartupStorageCommand) firstCmd);
+        s_logger.info("ssCmd type : " + ssCmd.getHostType());
                if (ssCmd.getHostType() == Host.Type.SecondaryStorageCmdExecutor) {
                        type = ssCmd.getHostType();
                } else {
@@ -1362,8 +1367,9 @@ public class SecondaryStorageManagerImpl extends ManagerBase implements
Secondar
                        if (ssCmd.getNfsShare() != null) {
                                host.setStorageUrl(ssCmd.getNfsShare());
                        }
+
                }
-               
+               s_logger.info("End host : " + host.toString());
                return host;
     }
 




                
> Failed to create secondary storage
> ----------------------------------
>
>                 Key: CLOUDSTACK-528
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-528
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Storage Controller
>    Affects Versions: 4.0.0, 4.1.0
>         Environment: CentOS 
>            Reporter: Tamas Monos
>            Priority: Blocker
>             Fix For: 4.1.0
>
>
>          Hi,
> I cannot add secondary storage to my existing Zone. This prevents the platform from operating.
> API call via GUI captured by tcpdump:
> http://sandbox.veber.co.uk/client/api?command=addSecondaryStorage&zoneId=a8d21e6d-bc9e-4dc2-b996-fc22727cd9c1&url=nfs%3A%2F%2F192.168.1.2%2Fwatford_cloud&response=json&sessionkey=DGl3OmkfQRGwuIDZFoOpoF2WBJU%3D&_=1353673985114
> Result:
> Unable to connect due to 
> java.lang.IllegalArgumentException: Host 192.168.1.4 sent incorrect data center: null
>         at com.cloud.resource.ResourceManagerImpl.createHostVO(ResourceManagerImpl.java:1501)
>         at com.cloud.resource.ResourceManagerImpl.createHostAndAgent(ResourceManagerImpl.java:1629)
>         at com.cloud.resource.ResourceManagerImpl.discoverHostsFull(ResourceManagerImpl.java:720)
>         at com.cloud.resource.ResourceManagerImpl.discoverHosts(ResourceManagerImpl.java:551)
>         at com.cloud.api.commands.AddSecondaryStorageCmd.execute(AddSecondaryStorageCmd.java:79)
>         at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:138)
>         at com.cloud.api.ApiServer.queueCommand(ApiServer.java:543)
>         at com.cloud.api.ApiServer.handleRequest(ApiServer.java:422)
>         at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:304)
>         at com.cloud.api.ApiServlet.doGet(ApiServlet.java:63)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
>         at org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:889)
>         at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:721)
>         at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2268)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
>         at java.lang.Thread.run(Thread.java:679)
> 2012-11-23 12:32:58,518 INFO  [cloud.resource.ResourceManagerImpl] (catalina-exec-23:null)
server resources successfully discovered by SecondaryStorage
> 2012-11-23 12:32:58,518 WARN  [cloud.api.ApiDispatcher] (catalina-exec-23:null) class
com.cloud.api.ServerApiException : Failed to add secondary storage
> Debug:
> mysql> select uuid from data_center where name='Watford';
> +--------------------------------------+
> | uuid                                 |
> +--------------------------------------+
> | a8d21e6d-bc9e-4dc2-b996-fc22727cd9c1 |
> +--------------------------------------+
> The Zone ID matches but API throws exception while the IS is supplied in the query.
> Scenario:
> I have upgraded from 3.0.2 to 4.0.0. Due to the upgrade scripts did not update the systemVMs
to the new template I've applied a workaround and recreated the systemVMs with the new templates.
After that I've enabled storage clean-up and the cleanup script destroyed everything on my
primary storage including systemVMs. I wanted to re-create them but cannot add secondary storage
to the Zone.
> The applied workarounds during upgrade:
> 1. Add new vmware template to CS with name systemvm-vmware-4.0 (I have re-imported it)
2. Wait till the template is downloaded and installed successfully
> 3. Look up id of this template in DB (Name should match the input provided in step
> mysql> select id from `cloud`.`vm_template` where name = 
> mysql> 'systemvm-vmware-4.0' and removed is null;
> 4. Update template type to SYSTEM
> mysql> update `cloud`.`vm_template` set type='SYSTEM' where id = 
> mysql> <id-from-step3>;
> 5. Update template Id for all system Vms
> mysql> update `cloud`.`vm_instance` set vm_template_id = <id-from-step3> 
> mysql> where type <> 'User' and hypervisor_type = 'VMware';
> 6. Restart all system Vms

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message