Error while launching RHEL 6 instance

Asked by Sudhir

I am using a setup of a cloud controller with one compute node, able to run ubuntu prepackaged & custom images successfully without any issues. Able to ping & ssh the instance, get euca-get-console-output, while trying to launch custom built RHEL6 image getting following error :

euca-describe-images

IMAGE aki-0000008f buck/vmlinuz-2.6.32-131.0.15.el6.x86_64.manifest.xml available public x86_64 kernel
IMAGE ari-00000090 buck/initramfs-2.6.32-131.0.15.el6.x86_64.img.manifest.xml available public x86_64 ramdisk
IMAGE ami-00000091 buck/hatfinal.img.manifest.xml available public x86_64 machine aki-0000008f ari-00000090

euca-describe-instances

RESERVATION r-l92081x9 proj default
INSTANCE i-000000a7 ami-00000091 192.168.3.3 192.168.3.3 running None (proj, in01emt17) 0 m1.small 2011-07-05T19:06:41Z nova
RESERVATION r-lmgaq69f proj default
INSTANCE i-000000a6 ami-0000008e 192.168.3.4 192.168.3.4 running None (proj, in01emt17) 0 m1.small 2011-07-05T18:12:43Z nova

1. euca-get-console-output i-000000a7
UnknownError: An unknown error has occurred. Please try your request again.

2. Nova-compute.log error :

Red Hat Enterprise Linux Server release 6.1 (Santiago)\r\nKernel 2.6.32-131.0.15.el6.x86_64 on an x86_64\r\n\r\nlocalhost.localdomain login: '
2011-07-06 00:47:47,671 ERROR nova [-] Exception during message handling
(nova): TRACE: Traceback (most recent call last):
(nova): TRACE: File "/usr/lib/pymodules/python2.7/nova/rpc.py", line 190, in _receive
(nova): TRACE: msg_reply(msg_id, rval, None)
(nova): TRACE: File "/usr/lib/pymodules/python2.7/nova/rpc.py", line 296, in msg_reply
(nova): TRACE: publisher.send({'result': reply, 'failure': failure})
(nova): TRACE: File "/usr/lib/pymodules/python2.7/carrot/messaging.py", line 765, in send
(nova): TRACE: serializer=serializer)
(nova): TRACE: File "/usr/lib/pymodules/python2.7/carrot/messaging.py", line 690, in create_message
(nova): TRACE: serializer=serializer)
(nova): TRACE: File "/usr/lib/pymodules/python2.7/carrot/serialization.py", line 144, in encode
(nova): TRACE: payload = encoder(data)
(nova): TRACE: File "/usr/lib/pymodules/python2.7/anyjson/__init__.py", line 123, in <lambda>
(nova): TRACE: serialize = lambda value: implementation.serialize(value)
(nova): TRACE: File "/usr/lib/pymodules/python2.7/anyjson/__init__.py", line 83, in serialize
(nova): TRACE: return self._encode(data)
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/simplejson/__init__.py", line 261, in dumps
(nova): TRACE: return _default_encoder.encode(obj)
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/simplejson/encoder.py", line 214, in encode
(nova): TRACE: chunks = self.iterencode(o, _one_shot=True)
(nova): TRACE: File "/usr/lib/python2.7/dist-packages/simplejson/encoder.py", line 282, in iterencode
(nova): TRACE: return _iterencode(o, 0)
(nova): TRACE: UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 10422: invalid start byte
(nova): TRACE:
2011-07-06 00:47:47,672 ERROR nova.rpc [-] Returning exception 'utf8' codec can't decode byte 0xff in position 10422: invalid start byte to caller
2011-07-06 00:47:47,672 ERROR nova.rpc [-] ['Traceback (most recent call last):\n', ' File "/usr/lib/pymodules/python2.7/nova/rpc.py", line 190, in _receive\n msg_reply(msg_id, rval, None)\n', ' File "/usr/lib/pymodules/python2.7/nova/rpc.py", line 296, in msg_reply\n publisher.send({\'result\': reply, \'failure\': failure})\n', ' File "/usr/lib/pymodules/python2.7/carrot/messaging.py", line 765, in send\n serializer=serializer)\n', ' File "/usr/lib/pymodules/python2.7/carrot/messaging.py", line 690, in create_message\n serializer=serializer)\n', ' File "/usr/lib/pymodules/python2.7/carrot/serialization.py", line 144, in encode\n payload = encoder(data)\n', ' File "/usr/lib/pymodules/python2.7/anyjson/__init__.py", line 123, in <lambda>\n serialize = lambda value: implementation.serialize(value)\n', ' File "/usr/lib/pymodules/python2.7/anyjson/__init__.py", line 83, in serialize\n return self._encode(data)\n', ' File "/usr/lib/python2.7/dist-packages/simplejson/__init__.py", line 261, in dumps\n return _default_encoder.encode(obj)\n', ' File "/usr/lib/python2.7/dist-packages/simplejson/encoder.py", line 214, in encode\n chunks = self.iterencode(o, _one_shot=True)\n', ' File "/usr/lib/python2.7/dist-packages/simplejson/encoder.py", line 282, in iterencode\n return _iterencode(o, 0)\n', "UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 10422: invalid start byte\n"]

Any suggestion/help is welcome & appreciated. Please help me fix this issue.

Thanks,
Sudhir

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Sudhir
Solved:
Last query:
Last reply:
Revision history for this message
Adrian Smith (adriansmith) said :
#1

This isn't a solution to your problem but as an alternative to euca-get-console-output you can access the console logs in the file /var/lib/nova/instances/instance-<instance id>/console.log (on the machine where the instance is running). This might shed some light on what's causing the failure with euca-get-console-output.

Revision history for this message
Sudhir (av-sudhir) said :
#2

Hi Adrain,

  Thanks for the reply.

Revision history for this message
Sudhir (av-sudhir) said :
#3

The patch suggested by Vish fixed the issue - https://code.launchpad.net/~yorik-sar/nova/lp758054/+merge/59344
/+preview-diff/+files/preview.diff.

Thanks for all the help.

Regards,
Sudhir