Bug 1428642 - version 4.1.3 - uninitialized constant OvirtSDK4::MigrationOptionsReader::AutoConverge
Summary: version 4.1.3 - uninitialized constant OvirtSDK4::MigrationOptionsReader::Aut...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine-sdk-ruby
Classification: oVirt
Component: General
Version: 4.1.3
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ovirt-4.1.1
: 4.1.4
Assignee: Juan Hernández
QA Contact: Lukas Svaty
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-03 02:50 UTC by marcus young
Modified: 2017-04-21 09:51 UTC (History)
3 users (show)

Fixed In Version: ovirt-engine-sdk-4.1.4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-21 09:51:05 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.1+
rule-engine: planning_ack+
rule-engine: devel_ack+
pstehlik: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 73505 0 master MERGED Read correctly attributes with enum values 2020-08-13 15:15:51 UTC
oVirt gerrit 73507 0 sdk_4.0 MERGED Read correctly attributes with enum values 2020-08-13 15:15:51 UTC
oVirt gerrit 73509 0 sdk_4.1 MERGED Read correctly attributes with enum values 2020-08-13 15:15:51 UTC
oVirt gerrit 73525 0 master MERGED ovirt-4.1.1_rc1: Add Ruby SDK version 4.1.4 2020-08-13 15:15:51 UTC

Description marcus young 2017-03-03 02:50:25 UTC
Description of problem:

/home/myoung/.vagrant.d/gems/2.2.5/gems/ovirt-engine-sdk-4.1.3/lib/ovirtsdk4/readers.rb:9803:in `read_one': uninitialized constant 


Version-Release number of selected component (if applicable):

sdk 4.1.3
engine oVirt Engine Version: 4.1.0.4-1.el7.centos

How reproducible:
always

Steps to Reproduce:
1. create VM using sdk


Actual results:
uninitialized constant OvirtSDK4::MigrationOptionsReader::AutoConverge

Expected results:
no errors

Additional info:
reverting gem dependency to `=4.1.1` instead of `~>4.1.1` (not using latest) works

 myoung  dev    ~  repos  github  vagrant-ovirt4  jenkins  ✔  2✎  ❓  $  vagrant up
Bringing machine 'default' up with 'ovirt4' provider...
==> default: Creating VM with the following settings...
==> default:  -- Name:          test
==> default:  -- Cluster:       Default
==> default:  -- Template:      vagrant-centos7
==> default:  -- Console Type:
==> default:  -- Memory:
==> default:  ---- Memory:      1024 MB
==> default:  ---- Maximum:     1024 MB
==> default:  ---- Guaranteed:  1024 MB
==> default:  -- Cpu:
==> default:  ---- Cores:       1
==> default:  ---- Sockets:     1
==> default:  ---- Threads:     1
==> default:  -- Cloud-Init:    false
#<OvirtSDK4::XmlReader:0x00000003e2e0e8>
==> default: An error occured. Recovering..
==> default: VM is not created. Please run `vagrant up` first.
/home/myoung/.vagrant.d/gems/2.2.5/gems/ovirt-engine-sdk-4.1.3/lib/ovirtsdk4/readers.rb:9803:in `read_one': uninitialized constant OvirtSDK4::MigrationOptionsReader::AutoConverge (NameError)
        from /home/myoung/.vagrant.d/gems/2.2.5/gems/ovirt-engine-sdk-4.1.3/lib/ovirtsdk4/readers.rb:17244:in `read_one'
        from /home/myoung/.vagrant.d/gems/2.2.5/gems/ovirt-engine-sdk-4.1.3/lib/ovirtsdk4/services.rb:36278:in `add'
        from /home/myoung/.vagrant.d/gems/2.2.5/gems/vagrant-ovirt4-1.1.0/lib/vagrant-ovirt4/action/create_vm.rb:67:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/action/warden.rb:34:in `call'
        from /home/myoung/.vagrant.d/gems/2.2.5/gems/vagrant-ovirt4-1.1.0/lib/vagrant-ovirt4/action/set_name_of_domain.rb:17:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/action/warden.rb:34:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/action/warden.rb:34:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/action/warden.rb:34:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/action/builder.rb:116:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/action/runner.rb:66:in `block in run'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/util/busy.rb:19:in `busy'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/action/runner.rb:66:in `run'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/action/builtin/call.rb:53:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/action/warden.rb:34:in `call'
        from /home/myoung/.vagrant.d/gems/2.2.5/gems/vagrant-ovirt4-1.1.0/lib/vagrant-ovirt4/action/connect_ovirt.rb:31:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/action/warden.rb:34:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/action/warden.rb:34:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/action/builder.rb:116:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/action/runner.rb:66:in `block in run'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/util/busy.rb:19:in `busy'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/action/runner.rb:66:in `run'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/machine.rb:225:in `action_raw'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/machine.rb:200:in `block in action'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/environment.rb:567:in `lock'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/machine.rb:186:in `call'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/machine.rb:186:in `action'
        from /opt/vagrant/embedded/gems/gems/vagrant-1.9.2/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'


 myoung  dev    ~  repos  github  vagrant-ovirt4  jenkins  ✔  3✎  ❓  $  gem build *.gemspec
  Successfully built RubyGem
  Name: vagrant-ovirt4
  Version: 1.1.0
  File: vagrant-ovirt4-1.1.0.gem

 myoung  dev    ~  repos  github  vagrant-ovirt4  jenkins  ✔  3✎  ❓  $  vagrant plugin uninstall vagrant-ovirt4
Uninstalling the 'vagrant-ovirt4' plugin...
Successfully uninstalled ovirt-engine-sdk-4.1.3
Successfully uninstalled vagrant-ovirt4-1.1.0

 myoung  dev    ~  repos  github  vagrant-ovirt4  jenkins  ✔  3✎  ❓  $  vagrant plugin install vagrant-ovirt4-1.1.0.gem
Installing the 'vagrant-ovirt4-1.1.0.gem' plugin. This can take a few minutes...
Fetching: ovirt-engine-sdk-4.1.1.gem (100%)
Building native extensions.  This could take a while...
Installed the plugin 'vagrant-ovirt4 (1.1.0)'!



 myoung  dev    ~  repos  github  vagrant-ovirt4  jenkins  ✔  3✎  ❓  $  vagrant up
Bringing machine 'default' up with 'ovirt4' provider...
==> default: Creating VM with the following settings...
==> default:  -- Name:          test
==> default:  -- Cluster:       Default
==> default:  -- Template:      vagrant-centos7
==> default:  -- Console Type:
==> default:  -- Memory:
==> default:  ---- Memory:      1024 MB
==> default:  ---- Maximum:     1024 MB
==> default:  ---- Guaranteed:  1024 MB
==> default:  -- Cpu:
==> default:  ---- Cores:       1
==> default:  ---- Sockets:     1
==> default:  ---- Threads:     1
==> default:  -- Cloud-Init:    false
==> default: Waiting for VM to become "ready" to start...
==> default: Starting VM.
==> default: Waiting for VM to get an IP address...
==> default: Machine is booted and ready for use!
==> default: Rsyncing folder: /home/myoung/.kitchen/cache/ => /tmp/omnibus/cache
==> default: Setting hostname...
    default:
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default:
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...

Comment 1 Juan Hernández 2017-03-03 11:10:03 UTC
Marcus, I have just released version 4.1.4 to rubygems.org. It should fix this issue. Would appreciate if you can verify it.

Comment 2 marcus young 2017-03-03 13:18:13 UTC
Juan that got it

 myoung  dev    ~  repos  github  vagrant-ovirt4  jenkins  ✎  $  vagrant plugin install *.gem
Installing the 'vagrant-ovirt4-1.1.0.gem' plugin. This can take a few minutes...
Fetching: ovirt-engine-sdk-4.1.4.gem (100%)
Building native extensions.  This could take a while...
Fetching: filesize-0.1.1.gem (100%)
Installed the plugin 'vagrant-ovirt4 (1.1.0)'!


 myoung  dev    ~  repos  github  vagrant-ovirt4  jenkins  2✎  $  bundle exec kitchen test all -p
-----> Starting Kitchen (v1.15.0)
-----> Cleaning up any prior instances of <static-network-centos7>
-----> Destroying <static-network-centos7>...
       Finished destroying <static-network-centos7> (0m0.00s).
-----> Cleaning up any prior instances of <dynamic-network-centos7>
-----> Destroying <dynamic-network-centos7>...
       Finished destroying <dynamic-network-centos7> (0m0.00s).
-----> Testing <dynamic-network-centos7>
-----> Creating <dynamic-network-centos7>...
-----> Cleaning up any prior instances of <multiple-networks-centos7>
-----> Destroying <multiple-networks-centos7>...
-----> Testing <static-network-centos7>
-----> Creating <static-network-centos7>...
       Bringing machine 'default' up with 'ovirt4' provider...
       ==> default: Creating VM with the following settings...
       ==> default:  -- Name:          dynamic-network-centos7.vagrantup.com
       ==> default:  -- Cluster:       Default
       ==> default:  -- Template:      vagrant-centos7
       ==> default:  -- Console Type:
       ==> default:  -- Memory:
       ==> default:  ---- Memory:      1024 MB
       ==> default:  ---- Maximum:     1024 MB
       ==> default:  ---- Guaranteed:  1024 MB
       ==> default:  -- Cpu:
       ==> default:  ---- Cores:       1
       ==> default:  ---- Sockets:     1
       ==> default:  ---- Threads:     1
       ==> default:  -- Cloud-Init:    true
       ==> default: Waiting for VM to become "ready" to start...
       ==> default: Starting VM.
       ==> default: Waiting for VM to get an IP address...

Comment 3 Lukas Svaty 2017-04-04 13:54:32 UTC
current version in last build is 4.1.5-1.el7ev.ppc64le

based on this fact and that this was verified by comment#2 in previous version moving to verified


Note You need to log in before you can comment on or make changes to this bug.