[one-users] Creating new VM fails due to Ruby error while retrieving network interfaces

Tharsan Bhuvanendran tbhuvanendran at totsy.com
Mon Nov 12 09:03:21 PST 2012


When trying to create a new VM, it's state becomes FAILED with the
following error in the log:

Mon Nov 12 16:05:52 2012 [DiM][I]: New VM state is ACTIVE.
Mon Nov 12 16:05:52 2012 [LCM][I]: New VM state is PROLOG.
Mon Nov 12 16:05:52 2012 [VM][I]: Virtual Machine has no context
Mon Nov 12 16:14:01 2012 [TM][I]: clone: Cloning
/var/lib/one/datastores/1/6885f28da9b035b7efd3fac44b7b0c4d in
hv1-dc0:/var/lib/one//datastores/0/142/disk.0
Mon Nov 12 16:14:01 2012 [TM][I]: ExitCode: 0
Mon Nov 12 16:14:01 2012 [LCM][I]: New VM state is BOOT
Mon Nov 12 16:14:01 2012 [VMM][I]: Generating deployment file:
/var/lib/one/142/deployment.2
Mon Nov 12 16:14:01 2012 [VMM][I]: Command execution fail:
/var/tmp/one/vnm/802.1Q/pre
PFZNPjxJRD4xNDI8L0lEPjxVSUQ+MDwvVUlEPjxHSUQ+MDwvR0lEPjxVTkFNRT5vbmVhZG1pbjwvVU5BTUU+PEdOQU1FPm9uZWFkbWluPC9HTkFNRT48TkFNRT53ZWItdGVzdC1wdXBwZXQ8L05BTUU+PFBFUk1JU1NJT05TPjxPV05FUl9VPjE8L09XTkVSX1U+PE9XTkVSX00+MTwvT1dORVJfTT48T1dORVJfQT4wPC9PV05FUl9BPjxHUk9VUF9VPjA8L0dST1VQX1U+PEdST1VQX00+MDwvR1JPVVBfTT48R1JPVVBfQT4wPC9HUk9VUF9BPjxPVEhFUl9VPjA8L09USEVSX1U+PE9USEVSX00+MDwvT1RIRVJfTT48T1RIRVJfQT4wPC9PVEhFUl9BPjwvUEVSTUlTU0lPTlM+PExBU1RfUE9MTD4wPC9MQVNUX1BPTEw+PFNUQVRFPjM8L1NUQVRFPjxMQ01fU1RBVEU+MjwvTENNX1NUQVRFPjxTVElNRT4xMzUyNzMzNDQ1PC9TVElAN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VUSU1FPjxWTU1NQUQ+dm1tX2t2bTwvVk1NTUFEPjxWTk1NQUQ+ODAyLjFRPC9WTk1NQUQ+PFBTVElNRT4xMzUyNzM2MzUyPC9QU1RJTUU+PFBFVElNRT4xMzUyNzM2ODQxPC9QRVRJTUU+PFJTVElNRT4xMzUyNzM2ODQxPC9SU1RJTUU+PFJFVElNRT4wPC9SRVRJTUU+PEVTVElNRT4wPC9FU1RJTUU+PEVFVElNRT4wPC9FRVRJTUU+PFJFQVNPTj4wPC9SRUFTT04+PC9ISVNUT1JZPjwvSElTVE9SWV9SRUNPUkRTPjwvVk0+
Mon Nov 12 16:14:01 2012 [VMM][I]: sudo: sorry, you must have a tty to run sudo
Mon Nov 12 16:14:01 2012 [VMM][I]:
/var/tmp/one/vnm/802.1Q/../OpenNebulaNetwork.rb:137:in
`get_interfaces': undefined method `each' for nil:NilClass
(NoMethodError)
Mon Nov 12 16:14:01 2012 [VMM][I]: from
/var/tmp/one/vnm/802.1Q/HostManaged.rb:24:in `initialize'
Mon Nov 12 16:14:01 2012 [VMM][I]: from
/var/tmp/one/vnm/802.1Q/../OpenNebulaNetwork.rb:99:in `new'
Mon Nov 12 16:14:01 2012 [VMM][I]: from
/var/tmp/one/vnm/802.1Q/../OpenNebulaNetwork.rb:99:in `from_base64'
Mon Nov 12 16:14:01 2012 [VMM][I]: from /var/tmp/one/vnm/802.1Q/pre:24
Mon Nov 12 16:14:01 2012 [VMM][I]: ExitCode: 1
Mon Nov 12 16:14:01 2012 [VMM][I]: Failed to execute network driver
operation: pre.Mon Nov 12 16:14:01 2012 [VMM][E]: Error deploying
virtual machine
Mon Nov 12 16:14:02 2012 [DiM][I]: New VM state is FAILED


However, when I execute the following command in a shell, on the
machine that oned is running, as user oneadmin, it executes
successfully:

hv1-dc0 $ /var/tmp/one/vnm/802.1Q/pre
PFZNPjxJRD4xNDI8L0lEPjxVSUQ+MDwvVUlEPjxHSUQ+MDwvR0lEPjxVTkFNRT5vbmVhZG1pbjwvVU5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Lz48L3NlcmlhbD48Y29uc29sZSB0eXBlPSdwdHknPjx0YXJnZXQgdHlwZT0nc2VyaWFsJyBwb3J0PScwJy8+PC9jb25zb2xlPjwvZGV2aWNlcz5dXT48L0RBVEE+PFRZUEU+PCFbQ0RBVEFba3ZtXV0+PC9UWVBFPjwvUkFXPjxURU1QTEFURV9JRD48IVtDREFUQVsyNV1dPjwvVEVNUExBVEVfSUQ+PFZDUFU+PCFbQ0RBVEFbNF1dPjwvVkNQVT48Vk1JRD48IVtDREFUQVsxNDJdXT48L1ZNSUQ+PC9URU1QTEFURT48SElTVE9SWV9SRUNPUkRTPjxISVNUT1JZPjxTRVE+MjwvU0VRPjxIT1NUTkFNRT5odjEtZGMwPC9IT1NUTkFNRT48SElEPjE8L0hJRD48U1RJTUU+MTM1MjczNjM1MjwvU1RJTUU+PEVUSU1FPjA8L0VUSU1FPjxWTU1NQUQ+dm1tX2t2bTwvVk1NTUFEPjxWTk1NQUQ+ODAyLjFRPC9WTk1NQUQ+PFBTVElNRT4xMzUyNzM2MzUyPC9QU1RJTUU+PFBFVElNRT4xMzUyNzM2ODQxPC9QRVRJTUU+PFJTVElNRT4xMzUyNzM2ODQxPC9SU1RJTUU+PFJFVElNRT4wPC9SRVRJTUU+PEVTVElNRT4wPC9FU1RJTUU+PEVFVElNRT4wPC9FRVRJTUU+PFJFQVNPTj4wPC9SRUFTT04+PC9ISVNUT1JZPjwvSElTVE9SWV9SRUNPUkRTPjwvVk0+

It would appear that the command `sudo /usr/sbin/brctl show` does not
output the expected lines, when run by OpenNebula.


Any help here would be greatly appreciated!


Thanks,Tharsan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121112/714ef449/attachment-0001.htm>


More information about the Users mailing list