[bkearney@redhat.com: Katello API]
by Hugh O. Brock
Attached is BK's API description for Katello. Folks who are looking at
template import and identity sharing should be interested in this, I
would think...
Take care,
--Hugh
--
== Hugh Brock, hbrock(a)redhat.com ==
== Engineering Manager, Cloud BU ==
== Aeolus Project: Manage virtual infrastructure across clouds. ==
== http://aeolusproject.org ==
"I know that you believe you understand what you think I said, but I’m
not sure you realize that what you heard is not what I meant."
--Robert McCloskey
12 years, 8 months
error generating icicle...
by Kashyap Chamarthy
Hi,
I was trying to generate the package manifest(ICICLE) of an existing disk image(an oz jeos).
Ensured the guest was shutdown and tried this:
########
root@~ $ oz-generate-icicle -d 4 /export/temp/oz-test/mickey.tdl /etc/libvirt/qemu/mickey.xml
########
<snip of oz-generate-icicle stdout>
#######################################################################################
.
.
DEBUG:oz.Guest.FedoraGuest:Resetting sshd service
DEBUG:oz.Guest.FedoraGuest:Teardown step 3
DEBUG:oz.Guest.FedoraGuest:Resetting iptables rules
DEBUG:oz.Guest.FedoraGuest:Teardown step 4
DEBUG:oz.Guest.FedoraGuest:Resetting announcement to host
DEBUG:oz.Guest.FedoraGuest:Removing icicle-nc binary
DEBUG:oz.Guest.FedoraGuest:Resetting crond service
DEBUG:oz.Guest.FedoraGuest:Teardown step 5
INFO:oz.Guest.FedoraGuest:Cleaning up guestfs handle for mickey
DEBUG:oz.Guest.FedoraGuest:Syncing
DEBUG:oz.Guest.FedoraGuest:Unmounting all
DEBUG:oz.Guest.FedoraGuest:Killing guestfs subprocess
Traceback (most recent call last):
File "/usr/bin/oz-generate-icicle", line 107, in <module>
print guest.generate_icicle(open(libvirt_xml_file, 'r').read())
File "/usr/lib/python2.7/site-packages/oz/RedHat.py", line 388, in generate_icicle
self.shutdown_guest(guestaddr, libvirt_dom)
File "/usr/lib/python2.7/site-packages/oz/RedHat.py", line 432, in shutdown_guest
libvirt_dom.destroy()
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 349, in destroy
if ret == -1: raise libvirtError ('virDomainDestroy() failed', dom=self)
libvirt.libvirtError: Requested operation is not valid: domain is not running
#######################################################################################
IIUC, it succeeds till step 5 (which is un-doing the modifications done on the disk image
to allow remote access).
I didn't debug further. Shutting down gracefully fails? 'virDomainDestroy' -- is this
pulling the power plug or doing a graceful shut-down?
It is yet to get to step-6(final one) is where it's failing to generate the ICICLE
document w/ a list of pkgs.
Am I missing anything here?
Version Info:
########################
kashyap@~$ rpm -q oz
oz-0.5.0-2.fc14.noarch
########################
(NOTE:I tried this on both F14, and F15 hosts to no avail.)
PS: Also attached the complete STDOUT of running oz-generate-icicle.
--
/kashyap
12 years, 8 months
Audrey design document for the 0.4.0 effort
by Joseph VLcek
Greg Blomquist and I have put together an Audrey design document for the 0.4.0 effort.
It can be found here:
http://www.aeolusproject.org/page/Audrey-Conductor_Integration_0.4.0
Although we would appreciate input from anyone I'm requesting review feedback from the following people:
John Dunning
Hugh Brock
Chris Lalancette
Mark McLoughlin
Carl Trieloff
Brian Kearney
I am asking that all feedback be provided by COB one week from today, August 3, 2011. We are already moving forward with some development according to the presented design so direction changing feedback would be greatly appreciated as early as possible. If anyone needs more time please let us know.
I tried to provide XML examples that align with the format outlined in past discussion. If I missed that please let me know.
Thank you,
Joe and Greg
12 years, 8 months
[PATCH configure] Add javascripts dir to httpd proxy pass settings
by Tomas Sedovic
From: Tomas Sedovic <tsedovic(a)redhat.com>
This should fix the issue with javascript not being loaded in the production
setup.
---
recipes/aeolus/files/aggregator-httpd-ssl.conf | 2 ++
recipes/aeolus/files/aggregator-httpd.conf | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/recipes/aeolus/files/aggregator-httpd-ssl.conf b/recipes/aeolus/files/aggregator-httpd-ssl.conf
index 5e9a85e..839f47a 100644
--- a/recipes/aeolus/files/aggregator-httpd-ssl.conf
+++ b/recipes/aeolus/files/aggregator-httpd-ssl.conf
@@ -21,11 +21,13 @@ Alias /fonts "/usr/share/aeolus-conductor/public/fonts"
ProxyPass /conductor/images !
ProxyPass /conductor/stylesheets !
ProxyPass /conductor/errors !
+ProxyPass /conductor/javascripts !
ProxyPass /conductor http://localhost:3000/conductor
ProxyPassReverse /conductor http://localhost:3000/conductor
ProxyPassReverse /conductor/images !
ProxyPassReverse /conductor/stylesheets !
ProxyPassReverse /conductor/errors !
+ProxyPassReverse /conductor/javascripts !
</VirtualHost>
diff --git a/recipes/aeolus/files/aggregator-httpd.conf b/recipes/aeolus/files/aggregator-httpd.conf
index dc81eba..8293864 100644
--- a/recipes/aeolus/files/aggregator-httpd.conf
+++ b/recipes/aeolus/files/aggregator-httpd.conf
@@ -16,11 +16,13 @@ Alias /fonts "/usr/share/aeolus-conductor/public/fonts"
ProxyPass /conductor/images !
ProxyPass /conductor/stylesheets !
ProxyPass /conductor/errors !
+ProxyPass /conductor/javascripts !
ProxyPass /conductor http://localhost:3000/conductor
ProxyPassReverse /conductor http://localhost:3000/conductor
ProxyPassReverse /conductor/images !
ProxyPassReverse /conductor/stylesheets !
ProxyPassReverse /conductor/errors !
+ProxyPassReverse /conductor/javascripts !
</VirtualHost>
--
1.7.6
12 years, 8 months
Cucumber test status
by Matt Wagner
Hi all,
I've been working on trying to get Cucumber tests (and, in the process,
the rest of our app) to run successfully[1]. I'm still a long way from
done, and, since I'm going to be going on PTO starting tomorrow, I
wanted to make sure I shared the status of things.
I've just sent a patch with a bunch of changes which move us forward a
bit, but not nearly all the way, or even most of the way.
It bears mention that moving from cucumber-rails 0.3.2 to 1.0.2 has
caused webrat to be cease being supported[2]. I'm running into some
maybe-tangential problems. Here are the big two I'm aware of:
1.) We have tests that use the "response" object, such as to check
whether we get JSON or a partial back. This isn't really supported in
Capybara, and looking into it, it was pointed out that tests for
response type probably don't belong in Cucumber in the first place. I'm
not sure whether we want to throw them away or try to port to RSpec or
something else. Some are weird, in that we practically duplicate tests
-- once 'normally' for HTML, and then a second time by setting an Accept
header to request JSON or a partial. (Some of these are my doing.) It
probably doesn't make sense to do that if we just want to check that,
when we request JSON, we get JSON back.
2.) I think there's a bug in haml[3][4]. Throughout the app, we're
seeing double delete buttons. We had suspected that rack-restful_submit
was to blame, but it's not. (At least, not for the double inclusion.)
Instead, what's happening is that capture_haml is printing the captured
HAML on the page when it's called!
This is actually causing two separate problems. One is the
double-display of the delete, the first of which doesn't actually work.
The second problem is that its first inclusion is causing tests to
fail[5] in multiple places. It has a duplicate ID ('delete_button'), but
the first occurs outside of the <form> tag, so capybara refuses to click
it since it's not a valid button. The second button *is* in the form
(that's the whole reason for using capture_haml, in fact), but capybara
isn't seeing it. If we can un-break capture_html, I think these tests
will start passing.
I'm not entirely sure what we're to do here. There's a pull request (in
[4]), but unless we're going to try to fork and carry it (or
monkey-patch it), it's not helpful for us. I'm hoping to devise a
workaround, but I'm not sure how to go about it.
These two issues don't account for all of the test failures, but they're
the ones that I've seen in multiple places and that aren't trivially fixed.
I may send a few more fixes before the day's over, but I have no
illusions of being able to finish this today, so I'm hoping someone (or
some people) will be able to pick up where I've left off.
-- Matt
[1] Covered by https://www.aeolusproject.org/redmine/issues/2018
[2] http://comments.gmane.org/gmane.comp.programming.tools.cucumber/6808
[3] https://github.com/nex3/haml/issues/370
[4] https://github.com/nex3/haml/pull/417
[5] With the error "undefined method `node_name' for nil:NilClass
(NoMethodError)"
12 years, 8 months
[PATCH] fix raquo in pools pretty view
by Jirka Tomasek
---
src/app/views/pools/_pretty_list.haml | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/app/views/pools/_pretty_list.haml b/src/app/views/pools/_pretty_list.haml
index 87d1cce..72e97a1 100644
--- a/src/app/views/pools/_pretty_list.haml
+++ b/src/app/views/pools/_pretty_list.haml
@@ -28,7 +28,7 @@
= render :partial => 'deployments', :locals => {:deployments => pool.deployments}
%ul.content.actions
%li
- = link_to "#{pool.name} Pool details »", pool_path(pool), :class =>'pool_details'
+ = link_to "#{pool.name} Pool details »".html_safe, pool_path(pool), :class =>'pool_details'
%li
= link_to 'New Deployment', launch_new_deployments_path(:pool_id => pool.id), :class => 'button primary', :id => 'new_deployment_button'
--
1.7.6
12 years, 8 months
[PATCH conductor] Removed unused provider tabs
by Jan Provazník
From: Jan Provaznik <jprovazn(a)redhat.com>
Tabs in provider show view are apparently not used anymore.
https://www.aeolusproject.org/redmine/issues/2060
---
src/app/controllers/providers_controller.rb | 9 +-----
src/spec/controllers/provider_controller_spec.rb | 34 ----------------------
2 files changed, 1 insertions(+), 42 deletions(-)
delete mode 100644 src/app/views/providers/_hw_profiles.haml
delete mode 100644 src/app/views/providers/_realms.haml
delete mode 100644 src/spec/controllers/provider_controller_spec.rb
diff --git a/src/app/controllers/providers_controller.rb b/src/app/controllers/providers_controller.rb
index 95fbc60..3623575 100644
--- a/src/app/controllers/providers_controller.rb
+++ b/src/app/controllers/providers_controller.rb
@@ -35,8 +35,6 @@ class ProvidersController < ApplicationController
@realm_names = @provider.realms.collect { |r| r.name }
require_privilege(Privilege::VIEW, @provider)
- @tab_captions = ['Properties', 'HW Profiles', 'Realms', 'Provider Accounts', 'Services', 'History', 'Permissions']
- @details_tab = params[:details_tab].blank? ? 'properties' : params[:details_tab]
if params.delete :test_provider
test_connection(@provider)
@@ -45,12 +43,7 @@ class ProvidersController < ApplicationController
save_breadcrumb(provider_path(@provider), @provider.name)
respond_to do |format|
- format.js do
- if params.delete :details_pane
- render :partial => 'layouts/details_pane' and return
- end
- render :partial => @details_tab and return
- end
+ format.js { render :partial => 'properties' }
format.html { render :action => 'show' }
end
end
diff --git a/src/app/views/providers/_hw_profiles.haml b/src/app/views/providers/_hw_profiles.haml
deleted file mode 100644
index e69de29..0000000
diff --git a/src/app/views/providers/_realms.haml b/src/app/views/providers/_realms.haml
deleted file mode 100644
index e69de29..0000000
diff --git a/src/spec/controllers/provider_controller_spec.rb b/src/spec/controllers/provider_controller_spec.rb
deleted file mode 100644
index 4591e82..0000000
--- a/src/spec/controllers/provider_controller_spec.rb
+++ /dev/null
@@ -1,34 +0,0 @@
-require 'spec_helper'
-
-describe ProvidersController do
-
- fixtures :all
- before(:each) do
- @admin_permission = FactoryGirl.create :provider_admin_permission
- @provider = @admin_permission.permission_object
- @admin = @admin_permission.user
- activate_authlogic
- end
-
- it "should provide ui to view hardware profiles" do
- UserSession.create(@admin)
- provider = @admin_permission.permission_object
-
- get :show, :id => provider.id, :details_tab => 'hw_profiles'
- response.should be_success
- assigns[:hardware_profiles].size.should == provider.hardware_profiles.size
- response.should render_template("providers/_hw_profiles")
- end
-
- it "should provide ui to view realms" do
- UserSession.create(@admin)
- provider = @admin_permission.permission_object
-
- get :show, :id => provider.id, :details_tab => 'realms'
- response.should be_success
- assigns[:realm_names].size.should == provider.realms.size
- response.should render_template("providers/_realms")
- end
-
-
-end
--
1.7.6
12 years, 8 months