Improvements to Aeolus website
by Francesco Vollero
Hi Justin,
i would like to give you few things I guess should be done asap in our website so
that actually fit into website roadmap:
- Seems that our website is hard to find through the keywords or our goal mission in the search engines
- The navigation through the website is difficult
- The Aeolus license is missing and should be advertised more
- The roadmap is missing or more clearly, is hard to find where is, so people cannot get the content
easily
What you think about it? You think is worth to focus on that ?
Cheers,
Francesco Vollero
11 years, 5 months
fedora desktop / cloud integration
by Mo Morsi
At today's Fedora Cloud SIG meeting, we discussed something akin to this
[1] but for cloud instances. Deltacloud [2] could be used to manage
connections to different clouds and we can provide a simple gui dialog
to configure providers. This would simplify the Fedora desktop / cloud
integration experience and make deploying to the cloud from Fedora
completely seamless.
Matt Miller suggested we add a feature but unfortunately I'm short on
cycles, though it was mentioned that if we can come up with a good story
/ proposal for Fedora 19, something might be able to be arraigned. We
also can see about pulling in the gnome design and implementation teams
to help us out with this story.
Thoughts? Unless there are any strong objections, I'll write up a formal
story / proposal for the Fedora wiki and we can take it from there.
-Mo
[1] http://blogs.gnome.org/mclasen/2012/09/07/a-look-at-gnome-boxes/
[2] http://deltacloud.apache.org/
11 years, 5 months
[PATCH aeolus-cli] BZ #869484: create/build image from aeolus-image cli failing
by Jason Guiditta
https://bugzilla.redhat.com/show_bug.cgi?id=869484
Ye olde CDATA again.
---
lib/aeolus_cli/command/build_command.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/aeolus_cli/command/build_command.rb b/lib/aeolus_cli/command/build_command.rb
index c219c18..300d697 100644
--- a/lib/aeolus_cli/command/build_command.rb
+++ b/lib/aeolus_cli/command/build_command.rb
@@ -38,7 +38,7 @@ module Aeolus
validate_xml_schema(template)
image = Aeolus::CLI::Image.new({
:targets => @options[:target] * ",",
- :tdl => "<![CDATA[#{template}]]>",
+ :tdl => "#{template}",
:environment => @options[:environment]})
image.save!
--
1.7.7.6
11 years, 5 months
[PATCH Conductor] RM3837 Browser compatibility issues
by Brian McLaughlin
This patch resolves the following browser compatibility issues in Conductor:
1. Corrects the alignment of the Gear dropdown on the Logs page
- Visible in Chrome, Firefox, Safari, IE8, IE9, IE10
2. Non-admin user card was mis-aligned
- Visible in Chrome, Firefox, Safari, IE8, IE9, IE10
3. Green Deployment Launch button was missing it's background image
- Visible in IE8, IE9
11 years, 5 months
a not-so-technical user's experience with Conductor
by Martin Povolny
Setup: Fedora 16 RPMs, on top of that Conductor from githup so that I
don't crash into what is already fixed.
Story:
---------------------------
Log in, adding a provider
http://192.168.122.174:3000/providers
#1 error: "Provider name must start with 'ec2-'"
WTF? why? the UI allows any name! (was told, this is fixed somewhere)
Under Providers I click "Provider Accounts" and start adding an account:
1 error prohibited this Provider Account from being saved
#2 error: "Cannot add the Provider Account." -- WTF message? tell's me nothing
Conductor (Rails) log, tells me nothing, but a quick look into /var/log/messages!! to find out I forgot to disable selinux
(DC already fixed the logging AFAIK)
Next I Navigate to Content; I see a catalog "Default" I click that
I see "New Deployable"
Now I remember my previous experience I know, that to make a deployable I need an Image!
#3 problem: the UI should tell me I need an image or I'm lost at this point
So I navigate back, looking for a place to work with images. Image -- that is probably "Content" so look there, not in "Environment"
nothing there
ok, I look into "Environments", it brings me to http://192.168.122.174:3000/pool_families (pool_families) ;-)
Wow, theres a greyed-out "Images" let's click
Now failed again I see an empty list,
#4 problem NO BUTTON to create an image from listing of images! WTF?
Ok, back to Environments, it has to be there, if it's not under Images
"Default" is clickable --> click and go to "http://192.168.122.174:3000/pools/1"
There's a text "Catalog Images" I click that it resembles "Images" I need an image to make a deployable, remember?
#5 problem shoot me! -- no link or button "New image" :-(
Back to http://192.168.122.174:3000/pool_families now I notice "Import Image", "New Image"
I choose "New Image" --> http://192.168.122.174:3000/images/new?environment=1
There I read: "Choose one of the following options to upload or import an image into the "default Environment"."
Below is written "Choose an Image Template file:" but who reads all the text?
As an average linux user who is prompted for an image I provide an ISO image of the latest Ubuntu.
#6 problem: after a dozen of minutes I get an empty browser window; the Rails log reads:
Rendered layouts/_admin_nav.html.haml (19.5ms)
Rendered images/edit_xml.html.haml within layouts/application (365004.5ms)
Rendered layouts/_new_notification.html.haml (45.3ms)
Rendered layouts/_footer.html.haml (882.3ms)
Rendered layouts/converge-ui/_header_layout.haml (4.9ms)
Rendered layouts/converge-ui/_base.haml (41565.7ms)
Rendered layouts/converge-ui/shell_layout.haml (201594.5ms)
Completed 200 OK in 753340ms (Views: 743206.8ms | ActiveRecord: 5.9ms)
terminate called after throwing an instance of 'std::runtime_error'
what(): no allocation for outbound data
Aborted
hint: 1) add a size limit; 2) guess content type before starting XML parser
I restart Conductor, lost again -- where do I add an image?
#7 problem: in env/images there's a link to add image but in the list of images there's none; that is not intuitive
Next I manage to put in a valid XML and actually have a valid image
Next I found a button to create a Deployable from an image.
Next I get a page saying: "Images are not Built" and no hint what to do about it
http://192.168.122.174:3000/catalogs/1/deployables/1
There's a green button, it reads "Images valid" -- green is good, let's click it!
But it leads to a page to edit deployable XML
http://192.168.122.174:3000/catalogs/1/deployables/1 ---> click "Images Valid" (green button) ----> http://192.168.122.174:3000/catalogs/1/deployables/1/edit?edit_xml=true
#8 problem: "Images Valid" should read "edit the deployable XML" and is probably should not be green
On the page under "Build Status" there's "Images are not Built" with CAPITAL B. But there's no hint what shall I do about it.
I got an advice from Jenik: "for now, got to images show page (env -> images)"
http://192.168.122.174:3000/images/067f4d76-19fa-11e2-8f46-525400b4f6a2
there's a grey button there. It reads "Build". I clicked it
Failed. Response code = 500. Response message = Internal Server Error.
/home/martin/.gem/ruby/1.9.1/gems/activeresource-3.2.3/lib/active_resource/connection.rb:148:in `handle_response'
/home/martin/.gem/ruby/1.9.1/gems/activeresource-3.2.3/lib/active_resource/connection.rb:115:in `request'
/home/martin/.gem/ruby/1.9.1/bundler/gems/aeolus-image-rubygem-4bffe3f60ce3/lib/aeolus_image/active_resource_oauth_client.rb:30:in `request_with_oauth'
/home/martin/.gem/ruby/1.9.1/gems/activeresource-3.2.3/lib/active_resource/connection.rb:92:in `block in put'
/home/martin/.gem/ruby/1.9.1/gems/activeresource-3.2.3/lib/active_resource/connection.rb:218:in `with_auth'
/home/martin/.gem/ruby/1.9.1/gems/activeresource-3.2.3/lib/active_resource/connection.rb:92:in `put'
probably some component missing, the 'intuitive' code of 500 suggests I forgot to install or configure image-factory
problem was with oauth credentials
#8 problem: there should be a nice error message telling me about auth problem
#9 problem also the image factory log is a mess. User should get something like "invalid credentials for image factory, configure the image factory, please"
2012-10-17 09:12:04,299 INFO root thread(MainThread) Message: Launched as daemon...
2012-10-17 09:12:04,394 DEBUG root thread(MainThread) Message: Unable to start faulthandler - multi-thread tracebacks will not be available
Traceback (most recent call last):
File "/usr/bin/imagefactory", line 176, in main
import faulthandler
ImportError: No module named faulthandler
2012-10-17 09:12:04,433 DEBUG paste.httpserver.ThreadPool thread(worker 0) Message: Started new worker 139691243161344: Initial worker pool
2012-10-19 16:43:36,291 ERROR imgfac.rest.imagefactory thread(worker 4) Message: 'oauth_consumer_key'
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/imgfac/rest/imagefactory.py", line 49, in validate_two_leg_oauth
oauth_consumer = Consumer(request.params['oauth_consumer_key'])
File "/usr/lib/python2.7/site-packages/imgfac/rest/bottle.py", line 1528, in __getitem__
def __getitem__(self, key): return self.dict[key][-1]
KeyError: 'oauth_consumer_key'
(END)
Failed. Response code = 500. Response message = Internal Server Error.
/home/martin/.gem/ruby/1.9.1/gems/activeresource-3.2.3/lib/active_resource/connection.rb:148:in `handle_response'
/home/martin/.gem/ruby/1.9.1/bundler/gems/aeolus-image-rubygem-4bffe3f60ce3/lib/aeolus_image/active_resource_oauth_client.rb:52:in `request_with_oauth'
/home/martin/.gem/ruby/1.9.1/gems/activeresource-3.2.3/lib/active_resource/connection.rb:92:in `block in put'
/home/martin/.gem/ruby/1.9.1/gems/activeresource-3.2.3/lib/active_resource/connection.rb:218:in `with_auth'
mpovolny: Hrm, in that case, I wonder if oauth.json was wrong.
after I copied the credentials I got:
2012-10-19 16:57:22,683 ERROR imgfac.rest.imagefactory thread(worker 9) Message: 'NoneType' object has no attribute 'encode'
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/imgfac/rest/imagefactory.py", line 50, in validate_two_leg_oauth
oauth_server.verify_request(req, oauth_consumer, None)
File "/usr/lib/python2.7/site-packages/oauth2/__init__.py", line 712, in verify_request
self._check_signature(request, consumer, token)
File "/usr/lib/python2.7/site-packages/oauth2/__init__.py", line 765, in _check_signature
valid = signature_method.check(request, consumer, token, signature)
File "/usr/lib/python2.7/site-packages/oauth2/__init__.py", line 816, in check
built = self.sign(request, consumer, token)
File "/usr/lib/python2.7/site-packages/oauth2/__init__.py", line 841, in sign
key, raw = self.signing_base(request, consumer, token)
File "/usr/lib/python2.7/site-packages/oauth2/__init__.py", line 833, in signing_base
key = '%s&' % escape(consumer.secret)
File "/usr/lib/python2.7/site-packages/oauth2/__init__.py", line 158, in escape
return urllib.quote(s.encode('utf-8'), safe='~')
AttributeError: 'NoneType' object has no attribute 'encode'
probably did not copy them right, but again, I would expect a sane error message
Finally I disabled oauth, clicked the button and built the image. More
fun to come.
--
Martin Povolny <mpovolny(a)redhat.com>
tel. +420 777714458
11 years, 5 months
[PATCH aeolus-conductor] BZ:867353 Fixed template XPath in Images Controller
by Martyn Taylor
From: Martyn Taylor <mtaylor(a)redhat.com>
The strange XPath in the images controller can only have been there
to support this CDATA attribute that has appeared in our API for
wrapping templates.
The CDATA XML attribute is used to specify data with in a document
that is not to be parsed. Is is true that our templates are stored
as XML strings in our template model, however, we do not need nor
want a user to know about this. It is an implementation detail only.
---
src/app/controllers/api/images_controller.rb | 4 +-
src/spec/controllers/api/images_controller_spec.rb | 47 +------------------
2 files changed, 5 insertions(+), 46 deletions(-)
diff --git a/src/app/controllers/api/images_controller.rb b/src/app/controllers/api/images_controller.rb
index dfe627b..49227b5 100644
--- a/src/app/controllers/api/images_controller.rb
+++ b/src/app/controllers/api/images_controller.rb
@@ -150,10 +150,10 @@ module Api
!doc.xpath("/image/tdl").empty? &&
!doc.xpath("/image/environment").empty?
- template = Nokogiri::XML(doc.xpath("/image/tdl").text).xpath("/template")
+ template = doc.xpath("/image/tdl/template").to_xml
{ :type => :build,
- :params => { :template => template.to_s,
+ :params => { :template => template,
:targets => doc.xpath("/image/targets").text,
:environment => doc.xpath("/image/environment").text}
}
diff --git a/src/spec/controllers/api/images_controller_spec.rb b/src/spec/controllers/api/images_controller_spec.rb
index 85a5313..f2662a6 100644
--- a/src/spec/controllers/api/images_controller_spec.rb
+++ b/src/spec/controllers/api/images_controller_spec.rb
@@ -226,8 +226,7 @@ describe Api::ImagesController do
context "when trying to build image" do
before(:each) do
- tpl =%q{<template>
- <name>Fedora 15 Template</name>
+ tpl =%q{<name>Fedora 15 Template</name>
<os>
<name>Fedora</name>
<version>15</version>
@@ -237,13 +236,12 @@ describe Api::ImagesController do
</install>
<rootpw>p@ssw0rd</rootpw>
</os>
- <description>A Fedora 15 Image Factory Template</description>
- </template>}
+ <description>A Fedora 15 Image Factory Template</description>}
xml = Nokogiri::XML::Builder.new do
image {
targets "mock"
tdl {
- cdata(tpl)
+ template tpl
target "mock"
}
environment "default"
@@ -312,45 +310,6 @@ describe Api::ImagesController do
it { response.headers['Content-Type'].should include("application/xml") }
end
- context "when trying to build image with incorrect template XML without CDATA" do
- before(:each) do
- tpl =%q{template>
- <name>Fedora 15 Template</name>
- <os>
- <name>Fedora</name>
- <version>15</version>
- <arch>x86_64</arch>
- <install type='url'>
- <url>http://download.fedoraproject.org/pub/fedora/linux/releases/15/Fedora/x86...</url>
- </install>
- <rootpw>p@ssw0rd</rootpw>
- </os>
- <description>A Fedora 15 Image Factory Template</description>
- </template>}
- xml = %{<image>
- <targets>mock</targets>
- <tdl>
- #{tpl}
- <target>mock</target>
- </tdl>
- <environment>default</environment>
- </image>}
- Aeolus::Image::Factory::Image.stub(:new).and_return(@image)
- Aeolus::Image::Warehouse::Image.stub(:create!).and_return(@image)
- Aeolus::Image::Warehouse::Template.stub(:create!).and_return(@image)
- @image.stub(:targets=).and_return(@image)
- @image.stub(:template=).and_return(@image)
- @image.stub(:save!)
- Aeolus::Image::Factory::TargetImage.stub(:status).and_return(nil)
-
- request.env['RAW_POST_DATA'] = xml
- post :create
- end
-
- it { response.response_code.should == 400 }
- it { response.headers['Content-Type'].should include("application/xml") }
- end
-
context "when trying to import image" do
before(:each) do
xml = Nokogiri::XML::Builder.new do
--
1.7.6.4
11 years, 5 months
[PATCH conductor] BZ 865833 - Prevent editting vsphere provider name
by jzigmund@redhat.com
From: Jozef Zigmund <jzigmund(a)redhat.com>
Used the same way as for rhevm provider name
https://bugzilla.redhat.com/show_bug.cgi?id=865833
---
src/app/models/provider.rb | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/app/models/provider.rb b/src/app/models/provider.rb
index fb2ac84..24828e1 100644
--- a/src/app/models/provider.rb
+++ b/src/app/models/provider.rb
@@ -74,7 +74,9 @@ class Provider < ActiveRecord::Base
false
end
when "RHEV-M"
- load_rhevm_json(name)
+ load_json(name, "rhevm")
+ when "VMware vSphere"
+ load_json(name, "vsphere")
when "Amazon EC2"
if name.starts_with?("ec2-")
true
@@ -300,8 +302,8 @@ class Provider < ActiveRecord::Base
true
end
- def load_rhevm_json(provider_name)
- path_to_json = "/etc/imagefactory/rhevm.json"
+ def load_json(provider_name, provider_type)
+ path_to_json = "/etc/imagefactory/#{provider_type}.json"
if File.exists?(path_to_json)
json = File.read(path_to_json)
json_hash = ActiveSupport::JSON.decode(json)
--
1.7.11.7
11 years, 5 months
New forms and integration with simple_form
by Imre Farkas
The following meeting has been modified:
Subject: New forms and integration with simple_form
Organizer: "Imre Farkas" <ifarkas(a)redhat.com>
Location: "Brno 2 - 3rd floor - Thuridhartindur Room" <brno2-3fl-thuridhartindur(a)redhat.com> [MODIFIED]
Resources: "Brno 2 - 3rd floor - Thuridhartindur Room" <brno2-3fl-thuridhartindur(a)redhat.com> (Site: BRQ, Building: FBCII, Floor: 3, Room: Thuridhartindur) [MODIFIED]
Time: Monday, October 22, 2012, 4:00:00 PM - 4:30:00 PM GMT +01:00 Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna
Required: jcoufal(a)redhat.com; katello-devel(a)redhat.com; aeolus-devel(a)lists.fedorahosted.org; converge-ui-devel(a)redhat.com; jcarrill(a)redhat.com; tzumainn(a)redhat.com; afitzsim(a)redhat.com; jrist(a)redhat.com
Optional: jzigmund(a)redhat.com
*~*~*~*~*~*~*~*~*~*
Conference Code: 3112661927
Elluminate: https://sas.elluminate.com/m.jnlp?sid=819&password=M.36C2DE4ECF0E2FBF0B15...
11 years, 5 months