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

Storage issues from provisioning from a template or existing profile #50

Open
thebsdbox opened this issue Sep 6, 2016 · 1 comment
Open

Comments

@thebsdbox
Copy link
Collaborator

thebsdbox commented Sep 6, 2016

If a template is used to provision new profiles with attached San Storage, there is an error in the lib/chef/provisioning/oneview/san_storage.rb as it attempts to sanitize the storage as if it was an existing profile.

    Error executing action `allocate` on resource 'machine[virt01]'
    ================================================================================

    RuntimeError
    ------------
    virt01: Should know if volume is sharable:
    {"storagePaths"=>[{"storageTargetType"=>"Auto", "storageTargets"=>[], "connectionId"=>5, "isEnabled"=>true}, {"storageTargetType"=>"Auto", "storageTargets"=>[], "connectionId"=>6, "isEnabled"=>true}], "lun"=>"0", "lunType"=>"Manual", "volumeUri"=>"/rest/storage-volumes/37B173EB-E621-48C1-91E9-B991F3A578FC", "volumeStoragePoolUri"=>"/rest/storage-pools/A3616F3F-D3C3-4047-A583-627F7F1E5A24", "volumeStorageSystemUri"=>"/rest/storage-systems/TXQ1000307", "id"=>1}

It's looking for "isShareable"=>true, however it would need to query the volumeURI for this.

@thebsdbox
Copy link
Collaborator Author

Line 32 in create_machine.rb "update_san_info(machine_spec, template)" needs looking at essentially, provisioning from a template with storage works fine with it removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants