search for: ovirtadmin

Displaying 17 results from an estimated 17 matches for "ovirtadmin".

2009 Jul 02
2
How to install ovirt in working environment?
...#39;, admin_dev => 'eth1' } # DHCP Configuration # Cobbler configuration $cobbler_hostname = 'station.example.ru' $cobbler_user_name = 'cobbler' $cobbler_user_password = 'cobbler' # Postgres Configuration $db_username = 'ovirt' $db_password = 'ovirtadmin' # FreeIPA configuration $realm_name = 'example.ru' $freeipa_password = 'secret' $short_ldap_dn = 'dc=example,dc=ru' $ldap_dn = 'cn=ipaConfig,cn=etc,dc=example,dc=ru' include cobbler::remote include postgres::bundled include freeipa::bundled include ovirt::setu...
2009 May 15
1
[PATCH server] add server-side groundwork for remote freeipa server
...he FreeIPA server", :regex => IP_OR_FQDN) +else + ipa_host = ovirt_host +end + +# FreeIPA Configuration +realm_name = prompt_for_answer("Enter your kerberos realm name (example: example.com):", :regex => FQDN) + at cli.say("NOTE: The following password will also be your ovirtadmin password for the web management login") +freeipa_password = prompt_for_password("Enter the admin password for FreeIPA:", "Confirm your FreeIPA admin password:") +ldap_dn = "" +ldap_dn_temp = realm_name.split(".") +ldap_dn_temp.each do |i| + ldap_dn +=...
2009 Jun 29
0
[PATCH server] Add svc_vm_actions method to VmService.
...else agent_connected(agent) end diff --git a/src/test/fixtures/permissions.yml b/src/test/fixtures/permissions.yml index 4895f3e..eed95fd 100644 --- a/src/test/fixtures/permissions.yml +++ b/src/test/fixtures/permissions.yml @@ -35,5 +35,9 @@ ovirtadmin_prodops_pool: ovirtadmin_corp_com_qa_pool: role: monitor uid: ovirtadmin - pool: corp_com_qa + pool: corp_qa_vmpool parent_permission: ovirtadmin_root +testuser_corp_com_qa_pool: + role: user + uid: testuser + pool: corp_qa_vmpool diff --git a/src/test/fixtures/vms.yml b/src/test/f...
2009 Jul 06
0
[PATCH server] UI for accumulated uptime for VMs. (revised2)
...mes diff --git a/src/test/unit/vm_test.rb b/src/test/unit/vm_test.rb index a5d6b3d..a28f183 100644 --- a/src/test/unit/vm_test.rb +++ b/src/test/unit/vm_test.rb @@ -195,4 +195,10 @@ class VmTest < ActiveSupport::TestCase def test_paginated_results assert_equal 5, Vm.paged_with_perms('ovirtadmin', Privilege::VIEW, 1, 'vms.id').size end + + def test_paginated_results_sorting + vms = Vm.paged_with_perms('ovirtadmin', Privilege::VIEW, 1, 'calc_uptime') + assert_equal(5, vms.size) + assert_equal('00:00:00',vms[0].calc_uptime) + end end -- 1.6...
2009 Jul 02
1
[PATCH server] UI for accumulated uptime for VMs. (revised)
...mes diff --git a/src/test/unit/vm_test.rb b/src/test/unit/vm_test.rb index a5d6b3d..a28f183 100644 --- a/src/test/unit/vm_test.rb +++ b/src/test/unit/vm_test.rb @@ -195,4 +195,10 @@ class VmTest < ActiveSupport::TestCase def test_paginated_results assert_equal 5, Vm.paged_with_perms('ovirtadmin', Privilege::VIEW, 1, 'vms.id').size end + + def test_paginated_results_sorting + vms = Vm.paged_with_perms('ovirtadmin', Privilege::VIEW, 1, 'calc_uptime') + assert_equal(5, vms.size) + assert_equal('00:00:00',vms[0].calc_uptime) + end end -- 1.6...
2009 Jul 06
2
[PATCH server] UI for accumulated uptime for VMs. (revised3)
...mes diff --git a/src/test/unit/vm_test.rb b/src/test/unit/vm_test.rb index a5d6b3d..a28f183 100644 --- a/src/test/unit/vm_test.rb +++ b/src/test/unit/vm_test.rb @@ -195,4 +195,10 @@ class VmTest < ActiveSupport::TestCase def test_paginated_results assert_equal 5, Vm.paged_with_perms('ovirtadmin', Privilege::VIEW, 1, 'vms.id').size end + + def test_paginated_results_sorting + vms = Vm.paged_with_perms('ovirtadmin', Privilege::VIEW, 1, 'calc_uptime') + assert_equal(5, vms.size) + assert_equal('00:00:00',vms[0].calc_uptime) + end end -- 1.6...
2009 Jun 29
3
[PATCH server] UI for accumulated uptime for VMs.
There's still a problem with this working on the cloud side, but that can be resolved in a subsequent commit. --- src/app/controllers/pool_controller.rb | 2 +- src/app/controllers/resources_controller.rb | 7 ++++++- src/app/controllers/smart_pools_controller.rb | 5 ++--- src/app/helpers/application_helper.rb | 14 ++++++++++++++ src/app/models/vm.rb
2009 Jun 29
2
One more fix
This resend includes the rebase, but fixes a problem I just noticed with nil/empty checks.
2009 Jun 29
2
Resend of Cloud UI/service patches
This is a resend of the 2-patch series from a week or so ago, needed to be rebased due to some commits on next
2009 Jun 22
2
Patch series for Cloud Vm Actions
The following two patches should be applied in the order: * [PATCH server] Add svc_vm_actions method to VmService. * [PATCH server] Cloud UI layer to initiate actions on vms. The service layer patch should work fine on its own (and not break anything), but cloud patch relies on service being there.
2009 Sep 17
1
adding a user
Good morning, I' d like to know how add users to ovirt mgmt interface. Thanks
2009 Jun 23
1
[PATCH server] added ovirt-wait4service and invokation in installer to wait for psql/ldap
...t a/installer/modules/ovirt/manifests/ovirt.pp b/installer/modules/ovirt/manifests/ovirt.pp index d953ebe..f293375 100644 --- a/installer/modules/ovirt/manifests/ovirt.pp +++ b/installer/modules/ovirt/manifests/ovirt.pp @@ -111,9 +111,15 @@ class ovirt::setup { single_exec { "create_ovirtadmin_acct" : command => "/usr/share/ovirt-server/script/grant_admin_privileges ovirtadmin", - require => [Single_Exec[db_migrate],Single_exec[set_ldap_hostname],Single_exec[set_ldap_dn]] + require => [Single_Exec[db_migrate],Single_exec[wait_for_l...
2009 May 18
0
[PATCH server] fixed functional tests after recent controller refactoring and managed node controller fixes.
...ControllerTest < Test::Unit::TestCase def test_destroy post :destroy, :id => @permission_id - assert_response :redirect - assert_redirected_to :controller => 'hardware', :action => 'show', :id => pools(:default).id - assert_equal "<strong>ovirtadmin</strong> permissions were revoked successfully" , flash[:notice] + + assert_response :success + json = ActiveSupport::JSON.decode(@response.body) + assert_equal "Permission record was successfully deleted.", json['alert'] end def test_no_perms_to_destro...
2009 May 15
0
[PATCH server] Starting of new ovirt QMF API.
...gems" +require 'monitor' +require 'dutils' +require 'daemons' +require 'logger' + +require 'qmf' +require 'socket' + +include Daemonize + +class VmQmfController + include VmService + + attr_accessor :vm + + def get_login_user + return "ovirtadmin" + end +end + + +class Ovirt + + TABLE_ID = 1 + + def initialize(agent, logger) + + @agent = agent + @logger = logger + + @ovirt_class = Qmf::SchemaObjectClass.new("org.ovirt.ovirt", "Ovirt") + @ovirt_class.add_property(Qmf::SchemaProperty.new("version&q...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...#39;#') - @help_section = help_sections[0] - @anchor = help_sections[1] - else - @help_section = @help_section - @anchor = "" - end - end - - def get_login_user - (ENV["RAILS_ENV"] == "production") ? session[:user] : "ovirtadmin" - end - - protected - # permissions checking - - def handle_perm_error(error) - handle_error(:error => error, :status => :forbidden, - :title => "Access denied") - end - - def handle_partial_success_error(error) - failures_arr = error.failures.co...
2009 Jun 30
0
[PATCH server] permit many-to-many vms / networks relationship
...est_valid_fails_without_vm_resources_pool_id @vm.vm_resource_pool_id = '' flunk 'Vm must specify vm_resources_pool_id' if @vm.valid? @@ -176,4 +171,9 @@ class VmTest < Test::Unit::TestCase def test_paginated_results assert_equal 5, Vm.paged_with_perms('ovirtadmin', Privilege::VIEW, 1, 'vms.id').size end + + def test_vm_gen_uuid + uuid = Vm::gen_uuid + flunk 'invalid generated uuid' unless uuid =~ /[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/ + end end -- 1.6.0.6
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server