5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2024-12-25 05:33:49 +03:00
Commit Graph

828 Commits

Author SHA1 Message Date
Wolfgang Bumiller
d07b7084c4 spice-proxy format now uses new address format
spice-proxy used dns-name before which matches a combination of letters,
digits and dots, which happens to include ipv4 addresses but not ipv6
ones.
Since 'dns-name' sounds like it's only for names, I'm adding an address
format which is either a dns-name or an ip (including ipv6).
2015-05-27 15:32:11 +02:00
Wolfgang Bumiller
e43b3a0f50 prevent the use of AI_ADDRCONFIG
perl's IO::Socket::IP passes AI_ADDRCONFIG if no GetAddrInfoFlags are passed,
which is often useful but also causes it to error when explicitly trying to
bind to 127.0.0.1 when there are no _other_ IPv4 addresses present.
2015-05-27 15:32:08 +02:00
Dietmar Maurer
7d97ec60e8 update changelog 2015-05-12 10:36:40 +02:00
Wolfgang Bumiller
a0b6ef523a new helper: getaddrinfo_all
As it's commonly used in ipv6 support code a getaddrinfo wrapper passing
default flags and dealing with the (err,result) tuple was added.
2015-05-12 10:35:35 +02:00
Wolfgang Bumiller
467752183d add a socket family argument to next_*_port functions
Instead of assuming a local address of 0.0.0.0, the next_*_port family
of functions now takes an optional packet family argument (AF_INET/AF_INET6),
used for ipv6 support.
2015-05-12 10:35:31 +02:00
Dietmar Maurer
4808fea7c0 bump version to 4.0-3 2015-05-08 12:38:17 +02:00
Wolfgang Bumiller
a956854f8d add utility to fetch the socket family for a hostname 2015-05-08 12:36:30 +02:00
Wolfgang Bumiller
83397d50e0 optional socket family parameter for create_reusable_socket 2015-05-08 12:36:21 +02:00
Wolfgang Bumiller
8df6b79439 provide Tools::unpack_sockaddr_in46 2015-05-08 12:36:11 +02:00
Wolfgang Bumiller
00dc9d0fa9 Use IO::Socket::IP instead of INET 2015-05-08 12:35:15 +02:00
Dietmar Maurer
93276209cc fix typo 2015-04-23 09:14:48 +02:00
Dietmar Maurer
ed5880acdc add additional methods for IP address verification 2015-04-23 08:19:03 +02:00
Dietmar Maurer
c70c3bbc83 cleanup: remove unnecessary prefix 2015-04-22 10:08:37 +02:00
Dietmar Maurer
c6aff4766c bump version to 4.0-2 2015-04-22 09:56:37 +02:00
Dietmar Maurer
b0edd8e6d2 register new standard option pve-startup-order
We can use this for lxc and qemu.
2015-04-22 09:49:15 +02:00
Dietmar Maurer
3432ae0c5e improve error message 2015-04-03 08:10:23 +02:00
Dietmar Maurer
1cfd43f6f9 use libspice-protocol-dev (instead of debian package) 2015-03-23 12:40:03 +01:00
Dietmar Maurer
a4a9a32857 use wiki style headers for README.dev 2015-03-04 06:59:12 +01:00
Dietmar Maurer
8bc53243e0 update installation instructions 2015-03-02 11:11:49 +01:00
Dietmar Maurer
b51b16e6f5 rename data to src 2015-02-27 16:57:20 +01:00
Dietmar Maurer
47e4eb1129 bump version for Debian Jessie 2015-02-26 11:19:59 +01:00
Dietmar Maurer
c58f205b5c bump version to 3.0-24 2015-02-11 06:38:44 +01:00
Stefan Priebe
16d74d09ca next_migrate_port: higher port range - all other ranges are 100 ports
Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
2015-02-11 06:36:09 +01:00
Stefan Priebe
940be49b86 Fix next_unused_port already bin detection
unsecure migration does not use localhost to bind to. Instead it uses a specific IP on the node.
As we don't know that IP in this part of the code the only chance to check for a possible already
existing bind is to bind to all IPs.

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
2015-02-11 06:35:37 +01:00
Dietmar Maurer
0324c6a27f bump version to 3.0-23 2015-02-09 07:02:29 +01:00
Alexandre Derumier
4b40ad1871 read_etc_network_interfaces : don't always add vmbr0
Currently it's impossible to remove vmbr0 from network gui,

