James Page | 25 May 09:59
Favicon
Gravatar

Ubuntu Server Bug Triage Process


Hi Team

Post discussion on this ML and at UDS-Q I've written up what I think
is the bug triage process we should be following for server bugs:

  https://wiki.ubuntu.com/ServerTeam/KnowledgeBase/BugTriage

I tested this during my triage session yesterday and it covered all of
the bugs that I triaged.

This is v1.0 - please review - happy to discuss changes and make
updates if people think that it needs improvement.

Cheers

James

--

-- 
James Page
Ubuntu Core Developer
Whisperity | 19 May 16:04
Picon

Byobu autostart from cron

Dear fellow Ubuntu users,

I have an automatation question I'd like to ask from you. My server runs some servers which are, unfortunately, not daemons (like Minecraft or Source Dedicated Server). I am planning on making them automatically start at boot with the <at> reboot directive in crontab, but I wish their sessions to be usable from byobu.

Problem being, that byobu does not auto-start. I have written a shell script:

#!/bin/bash
screen
-dr byobu -X screen -t srcds
screen
-r byobu -p srcds -X stuff "./start_gmod.sh $(printf '\r')"

And I execute it as my nonprivileged user in crontab:

<at> reboot           sourcesrv                    cd /srv/srcds/orangebox && ./hook-byobu.sh

However, running this script requires byobu to be started when it runs. If I test the script with starting byobu by hand and then executing it from SSH, it does order byobu to make a new window and then starts the server.

My question being: can I, somehow, automatize the start of byobu into the hook-byobu.sh file? I tried adding byobu (the command itself) after the shebang-line, but then it hangs until I, by hand, F6 (detach) from byobu.

Turning byobu's Start automatically after log in on does not work, because there is no login to happen, as the script is started from cron.

Aleksi Handelofski | 18 May 19:48
Picon
Favicon

precise LIO target with iscsi support

Hi All!

I saw that the kernel in precise brought support for the LIO target including the iscsi module.
So i wanted to know if the LIO iscsi support ist considered production ready or should we still use
the old and tested TGT?

Thanks for your opinions!

Alex
Thorsten Göllner | 18 May 10:57
Favicon

Re: Ubuntu 12.04 / kvm / libvirt / problem with network bridge br0

Sorry, my fault. I had a typo. The broadcst is configured correctly: 113.203.209.191

Any other idea?

Am 17.05.2012 00:51, schrieb Paul Schulz:

Chech IP address and broadcast addess on br0. They don't appear to match.

On May 17, 2012 12:38 AM, "Thorsten Göllner" <tg <at> ovm-group.com> wrote:
Hi,

I installed 12.04 on my host and installed a 12.04 guest under kvm/libvirt. I setup a bridge as described here
https://help.ubuntu.com/12.04/serverguide/network-configuration.html#bridging
but my guest can not reach the internet nor other host within my local net.

ON THE HOST:
============

~$ ifconfig
br0       Link encap:Ethernet  HWaddr 00:25:90:57:02:c7
          inet addr:113.203.209.163  Bcast:213.203.209.191  Mask:255.255.255.224
          inet6 addr: fe80::225:90ff:fe57:2c7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5195 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3643 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:397189 (397.1 KB)  TX bytes:2499669 (2.4 MB)

eth0      Link encap:Ethernet  HWaddr 00:25:90:57:02:c7
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5417 errors:0 dropped:128 overruns:0 frame:0
          TX packets:4775 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:528691 (528.6 KB)  TX bytes:2591855 (2.5 MB)
          Interrupt:20 Memory:fba00000-fba20000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:5442 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5442 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2484575 (2.4 MB)  TX bytes:2484575 (2.4 MB)

vnet0     Link encap:Ethernet  HWaddr fe:54:00:d2:d1:73
          inet6 addr: fe80::fc54:ff:fed2:d173/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:103 errors:0 dropped:0 overruns:0 frame:0
          TX packets:875 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:7882 (7.8 KB)  TX bytes:55858 (55.8 KB)

