Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenStack: Dev

Launching vpn image issue

 

 

OpenStack dev RSS feed   Index | Next | Previous | View Threaded


vijayrg at yahoo

May 4, 2012, 9:41 AM

Post #1 of 5 (266 views)
Permalink
Launching vpn image issue

Hello,
I built cloudpipe image using base oneiric ubuntu iso and uploaded it to glance as a raw image.
(glance add is_public=true disk_format=raw container_format=ovf name="cloudpipe image" < cloudpipeimage.img)
 I am trying to launch it using nova api(cloudpipe-create). It does not   launch correctly. Though euca-describe-instances status says "running", I cannot vnc into that vm.
  I see the following errors in nova-compute.log
guestmount command not found error and other erros following it. (Detailed log below)
 
I am running essex released version on oneiric. I could not find any package that has guestmount.
Is there any package that I am missing?
Thanks,
-Vijay
 
2012-05-03 15:05:40 DEBUG nova.utils [req-7ae87f58-34e4-4800-b2c0-bbac606602d9 project-vpn 54dcafb79fcf4438a849bde92a432363] Unexpected error while running command.
Command: sudo guestmount --rw -a /var/lib/nova/instances/instance-00000004/disk -m /dev/sda1 /tmp/tmpX46A8y
Exit code: 1
Stdout: ''
Stderr: 'sudo: guestmount: command not found\n' from (pid=1617) trycmd /usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/nova/utils.py:277
2012-05-03 15:05:40 DEBUG nova.utils [req-7ae87f58-34e4-4800-b2c0-bbac606602d9 project-vpn 54dcafb79fcf4438a849bde92a432363] Running cmd (subprocess): sudo fusermount -u /tmp/tmpX46A8y from (pid=1617) execute /usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/nova/utils.py:219
2012-05-03 15:05:40 DEBUG nova.utils [req-7ae87f58-34e4-4800-b2c0-bbac606602d9 project-vpn 54dcafb79fcf4438a849bde92a432363] Result was 1 from (pid=1617) execute /usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/nova/utils.py:235
2012-05-03 15:05:40 DEBUG nova.utils [req-7ae87f58-34e4-4800-b2c0-bbac606602d9 project-vpn 54dcafb79fcf4438a849bde92a432363] Unexpected error while running command.
Command: sudo fusermount -u /tmp/tmpX46A8y
Exit code: 1
Stdout: ''
Stderr: 'fusermount: failed to unmount /tmp/tmpX46A8y: Invalid argument\n' from (pid=1617) trycmd /usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/nova/utils.py:277
2012-05-03 15:05:40 DEBUG nova.virt.disk.api [req-7ae87f58-34e4-4800-b2c0-bbac606602d9 project-vpn 54dcafb79fcf4438a849bde92a432363] Failed to mount filesystem: Unexpected error while running command.
Command: sudo guestmount --rw -a /var/lib/nova/instances/instance-00000004/disk -m /dev/sda1 /tmp/tmpX46A8y
Exit code: 1
Stdout: ''
Stderr: 'sudo: guestmount: command not found\n' from (pid=1617) mount /usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/nova/virt/disk/api.py:205
2012-05-03 15:05:40 WARNING nova.virt.libvirt.connection [req-7ae87f58-34e4-4800-b2c0-bbac606602d9 project-vpn 54dcafb79fcf4438a849bde92a432363] [instance: 242a54e8-b7b0-4517-8582-b1321376aa0a] Ignoring error injecting data into image 705ba7d3-945a-4b32-b103-8f958fc72a7a (
--
Failed to map partitions: no partitions found
--
Failed to mount filesystem: Unexpected error while running command.
Command: sudo guestmount --rw -a /var/lib/nova/instances/instance-00000004/disk -m /dev/sda1 /tmp/tmpX46A8y
Exit code: 1
Stdout: ''
Stderr: 'sudo: guestmount: command not found\n')


ahaldin at griddynamics

May 4, 2012, 6:45 PM

Post #2 of 5 (257 views)
Permalink
Re: Launching vpn image issue [In reply to]

hi

I found guestmount in libguestfs-tools-c package.
and I had such issue with guestmount in centos.

in ubuntu I thought by default nova-compute would use nbd . if you did not
change img_handlers flag.

On Fri, May 4, 2012 at 8:41 PM, Vijay <vijayrg [at] yahoo> wrote:

> Hello,
> I built cloudpipe image using base oneiric ubuntu iso and uploaded it to
> glance as a raw image.
> (glance add is_public=true disk_format=raw container_format=ovf
> name="cloudpipe image" < cloudpipeimage.img)
> I am trying to launch it using nova api(cloudpipe-create). It does not
> launch correctly. Though euca-describe-instances status says "running", I
> cannot vnc into that vm.
> I see the following errors in nova-compute.log
> guestmount command not found error and other erros following it. (Detailed
> log below)
>
> I am running essex released version on oneiric. I could not find any
> package that has guestmount.
> Is there any package that I am missing?
> Thanks,
> -Vijay
>
> 2012-05-03 15:05:40 DEBUG nova.utils
> [req-7ae87f58-34e4-4800-b2c0-bbac606602d9 project-vpn
> 54dcafb79fcf4438a849bde92a432363] Unexpected error while running command.
> Command: sudo guestmount --rw -a
> /var/lib/nova/instances/instance-00000004/disk -m /dev/sda1 /tmp/tmpX46A8y
> Exit code: 1
> Stdout: ''
> Stderr: 'sudo: guestmount: command not found\n' from (pid=1617) trycmd
> /usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/nova/utils.py:277
> 2012-05-03 15:05:40 DEBUG nova.utils
> [req-7ae87f58-34e4-4800-b2c0-bbac606602d9 project-vpn
> 54dcafb79fcf4438a849bde92a432363] Running cmd (subprocess): sudo fusermount
> -u /tmp/tmpX46A8y from (pid=1617) execute
> /usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/nova/utils.py:219
> 2012-05-03 15:05:40 DEBUG nova.utils
> [req-7ae87f58-34e4-4800-b2c0-bbac606602d9 project-vpn
> 54dcafb79fcf4438a849bde92a432363] Result was 1 from (pid=1617) execute
> /usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/nova/utils.py:235
> 2012-05-03 15:05:40 DEBUG nova.utils
> [req-7ae87f58-34e4-4800-b2c0-bbac606602d9 project-vpn
> 54dcafb79fcf4438a849bde92a432363] Unexpected error while running command.
> Command: sudo fusermount -u /tmp/tmpX46A8y
> Exit code: 1
> Stdout: ''
> Stderr: 'fusermount: failed to unmount /tmp/tmpX46A8y: Invalid argument\n'
> from (pid=1617) trycmd
> /usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/nova/utils.py:277
> 2012-05-03 15:05:40 DEBUG nova.virt.disk.api
> [req-7ae87f58-34e4-4800-b2c0-bbac606602d9 project-vpn
> 54dcafb79fcf4438a849bde92a432363] Failed to mount filesystem: Unexpected
> error while running command.
> Command: sudo guestmount --rw -a
> /var/lib/nova/instances/instance-00000004/disk -m /dev/sda1 /tmp/tmpX46A8y
> Exit code: 1
> Stdout: ''
> Stderr: 'sudo: guestmount: command not found\n' from (pid=1617) mount
> /usr/local/lib/python2.7/dist-packages/nova-2012.1-py2.7.egg/nova/virt/disk/api.py:205
> 2012-05-03 15:05:40 WARNING nova.virt.libvirt.connection
> [req-7ae87f58-34e4-4800-b2c0-bbac606602d9 project-vpn
> 54dcafb79fcf4438a849bde92a432363] [instance:
> 242a54e8-b7b0-4517-8582-b1321376aa0a] Ignoring error injecting data into
> image 705ba7d3-945a-4b32-b103-8f958fc72a7a (
> --
> Failed to map partitions: no partitions found
> --
> Failed to mount filesystem: Unexpected error while running command.
> Command: sudo guestmount --rw -a
> /var/lib/nova/instances/instance-00000004/disk -m /dev/sda1 /tmp/tmpX46A8y
> Exit code: 1
> Stdout: ''
> Stderr: 'sudo: guestmount: command not found\n')
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack [at] lists
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
>


P at draigBrady

May 5, 2012, 3:47 AM

Post #3 of 5 (264 views)
Permalink
Re: Launching vpn image issue [In reply to]

On 05/05/2012 02:45 AM, Anton Haldin wrote:
> hi
>
> I found guestmount in libguestfs-tools-c package.
> and I had such issue with guestmount in centos.
>
> in ubuntu I thought by default nova-compute would use nbd . if you did not change img_handlers flag.

By default loop,nbd,libguestfs injection methods are tried in that order.
You may need to ensure the nbd module is loaded for that method to work.

If you do need the extra capabilities of libguestfs, then...

According to http://packages.ubuntu.com/, there
is a guestmount package available for precise.
However there may be issues with that:
https://www.redhat.com/archives/libguestfs/2012-April/thread.html#00028

