On 09/04/2013 10:01 PM, Prasanna Santhanam wrote:
On Wed, Sep 04, 2013 at 04:38:05PM -0700, Darren Shepherd wrote:
So I'm trying to setup a cloudstack environment from scratch.  Not a
devcloud environment, but more like a production setup.  Anyhow, so
I managed to get the cpvm and ssvm running, but there is no host
entry for them.  Is that supposed to happen?


If you mean nothing about the cpvm/ssvm in the `cloud`.`host` table. that is
not expected. I'm on 4.2

mysql> select id,name,uuid,status,type from host;
+----+---------------------------+--------------------------------------+--------------+--------------------+
| id | name                      | uuid                                 | 
status       | type               |
+----+---------------------------+--------------------------------------+--------------+--------------------+
|  1 | ap....................... | ef34fcab-7b16-49c7-a249-4d091113def0 | Up    
       | Routing            |
|  2 | ap....................... | 2dc20e3e-0fdf-4458-b879-b38595bfa8b7 | Up    
       | Routing            |
|  3 | ap....................... | 02c30b44-0356-4070-9230-b20c320b3e8e | Up    
       | Routing            |
|  4 | v-2-VM                    | 2d78c5f3-b481-4af4-9674-1e554853efd5 | 
Disconnected | ConsoleProxy       |
|  5 | s-1-VM                    | 0bee83d7-77be-4891-8fa1-4441de410366 | 
Disconnected | SecondaryStorageVM |
|  6 | s-34-QA                   | 75f608db-9c4a-4915-b1b1-d1914904b930 | Up    
       | SecondaryStorageVM |
|  7 | v-38-QA                   | e77828b3-35b0-42b1-ae08-b8d0c22ba156 | Up    
       | ConsoleProxy       |
+----+---------------------------+--------------------------------------+--------------+--------------------+
7 rows in set (0.00 sec)


Alright, I'm at a total loss here. Obviously doing something wrong. So in 4.1 the AddSecondaryStorageCmd would call the regular host discovery code which would put the entry in the hosts table. In 4.2 the code was changed to call the storage lifecycle code which seems to only put an entry in the image_store table. I can't find for the life of me anything that would actually insert the row in the host table in 4.2.

So whats specifically happening is its calling TemplateService.handleSysTemplateDownload() which eventually calls DefaultEndpointSelector which can't find a host entry so it falls back to LocalHostEndpoint which obviously fails to run the DownloadCommand cause executing on the localhost and not on the SSVM.

So in short, I must be doing something wrong....

Darren

Reply via email to