[Users] What parameters to use in automated node install to enable engine CLI register?

Itamar Heim iheim at redhat.com
Mon Jan 6 22:05:14 UTC 2014


On 01/06/2014 07:38 PM, David Li wrote:
> Hi Itamar,
>
> Happy New Year!
>
> My host can actually be added manually. However it's status is "Non
> Responsive".  I put it into "Maintainence" and "Activate" it again
> without any success.  Any idea how to debug the problem with a stateless
> host?

so adding it from the ui ends successfully?
is this with iptables/firewalld on the host off?
does  'vdsClient -s 0 getVdsCaps' on the host as root work?

>
> David
>
>     ------------------------------------------------------------------------
>     *From:* Itamar Heim <iheim at redhat.com>
>     *To:* David Li <david_li at sbcglobal.net>; "users at ovirt.org"
>     <users at ovirt.org>
>     *Sent:* Tuesday, December 31, 2013 8:49 AM
>     *Subject:* Re: [Users] What parameters to use in automated node
>     install to enable engine CLI register?
>
>     On 12/20/2013 08:27 PM, David Li wrote:
>      > Hi Itamar,
>      >
>      >
>      > I logged into the admin portal but didn't see any pending host
>     approval.
>      > When I tried to add a new host (my stateless ovirt node), the install
>      > failed.  I can ssh into my node from the machine running the
>     engine so
>      > the networking doesn't seem to be the problem. Is it because it
>     doesn't
>      > support stateless node? Can you suggest a few ways to debug this?
>
>     can you try to simply add the host from the webadmin (via hosts-->add
>     host dialog)
>
>      >
>      > David
>      >
>      >
>      >
>     ------------------------------------------------------------------------
>      >    *From:* Itamar Heim <iheim at redhat.com <mailto:iheim at redhat.com>>
>      >    *To:* David Li <david_li at sbcglobal.net
>     <mailto:david_li at sbcglobal.net>>; "users at ovirt.org
>     <mailto:users at ovirt.org>"
>      >    <users at ovirt.org <mailto:users at ovirt.org>>
>      >    *Sent:* Thursday, December 19, 2013 1:32 PM
>      >    *Subject:* Re: [Users] What parameters to use in automated node
>      >    install to enable engine CLI register?
>      >
>      >    On 12/19/2013 01:32 PM, David Li wrote:
>      >      > Hi Itamar,
>      >      >
>      >      >
>      >      > Unfortunately I am restricted to using CLI on the machine
>     running the
>      >      > engine.  Is there any way to use ovirt CLI to do this?
>      >
>      >    you can't browse the engine from another machine to use its gui?
>      >
>      >    yes, you can do everything from the cli, to begin with, try to
>     connect
>      >    with it to the engine and get the list of hosts.
>      >
>      >      >
>      >      > David
>      >      >
>      >      >
>      >
>     ------------------------------------------------------------------------
>      >      >    *From:* Itamar Heim <iheim at redhat.com
>     <mailto:iheim at redhat.com> <mailto:iheim at redhat.com
>     <mailto:iheim at redhat.com>>>
>      >      >    *To:* David Li <david_li at sbcglobal.net
>     <mailto:david_li at sbcglobal.net>
>      >    <mailto:david_li at sbcglobal.net
>     <mailto:david_li at sbcglobal.net>>>; "users at ovirt.org
>     <mailto:users at ovirt.org>
>      >    <mailto:users at ovirt.org <mailto:users at ovirt.org>>"
>      >      >    <users at ovirt.org <mailto:users at ovirt.org>
>     <mailto:users at ovirt.org <mailto:users at ovirt.org>>>
>      >      >    *Sent:* Wednesday, December 18, 2013 5:31 PM
>      >      >    *Subject:* Re: [Users] What parameters to use in
>     automated node
>      >      >    install to enable engine CLI register?
>      >      >
>      >      >    On 12/18/2013 04:33 PM, David Li wrote:
>      > >      > I am still confused. My ovirt shell cli is in
>      >    "disconnected" mode
>      >      >    like this:
>      >      >      >
>      >      >      > [oVirt shell (disconnected)]#
>      >      >      > [oVirt shell (disconnected)]#
>      >      >      > [oVirt shell (disconnected)]#
>      >      >      >
>      >      >      >
>      >      >      > The only commands I can use are connect, exit and help.
>      >    How do I
>      >      >    see my
>      >      >      > node?  Or maybe the question is if the parameters I
>      >    provided to the
>      >      >      > kernel boot options have indeed enabled the node to
>      >    register with the
>      >      >      > engine. But again I have no way to know this. Is
>     there a
>      >    log on
>      >      >    the node
>      >      >      > side that might give me some clues?
>      >      >
>      >      >    well, to begin with, do you see the node in the engine
>     via the
>      >      >    webadmin gui?
>      >      >
>      >      >      >
>      >      >      > David
>      >      >      >
>      >      >      >
>      >      >
>      >
>     ------------------------------------------------------------------------
>      >      >      >    *From:* Itamar Heim <iheim at redhat.com
>     <mailto:iheim at redhat.com>
>      >    <mailto:iheim at redhat.com <mailto:iheim at redhat.com>>
>     <mailto:iheim at redhat.com <mailto:iheim at redhat.com>
>      >    <mailto:iheim at redhat.com <mailto:iheim at redhat.com>>>>
>      >      >      >    *To:* David Li <david_li at sbcglobal.net
>     <mailto:david_li at sbcglobal.net>
>      >    <mailto:david_li at sbcglobal.net <mailto:david_li at sbcglobal.net>>
>      >      >    <mailto:david_li at sbcglobal.net
>     <mailto:david_li at sbcglobal.net>
>      >    <mailto:david_li at sbcglobal.net
>     <mailto:david_li at sbcglobal.net>>>>; "users at ovirt.org
>     <mailto:users at ovirt.org>
>      >    <mailto:users at ovirt.org <mailto:users at ovirt.org>>
>      >      >    <mailto:users at ovirt.org <mailto:users at ovirt.org>
>     <mailto:users at ovirt.org <mailto:users at ovirt.org>>>"
>      >      >      >    <users at ovirt.org <mailto:users at ovirt.org>
>     <mailto:users at ovirt.org <mailto:users at ovirt.org>>
>      >    <mailto:users at ovirt.org <mailto:users at ovirt.org>
>     <mailto:users at ovirt.org <mailto:users at ovirt.org>>>>
>      >      >      >    *Sent:* Wednesday, December 18, 2013 12:04 PM
>      >      >      >  *Subject:* Re: [Users] What parameters to use in
>      >    automated node
>      >      >      >    install to enable engine CLI register?
>      >      >      >
>      >      >      >    On 12/18/2013 10:39 AM, David Li wrote:
>      >      >     >      > Hi Itamar,
>      >      >      >      >
>      >      >      >      > I am not sure I understand the question.
>      >      >      >      > How can I see the node from over-shell CLI
>     if it's not
>      >      >    connected
>      >      >      > to it?
>      >      >      >      >  Are you refering to some CLI cmd that
>     allows me to
>      >    do this?
>      >      >      >
>      >      >      >
>      >      >      >    if you PXE boot the node to register to the
>     engine, it will
>      > >    register
>      >      >      >    itself in the engine, so the ovirt-shell can
>     "see it" and
>      >      >    approve it.
>      >      >      >
>      >      >      >    note you can also just add the ovirt-node
>     directly from the
>      >      >    engine (via
>      >      >      >    the gui/cli/api/sdk without the node registering
>     (you would
>      >      >    need to
>      >      >      >    know
>      >      >      >    set in the node the root password (for ssh) or the
>      >    engine ssh
>      >      >    key for
>      > >      >    this to be able to add the node without registering it
>      >    first.
>      >      >      >    if you register it, it will also get the engine
>     ssh key
>      >    as part of
>      >      >      > registration)
>      >      >      >
>      >      >      >      >
>      >      >      >      > David
>      >      >      >      >
>      >      >      > >
>      >      >      >
>      >      >
>      >
>     ------------------------------------------------------------------------
>      >      >   >      >    *From:* Itamar Heim <iheim at redhat.com
>     <mailto:iheim at redhat.com>
>      >    <mailto:iheim at redhat.com <mailto:iheim at redhat.com>>
>      >      >    <mailto:iheim at redhat.com <mailto:iheim at redhat.com>
>     <mailto:iheim at redhat.com <mailto:iheim at redhat.com>>>
>      >    <mailto:iheim at redhat.com <mailto:iheim at redhat.com>
>     <mailto:iheim at redhat.com <mailto:iheim at redhat.com>>
>      >      >    <mailto:iheim at redhat.com <mailto:iheim at redhat.com>
>     <mailto:iheim at redhat.com <mailto:iheim at redhat.com>>>>>
>      >      > >      >    *To:* David Li <david_li at sbcglobal.net
>     <mailto:david_li at sbcglobal.net>
>      >    <mailto:david_li at sbcglobal.net <mailto:david_li at sbcglobal.net>>
>      >      >    <mailto:david_li at sbcglobal.net
>     <mailto:david_li at sbcglobal.net> <mailto:david_li at sbcglobal.net
>     <mailto:david_li at sbcglobal.net>>>
>      >      >      >    <mailto:david_li at sbcglobal.net
>     <mailto:david_li at sbcglobal.net>
>      >    <mailto:david_li at sbcglobal.net <mailto:david_li at sbcglobal.net>>
>      >      >    <mailto:david_li at sbcglobal.net
>     <mailto:david_li at sbcglobal.net>
>      >    <mailto:david_li at sbcglobal.net
>     <mailto:david_li at sbcglobal.net>>>>>; "users at ovirt.org
>     <mailto:users at ovirt.org>
>      >    <mailto:users at ovirt.org <mailto:users at ovirt.org>>
>      >      >    <mailto:users at ovirt.org <mailto:users at ovirt.org>
>     <mailto:users at ovirt.org <mailto:users at ovirt.org>>>
>      >      >      > <mailto:users at ovirt.org <mailto:users at ovirt.org>
>     <mailto:users at ovirt.org <mailto:users at ovirt.org>>
>      >    <mailto:users at ovirt.org <mailto:users at ovirt.org>
>     <mailto:users at ovirt.org <mailto:users at ovirt.org>>>>"
>      >      >      >      >    <users at ovirt.org <mailto:users at ovirt.org>
>     <mailto:users at ovirt.org <mailto:users at ovirt.org>>
>      >    <mailto:users at ovirt.org <mailto:users at ovirt.org>
>     <mailto:users at ovirt.org <mailto:users at ovirt.org>>>
>      > >    <mailto:users at ovirt.org <mailto:users at ovirt.org>
>     <mailto:users at ovirt.org <mailto:users at ovirt.org>>
>      >    <mailto:users at ovirt.org <mailto:users at ovirt.org>
>     <mailto:users at ovirt.org <mailto:users at ovirt.org>>>>>
>      >      >      >      >    *Sent:* Wednesday, December 18, 2013 1:17 AM
>      >      >      >      >    *Subject:* Re: [Users] What parameters to
>     use in
>      >      >    automated node
>      >      >      >  >    install to enable engine CLI register?
>      >      >   >      >
>      >      >      >      >    On 12/17/2013 05:59 PM, David Li wrote:
>      >      >      >      >      > Hi,
>      >      >      >      >      >
>      >      >      >      >      >
>      >      >      >      >      > My node install followed the
>     automatic install
>      >      >    instructions in
>      >      >      >      >    >
>      >      >      >  >      >
>      >      > >      >
>      >      >      >
>      >      >
>      >
>     https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.0/html/Hypervisor_Deployment_Guide/sect-Deployment_Guide-Installing_Red_Hat_Enterprise_Virtualization_Hypervisors-RHEV_Hypervisor_Kernel_Parameters_and_Automated_Installation.html
>      >      >      >      >      >
>      >      >      >      >      >
>      >      >     >      >      > For the kernel boot parameters, I used
>      >      >      >      >      >
>      >      > >      >    > management_server=<my machine IP running
>     ovirt-shell
>      >      >    CLI>
>      >      >      >      >      > rhevm_admin_password=xyz
>      >      >      >      >      >
>      >      >      >      >
>      >      >      >      >    do you see the node in pending approval
>     state in the
>      >      >    engine?'
>      > >      >      >
>      >      >      >      >
>      >      >      >      >      > However I see a few problems when I
>     tried to use
>      >      >      >    ovirt-shell CLI to
>      >      >      >      >      > connect to the engine.
>      >      >      >      >      >
>      >      >      >      >      > [oVirt shell (disconnected)]# connect
>     --url
>      >      >      >      >    "http://<node-IP>:8080/api"
>      >      > >      >      > --username "admin" --password "xyz"
>      >      >      >      >
>      >      >      >      >    ovirt-shell is to engine to approve the node,
>      >    not to node
>      >      >      >    directly.
>      >      >      >      >
>      >      >      >      >      >
>      >      >      >      >      >
>      >      >      > >      > 1. Though I can ping the node, but this
>     cmd gave
>      >      >    errors:
>      >      >   >    error:
>      >      >      >      >    [Errno
>      >      >      >      >      > 113] No route to host
>      >      >      >      >      > 2. What should I use for "--username"
>     argument?
>      >      >    What is
>      >      >      >    "@domain"?
>      >      >      >      >      >
>      >      >      >      >      > David
>      >      >      >      > >
>      >      >      >      >   >
>      >      >      >      > >
>      >      >      >      >      >
>      >      >      >      >      >
>     _______________________________________________
>      >      >      >      >      > Users mailing list
>      >      >      >      >      > Users at ovirt.org
>     <mailto:Users at ovirt.org> <mailto:Users at ovirt.org
>     <mailto:Users at ovirt.org>>
>      >    <mailto:Users at ovirt.org <mailto:Users at ovirt.org>
>     <mailto:Users at ovirt.org <mailto:Users at ovirt.org>>>
>      >      >    <mailto:Users at ovirt.org <mailto:Users at ovirt.org>
>     <mailto:Users at ovirt.org <mailto:Users at ovirt.org>>
>      >    <mailto:Users at ovirt.org <mailto:Users at ovirt.org>
>     <mailto:Users at ovirt.org <mailto:Users at ovirt.org>>>>
>      >      >      >    <mailto:Users at ovirt.org <mailto:Users at ovirt.org>
>     <mailto:Users at ovirt.org <mailto:Users at ovirt.org>>
>      >    <mailto:Users at ovirt.org <mailto:Users at ovirt.org>
>     <mailto:Users at ovirt.org <mailto:Users at ovirt.org>>>
>      >      >    <mailto:Users at ovirt.org <mailto:Users at ovirt.org>
>     <mailto:Users at ovirt.org <mailto:Users at ovirt.org>>
>      >    <mailto:Users at ovirt.org <mailto:Users at ovirt.org>
>     <mailto:Users at ovirt.org <mailto:Users at ovirt.org>>>>>
>      >      >      >      >      >
>     http://lists.ovirt.org/mailman/listinfo/users
>      >      >      >      >      >
>      >      >      > >
>      >      >      >      >
>      >      >      >      >
>      >      >      >
>      >      >      >
>      >      >      >
>      >      >
>      >      >
>      >      >
>      >
>      >
>      >
>
>
>




More information about the Users mailing list