There are also oneric versions available independently:
http://libguestfs.org/download/binaries/ubuntu1004-packages/

For the record, the Fedora and the EPEL (for use with centos etc.)
openstack packages, auto install the libguestfs-mount package.

cheers,
Pádraig.

_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack [at] lists
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp


vijayrg at yahoo

May 5, 2012, 11:32 AM

Post #4 of 5 (253 views)
Permalink
Re: Launching vpn image issue [In reply to]

Thank you all for the responses. There was a problem with my cloudpipe image. So, I recreated it. Now cloudpipe instance launches fine.
However, when I configure, /etc/network/interfaces with br0 as provided in the documentation, I cannot ping or ssh to cloudpipe instance.
 
http://nova.openstack.org/devref/cloudpipe.html
 
Any help is appreciated.
Thanks once again,
-vj


--- On Sat, 5/5/12, Pádraig Brady <P [at] draigBrady> wrote:


From: Pádraig Brady <P [at] draigBrady>
Subject: Re: [Openstack] Launching vpn image issue
To: "Anton Haldin" <ahaldin [at] griddynamics>
Cc: vijayrg [at] yahoo, openstack [at] lists
Date: Saturday, May 5, 2012, 4:47 AM


On 05/05/2012 02:45 AM, Anton Haldin wrote:
> hi
>
> I found guestmount in libguestfs-tools-c package.
> and I had such issue with guestmount in centos.
>
> in ubuntu I thought by default nova-compute would use nbd .  if you did not change   img_handlers flag.

By default loop,nbd,libguestfs injection methods are tried in that order.
You may need to ensure the nbd module is loaded for that method to work.

If you do need the extra capabilities of libguestfs, then...

According to http://packages.ubuntu.com/, there
is a guestmount package available for precise.
However there may be issues with that:
https://www.redhat.com/archives/libguestfs/2012-April/thread.html#00028

There are also oneric versions available independently:
http://libguestfs.org/download/binaries/ubuntu1004-packages/

For the record, the Fedora and the EPEL (for use with centos etc.)
openstack packages, auto install the libguestfs-mount package.

cheers,
Pádraig.


igor.laskovy at gmail

May 6, 2012, 1:04 AM

Post #5 of 5 (255 views)
Permalink
Re: Launching vpn image issue [In reply to]

Hi Vijay,

maybe this will be helpful
http://docs.openstack.org/trunk/openstack-compute/admin/content/enabling-ping-and-ssh-on-vms.html


On Sat, May 5, 2012 at 9:32 PM, Vijay <vijayrg [at] yahoo> wrote:

> Thank you all for the responses. There was a problem with my cloudpipe
> image. So, I recreated it. Now cloudpipe instance launches fine.
> However, when I configure, /etc/network/interfaces with br0 as provided in
> the documentation, I cannot ping or ssh to cloudpipe instance.
>
> http://nova.openstack.org/devref/cloudpipe.html
>
> Any help is appreciated.
> Thanks once again,
> -vj
>
>
> --- On *Sat, 5/5/12, Pádraig Brady <P [at] draigBrady>* wrote:
>
>
> From: Pádraig Brady <P [at] draigBrady>
> Subject: Re: [Openstack] Launching vpn image issue
> To: "Anton Haldin" <ahaldin [at] griddynamics>
> Cc: vijayrg [at] yahoo, openstack [at] lists
> Date: Saturday, May 5, 2012, 4:47 AM
>
> On 05/05/2012 02:45 AM, Anton Haldin wrote:
> > hi
> >
> > I found guestmount in libguestfs-tools-c package.
> > and I had such issue with guestmount in centos.
> >
> > in ubuntu I thought by default nova-compute would use nbd . if you did
> not change img_handlers flag.
>
> By default loop,nbd,libguestfs injection methods are tried in that order.
> You may need to ensure the nbd module is loaded for that method to work.
>
> If you do need the extra capabilities of libguestfs, then...
>
> According to http://packages.ubuntu.com/, there
> is a guestmount package available for precise.
> However there may be issues with that:
> https://www.redhat.com/archives/libguestfs/2012-April/thread.html#00028
>
> There are also oneric versions available independently:
> http://libguestfs.org/download/binaries/ubuntu1004-packages/
>
> For the record, the Fedora and the EPEL (for use with centos etc.)
> openstack packages, auto install the libguestfs-mount package.
>
> cheers,
> Pádraig.
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack [at] lists
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
>


--
Igor Laskovy

OpenStack dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.