You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Darren Shepherd <da...@gmail.com> on 2013/09/05 01:38:05 UTC

cpvm and ssvm but no host entries

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?

Darren

Re: cpvm and ssvm but no host entries

Posted by Prasanna Santhanam <ts...@apache.org>.
On Thu, Sep 05, 2013 at 02:21:24AM -0700, Darren Shepherd wrote:
> On 09/05/2013 01:14 AM, Prasanna Santhanam wrote:
> >
> >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.
> >
> 
> Ah good to know.  I actually was using addImageStore and I didn't
> know it.  Basically I tried to setup an advanced zone by hand using
> cloudmonkey and quickly found out that that task was never intended
> to be done by mere mortals.  So I've been using the GUI to setup the
> zone through the wizard.
> 

You can use the marvin [1] test client for quick configuration. This
is what is used within the Citrix QA team and in our automated test
deployments to setup cloudstack. There are example configurations
available in setup/dev/*.cfg in the repo.

[1] https://cwiki.apache.org/confluence/x/QQzMAQ
(See section on Marvin Deployment Configurations)

> Regardless, I got it working.  The hosts table entry is created when
> the SSVM calls home through 8250.  So basically what was happening
> is that the IP was wrong for the management server.
> 
> Darren

-- 
Prasanna.,

------------------------
Powered by BigRock.com


Re: cpvm and ssvm but no host entries

Posted by Darren Shepherd <da...@gmail.com>.
On 09/05/2013 01:14 AM, Prasanna Santhanam wrote:
>
> 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.
>

Ah good to know.  I actually was using addImageStore and I didn't know 
it.  Basically I tried to setup an advanced zone by hand using 
cloudmonkey and quickly found out that that task was never intended to 
be done by mere mortals.  So I've been using the GUI to setup the zone 
through the wizard.

Regardless, I got it working.  The hosts table entry is created when the 
SSVM calls home through 8250.  So basically what was happening is that 
the IP was wrong for the management server.

Darren

Re: cpvm and ssvm but no host entries

Posted by Prasanna Santhanam <ts...@apache.org>.
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


Re: cpvm and ssvm but no host entries

Posted by Darren Shepherd <da...@gmail.com>.
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

Re: cpvm and ssvm but no host entries

Posted by Prasanna Santhanam <ts...@apache.org>.
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)

-- 
Prasanna.,

------------------------
Powered by BigRock.com


Re: cpvm and ssvm but no host entries

Posted by Harikrishna Patnala <ha...@citrix.com>.
Seems like in both the cases agent is not up. 
please try troubleshooting  SSVM https://cwiki.apache.org/CLOUDSTACK/ssvm-templates-secondary-storage-troubleshooting.html

-Harikrishna
On 05-Sep-2013, at 8:13 AM, Mike Tutkowski <mi...@solidfire.com> wrote:

> I've been trying to set up a CS env without devcloud, as well, with 4.2
> recently and having trouble.
> 
> I notice my system VMs come up, but - in the CSMS console - it continues to
> say SSVM is not running. When I look at them in the GUI, they show as Up,
> but the Agent Status is just a hyphen.
> 
> 
> On Wed, Sep 4, 2013 at 7:46 PM, Travis Graham <tg...@tgraham.us> wrote:
> 
>> That is weird, do you have entries for them in the console_proxy and
>> secondary_storage_vm tables?
>> 
>> Have you tried to destroy them and let the Management server recreate them
>> to see if that creates the entry in the hosts table?
>> 
>> Travis
>> 
>> On Sep 4, 2013, at 7:38 PM, Darren Shepherd <da...@gmail.com>
>> 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?
>>> 
>>> Darren
>> 
>> 
> 
> 
> -- 
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the
> cloud<http://solidfire.com/solution/overview/?video=play>
> *™*


Re: cpvm and ssvm but no host entries

Posted by Mike Tutkowski <mi...@solidfire.com>.
I've been trying to set up a CS env without devcloud, as well, with 4.2
recently and having trouble.

I notice my system VMs come up, but - in the CSMS console - it continues to
say SSVM is not running. When I look at them in the GUI, they show as Up,
but the Agent Status is just a hyphen.


On Wed, Sep 4, 2013 at 7:46 PM, Travis Graham <tg...@tgraham.us> wrote:

> That is weird, do you have entries for them in the console_proxy and
> secondary_storage_vm tables?
>
> Have you tried to destroy them and let the Management server recreate them
> to see if that creates the entry in the hosts table?
>
> Travis
>
> On Sep 4, 2013, at 7:38 PM, Darren Shepherd <da...@gmail.com>
> 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?
> >
> > Darren
>
>


-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Re: cpvm and ssvm but no host entries

Posted by Travis Graham <tg...@tgraham.us>.
That is weird, do you have entries for them in the console_proxy and secondary_storage_vm tables?

Have you tried to destroy them and let the Management server recreate them to see if that creates the entry in the hosts table?

Travis

On Sep 4, 2013, at 7:38 PM, Darren Shepherd <da...@gmail.com> 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?
> 
> Darren