~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         113.203.209.161 0.0.0.0         UG    100    0        0 br0
113.203.209.160 0.0.0.0         255.255.255.224 U     0      0        0 br0

:~$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy DROP)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

~$ brctl show
bridge name     bridge id               STP enabled     interfaces
br0             8000.0025905702c7       no              eth0
                                                        vnet0

~$ sudo cat /etc/libvirt/qemu/guest.xml
[...]
<interface type='bridge'>
      <mac address='52:54:00:d2:d1:73'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
[...]

ON THE GUEST:
=============
~$ ifconfig
eth0      Link encap:Ethernet   HWaddr 52:54:00:d2:d1:73
          inet addr:113.203.209.165  Bcast:213.203.09.191   Mask:255.255.255.224
[...]

~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         113.203.209.161 0.0.0.0         UG    100    0        0 eth0
1213.203.209.160 0.0.0.0         255.255.255.224 U     0      0        0 eth0

:~$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy DROP)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

My NET:
=======
host-server: 113.203.209.163
guest: 113.203.209.165
default gateway: 113.203.209.161

From the host-server I can ping all hosts and the internet. But on the guest I can ping the host (213.203.209.163) but no other host. (TX packets increases but no RX packets). Any idea?

Best regards,
-Thorsten-






--
ubuntu-server mailing list
ubuntu-server <at> lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

-- Thorsten Göllner OVM Office Voice Media GmbH Herderstrasse 68 40237 Düsseldorf Tel.: +49(0)211 / 618 57 53 Fax: +49(0)211 / 618 57 54
Evan Jones | 15 May 21:17
Picon

MAAS Install issue

I have downloaded the newest Ubuntu server iso image and have problems with setting up the cloud. Here is what has happened so far.

 

Using a VMWare 4.0 server as the install platform.

 

Attempt #1

·         created controller on VMWare server. Install went smooth with no problems. IP address for MAAS controller was 192.168.1.9 (from network DHCP server –Endian firewall).

·         Created maas superuser as per instructions. Worked correctly.

·         Opened IE9 on Win7 desktop and went to MAAS page 192.168.1.9/MAAS as per instructions. Page opened correctly.

·         Performed sudo maas-import-isos. Worked correctly.

·         Created 2 nodes in VMWare. Installed correctly. Nodes shut down correctly.

·         Opened IE9 on Win7 desktop and went to MAAS page 192.168.1.9/MAAS as per instructions. Page opened correctly.

·         Attempted to “Accept and Commission” nodes. System hung on me. I had to shutdown controller and reboot.

·         Could not get back to MAAS Admin page at 192.168.1.9/MAAS.

·         Deleted all VMWare machines from disk and inventory on VMWare server and started over.

 

Attempt #2 through--------

 

Did all of the same as above. When I tried to open the webpage at 192.168.1.9/MAAS or any other IP address that I tried during various install attempts I would get an webpage error. If I entered just the controller IP address I would get the Apache
IT WORKS” but there is no content loaded for this webpage notice.

 

I have tried this with several different IP addresses, on a bare metal machine, a different subnet on the network and with Firefox, Chrome and IE 8 and IE 9 on different desktop machines. Every attempt has provided the same response: If I entered just the controller IP address I would get the Apache IT WORKS” but there is no content loaded for this webpage notice. If I enter the ip/MAAS address I get a webpage error.

 

I have even re-downloaded the Ubuntu 12.04 iso image and tried all over again. Same problem.

 

What am I missing?

Thanks.

 

Evan

 

Diác. C.J.Moretti | 16 May 21:02
Picon

resolv.conf

Hello!

I would put the DNS IP
resolv.conf file
But the reniciar the machine it loses this
setting ...
In which file and place this increase should I do?


Moretti
                                     \///
                                    (o o)
__________ oo0 - () - 0oo __________
Tarde te amei,
Beleza antiga e tão nova,
tarde te amei.

Estavas dentro de mim
e eu estava fora...
Estavas comigo
e eu não estava contigo...
______________________________
 (Sto. Agostinho)

Thorsten Göllner | 16 May 17:07
Favicon

Ubuntu 12.04 / kvm / libvirt / problem with network bridge br0

