Ask Your Question
0

Unable to create image from local .iso in razor

asked 2015-05-14 15:19:13 -0600

Kranach gravatar image

Hi,

I am trying to create razor server on VirtualBox with Ubuntu12 and I have problem with creating the image. I run:

$razor create-repo --name ubuntu_precise --iso-url file:///tmp/ubuntu-12.04.2-server-amd64.iso --task ubuntu_precise_amd64

And the command went in successfully, but when I check its status:

{"spec":"http://api.puppetlabs.com/razor/v1/collections/commands/member","id":"http://192.168.58.102:8080/api/collections/commands/16","name":"16","command":"create-repo","params":{"name":"ubuntu_precise","iso-url":"file:///tmp/ubuntu-12.04.2-server-amd64.iso","task":"ubuntu_precise_amd64"},"errors":[{"exception":"RuntimeError","message":"unable to read local file /tmp/ubuntu-12.04.2-server-amd64.iso","attempted_at":"2015-05-14T21:04:39+01:00"},{"exception":"RuntimeError","message":"unable to read local file /tmp/ubuntu-12.04.2-server-amd64.iso","attempted_at":"2015-05-14T21:04:40+01:00"},{"exception":"RuntimeError","message":"unable to read local file /tmp/ubuntu-12.04.2-server-amd64.iso","attempted_at":"2015-05-14T21:04:40+01:00"},{"exception":"RuntimeError","message":"unable to read local file /tmp/ubuntu-12.04.2-server-amd64.iso","attempted_at":"2015-05-14T21:04:41+01:00"},

Any ideas? (Obviously I checked that file is there)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-09-02 12:20:18 -0600

smcclellan gravatar image

What permissions do you have on the /tmp/ubuntu-12.04.2-server-amd64.iso file? I would ensure that the file is readable by Razor's user. Something like chmod 644 /tmp/ubuntu-12.04.2-server-amd64.iso should do the trick.

Let me know if the issue persists.

Scott

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2015-05-14 15:19:13 -0600

Seen: 481 times

Last updated: Sep 02 '15