Re: [Openstack] Problems with re-bundle

2011-06-10 Thread Thierry Carrez
Scott Moser wrote:
> On Tue, 7 Jun 2011, Muhammad Atif wrote:
>> 1- Downloaded the ubuntu1010 image from openstack site as follows:
>> wget
>> http://c0179148.cdn1.cloudfiles.rackspacecloud.com/ubuntu1010-UEC-localuser-image.tar.gz
> 
> Does anyone know what this image is ?
> I'm guessing that Muhammad found reference to it from
> http://wiki.openstack.org/GettingImages . The page there mentions
> http://uec-images.ubuntu.com, but the code snippit points to something on
> http://c0179148.cdn1.cloudfiles.rackspacecloud.com/ .
> 
> I'm happy that people find the uec-images.ubuntu.com images useful, and
> one reason that we put the files there is so that people can easily use
> them as a starting point for recreating images.
> 
> However, if there is something that was insufficient about the official
> ubuntu images, I'd like to know what it was so that we can make them
> better.  What was it that caused someone to create
> "ubuntu1010-UEC-localuser-image.tar.gz" ?

Reading the wiki it looks like it's an "Ubuntu 10.10 x64_86 image (no
ramdisk) modified with local user account". Apparently it sets the
ubuntu user password to "ubuntu", and allows passwordful SSH. Given the
rest of the instructions that should not be necessary, so this should
probably be fixed.

-- 
Thierry Carrez (ttx)
Release Manager, OpenStack

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Problems with re-bundle

2011-06-10 Thread Diego Parrilla Santamaría
Hi all,

We can reproduce the problem in our environments with the images downloaded
from  http://uec-images.ubutu.com :-(

Diego
-- 
 Diego Parrilla
*CEO*
*www.stackops.com | * diego.parri...@stackops.com** | +34 649 94 43 29 |
skype:diegoparrilla*
* 
*

*

 ADVERTENCIA LEGAL 
Le informamos, como destinatario de este mensaje, que el correo electrónico
y las comunicaciones por medio de Internet no permiten asegurar ni
garantizar la confidencialidad de los mensajes transmitidos, así como
tampoco su integridad o su correcta recepción, por lo que STACKOPS
TECHNOLOGIES S.L. no asume responsabilidad alguna por tales circunstancias.
Si no consintiese en la utilización del correo electrónico o de las
comunicaciones vía Internet le rogamos nos lo comunique y ponga en nuestro
conocimiento de manera inmediata. Este mensaje va dirigido, de manera
exclusiva, a su destinatario y contiene información confidencial y sujeta al
secreto profesional, cuya divulgación no está permitida por la ley. En caso
de haber recibido este mensaje por error, le rogamos que, de forma
inmediata, nos lo comunique mediante correo electrónico remitido a nuestra
atención y proceda a su eliminación, así como a la de cualquier documento
adjunto al mismo. Asimismo, le comunicamos que la distribución, copia o
utilización de este mensaje, o de cualquier documento adjunto al mismo,
cualquiera que fuera su finalidad, están prohibidas por la ley.

* PRIVILEGED AND CONFIDENTIAL 
We hereby inform you, as addressee of this message, that e-mail and Internet
do not guarantee the confidentiality, nor the completeness or proper
reception of the messages sent and, thus, STACKOPS TECHNOLOGIES S.L. does
not assume any liability for those circumstances. Should you not agree to
the use of e-mail or to communications via Internet, you are kindly
requested to notify us immediately. This message is intended exclusively for
the person to whom it is addressed and contains privileged and confidential
information protected from disclosure by law. If you are not the addressee
indicated in this message, you should immediately delete it and any
attachments and notify the sender by reply e-mail. In such case, you are
hereby notified that any dissemination, distribution, copying or use of this
message or any attachments, for any purpose, is strictly prohibited by law.



On Tue, Jun 7, 2011 at 1:47 PM, Thierry Carrez wrote:

