Skip to content

Log API Call errors #79

@dann1

Description

@dann1

It can be possible that API Calls issued to OpenNebula, like one.image.allocate or one.template.allocate fail. When they do so, there is no error message, just a failure notification. To see what the problem is, we have to look into oned.log, which means going out of the scope of one-swap.

For example

3 disks on the local disk for this VM: ["/tmp/berluti.pj/conversions/berluti.pj-sda", "/tmp/berluti.pj/conversions/berluti.pj-sdb", "/tmp/berluti.pj/conversions/berluti.pj-sdc"]
Creating Images in OpenNebula
Inspecting disk...Allocating image 0 in OpenNebula
Failed to create image. Image Definition:
<IMAGE>
  <NAME>berluti.pj_0</NAME>
  <TYPE>DATABLOCK</TYPE>
  <PATH>/tmp/berluti.pj/conversions/berluti.pj-sda</PATH>
  <PERSISTENT>YES</PERSISTENT>
</IMAGE>
Waiting for image to be ready. Timeout: 120 seconds.
Inspecting disk...Allocating image 1 in OpenNebula
Failed to create image. Image Definition:
<IMAGE>
  <NAME>berluti.pj_1</NAME>
  <TYPE>DATABLOCK</TYPE>
  <PATH>/tmp/berluti.pj/conversions/berluti.pj-sdb</PATH>
  <PERSISTENT>YES</PERSISTENT>
</IMAGE>
Waiting for image to be ready. Timeout: 120 seconds.
Inspecting disk...Done (16.85s)
Injecting one-context...Running: virt-customize -q -a /tmp/berluti.pj/conversions/berluti.pj-sdc --uninstall cloud-init --copy-in /usr/share/one/context/one-context_6.10.0-3.deb:/tmp --install /tmp/one-context_6.10.0-3.deb --delete /one-context_6.10.0-3.deb --run-command 'systemctl enable network.service || exit 0'
Failed (70.92s)
Context injection command appears to have failed. Attempting fallbackRunning: virt-customize -q -a /tmp/berluti.pj/conversions/berluti.pj-sdc --uninstall cloud-init --copy-in /usr/share/one/context/one-context_6.10.0-3.deb:/tmp --firot-install /tmp/one-context_6.10.0-3.deb --run-command 'systemctl enable network.service || exit 0'
Success (34.28s)
Context will install on first boot, you may need to boot it twice.Installing qemu-guest-agent...Running: virt-customize -a /tmp/berluti.pj/conversions/berluti.pj-sdc --install qemu-guest-agent
Failed (62.84s)
Allocating image 2 in OpenNebula
Failed to create image. Image Definition:
<IMAGE>
  <NAME>berluti.pj_2</NAME>
  <TYPE>OS</TYPE>
  <PATH>/tmp/berluti.pj/conversions/berluti.pj-sdc</PATH>
  <PERSISTENT>YES</PERSISTENT>
</IMAGE>
Waiting for image to be ready. Timeout: 120 seconds.
Created images: [{:id=>nil, :os=>false}, {:id=>nil, :os=>false}, {:id=>nil, :os=>"linux"}]
Adding 2 NICs, assigning networks from 1

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions