[Bug 1487936] [NEW] $DOCKER_OPTS missing in systemd's docker.service

2015-08-23 Thread brainstorm
Public bug reported:

While creating a docker-swarm master and nodes on top of a openstack
cluster running Ubuntu 15.04 images, I ran into the problem that my
local docker-machine client was unable to connect to swarm-master and
nodes post-instantiation, here's the reason and solution:

https://github.com/maclennann/docker/commit/0e7fb272d6ce8e2

If this patch is not applied, a local docker client cannot connect to
the remote docker daemon:

root 11931  2.3  0.1 381472 24584 ?Ssl  01:59   0:00
/usr/bin/docker daemon -H fd://

As opposed to what it should be with correctly expanded $DOCKER_OPTS:

root 12081  8.5  0.1 512544 24628 ?Ssl  02:00   0:00
/usr/bin/docker daemon --tlsverify --tlscacert=/etc/docker/ca.pem
--tlskey=/etc/docker/server-key.pem --tlscert=/etc/docker/server.pem
--label=provider=openstack --host=unix:///var/run/docker.sock
--host=tcp://0.0.0.0:2376 -H fd://

Please note that *both* docker.service and /etc/default/docker should be
modified in docker.io package.

** Affects: docker.io (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: systemd-boot

** Summary changed:

- $DOCKER_OPTS missing systemd's docker.service
+ $DOCKER_OPTS missing in systemd's docker.service

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to docker.io in Ubuntu.
https://bugs.launchpad.net/bugs/1487936

Title:
  $DOCKER_OPTS missing in systemd's docker.service

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/docker.io/+bug/1487936/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1242743] Re: space before ; breaks php.ini parsing

2013-10-23 Thread brainstorm
Yeah, good point regarding the interactive prompt, maybe it is not worth
the hassle, one could wait for upstream to converge.

Thanks for your attention!

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1242743

Title:
  space before ; breaks php.ini parsing

To manage notifications about this bug go to:
https://bugs.launchpad.net/php/+bug/1242743/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1242743] Re: space before ; breaks php.ini parsing

2013-10-21 Thread brainstorm
Reported upstream over here too: https://bugs.php.net/bug.php?id=65939

It is a very simple patch, it would be lovely to see it patched in the
current Saucy release.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1242743

Title:
  space before ; breaks php.ini parsing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1242743/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1242743] [NEW] space before ; breaks php.ini parsing

2013-10-21 Thread brainstorm
Public bug reported:

The following php.ini snippet is found in the newest releases of php.ini
(found un downloads section and Ubuntu 13.10):


; If disabled, all PHPDoc comments are dropped from the code to reduce the
 ;size of the optimized code.
;opcache.save_comments=1


The space before  ;size breaks automation systems like Ansible which
tries to parse it as a correctly formatted .ini file.

Test script:
---
Apparently it only breaks with builtin MacOSX Python distribution, so you would 
not be able to reproduce the above exception if running GNU/Linux or others.

#!/usr/bin/python

import ConfigParser, os

config = ConfigParser.ConfigParser()
config.readfp(open('php.ini'))
print config.get('PHP', 'max_execution_time')

Expected result:

It should return the value of the attribute instead of raising an exception:

$ python phpparse.py
30

Actual result:
--
TASK: [ini_file dest=/etc/php5/apache2/php.ini section=PHP 
option=max_execution_time value=200] ***
fatal: [86.50.168.69] = failed to parse: Traceback (most recent call last):
  File /root/.ansible/tmp/ansible-1382344679.91-7968522912177/ini_file, line 
1116, in module
main()
  File /root/.ansible/tmp/ansible-1382344679.91-7968522912177/ini_file, line 
177, in main
changed = do_ini(module, dest, section, option, value, state, backup)
  File /root/.ansible/tmp/ansible-1382344679.91-7968522912177/ini_file, line 
99, in do_ini
cp.readfp(f)
  File /usr/lib/python2.7/ConfigParser.py, line 324, in readfp
self._read(fp, filename)
  File /usr/lib/python2.7/ConfigParser.py, line 546, in _read
raise e
ConfigParser.ParsingError: File contains parsing errors: 
/etc/php5/apache2/php.ini
[line 1859]: ' ;size of the optimized code.\n'

** Affects: php5 (Ubuntu)
 Importance: Undecided
 Status: New

** Patch added: php.ini patch
   
https://bugs.launchpad.net/bugs/1242743/+attachment/3886287/+files/php.ini.patch

** Bug watch added: bugs.php.net/ #65939
   http://bugs.php.net/bug.php?id=65939

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1242743

Title:
  space before ; breaks php.ini parsing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1242743/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1242743] Re: space before ; breaks php.ini parsing

2013-10-21 Thread brainstorm
Well, the patch applies to upstream sourcecode, it does not apply
directly on the php5 ubuntu package... but again, just 1 line needs to
be modified.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/1242743

Title:
  space before ; breaks php.ini parsing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1242743/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 592853] Re: libvirt.libvirtError: Cannot access CA certificate '/etc/pki/CA/cacert.pem'

2010-06-12 Thread brainstorm
Soren, indeed, I just figured it out myself right now :-S Marking
invalid...

** Changed in: vm-builder (Ubuntu)
   Status: Incomplete = Invalid

-- 
libvirt.libvirtError: Cannot access CA certificate '/etc/pki/CA/cacert.pem'
https://bugs.launchpad.net/bugs/592853
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 592853] [NEW] libvirt.libvirtError: Cannot access CA certificate '/etc/pki/CA/cacert.pem'

2010-06-11 Thread brainstorm
Public bug reported:

It is my impression that /etc/pki directory is a RedHat-specific
thing. Shouldn't it look under /etc/ca-certificates ?

Does it make sense to generate such a self-signed certificate on python-
vm-builder's postinstall ?:

http://libvirt.org/remote.html#Remote_TLS_CA

-

# vmbuilder kvm ubuntu --suite lucid --flavour virtual --arch amd64 -o 
--libvirt qemu://system --user ubuntu --pass moo --addpkg unattended-upgrades 
--addpkg acpid
2010-06-11 22:41:16,227 INFO: Calling hook: preflight_check
2010-06-11 22:41:16,270 INFO: Calling hook: set_defaults
2010-06-11 22:41:16,271 INFO: Calling hook: bootstrap
2010-06-11 22:56:29,212 INFO: Calling hook: configure_os
2010-06-11 22:57:28,300 INFO: update-rc.d: warning: unattended-upgrades 
start runlevel arguments (none) do not match LSB Default-Start values (0 6)
2010-06-11 22:57:28,301 INFO: update-rc.d: warning: unattended-upgrades 
stop runlevel arguments (0 6) do not match LSB Default-Stop values (none)
2010-06-11 22:57:37,496 INFO: 
2010-06-11 22:57:37,497 INFO: Current default time zone: 'Etc/UTC'
2010-06-11 22:57:37,503 INFO: Local time is now:  Fri Jun 11 20:57:37 
UTC 2010.
2010-06-11 22:57:37,503 INFO: Universal Time is now:  Fri Jun 11 20:57:37 
UTC 2010.
2010-06-11 22:57:37,504 INFO: 
2010-06-11 22:59:21,370 INFO: 
2010-06-11 22:59:21,371 INFO: Current default time zone: 'Etc/UTC'
2010-06-11 22:59:21,376 INFO: Local time is now:  Fri Jun 11 20:59:21 
UTC 2010.
2010-06-11 22:59:21,376 INFO: Universal Time is now:  Fri Jun 11 20:59:21 
UTC 2010.
2010-06-11 22:59:21,376 INFO: Run 'dpkg-reconfigure tzdata' if you wish to 
change it.
2010-06-11 22:59:21,376 INFO: 
2010-06-11 22:59:44,243 INFO: Calling hook: post_install
2010-06-11 22:59:44,247 INFO: Calling hook: preflight_check
libvir: Remote error : Cannot access CA certificate '/etc/pki/CA/cacert.pem': 
No such file or directory
Traceback (most recent call last):
  File /usr/bin/vmbuilder, line 24, in module
