[Ovirt-devel] problem with kerberos (I think)
sylvain.desbureaux at orange-ftgroup.com
sylvain.desbureaux at orange-ftgroup.com
Mon Aug 3 12:30:43 UTC 2009
For question 2,
It appears to be a problem with the "object" function which doesn't work.
I've found a workaround (quite ugly) in order to make it work.
I replace line 582 and 583 with:
node_found=nil
nodes = @session.objects(:class => "node")
nodes.each do |node|
@logger.info "node: #{node.hostname}"
if node.hostname==host.hostname
node_found=node
@logger.info "node found!"
break
end
end
@logger.info "node: #{node_found.hostname}" unless node_found.nil?
return node_found if node_found
See https://bugzilla.redhat.com/show_bug.cgi?id=515217
PS: I'm not saying we have to include but I'm just showing a way to make it work for people who may encounter the same issue.
--
Sylvain Desbureaux
+33 296 051 380
-----Message d'origine-----
De : ovirt-devel-bounces at redhat.com [mailto:ovirt-devel-bounces at redhat.com] De la part de sylvain.desbureaux at orange-ftgroup.com
Envoyé : lundi 3 août 2009 10:45
À : ovirt-devel at redhat.com
Objet : RE: [Ovirt-devel] problem with kerberos (I think)
Hi again,
I have two questions:
1. In order to make my node working (the node where I've installed ovirt appliance), I need to regularly do a kinit. Is it normal?
2. Other question, When I try to add a storage pool, I have the following error:
INFO Mon Aug 03 10:43:27 +0200 2009 (7407) Connecting to amqp://management.open.net:5672
INFO Mon Aug 03 10:43:27 +0200 2009 (7407) Cannot implement tasks, not connected to broker. Sleeping.
INFO Mon Aug 03 10:43:33 +0200 2009 (7407) Reconnected, resuming task checking..
INFO Mon Aug 03 10:44:06 +0200 2009 (7407) starting task_refresh_pool
INFO Mon Aug 03 10:44:06 +0200 2009 (7407) storage_find_suitable_host: host physical.open.net uuid 44454C4C-3900-1046-8057-B3C04F57334A
INFO Mon Aug 03 10:44:06 +0200 2009 (7407) host.is_disabled is 0
ERROR Mon Aug 03 10:44:06 +0200 2009 (7407) Task action processing failed: RuntimeError: Could not find a host within this storage pool to scan the storage server.
ERROR Mon Aug 03 10:44:06 +0200 2009 (7407) /usr/share/ovirt-server/task-omatic/taskomatic.rb:587:in `storage_find_suitable_host'/usr/share/ovirt-server/task-omatic/taskomatic.rb:621:in `task_refresh_pool'/usr/share/ovirt-server/task-omatic/taskomatic.rb:906:in `mainloop'/usr/share/ovirt-server/task-omatic/taskomatic.rb:880:in `each'/usr/share/ovirt-server/task-omatic/taskomatic.rb:880:in `mainloop'/usr/share/ovirt-server/task-omatic/taskomatic.rb:847:in `loop'/usr/share/ovirt-server/task-omatic/taskomatic.rb:847:in `mainloop'/usr/share/ovirt-server/task-omatic/taskomatic.rb:947
INFO Mon Aug 03 10:44:06 +0200 2009 (7407) done
I took a look at the code and the problem seems to be here (in taskomatic.rb, line 582):
573 def storage_find_suitable_host(hardware_pool)
574 # find all of the hosts in the same pool as the storage
575 hardware_pool.hosts.each do |host|
576 @logger.info "storage_find_suitable_host: host #{host.hostname} uuid #{host.uuid}"
577 @logger.info "host.is_disabled is #{host.is_disabled}"
578 if host.is_disabled.to_i != 0
579 @logger.info "host #{host.hostname} is disabled"
580 next
581 end
--> 582 node = @session.object(:class => 'node', 'hostname' => host.hostname)
583 @logger.info "node: #{node.inspect}" if node
584 return node if node
585 end
But when I do a qmf-libvirt-example, I have the host and it seems OK:
[root at management ~]# ruby /usr/share/ovirt-server/qmf-libvirt-example.rb
Connecting to amqp://management.open.net:5672..
node: physical.open.net
property: hostname, physical.open.net
property: uri, qemu:///system
property: libvirtVersion, 0.6.3
property: apiVersion, 0.6.3
property: hypervisorVersion, 0.9.1
property: hypervisorType, QEMU
property: model, x86_64
property: memory, 1993688
property: cpus, 2
property: mhz, 1000
property: nodes, 1
property: sockets, 1
property: cores, 2
property: threads, 1
getXMLDesc() status: 0
getXMLDesc() status: OK
xml length: 1199
...
Any ideas?
--
Sylvain Desbureaux
+33 296 051 380
-----Message d'origine-----
De : ovirt-devel-bounces at redhat.com [mailto:ovirt-devel-bounces at redhat.com] De la part de sylvain.desbureaux at orange-ftgroup.com
Envoyé : lundi 3 août 2009 08:48
À : justin at redfish-group.com
Cc : ovirt-devel at redhat.com
Objet : RE: [Ovirt-devel] problem with kerberos (I think)
I also think this problem was a qpid problem.
I still have issues with node authentification though
--
Sylvain Desbureaux
+33 296 051 380
-----Message d'origine-----
De : Justin Clacherty [mailto:justin at redfish-group.com]
Envoyé : vendredi 31 juillet 2009 18:09
À : DESBUREAUX Sylvain RD-BIZZ-LAN
Cc : ovirt-devel at redhat.com
Objet : Re: [Ovirt-devel] problem with kerberos (I think)
Justin Clacherty wrote:
> sylvain.desbureaux at orange-ftgroup.com wrote:
>> I solved db-omatic crashed with installing ovirt in a __non__ up to
>> date F10. But I still have this when I launch libvirt-qpid from the
>> physical node:
>> 2009-07-31 10:09:32 warning Closing connection due to internal-error:
>> Sasl error: SASL(-1): generic failure: GSSAPI Error: Unspecified GSS
>> failure. Minor code may provide more information (No credentials
>> cache found) (qpid/client/SaslFactory.cpp:226)
>>
>
> I have a problem where an up to date F10 fails to work, looks like
> some updates have killed ovirt. Still trying to figure out the actual
> problem so any updates on your problem are greatly appreciated.
Looks like my problem is the same...
I had a running system which failed after running a yum update. From
memory there were qpid and qmf updates.
Taskomatic seems to stay up once restarted though.
[root at ovirt ovirt-server]# /usr/share/ovirt-server/db-omatic/db_omatic.rb -n
INFO Sat Aug 01 02:04:29 +1000 2009 (12122) dbomatic started.
INFO Sat Aug 01 02:04:29 +1000 2009 (12122) Connecting to
amqp://ovirt.redfish.local:5672
INFO Sat Aug 01 02:04:29 +1000 2009 (12122) Marking host
node3.redfish.local unavailable
/usr/share/ovirt-server/db-omatic/db_omatic.rb:252:in `object_props':
undefined method `[]' for #<Qpid::Qmf::ClassKey:0x7f685c462e88>
(NoMethodError)
from /usr/lib/ruby/site_ruby/1.8/qpid/qmf.rb:608:in
`handle_content_ind'
from /usr/lib/ruby/site_ruby/1.8/qpid/qmf.rb:1728:in `reply_cb'
from /usr/lib/ruby/site_ruby/1.8/qpid/qmf.rb:1716:in `loop'
from /usr/lib/ruby/site_ruby/1.8/qpid/qmf.rb:1716:in `reply_cb'
from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `to_proc'
from /usr/lib/ruby/site_ruby/1.8/qpid/queue.rb:91:in `call'
from /usr/lib/ruby/site_ruby/1.8/qpid/queue.rb:91:in `listen'
from /usr/lib/ruby/site_ruby/1.8/qpid/queue.rb:87:in `loop'
... 12 levels...
from /usr/share/ovirt-server/db-omatic/db_omatic.rb:95:in
`initialize'
from /usr/share/ovirt-server/db-omatic/db_omatic.rb:475:in `new'
from /usr/share/ovirt-server/db-omatic/db_omatic.rb:475:in `main'
from /usr/share/ovirt-server/db-omatic/db_omatic.rb:482
ERROR Sat Aug 01 02:04:31 +1000 2009 (12122) Error in db-omatic:
#<SystemExit:0x7f685c37fa48>
ERROR Sat Aug 01 02:04:34 +1000 2009 (12122)
/usr/lib/ruby/site_ruby/1.8/qpid/queue.rb:92:in
`sleep'/usr/share/ovirt-server/db-omatic/db_omatic.rb:441:in
`check_heartbeats'/usr/share/ovirt-server/db-omatic/db_omatic.rb:478:in
`main'/usr/share/ovirt-server/db-omatic/db_omatic.rb:482
[root at ovirt ovirt-server]#
/usr/share/ovirt-server/task-omatic/taskomatic.rb -n -d
INFO Sat Aug 01 02:04:44 +1000 2009 (12125) Connecting to
amqp://ovirt.redfish.local:5672
INFO Sat Aug 01 02:04:44 +1000 2009 (12125) Cannot implement tasks, not
connected to broker. Sleeping.
INFO Sat Aug 01 02:04:50 +1000 2009 (12125) Reconnected, resuming task
checking..
_______________________________________________
Ovirt-devel mailing list
Ovirt-devel at redhat.com
https://www.redhat.com/mailman/listinfo/ovirt-devel
_______________________________________________
Ovirt-devel mailing list
Ovirt-devel at redhat.com
https://www.redhat.com/mailman/listinfo/ovirt-devel
More information about the ovirt-devel
mailing list