Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange parsing for oneimage #140

Closed
gdhgdhgdh opened this issue Mar 25, 2015 · 0 comments · Fixed by #141
Closed

Strange parsing for oneimage #140

gdhgdhgdh opened this issue Mar 25, 2015 · 0 comments · Fixed by #141

Comments

@gdhgdhgdh
Copy link
Contributor

Given Puppet 3.7.4, CentOS 7 and hiera config:

oneimages:
  test-image:
    datastore: cephstore
    type: datablock
    persistent: true
    dev_prefix: vd
    driver: raw
    disk_type: RBD
    size: 4096
    fstype: raw

and this fragment in a Puppet manifest:

  create_resources(oneimage, hiera_hash(oneimages))

I get the following segment of output:

Debug: Prefetching cli resources for oneimage
Debug: Executing '/usr/bin/oneimage list -x'
Error: Could not set 'present' on ensure: undefined method `to_s_upcase' for :DATABLOCK:Symbol
Error: Could not set 'present' on ensure: undefined method `to_s_upcase' for :DATABLOCK:Symbol
Wrapped exception:
undefined method `to_s_upcase' for :DATABLOCK:Symbol
Error: /Stage[main]/Roles::Onevm/Oneimage[test-image]/ensure: change from absent to present failed: Could not set 'present' on ensure: undefined method `to_s_upcase' for :DATABLOCK:Symbol

All of my current disks are DATABLOCK <TYPE>2</TYPE>, and I did try to add a mapping 2 => DATABLOCK at line 100 of lib/puppet/provider/oneimage/cli.rb but it made no difference - I don't understand enough Ruby to see the logic of what's being attempted :/

Cheers,
Gavin.

tuxmea pushed a commit to tuxmea/opennebula-puppet-module that referenced this issue Mar 26, 2015
rwaffen added a commit that referenced this issue Mar 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant