Hide Forgot
Description of problem: webui providers are trying to authenticate to deltacloud when saved recreate.... 0. tail the /var/log/deltacloud-vsphere/vsphere.log 1. create a vsphere provider (may work w/ any provider) 2. there is a request for HWP ././lib/sinatra/rabbit.rb:113:in `GET /api/hardware_profiles' this requires authentication, however the creds have not yet been entered into the webui.. provider account. ****** full trace ********** 127.0.0.1 - - [20/Jul/2011 11:34:17] "GET /api HTTP/1.1" 200 802 0.0055 127.0.0.1 - - [20/Jul/2011 11:34:17] "GET /api HTTP/1.1" 200 802 0.0025 127.0.0.1 - - [20/Jul/2011 11:34:17] "GET /api HTTP/1.1" 200 802 0.0055 Deltacloud::ExceptionHandler::AuthenticationFailure - InvalidLogin: Cannot complete login due to an incorrect user name or password.: /usr/lib/ruby/gems/1.8/gems/rbvmomi-1.2.3/lib/rbvmomi/connection.rb:47:in `parse_response' /usr/lib/ruby/gems/1.8/gems/rbvmomi-1.2.3/lib/rbvmomi/connection.rb:71:in `call' /usr/lib/ruby/gems/1.8/gems/rbvmomi-1.2.3/lib/rbvmomi/basic_types.rb:182:in `_call' /usr/lib/ruby/gems/1.8/gems/rbvmomi-1.2.3/lib/rbvmomi/basic_types.rb:70:in `Login' /usr/lib/ruby/gems/1.8/gems/rbvmomi-1.2.3/lib/rbvmomi/vim.rb:35:in `connect' /usr/lib/ruby/gems/1.8/gems/rbvmomi-1.2.3/lib/rbvmomi/vim.rb:34:in `tap' /usr/lib/ruby/gems/1.8/gems/rbvmomi-1.2.3/lib/rbvmomi/vim.rb:34:in `connect' ././lib/deltacloud/drivers/vsphere/vsphere_driver.rb:340:in `new_client' ././lib/deltacloud/base_driver/exceptions.rb:118:in `call' ././lib/deltacloud/base_driver/exceptions.rb:118:in `safely' ././lib/deltacloud/drivers/vsphere/vsphere_driver.rb:339:in `new_client' ././lib/deltacloud/drivers/vsphere/vsphere_driver.rb:40:in `hardware_profiles' ././server.rb:492 ././lib/sinatra/rabbit.rb:113:in `instance_eval' ././lib/sinatra/rabbit.rb:113:in `GET /api/hardware_profiles' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:863:in `call' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:863:in `route' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:521:in `instance_eval' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:521:in `route_eval' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:500:in `route!' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:497:in `catch' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:497:in `route!' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:476:in `each' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:476:in `route!' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:601:in `dispatch!' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:411:in `call!' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `instance_eval' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `invoke' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `catch' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:566:in `invoke' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:411:in `call!' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:399:in `call' ././lib/sinatra/rack_date.rb:31:in `call' ././lib/sinatra/rack_accept.rb:149:in `call' ././lib/sinatra/rack_driver_select.rb:45:in `call' ././lib/sinatra/rack_matrix_params.rb:85:in `call' ././lib/sinatra/rack_runtime.rb:36:in `call' ././lib/sinatra/rack_etag.rb:41:in `call' /usr/lib/ruby/gems/1.8/gems/rack-accept-0.4.3/lib/rack/accept/context.rb:22:in `call' /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/methodoverride.rb:24:in `call' /usr/lib/ruby/gems/1.8/gems/rack-1.1.0/lib/rack/commonlogger.rb:18:in `call' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in `call' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:1005:in `synchronize' /usr/lib/ruby/gems/1.8/gems/sinatra-1.0/lib/sinatra/base.rb:979:in `call' /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:76:in `pre_process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:74:in `catch' /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:74:in `pre_process' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in `call' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1060:in `spawn_threadpool' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in `initialize' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in `new' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1057:in `spawn_threadpool' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1049:in `defer' /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:54:in `process' /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/connection.rb:42:in `receive_data' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine' /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run' /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/backends/base.rb:57:in `start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/server.rb:156:in `start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/controllers/controller.rb:80:in `start' /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/runner.rb:177:in `send' /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/runner.rb:177:in `run_command' /usr/lib/ruby/gems/1.8/gems/thin-1.2.5/lib/thin/runner.rb:143:in `run!' /usr/share/deltacloud-core/bin/deltacloudd:160 /usr/bin/deltacloudd:5:in `load' /usr/bin/deltacloudd:5 127.0.0.1 - - [20/Jul/2011 11:34:18] "GET /api/hardware_profiles HTTP/1.1" 401 171 0.1543
[root@hp-z200-07 run]# rpm -qa | grep deltacloud deltacloud-core-eucalyptus-0.3.9999-1311168001.el6.noarch deltacloud-core-rimuhosting-0.3.9999-1311168001.el6.noarch deltacloud-core-sbc-0.3.9999-1311168001.el6.noarch deltacloud-core-rhevm-0.3.9999-1311168001.el6.noarch libdeltacloud-0.9-1.el6.x86_64 rubygem-deltacloud-client-0.3.1-1.el6.noarch deltacloud-core-ec2-0.3.9999-1311168001.el6.noarch deltacloud-core-gogrid-0.3.9999-1311168001.el6.noarch deltacloud-core-opennebula-0.3.9999-1311168001.el6.noarch deltacloud-core-0.3.9999-1311168001.el6.noarch deltacloud-core-doc-0.3.9999-1311168001.el6.noarch deltacloud-core-vsphere-0.3.9999-1311168001.el6.noarch condor-deltacloud-gahp-7.6.0-5dcloud.el6.x86_64 [root@hp-z200-07 run]# ls /root/rpmbuild/RPMS/noarch/ aeolus-all-0.3.0-0.el6.20110720133919git89a6b60.noarch.rpm deltacloud-core-gogrid-0.3.9999-1311168001.el6.noarch.rpm aeolus-conductor-0.3.0-0.el6.20110720133919git89a6b60.noarch.rpm deltacloud-core-opennebula-0.3.9999-1311168001.el6.noarch.rpm aeolus-conductor-daemons-0.3.0-0.el6.20110720133919git89a6b60.noarch.rpm deltacloud-core-rhevm-0.3.9999-1311168001.el6.noarch.rpm aeolus-conductor-devel-0.3.0-0.el6.20110720133919git89a6b60.noarch.rpm deltacloud-core-rimuhosting-0.3.9999-1311168001.el6.noarch.rpm aeolus-conductor-doc-0.3.0-0.el6.20110720133919git89a6b60.noarch.rpm deltacloud-core-sbc-0.3.9999-1311168001.el6.noarch.rpm deltacloud-core-0.3.9999-1311168001.el6.noarch.rpm deltacloud-core-vsphere-0.3.9999-1311168001.el6.noarch.rpm deltacloud-core-all-0.3.9999-1311168001.el6.noarch.rpm rubygem-aeolus-image-0.0.1-1.el6.20110720133919git89a6b60.noarch.rpm deltacloud-core-doc-0.3.9999-1311168001.el6.noarch.rpm rubygem-imagefactory-console-0.4.0-1.el6.20110720133919git89a6b60.noarch.rpm deltacloud-core-ec2-0.3.9999-1311168001.el6.noarch.rpm rubygem-rbvmomi-1.2.3-2.el6.noarch.rpm deltacloud-core-eucalyptus-0.3.9999-1311168001.el6.noarch.rpm rubygem-rbvmomi-doc-1.2.3-2.el6.noarch.rpm
The vsphere driver now requires authentication before you can view hardware profiles. I assume that this is correct behavior and not a deltacloud bug. In this case, we need to not populate hardware profiles until after a provider account has been added.
Pushed to master and 0.3.x repos.
from deltacloud logs.. 10.65.201.233 - - [22/Jul/2011 12:01:59] "GET /api HTTP/1.1" 200 985 0.2070 10.65.201.233 - - [22/Jul/2011 12:01:59] "GET /api HTTP/1.1" 200 985 0.0554 10.65.201.233 - - [22/Jul/2011 12:07:47] "GET /api HTTP/1.1" 200 985 0.0101 10.65.201.233 - - [22/Jul/2011 12:07:49] "GET /api?force_auth=1 HTTP/1.1" 200 985 2.0609 10.65.201.233 - - [22/Jul/2011 12:07:49] "GET /api HTTP/1.1" 200 985 0.0099 10.65.201.233 - - [22/Jul/2011 12:07:49] "GET /api HTTP/1.1" 200 985 0.0101 10.65.201.233 - - [22/Jul/2011 12:07:53] "GET /api/hardware_profiles HTTP/1.1" 200 1063 4.5050 10.65.201.233 - - [22/Jul/2011 12:07:53] "GET /api HTTP/1.1" 200 985 0.0082 10.65.201.233 - - [22/Jul/2011 12:08:02] "GET /api/realms HTTP/1.1" 200 822 8.3707 ===========================================
moving verified bugs off the tracker
release pending...
release pending 3
release pending.. 2
perm close
closing out old bugs