> Muhammad Atif wrote:
> > 1- Downloaded the ubuntu1010 image from openstack site as follows:
> >
> > wget
> http://c0179148.cdn1.cloudfiles.rackspacecloud.com/ubuntu1010-UEC-localuser-image.tar.gz
>
> Any chance you could reproduce with an official Ubuntu image (downloaded
> from http://uec-images.ubuntu.com/) and file a bug on Launchpad ? This
> looks like a guest issue and with official images we  can get help from
> Ubuntu cloud image developers if need be...
>
> --
> Thierry Carrez (ttx)
> Release Manager, OpenStack
>
> ___
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Problems with re-bundle

2011-06-10 Thread Scott Moser
On Tue, 7 Jun 2011, Muhammad Atif wrote:

> Hi Openstack gurus,
>
> We have recently shifted from eucalyptus to openstack and so far, finding it
> quite stable. However, we are having terrible time re-bundling an existing
> image.
>
> The re-bundled image is able to complete the boot process upto mountall: but 
> the
> cloud-init never fires up.
>
> Here is what we have done so far, please let us know what exactly is wrong on
> our side.
>
> 1- Downloaded the ubuntu1010 image from openstack site as follows:
> wget
> http://c0179148.cdn1.cloudfiles.rackspacecloud.com/ubuntu1010-UEC-localuser-image.tar.gz

Does anyone know what this image is ?
I'm guessing that Muhammad found reference to it from
http://wiki.openstack.org/GettingImages . The page there mentions
http://uec-images.ubuntu.com, but the code snippit points to something on
http://c0179148.cdn1.cloudfiles.rackspacecloud.com/ .

I'm happy that people find the uec-images.ubuntu.com images useful, and
one reason that we put the files there is so that people can easily use
them as a starting point for recreating images.

However, if there is something that was insufficient about the official
ubuntu images, I'd like to know what it was so that we can make them
better.  What was it that caused someone to create
"ubuntu1010-UEC-localuser-image.tar.gz" ?


> 2- publish this image:
> uec-publish-tarball ubuntu1010-UEC-localuser-image.tar.gz ubuntu x86_64
> 3- Now we run the image using euca-run-instance and it boots up fine, we are
> also able to login using the private key and able to install software.
>
> 4- When we want to save the instace into an image (rebundle), following 
> sequence
> is performed
>
> -   rm -r /etc/udev/rules.d/70-*

Just curious, where did you see that you should do this? If possible, I'd
like to address the source of the issue, so that people don't have to do
such arcane things.  http://pad.lv/719418 is one such bug that has been
fixed.

> -   euca-bundle-vol -c ${EC2_CERT} -k ${EC2_PRIVATE_KEY} -u ${EC2_USER_ID}
> --ec2cert ${NOVA_CERT} --no-inherit --kernel aki-0XXX -d /mnt -r x86_64 -p
> ubuntu-1010-rebundle -s 2048 -e /var/lib/dhcp3

This seems like a good opportunity for simplification.  Anyone interested
in contributing a nice wrapper to http://launchpad.net/cloud-utils ?

Personally, I think that "bundle-vol" should have stopped after creating
the .img, and then have the user use euca-bundle-img and
euca-upload-bundle, then it would not need credentials itself.  And then,
you could use the (more sane, imho):
   uec-publish-image amd64 ubuntu-1010-rebundle.img ubuntu

as a wrapper around your next two commands.

(I realize euca2ools copied ec2-api-tools here, but that doesn't mean i
can't complain).

> -  euca-upload-bundle -b ubuntu -m  /mnt/ubuntu-1010-rebundle.manifest.xml
>
>-  euca-register ubuntu/ubuntu-1010-rebundle.manifest.xml
>
> 5- Now we fire up this image once it has been successfully uploaded; we get
> stuck after plymouth-splash. Comapred to the original image which started
> cloud-init after this point. The image is replying to pings but refusing ssh. 
> It
> can be some odd ssh key issue?

If i had to guess, based on nothing else, I suspect that there is an entry
in /etc/fstab for a device that is not present.  mountall will sit and
wait until the proverbial cows come home for it to appear.  The solution
is to put 'nobootwait' in the options field for entries in /etc/fstab that
may not be there on boot.

> [0.384064] md: autorun ...
> [0.384435] md: ... autorun DONE.
> [0.386063] EXT3-fs: barriers not enabled
> [0.386946] kjournald starting.  Commit interval 5 seconds
> [0.387731] EXT3-fs (vda): mounted filesystem with ordered data mode
> [0.388644] VFS: Mounted root (ext3 filesystem) readonly on device 252:0.
> [0.389738] devtmpfs: mounted
> [0.390218] Freeing unused kernel memory: 828k freed
> [0.391214] Write protecting the kernel read-only data: 10240k
> [0.392153] Freeing unused kernel memory: 308k freed
> [0.393078] Freeing unused kernel memory: 1612k freed
> mountall: Disconnected from Plymouth
> init: plymouth main process (48) killed by SEGV signal
> init: plymouth-splash main process (323) terminated with status 2
>
>
> Any help is greatly appreciated. I am willing to provide you with other logs 
> if
> requested.

An /etc/fstab from your re-bundled image would confirm or refute my
assertion.

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Problems with re-bundle

2011-06-08 Thread Muhammad Atif
Thanks for the tip.. The Ubuntu image from http://uec-images.ubutu.com did work 
and rebundled successfully following the same steps.
 Best Regards,
Muhammad Atif





From: Thierry Carrez 
To: openstack@lists.launchpad.net
Sent: Tue, June 7, 2011 9:47:32 PM
Subject: Re: [Openstack] Problems with re-bundle

Muhammad Atif wrote:
> 1- Downloaded the ubuntu1010 image from openstack site as follows: 
> 
> wget 
>http://c0179148.cdn1.cloudfiles.rackspacecloud.com/ubuntu1010-UEC-localuser-image.tar.gz
>

Any chance you could reproduce with an official Ubuntu image (downloaded
from http://uec-images.ubuntu.com/) and file a bug on Launchpad ? This
looks like a guest issue and with official images we  can get help from
Ubuntu cloud image developers if need be...

-- 
Thierry Carrez (ttx)
Release Manager, OpenStack

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Problems with re-bundle

2011-06-07 Thread Thierry Carrez
Muhammad Atif wrote:
> 1- Downloaded the ubuntu1010 image from openstack site as follows: 
> 
> wget 
> http://c0179148.cdn1.cloudfiles.rackspacecloud.com/ubuntu1010-UEC-localuser-image.tar.gz

Any chance you could reproduce with an official Ubuntu image (downloaded
from http://uec-images.ubuntu.com/) and file a bug on Launchpad ? This
looks like a guest issue and with official images we  can get help from
Ubuntu cloud image developers if need be...

-- 
Thierry Carrez (ttx)
Release Manager, OpenStack

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


[Openstack] Problems with re-bundle

2011-06-07 Thread Muhammad Atif
Hi Openstack gurus,

We have recently shifted from eucalyptus to openstack and so far, finding it 
quite stable. However, we are having terrible time re-bundling an existing 
image. 

The re-bundled image is able to complete the boot process upto mountall: but 
the 
cloud-init never fires up.

Here is what we have done so far, please let us know what exactly is wrong on 
our side.

1- Downloaded the ubuntu1010 image from openstack site as follows: 
wget 
http://c0179148.cdn1.cloudfiles.rackspacecloud.com/ubuntu1010-UEC-localuser-image.tar.gz

2- publish this image:
uec-publish-tarball ubuntu1010-UEC-localuser-image.tar.gz ubuntu x86_64
3- Now we run the image using euca-run-instance and it boots up fine, we are 
also able to login using the private key and able to install software.

4- When we want to save the instace into an image (rebundle), following 
sequence 
is performed

-   rm -r /etc/udev/rules.d/70-*

-   copy the nove certificates and source .novarc

-   euca-bundle-vol -c ${EC2_CERT} -k ${EC2_PRIVATE_KEY} -u ${EC2_USER_ID} 
--ec2cert ${NOVA_CERT} --no-inherit --kernel aki-0XXX -d /mnt -r x86_64 -p 
ubuntu-1010-rebundle -s 2048 -e /var/lib/dhcp3 


-  euca-upload-bundle -b ubuntu -m  /mnt/ubuntu-1010-rebundle.manifest.xml

   -  euca-register ubuntu/ubuntu-1010-rebundle.manifest.xml

5- Now we fire up this image once it has been successfully uploaded; we get 
stuck after plymouth-splash. Comapred to the original image which started 
cloud-init after this point. The image is replying to pings but refusing ssh. 
It 
can be some odd ssh key issue?

[0.384064] md: autorun ...
[0.384435] md: ... autorun DONE.
[0.386063] EXT3-fs: barriers not enabled
[0.386946] kjournald starting.  Commit interval 5 seconds
[0.387731] EXT3-fs (vda): mounted filesystem with ordered data mode
[0.388644] VFS: Mounted root (ext3 filesystem) readonly on device 252:0.
[0.389738] devtmpfs: mounted
[0.390218] Freeing unused kernel memory: 828k freed
[0.391214] Write protecting the kernel read-only data: 10240k
[0.392153] Freeing unused kernel memory: 308k freed
[0.393078] Freeing unused kernel memory: 1612k freed
mountall: Disconnected from Plymouth
init: plymouth main process (48) killed by SEGV signal
init: plymouth-splash main process (323) terminated with status 2


Any help is greatly appreciated. I am willing to provide you with other logs if 
requested.  



Regards,
Atif
___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp