[Bug 619843] Re: euca-get-console-output returns one single line

2010-09-10 Thread Thierry Carrez
eucalyptus (2.0+bzr1239-0ubuntu1) maverick; urgency=low [Dave Walker (Daviey)] * New upstream stable release, -r1239 Fixes: - euca_conf --register-cluster is not idempotent. (LP: #628328) - unexpected errors after a sequence of tests (LP: #622818) * debian/control: - Recommend

[Bug 619843] Re: euca-get-console-output returns one single line

2010-09-10 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/eucalyptus -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com

[Bug 619843] Re: euca-get-console-output returns one single line

2010-09-10 Thread Thierry Carrez
eucalyptus (2.0+bzr1239-0ubuntu1) maverick; urgency=low [Dave Walker (Daviey)] * New upstream stable release, -r1239 Fixes: - euca_conf --register-cluster is not idempotent. (LP: #628328) - unexpected errors after a sequence of tests (LP: #622818) * debian/control: - Recommend

[Bug 619843] Re: euca-get-console-output returns one single line

2010-09-02 Thread Thierry Carrez
** Tags added: server-mrs ** Changed in: eucalyptus (Ubuntu Maverick) Milestone: ubuntu-10.10-beta = ubuntu-10.10 -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Bugs, which is

[Bug 619843] Re: euca-get-console-output returns one single line

2010-09-01 Thread Dave Walker
@Dustin, Yes For future reference, this can be seen by either viewing the changelog of the development branch (~ubuntu-virt) or noting the Linked branch feature in the bug report. HTH -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this

[Bug 619843] Re: euca-get-console-output returns one single line

2010-09-01 Thread Dave Walker
@Dustin, Yes For future reference, this can be seen by either viewing the changelog of the development branch (~ubuntu-virt) or noting the Linked branch feature in the bug report. HTH -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-31 Thread C de-Avillez
** Tags added: maverick regression-release ** Tags removed: regression-potential -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libvirt in ubuntu.

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-31 Thread Dustin Kirkland
Dave, You changed this to fix-committed ... What change did you make? Did you add eucalyptus to the kvm group, or what? -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Server Team,

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-31 Thread C de-Avillez
** Tags added: maverick regression-release ** Tags removed: regression-potential -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-31 Thread Dustin Kirkland
Dave, You changed this to fix-committed ... What change did you make? Did you add eucalyptus to the kvm group, or what? -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Bugs, which

Re: [Bug 619843] Re: euca-get-console-output returns one single line

2010-08-30 Thread Scott Moser
On Fri, 27 Aug 2010, Dmitrii Zagorodnov wrote: ** Changed in: eucalyptus Status: New = Invalid Dmitrii, This is, in fact invalid in eucalyptus, but be careful, as the solution you have in place will not work once distributions pick up later versions of libvirt. So, for eucalyptus

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-30 Thread Dmitrii Zagorodnov
Roger that, Scott. Thanks! -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libvirt in ubuntu. -- Ubuntu-server-bugs mailing list

Re: [Bug 619843] Re: euca-get-console-output returns one single line

2010-08-30 Thread Scott Moser
On Fri, 27 Aug 2010, Dmitrii Zagorodnov wrote: ** Changed in: eucalyptus Status: New = Invalid Dmitrii, This is, in fact invalid in eucalyptus, but be careful, as the solution you have in place will not work once distributions pick up later versions of libvirt. So, for eucalyptus

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-30 Thread Dmitrii Zagorodnov
Roger that, Scott. Thanks! -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-27 Thread Dave Walker
** Changed in: eucalyptus (Ubuntu Maverick) Status: Triaged = Fix Committed -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libvirt in

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-27 Thread Launchpad Bug Tracker
** Branch linked: lp:~ubuntu-virt/ubuntu/maverick/eucalyptus/2.0 -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libvirt in ubuntu. --

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-27 Thread Dmitrii Zagorodnov
** Changed in: eucalyptus Status: New = Invalid -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libvirt in ubuntu. -- Ubuntu-server-bugs

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-27 Thread Dave Walker
** Changed in: eucalyptus (Ubuntu Maverick) Status: Triaged = Fix Committed -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-27 Thread Launchpad Bug Tracker
** Branch linked: lp:~ubuntu-virt/ubuntu/maverick/eucalyptus/2.0 -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-27 Thread Dmitrii Zagorodnov
** Changed in: eucalyptus Status: New = Invalid -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-25 Thread Thierry Carrez
** Changed in: eucalyptus (Ubuntu Maverick) Status: Confirmed = Triaged ** Changed in: eucalyptus (Ubuntu Maverick) Milestone: None = ubuntu-10.10-beta -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-25 Thread Thierry Carrez
** Changed in: eucalyptus (Ubuntu Maverick) Status: Confirmed = Triaged ** Changed in: eucalyptus (Ubuntu Maverick) Milestone: None = ubuntu-10.10-beta -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-24 Thread Dave Walker
** Changed in: eucalyptus (Ubuntu Maverick) Assignee: (unassigned) = Dave Walker (davewalker) -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-24 Thread C de-Avillez
A discussion on IRC (#ubuntu-server) pointed to: * taking out libvirt's ./debian/patches/9008-run-as-root-by-default.patch as a possible solution (even more due to the fact that this patch is now a delta with Debian) * adding eucalyptus to the kvm group. I am testing it now. --

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-24 Thread Jamie Strandboge
To summarize the IRC discussion: libvirt uses a stacked security driver. The one at the bottom is always on and is the DAC driver. MAC drivers such as the AppArmor one used in Ubuntu sit on top of the DAC driver. The DAC driver looks at /etc/libvirt/qemu.conf for the user and group to run

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-24 Thread Jamie Strandboge
I tested running as non-root with QRT and it is ok. I had some funky logic in there regarding save/restore tests that had to be adjusted so the libvirt-qemu:kvm user could write to the save directory I created. After fixing that, it works great with and without AppArmor enabled. I also went

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-24 Thread Jamie Strandboge
Per discussion in IRC, server team voted to upload. Since my fingers are in the pie, assigning libvirt task to me. ** Also affects: libvirt (Ubuntu) Importance: Undecided Status: New ** Changed in: libvirt (Ubuntu Maverick) Importance: Undecided = Medium ** Changed in: libvirt

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-24 Thread Jamie Strandboge
** Changed in: libvirt (Ubuntu Maverick) Status: In Progress = Fix Committed -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libvirt in

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-24 Thread Launchpad Bug Tracker
This bug was fixed in the package libvirt - 0.8.3-1ubuntu7 --- libvirt (0.8.3-1ubuntu7) maverick; urgency=low * debian/patches/series: per Ubuntu Server team, run qemu/kvm as non-root and comment out 9008-run-as-root-by-default.patch. This has now received significant

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-24 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/libvirt -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to libvirt in ubuntu. -- Ubuntu-server-bugs mailing list

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-24 Thread C de-Avillez
OK. I also set it manually (right now). Looking at the instances directories, I see a mix of ownerships. Why? ubu...@mabolo:/var/lib/eucalyptus/instances/admin$ ls -lR .: total 28 drwxr-xr-x 2 eucalyptus eucalyptus 4096 2010-08-24 20:26 i-3878063D drwxr-xr-x 2 eucalyptus eucalyptus 4096

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-24 Thread Jamie Strandboge
Carlos, libvirt will only change the permissions for files it needs to, and only on demand. Therefore, it looks like i-4D8108F1, i-3E240779, and i-3DDB07C2 were all started after you changed qemu.conf and restarted libvirt. A reboot of the guest is not enough because a new qemu/kvm process is not

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-24 Thread Dave Walker
** Changed in: eucalyptus (Ubuntu Maverick) Assignee: (unassigned) = Dave Walker (davewalker) -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-24 Thread C de-Avillez
A discussion on IRC (#ubuntu-server) pointed to: * taking out libvirt's ./debian/patches/9008-run-as-root-by-default.patch as a possible solution (even more due to the fact that this patch is now a delta with Debian) * adding eucalyptus to the kvm group. I am testing it now. --

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-24 Thread Jamie Strandboge
To summarize the IRC discussion: libvirt uses a stacked security driver. The one at the bottom is always on and is the DAC driver. MAC drivers such as the AppArmor one used in Ubuntu sit on top of the DAC driver. The DAC driver looks at /etc/libvirt/qemu.conf for the user and group to run

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-24 Thread Jamie Strandboge
I tested running as non-root with QRT and it is ok. I had some funky logic in there regarding save/restore tests that had to be adjusted so the libvirt-qemu:kvm user could write to the save directory I created. After fixing that, it works great with and without AppArmor enabled. I also went

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-24 Thread Jamie Strandboge
Per discussion in IRC, server team voted to upload. Since my fingers are in the pie, assigning libvirt task to me. ** Also affects: libvirt (Ubuntu) Importance: Undecided Status: New ** Changed in: libvirt (Ubuntu Maverick) Importance: Undecided = Medium ** Changed in: libvirt

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-24 Thread Jamie Strandboge
** Changed in: libvirt (Ubuntu Maverick) Status: In Progress = Fix Committed -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. --

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-24 Thread Launchpad Bug Tracker
This bug was fixed in the package libvirt - 0.8.3-1ubuntu7 --- libvirt (0.8.3-1ubuntu7) maverick; urgency=low * debian/patches/series: per Ubuntu Server team, run qemu/kvm as non-root and comment out 9008-run-as-root-by-default.patch. This has now received significant

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-24 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/libvirt -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-24 Thread C de-Avillez
OK. I also set it manually (right now). Looking at the instances directories, I see a mix of ownerships. Why? ubu...@mabolo:/var/lib/eucalyptus/instances/admin$ ls -lR .: total 28 drwxr-xr-x 2 eucalyptus eucalyptus 4096 2010-08-24 20:26 i-3878063D drwxr-xr-x 2 eucalyptus eucalyptus 4096

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-24 Thread Jamie Strandboge
Carlos, libvirt will only change the permissions for files it needs to, and only on demand. Therefore, it looks like i-4D8108F1, i-3E240779, and i-3DDB07C2 were all started after you changed qemu.conf and restarted libvirt. A reboot of the guest is not enough because a new qemu/kvm process is not

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-23 Thread Dmitrii Zagorodnov
Nothing in Eucalyptus changed in this regard between 1.6.2 and 2.0.0, I believe. On two other KVM-based distros the console.log file, which is produced by KVM, is readable to Eucalyptus. We can add a patch to chown or chmod the file via euca_rootwrap every time prior to reading it, but that is a

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-23 Thread Dmitrii Zagorodnov
Nothing in Eucalyptus changed in this regard between 1.6.2 and 2.0.0, I believe. On two other KVM-based distros the console.log file, which is produced by KVM, is readable to Eucalyptus. We can add a patch to chown or chmod the file via euca_rootwrap every time prior to reading it, but that is a

Re: [Bug 619843] Re: euca-get-console-output returns one single line

2010-08-20 Thread Scott Moser
On Thu, 19 Aug 2010, C de-Avillez wrote: Oh, I get it (from a currently-running instance): ubu...@soncoya:/var/lib/eucalyptus/instances/admin$ ls -l ./i-401D07A6 total 519652 -rw-rw 1 root root20702 2010-08-19 17:32 console.log -rw-r--r-- 1 root root

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-20 Thread C de-Avillez
Still, this suggests something changed. I do not mind the console log being root:root, but why 660 as permissions? Also, was console.log also owned by root before (I cannot test 1.6.2 right now)? -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You

Re: [Bug 619843] Re: euca-get-console-output returns one single line

2010-08-20 Thread Scott Moser
On Thu, 19 Aug 2010, C de-Avillez wrote: Oh, I get it (from a currently-running instance): ubu...@soncoya:/var/lib/eucalyptus/instances/admin$ ls -l ./i-401D07A6 total 519652 -rw-rw 1 root root20702 2010-08-19 17:32 console.log -rw-r--r-- 1 root root

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-20 Thread C de-Avillez
Still, this suggests something changed. I do not mind the console log being root:root, but why 660 as permissions? Also, was console.log also owned by root before (I cannot test 1.6.2 right now)? -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-19 Thread C de-Avillez
** Also affects: eucalyptus Importance: Undecided Status: New ** Tags added: regression-potential -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Server Team, which is

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-19 Thread Dmitrii Zagorodnov
If you have a setup where this is happening, could you see if there are any errors in nc.log related to this? Normally, it just logs the invocation of GetConsoleOutput, but perhaps there are errors there? -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-19 Thread C de-Avillez
Yes, I got at least one on this last test. From the test script output: 2010-08-19 15:30:08,377 USER admin:DEBUG Running bash command: ['-c', 'euca-get-console-output --config=users/admin//eucarc i-62B50ACF'] (...) 2010-08-19 15:30:08,644 INSTANCE i-62B50ACF:WARNING Console output: START

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-19 Thread C de-Avillez
Oh, I get it (from a currently-running instance): ubu...@soncoya:/var/lib/eucalyptus/instances/admin$ ls -l ./i-401D07A6 total 519652 -rw-rw 1 root root20702 2010-08-19 17:32 console.log -rw-r--r-- 1 root root 2179989504 2010-08-19 17:32 disk -rw--- 1

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-19 Thread C de-Avillez
** Also affects: eucalyptus Importance: Undecided Status: New ** Tags added: regression-potential -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-19 Thread Dmitrii Zagorodnov
If you have a setup where this is happening, could you see if there are any errors in nc.log related to this? Normally, it just logs the invocation of GetConsoleOutput, but perhaps there are errors there? -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-19 Thread C de-Avillez
Yes, I got at least one on this last test. From the test script output: 2010-08-19 15:30:08,377 USER admin:DEBUG Running bash command: ['-c', 'euca-get-console-output --config=users/admin//eucarc i-62B50ACF'] (...) 2010-08-19 15:30:08,644 INSTANCE i-62B50ACF:WARNING Console output: START

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-19 Thread C de-Avillez
Oh, I get it (from a currently-running instance): ubu...@soncoya:/var/lib/eucalyptus/instances/admin$ ls -l ./i-401D07A6 total 519652 -rw-rw 1 root root20702 2010-08-19 17:32 console.log -rw-r--r-- 1 root root 2179989504 2010-08-19 17:32 disk -rw--- 1

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-18 Thread Scott Moser
I see this too. For the record, the error is not with the instance or instance kernel itself (as we have seen on ec2). The files in /var/lib/eucalyptus/instances/admin/${INSTANCE_ID}/console.log does exist and is populated, its contents just dont get back to the user. ** Changed in: eucalyptus

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-18 Thread C de-Avillez
** Also affects: eucalyptus (Ubuntu Maverick) Importance: High Status: Confirmed -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-18 Thread Scott Moser
I see this too. For the record, the error is not with the instance or instance kernel itself (as we have seen on ec2). The files in /var/lib/eucalyptus/instances/admin/${INSTANCE_ID}/console.log does exist and is populated, its contents just dont get back to the user. ** Changed in: eucalyptus

[Bug 619843] Re: euca-get-console-output returns one single line

2010-08-18 Thread C de-Avillez
** Also affects: eucalyptus (Ubuntu Maverick) Importance: High Status: Confirmed -- euca-get-console-output returns one single line https://bugs.launchpad.net/bugs/619843 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. --