[Openstack] [Nova] Getting error when injecting data into an image

Anton Haldin ahaldin at griddynamics.com
Thu May 24 14:47:31 UTC 2012


Sorry Patrick,

I did not understand you question about bug.
As I understood If you want to use selinux you will need to have policies
 to configure it for you application.
or do customization by setsebool

I'm using OpenStack on CentOS and I know only two way 1) disable selinux 2)
or customize it


On Thu, May 24, 2012 at 5:49 PM, Patrick Petit <
patrick.michel.petit at gmail.com> wrote:

>
>
> 2012/5/24 Pádraig Brady <P at draigbrady.com>
>
>> On 05/24/2012 01:26 PM, Patrick Petit wrote:
>> > Hi Pádraig,
>> >
>> > Thank you for your reply.
>> >
>> > I applied the suggested  libvirt_inject_partition = -1
>> >
>> > It does change things because it's not complaining about mount error
>> any more but generates further errors down the path in libvirt.py"
>>
>> > 2012-05-24 14:11:54 TRACE nova.compute.manager [instance:
>> a5d5b5c7-093a-4eb4-9d70-d6cfa2b30a31]   File
>> "/usr/lib64/python2.7/site-packages/libvirt.py", line 540, in
>> createWithFlags
>> > 2012-05-24 14:11:54 TRACE nova.compute.manager [instance:
>> a5d5b5c7-093a-4eb4-9d70-d6cfa2b30a31]     if ret == -1: raise libvirtError
>> ('virDomainCreateWithFlags() failed', dom=self)
>> > 2012-05-24 14:11:54 TRACE nova.compute.manager [instance:
>> a5d5b5c7-093a-4eb4-9d70-d6cfa2b30a31] libvirtError: internal error Process
>> exited while reading console log output: char device redirected to
>> /dev/pts/2
>> > 2012-05-24 14:11:54 TRACE nova.compute.manager [instance:
>> a5d5b5c7-093a-4eb4-9d70-d6cfa2b30a31] Could not allocate dynamic translator
>> buffer
>>
>> That's libvirt specific.
>>
>> Do you have "Virtual Machine" support enabled in your BIOS?
>> If not the fallback mode is currently disallowed by SELinux,
>> and you can enable with: setsebool -P virt_use_execmem=on
>>
>> https://bugzilla.redhat.com/show_bug.cgi?id=753589#c36
>>
>> It's quite a non specific error so it could be something else.
>>
> I am running the all OpenStack in a virtual machine under VBox.
> nova.conf has libvirt_type = qemu
>
> Disabling SELinux solved the problem.
> Shouldn't that be reported as a bug?
> Thanks a thousand times.
> Patrick
>
>
>
>>
>> cheers,
>> Pádraig.
>>
>
>
>
> --
> *"Give me a place to stand, and I shall move the earth with a lever"*
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120524/e27ecaa1/attachment.html>


More information about the Openstack mailing list