Hi,

I installed 12.04 on my host and installed a 12.04 guest under kvm/libvirt. I setup a bridge as described here
https://help.ubuntu.com/12.04/serverguide/network-configuration.html#bridging
but my guest can not reach the internet nor other host within my local net.

ON THE HOST:
============

~$ ifconfig
br0       Link encap:Ethernet  HWaddr 00:25:90:57:02:c7
          inet addr:113.203.209.163  Bcast:213.203.209.191  Mask:255.255.255.224
          inet6 addr: fe80::225:90ff:fe57:2c7/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5195 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3643 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:397189 (397.1 KB)  TX bytes:2499669 (2.4 MB)

eth0      Link encap:Ethernet  HWaddr 00:25:90:57:02:c7
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5417 errors:0 dropped:128 overruns:0 frame:0
          TX packets:4775 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:528691 (528.6 KB)  TX bytes:2591855 (2.5 MB)
          Interrupt:20 Memory:fba00000-fba20000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:5442 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5442 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2484575 (2.4 MB)  TX bytes:2484575 (2.4 MB)

vnet0     Link encap:Ethernet  HWaddr fe:54:00:d2:d1:73
          inet6 addr: fe80::fc54:ff:fed2:d173/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:103 errors:0 dropped:0 overruns:0 frame:0
          TX packets:875 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:7882 (7.8 KB)  TX bytes:55858 (55.8 KB)

~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         113.203.209.161 0.0.0.0         UG    100    0        0 br0
113.203.209.160 0.0.0.0         255.255.255.224 U     0      0        0 br0

:~$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy DROP)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

~$ brctl show
bridge name     bridge id               STP enabled     interfaces
br0             8000.0025905702c7       no              eth0
                                                        vnet0

~$ sudo cat /etc/libvirt/qemu/guest.xml
[...]
<interface type='bridge'>
      <mac address='52:54:00:d2:d1:73'/>
      <source bridge='br0'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
[...]

ON THE GUEST:
=============
~$ ifconfig
eth0      Link encap:Ethernet   HWaddr 52:54:00:d2:d1:73
          inet addr:113.203.209.165  Bcast:213.203.09.191   Mask:255.255.255.224
[...]

~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         113.203.209.161 0.0.0.0         UG    100    0        0 eth0
1213.203.209.160 0.0.0.0         255.255.255.224 U     0      0        0 eth0

:~$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy DROP)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

My NET:
=======
host-server: 113.203.209.163
guest: 113.203.209.165
default gateway: 113.203.209.161

From the host-server I can ping all hosts and the internet. But on the guest I can ping the host (213.203.209.163) but no other host. (TX packets increases but no RX packets). Any idea?

Best regards,
-Thorsten-





Diác. C.J.Moretti | 16 May 15:38
Picon

Ubuntu server 12.04 locate problems

HI!

After installing ubuntu 4.12, I noticed that when using the command
man, I always get the following message, even showing me the correct 
syntax of the command you want:
man: can not set the locale, make sure $ LC_ * and $ LANG are correct

When enter the line:
export LANG = pt_BR

the problem does not happen ...

How can I fix this detail without having to enter every time the line up?

TKS
Moretti

Thorsten Göllner | 16 May 15:29
Favicon

Server-Installation 12.04 / automatic seciruty updates

Hi,

when installing ubuntu server 12.04 I was asked, of I want to active the 
automatic security update (service). I said "no". How can I install it 
now? Is it a specific apt-package?

Thanks for any hint
-Thorsten-

James Page | 16 May 10:34
Favicon
Gravatar

Use of Blueprints + Blueprint Template


Hi Team

I've spent some time with various members of the Ubuntu Server Team
over the last few weeks reviewing how we use blueprints to track
progress during the development cycle.

This was really with the objective of trying to resolve a few
challenges that we have with current usage:

1) It's often hard to evaluate exactly when a blueprint has been
completed.

2) We sometimes have challenges with understanding the use cases for
work.

3) What the overall goal is for a blueprint is not always clear.

4) Endeavouring to bake QA into all work we do.

When I first started contributing to Ubuntu we did try to write
specifications associated with each blueprint (see [0] for the
template).

I think that this approach did not work that well - often the spec did
not get updated throughout the cycle as the primary focus is normally
on work item tracking in the blueprint - so they age and become pretty
useless very quickly.

That said there are a few concepts in the specification template that
I think would still benefit our use of blueprints.  So I'd like to
propose bringing in some of the concepts we had in specs to the
blueprint summary and whiteboard.

1) Blueprint Summary

Rationale:

One or two paragraph statement about why we are doing this blueprint.

Goal:

Overall goal for the blueprint.

2) Blueprint Whiteboard

User Stories:

User stories really help thrash our what the requirements are and why
we are actually doing the work.  They should try and encompass how you
think the output of the blueprint will be used by real people.

There may of course be multiple stories for more complicated work.

Assumptions:

What assumptions are being made about the delivery of the blueprint.

Test Plans:

This is really about validating user stories; I find its helpful to
think about these as high level processes - then they can either be
hand cranked by people who want to try stuff out or do manual QA OR
they can be automated.

..or they might even be covered by existing automated test cases.

Release Note:

One or more suitable statements that could be included in the release
note for the release associated with the blueprint.

I've worked this into one of the blueprints that I will be driving
this release which is a) simple and b) already well defined - see [1].

So a few comments about the above:

1) Its not going to fit every blueprint we write - but I think it
should cover most of them!

2) I think that having everything in the blueprint will help with
keeping it up-to-date as its the place we all go to see what needs to
be done.

3) Interested people only have to subscribe in one place and they can
then see when stuff is updated.  Has anyone ever subscribed to a spec
in the wiki?

4) The original Specification template also included a section for
'Design' - I personally think that Design should really live past the
 lifetime of a single blueprint and should be delivered as
documentation  - probably in the wiki - and referenced from the blueprint.

I will be doing this for my blueprints this cycle - it would be great
if other people could try this out as well as they write up their
blueprints from sessions at UDS.

One feature that is currently lacking in the whiteboard is the ability
to track changes over time (although you could do this through
diligent monitoring of blueprint email spam).  Its possible that we
might start managing the whiteboard content in a bzr branch and
updating the blueprint periodically - but that's still work in progress.

Cheers

James

[0] https://wiki.ubuntu.com/SpecSpec
[1] https://blueprints.launchpad.net/ubuntu/+spec/servercloud-q-tomcat7
--

-- 
James Page
Ubuntu Core Developer
Ryan Tandy | 15 May 19:43
Picon
Gravatar

fsck of LVM snapshot - different behaviour in 12.04

Hi list,

[I sent this a few days ago but it doesn't seem to have come through; 
apologies if you're reading it for a second time.]

I'd like to (ab)use LVM snapshots for a periodic online fsck in the 
background.  The essence of the script is something like this:

lvcreate -s -L $snapsize vg0/srv
e2fsck -p /dev/vg0/lvol0 # discard orphaned inodes
e2fsck -fy /dev/vg0/lvol0
lvremove -f vg0/lvol0

On Lucid, this seems to work well.  On Precise, I get some false 
positives almost every time I run it: wrong free blocks/inodes count, 
and/or bitmap differences.  The filesystem is actually OK; none of these 
minor inconsistencies show up during a boot-time fsck.

My understanding is that ext4 is wired up with LVM to do a sync and 
clean up these inconsistencies at the time a snapshot is made, and 
certainly on Lucid it seems OK.  Can anyone tell me if the behaviour has 
changed, or if I'm doing something wrong?

So far I've reproduced this on my workstation and laptop (one SATA drive 
each) and on one scratch server (Dell CERC RAID, five SATA drives).  All 
of this is on bare metal and local storage.

I searched around a bit but the only thread I found is [1] which doesn't 
seem relevant -- I can't reproduce his error.

[1] https://lkml.org/lkml/2012/1/5/76

--

-- 
Ryan Tandy - Programmer/Analyst           rtandy <at> sd63.bc.ca
School District 63 (Saanich)                +1 250 652 7385


Gmane