On Thu, Sep 05, 2013 at 12:47:25AM -0700, Darren Shepherd wrote: > 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. >
If you are looking for the SecondaryStorage nfs host entry (that usually would go into Alert state soon as it was added), it no more goes into the host table. There is no 'discovery' process for storage. Also the AddSecondaryStorageCmd is now deprecated and the AddImageStoreCmd and AddStagingStoreCmds are used for the backing store operations. > 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. This is how I see it reported in the logs but havent dug deeper to be honest. Perhaps Edison/Min will have the right answer here > > So in short, I must be doing something wrong.... > > Darren -- Prasanna., ------------------------ Powered by BigRock.com