if we really want to remove it, or replace it with an OVS vmbr0

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2015-02-09 07:01:27 +01:00
Dietmar Maurer
363a51a0d4 bump version to 3.0-22 2015-01-08 14:49:59 +01:00
Dietmar Maurer
309d99e718 Daemon: change option name 'run_dir' to 'pidfile' 2015-01-02 14:15:09 +01:00
Dietmar Maurer
c4ad45cf20 Daemon: new option to change user/group (setuid/setgid) 2015-01-02 14:06:46 +01:00
Dietmar Maurer
9403080a44 Daemon: make sure we kill all child processes on TERM 2015-01-02 09:31:21 +01:00
Dietmar Maurer
517c11257c Daemon: add helper to create sockets
Those sockets are not closed and reopened at restart.
2015-01-01 15:41:19 +01:00
Dietmar Maurer
ce0ae1edec Daemon: catch finished worker earlier
Else we get zobies for 5 seconds at restart.
2015-01-01 14:59:04 +01:00
Dietmar Maurer
f3a33995cd Daemon: also terminate old_workers on stop 2015-01-01 12:42:31 +01:00
Dietmar Maurer
8826037040 Daemon: call terminate_server if we get unexpected errors 2015-01-01 12:06:17 +01:00
Dietmar Maurer
d7950851db Daemon: implement new option leave_children_open_on_reload
We want to be able restart daemons without closing existing connections.
2015-01-01 12:02:13 +01:00
Dietmar Maurer
93710700b9 Daemon: correctly set got_hup_signal flag (before we call terminate) 2015-01-01 10:57:10 +01:00
Dietmar Maurer
6105a115c6 Daemon: raise error if we cannot parse lockfd 2015-01-01 10:41:52 +01:00
Dietmar Maurer
da1a7f5889 Daemon: remove useless parameter 2014-12-31 17:40:04 +01:00
Dietmar Maurer
7db2b94082 Daemon: untaint value read from ENV 2014-12-31 17:28:33 +01:00
Dietmar Maurer
1ea9e6df45 Daemon: log error and exit if something fails inside constructor 2014-12-31 17:17:44 +01:00
Dietmar Maurer
f1fb34a0a5 RESTHandler: define empty DESTROY to avoid useless warings
We oserverd the following warning sometimes:

  (in cleanup) no such method 'main=HASH(0x38b2d48)::DESTROY'

Defining an empty DESTROY seems to avoid it.
2014-12-31 17:11:28 +01:00
Dietmar Maurer
48876459cb Daemon: do not wait for lock on restart 2014-12-31 17:01:51 +01:00
Dietmar Maurer
c56111950d Daemon: cleanup logging 2014-12-31 12:31:21 +01:00
Dietmar Maurer
1a6bc2f371 Daemon: keep lock file open during restart
So that nobody else can grab the lock
2014-12-31 11:54:27 +01:00
Dietmar Maurer
a8ba2293d4 Daemon: move ENV manipulation into new() 2014-12-31 10:29:23 +01:00
Dietmar Maurer
eead1ad86a after_fork_cleanup: move code into separate sub 2014-12-31 10:20:50 +01:00
Dietmar Maurer
3206cdf677 Daemon: try harder (up to 5 times) to get lock 2014-12-31 10:07:52 +01:00
Dietmar Maurer
b192b93018 code cleanup 2014-12-31 09:53:47 +01:00
Dietmar Maurer
b21320547b Daemon: implement pre-fork server (max_wrokers property) 2014-12-31 09:47:41 +01:00
Dietmar Maurer
4fc6917657 improve doc 2014-12-20 09:59:42 +01:00