cli.main()
  File /usr/lib/python2.6/dist-packages/VMBuilder/contrib/cli.py, line 116, 
in main
hypervisor.install_os()
  File /usr/lib/python2.6/dist-packages/VMBuilder/hypervisor.py, line 59, in 
install_os
self.call_hooks('preflight_check')
  File /usr/lib/python2.6/dist-packages/VMBuilder/distro.py, line 66, in 
call_hooks
call_hooks(self, *args, **kwargs)
  File /usr/lib/python2.6/dist-packages/VMBuilder/util.py, line 158, in 
call_hooks
getattr(plugin, func, log_no_such_method)(*args, **kwargs)
  File 
/usr/lib/python2.6/dist-packages/VMBuilder/plugins/libvirt/__init__.py, line 
46, in preflight_check
self.conn = libvirt.open(libvirt_uri)
  File /usr/lib/python2.6/dist-packages/libvirt.py, line 169, in open
if ret is None:raise libvirtError('virConnectOpen() failed')
libvirt.libvirtError: Cannot access CA certificate '/etc/pki/CA/cacert.pem': No 
such file or directory

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: python-vm-builder 0.12.3-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic x86_64
Architecture: amd64
Date: Fri Jun 11 23:10:38 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 LTS Lucid Lynx - Release amd64 (20100429)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=sv_SE.UTF-8
 SHELL=/bin/bash
SourcePackage: vm-builder

** Affects: vm-builder (Ubuntu)
 Importance: Undecided
 Status: New


** Tags: amd64 apport-bug lucid

-- 
libvirt.libvirtError: Cannot access CA certificate '/etc/pki/CA/cacert.pem'
https://bugs.launchpad.net/bugs/592853
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 592853] Re: libvirt.libvirtError: Cannot access CA certificate '/etc/pki/CA/cacert.pem'

2010-06-11 Thread brainstorm

** Attachment added: Dependencies.txt
   http://launchpadlibrarian.net/50156636/Dependencies.txt

** Attachment added: RelatedPackageVersions.txt
   http://launchpadlibrarian.net/50156637/RelatedPackageVersions.txt

-- 
libvirt.libvirtError: Cannot access CA certificate '/etc/pki/CA/cacert.pem'
https://bugs.launchpad.net/bugs/592853
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to vm-builder in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 517478] Re: remotely executed netcat (nc) uses -q option which is not universally supported

2010-02-26 Thread brainstorm
Bug #474107 does not fix it for me since libvirt itself (virsh) is using
-q anyway on new releases:

LIBVIRT_DEBUG=1 virsh -c qemu+ssh://r...@/system

It seems that nc -q code is present on libvirt itself too:

13:55:49.688: debug : doRemoteOpen:564 : proceeding with name = qemu:///system
13:55:49.688: debug : virExecWithHook:640 : ssh -l root  nc -q 0 -U 
/var/run/libvirt/libvirt-sock
13:55:49.701: debug : remoteIO:8431 : Do proc=66 serial=0 length=28 wait=(nil)
13:55:49.702: debug : remoteIO:8493 : We have the buck 66 0xb76f8008 0xb76f8008
13:55:50.049: debug : remoteIOEventLoop:8378 : Giving up the buck due to I/O 
error 66 0xb76f8008 (nil)
13:55:50.049: debug : do_open:1126 : driver 4 remote returned ERROR

Putting a nc binary that supports -q flag under /usr/local/bin fixes
it for me, see (as zigi wrote):

http://bugs.centos.org/view.php?id=4188

-- 
remotely executed netcat (nc) uses -q option which is not universally supported
https://bugs.launchpad.net/bugs/517478
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
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs