coverage.py
by Dan Radez
I just discovered this today, not sure if anyone else has seen/used it
or would find it helpful.
coverage.py will measure your code coverage on a command you pass it.
http://nedbatchelder.com/code/coverage/
I used it to measure coverage on the audrey start client unit tests. I
wrote a short blog post on it. It was easy to use and seemed to have
pretty detailed report capabilities of the coverage of the code
executed. http://www.jaddog.org/2011/10/25/coverage-py/
Pretty interesting data I thought.
Radez
12 years, 6 months
Added README files to aeolus-image, aeolus-image-rubygem, Conductor
by Matt Wagner
Hi all,
Just wanted to mention that I added a quick README file to aeolus-image,
aeolus-image-rubygem, and Conductor, so that those who find our project
on GitHub will have some context for what they are.
Others are very welcome to modify these. I just wanted to get something
quick in place.
-- Matt
12 years, 6 months
[PATCH conductor] Increased initscript timeout to prevent false failure messages.
by Scott Seago
With the 20 second timeout, my f15 VM would report failed start times, even when conductor actually started successfully. rwsu had reported similar issues.
---
conf/aeolus-conductor | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/conf/aeolus-conductor b/conf/aeolus-conductor
index 677355c..0099c61 100755
--- a/conf/aeolus-conductor
+++ b/conf/aeolus-conductor
@@ -25,7 +25,7 @@ ADDR="${ADDR:-127.0.0.1}"
export RAILS_RELATIVE_URL_ROOT=$PREFIX
RETVAL=0
-STARTTIMEOUT=20
+STARTTIMEOUT=60
. /etc/init.d/functions
--
1.7.6.4
12 years, 6 months
[PATCH configure] v2 - Allow users to change rhevm push timeout
by Richard Su
v2 adds missing comma in json file.
Added a rhevm_push_timeout configuration parameter to give users the option to adjust the timeout as needed. The value is set in the rhevm.json file. Default is 1800 seconds.
---
conf/rhevm | 1 +
recipes/aeolus/templates/rhevm.json | 3 ++-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/conf/rhevm b/conf/rhevm
index 14d1080..860c079 100644
--- a/conf/rhevm
+++ b/conf/rhevm
@@ -11,6 +11,7 @@ parameters:
# rhevm_deltacloud_username: username@fqdn
# rhevm_deltacloud_password: password
# rhevm_deltacloud_provider: https://rhevm.server.com:8443/api
+# rhevm_push_timeout: 1800
classes:
- aeolus::conductor
- aeolus::image-factory
diff --git a/recipes/aeolus/templates/rhevm.json b/recipes/aeolus/templates/rhevm.json
index 6a2bb43..6f79ccd 100644
--- a/recipes/aeolus/templates/rhevm.json
+++ b/recipes/aeolus/templates/rhevm.json
@@ -7,6 +7,7 @@
"nfs-host": "<%= rhevm_nfs_server %>",
"api-url": "<%= rhevm_deltacloud_provider %>",
"password": "<%= rhevm_deltacloud_password %>",
- "cluster": "_any_"
+ "cluster": "_any_",
+ "timeout": <%= rhevm_push_timeout %>
}
}
\ No newline at end of file
--
1.7.6.4
12 years, 6 months
[PATCH conductor] Ensure that all strings in views of PoolFamilies are i18n compliant
by Tomas Hrcka
---
src/app/views/pool_families/_form.html.haml | 2 +-
src/app/views/pool_families/_properties.html.haml | 4 +-
.../pool_families/_provider_accounts.html.haml | 4 +-
src/app/views/pool_families/edit.html.haml | 6 ++--
src/app/views/pool_families/index.html.haml | 22 ++++++++++----------
src/app/views/pool_families/new.html.haml | 4 +-
src/app/views/pool_families/show.html.haml | 4 +-
src/config/locales/en.yml | 20 ++++++++++++++++++
8 files changed, 43 insertions(+), 23 deletions(-)
diff --git a/src/app/views/pool_families/_form.html.haml b/src/app/views/pool_families/_form.html.haml
index 6724f13..a43e6df 100644
--- a/src/app/views/pool_families/_form.html.haml
+++ b/src/app/views/pool_families/_form.html.haml
@@ -2,7 +2,7 @@
= render 'layouts/error_messages', :object => @pool_family
%fieldset
%p
- = form.label :name,'Pool Family Name'
+ = form.label :name, t("pool_families.form.pool_family_name")
= form.text_field :name, :title => 'pool_family_name', :value => @pool_family.name, :class => 'em long'
= form.fields_for :quota do |quota_form|
diff --git a/src/app/views/pool_families/_properties.html.haml b/src/app/views/pool_families/_properties.html.haml
index 41ece12..c15e40e 100644
--- a/src/app/views/pool_families/_properties.html.haml
+++ b/src/app/views/pool_families/_properties.html.haml
@@ -2,11 +2,11 @@
%thead
%tr
%th.show
- Pool Family Details
+ = t("pool_families.pool_family_details")
%th.show
%tbody
%tr
%td
- %label Name
+ %label= t("name")
%td
= @pool_family.name
diff --git a/src/app/views/pool_families/_provider_accounts.html.haml b/src/app/views/pool_families/_provider_accounts.html.haml
index ac4bdc4..eac64cd 100644
--- a/src/app/views/pool_families/_provider_accounts.html.haml
+++ b/src/app/views/pool_families/_provider_accounts.html.haml
@@ -1,10 +1,10 @@
%h3
- Provider Accounts for
+ = t("pool_families.provider_accounts_for")
= @pool_family.name
- unless @pool_family.provider_accounts.blank?
= form_tag do
- = restful_submit_tag "Remove selected", 'destroy', multi_destroy_provider_accounts_pool_families_path(:pool_family_id => @pool_family.id), 'DELETE', :id => 'delete_button', :class => 'button danger'
+ = restful_submit_tag t("pool_families.remove_selected"), 'destroy', multi_destroy_provider_accounts_pool_families_path(:pool_family_id => @pool_family.id), 'DELETE', :id => 'delete_button', :class => 'button danger'
= #submit_tag "Remove selected"
%table#provider_accounts_table.checkbox_table
diff --git a/src/app/views/pool_families/edit.html.haml b/src/app/views/pool_families/edit.html.haml
index 0faa291..ff9d3e3 100644
--- a/src/app/views/pool_families/edit.html.haml
+++ b/src/app/views/pool_families/edit.html.haml
@@ -3,12 +3,12 @@
%header.admin-page-header
%h1= @pool_family.name
#obj_actions
- Return to:
- = link_to 'Environments', pool_families_path, :class => 'rounded-link'
+ = t("pool_families.edit.return_to")
+ = link_to t("pool_families.new.environments"), pool_families_path, :class => 'rounded-link'
%section.admin-content-section.pool_family
%header
- %h2.settings Settings
+ %h2.settings= t("settings.settings")
.content
-form_for @pool_family, :url => pool_family_path(@pool_family), :html => { :method => :put, :class => 'generic' } do |f|
diff --git a/src/app/views/pool_families/index.html.haml b/src/app/views/pool_families/index.html.haml
index 3cc1061..92cc5ea 100644
--- a/src/app/views/pool_families/index.html.haml
+++ b/src/app/views/pool_families/index.html.haml
@@ -2,10 +2,10 @@
= #render :partial => 'list'
%section.admin-content-section.pool_families
%header
- %h2.pools Pool Families
+ %h2.pools= t("pool_families.pool_families")
.section-controls
#obj_actions
- = link_to "New Pool Family", new_pool_family_path, :class => 'button pill', :id => 'new_pool_family_button'
+ = link_to t("pool_families.index.new_pool_family"), new_pool_family_path, :class => 'button pill', :id => 'new_pool_family_button'
.content
- @pool_families.each do |pool_family|
@@ -21,15 +21,15 @@
= link_to "New Pool", new_pool_path, :class => 'rounded-link'
- unless pool_family.pools.blank?
%tr
- %th Pool Name
- %th Deployments
- %th Total Inst.
- %th Pending Inst.
- %th Failed Inst.
- %th Quota Used
- %th Active Inst.
- %th Available Inst.
- %th Catalog
+ %th= t("pool_families.index.pool_name")
+ %th= t("pool_families.index.deployments")
+ %th= t("pool_families.index.total_instancies")
+ %th= t("pool_families.index.pending_instances")
+ %th= t("pool_families.index.failed_instances")
+ %th= t("pool_families.index.quota_used")
+ %th= t("pool_families.index.active_instances")
+ %th= t("pool_families.index.available_instances")
+ %th= t("pool_families.index.catalog")
%th
- pool_family.pools.each do |pool|
%tr
diff --git a/src/app/views/pool_families/new.html.haml b/src/app/views/pool_families/new.html.haml
index 8535afa..496f7b6 100644
--- a/src/app/views/pool_families/new.html.haml
+++ b/src/app/views/pool_families/new.html.haml
@@ -1,9 +1,9 @@
= render :partial => 'layouts/admin_nav'
%header.admin-page-header
- %h1 New Pool Family
+ %h1= t("pool_families.index.new_pool_family")
#obj_actions
Return to:
- = link_to "Environments", pool_families_path, :class => 'rounded-link'
+ = link_to t("pool_families.new.environments"), pool_families_path, :class => 'rounded-link'
%section.admin-content-section.pool_family
.content
diff --git a/src/app/views/pool_families/show.html.haml b/src/app/views/pool_families/show.html.haml
index 103964b..26f335a 100644
--- a/src/app/views/pool_families/show.html.haml
+++ b/src/app/views/pool_families/show.html.haml
@@ -3,8 +3,8 @@
%h1= @pool_family.name
#obj_actions.button-container
.button-group
- = link_to 'Edit', edit_pool_family_path(@pool_family), :class => 'button pill'
- = button_to 'Delete', pool_family_path(@pool_family), :method => :delete, :confirm => "Are you sure you want to delete?", :class => "button pill danger", :id => 'delete_pool_family_button'
+ = link_to t('edit'), edit_pool_family_path(@pool_family), :class => 'button pill'
+ = button_to t('delete'), pool_family_path(@pool_family), :method => :delete, :confirm => t("pool_families.confirm_delete"), :class => "button pill danger", :id => 'delete_pool_family_button'
%section.admin-content-section.pool_family
.content
diff --git a/src/config/locales/en.yml b/src/config/locales/en.yml
index b812143..2d5ab14 100644
--- a/src/config/locales/en.yml
+++ b/src/config/locales/en.yml
@@ -489,9 +489,29 @@ en:
pool_families:
pool_families: Pool Families
pool_family: Pool Family
+ confirm_delete: "Are you sure you want to delete?"
+ pool_family_details: Pool Family Details
+ provider_accounts_for: Provider Accounts for
+ remove_selected: Remove selected
index:
name: Name
quota_limit: Quota Limit
+ new_pool_family: New Pool Family
+ pool_name: Pool Name
+ deployments: Deployments
+ total_instancies: "Total Inst."
+ pending_instances: "Pending Inst."
+ quota_used: "Quota Used"
+ active_instances: "Active Inst."
+ available_instances: "Available Inst."
+ failed_instances: "Failed Inst."
+ catalog: "Catalog"
+ new:
+ environments: Environments
+ edit:
+ return_to: "Return to:"
+ form:
+ pool_family_name: Pool Family Name
flash:
notice:
added: "Pool family was added."
--
1.7.6.4
12 years, 6 months
[PATCH conductor 0/2] Update Conductor config for OAuth changes
by Matt Wagner
This patch updates Conductor to be aware of the other OAuth changes. Conductor itself should be using aeolus-image-rubygem for all its communication, so this is just a configuration change to pass the OAuth settings, but I took the occasion to clean things up slightly.
It expects that my aeolus-image-rubygem changes are already in place and should (as a feature!) complain loudly if they're not:
[PATCH aeolus-image-rubygem 0/3] OAuth support for iwhd client
and
[PATCH 0/2 aeolus-image-rubygem] #2462 - OAuth-capable Factory client
Note that I made the initializer check for various configuration items, though I couldn't do this for the Warehouse one because of the way we handle configuration there. (Some day I'd like to have a nice clean Aeolus::Image::Config or something, but now's not the time.) This does not appear common, so if I'm violating some unwritten rule please let me know.
-- Matt
12 years, 6 months
[PATCH aeolus-image-rubygem 0/1] Don't load whole images into memory...
by Matt Wagner
I'm pretty sure I sent this before, and even fairly sure it was ACKed, but maybe I'm just having a bad case of deja vu.
This line causes us to load the ENTIRE IMAGE out of iwhd and into memory as an attribute. I couldn't find anything that actually used this, anyway.
-- Matt
12 years, 6 months
Still left to do...
by Mike Orazi
All,
Please take a few moments to review:
https://www.aeolusproject.org/redmine/projects/aeolus/wiki/Iteration4_Spr...
If there is something (particularly UI-facing) that you worked on this
sprint, but I didn't capture that you would like to demo, please edit
the wiki page and include yourself as the presenter.
Also, I'd like to ask that everyone takes a few moments to make sure
that all the tasks and features in redmine are set to the appropriate
status.
Finally, it looks like continuous integration is failing. I haven't had
a chance to determine if it is a false positive or not. If you have
time and can verify that tests are running locally for you I'd
appreciate it.
Thanks,
Mike
12 years, 6 months