Gao feng
98262e7e50
cleanup: do not send reply message in hyper_shutdown
...
make hyper_shutdown interface more clearer.
Do the reply in hyper_pod_destroyed.
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2016-09-20 21:22:51 +08:00
Gao feng
ff845ee371
cleanup: remove restart policy type
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2016-09-20 21:17:34 +08:00
Lai Jiangshan
6224d6b779
Merge pull request #173 from gao-feng/cleanup
...
typo: fix debug message
2016-09-20 10:49:39 +08:00
Gao feng
2fb3ad7474
Merge pull request #175 from laijs/ifindex
...
remove ifindex from configs
2016-09-19 22:45:15 -04:00
Lai Jiangshan
82c1ecd25a
Merge pull request #174 from laijs/null-terminated
...
ensure the read buf is null-terminated
2016-09-20 10:36:31 +08:00
Lai Jiangshan
b46bc34498
Merge pull request #172 from gao-feng/stoppod
...
cleanup stoppod
2016-09-20 10:36:02 +08:00
Lai Jiangshan
0c5335b8d5
remove ifindex from configs
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-09-20 10:33:44 +08:00
Lai Jiangshan
dca1bd6aaa
ensure the read buf is null-terminated
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-09-20 10:00:14 +08:00
Gao feng
c4f06c3fcd
rename STOPPOD to STOPPOD_DEPRECATED
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2016-09-20 09:53:14 +08:00
Gao feng
92fc1d65a5
typo: fix debug message
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2016-09-20 09:18:03 +08:00
Gao feng
e0bc511a97
Don't support STOPPOD event any more
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2016-09-20 08:06:39 +08:00
Gao feng
46fd62cafd
remove hyper_stop_pod
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2016-09-20 09:22:08 +08:00
Gao feng
41438d40d6
remove unnecessary stopping pod if setup pod failed
...
already has hyper_destroy_pod when start pod failed.
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2016-09-20 08:05:29 +08:00
Lai Jiangshan
7294253548
Merge pull request #171 from gao-feng/init-fail
...
setup init_pid of pod until pod started successfully
2016-09-19 15:32:27 +08:00
Gao feng
41366ae88a
setup init_pid of pod until pod started successfully
...
In this case, there is no container init running, we cannot expect
hyper_release_exec will be called after terminating all processes.
With this patch, the destroy event will not try to kill running
container processes, it will call shutdown immediately.
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2016-09-19 14:57:47 +08:00
Lai Jiangshan
5edb81f783
Merge pull request #160 from jcvenegas/use-shared-dir-macro
...
Use macro SHARED_DIR for /tmp/hyper/shared path
2016-09-16 13:46:00 +08:00
Jose Carlos Venegas Munoz
eea9702389
Use macro SHARED_DIR for /tmp/hyper/shared path
...
Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com >
2016-09-16 00:37:25 -05:00
Peng Tao
7acbc5e288
Merge pull request #165 from hyperhq/revert-154-mntinit
...
Revert "handle volume special fstype"
2016-09-14 17:38:45 +08:00
Peng Tao
34ec350357
Revert "handle volume special fstype"
2016-09-14 17:35:48 +08:00
Gao feng
b58b03874d
Merge pull request #163 from laijs/c-string
...
enable using api command data as c-string inplace
2016-09-14 05:25:14 -04:00
Gao feng
02b777058d
Merge pull request #164 from laijs/file-command
...
use file_command for reader_file&write_file command
2016-09-14 05:10:25 -04:00
Lai Jiangshan
17f9f7b4cf
use file_command for write_file command
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-09-14 11:33:01 +08:00
Lai Jiangshan
4fa99f7a5b
rename hyper_reader to file_command
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-09-14 11:27:20 +08:00
Gao feng
6efb8d2638
Merge pull request #162 from laijs/consume-all-the-data-in-handle
...
Consume all the data in handle()
2016-09-14 10:51:06 +08:00
Lai Jiangshan
e2b79425f1
enable using api command data as c-string inplace
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-09-14 10:40:03 +08:00
Lai Jiangshan
21cb97d970
always comsume the date after handle()
...
even handle() failed.
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-09-14 10:17:06 +08:00
Lai Jiangshan
f06259b0b9
direct set the buf->get to zero after consume
...
the handle() had consumed all the read data,
and we don't need to move the leftover data.
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-09-14 10:12:41 +08:00
Lai Jiangshan
70dd9f1447
Merge pull request #161 from laijs/api-header
...
move constants of API to src/api.h
2016-09-14 10:02:01 +08:00
Lai Jiangshan
8b674e78f5
move constants of API to src/api.h
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-09-13 23:47:00 +08:00
Lai Jiangshan
de59d91bc2
Merge pull request #159 from dlespiau/20160912-trivial
...
A few trivial changes
2016-09-13 07:49:11 +08:00
Damien Lespiau
6824ff3d2e
util: Fix 'calss' type in the virtio-ports scanning code
...
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com >
2016-09-12 18:23:03 +01:00
Damien Lespiau
ffd28a721c
container: Fix error message in hyper_rescan_scsi()
...
The message needs to mention scanning scsi, not virtio-ports.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com >
2016-09-12 18:23:03 +01:00
Damien Lespiau
6f73ec97e3
init: Fix copy/paste typo in mount error string
...
The error message should mention devtmpfs and not sysfs in that case.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com >
2016-09-12 18:23:03 +01:00
Damien Lespiau
f01a9f4081
all: Fix the directroy typo
...
That typo crept in a few places.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com >
2016-09-12 18:23:03 +01:00
Damien Lespiau
79d066d847
gitignore: Ignore tags files
...
Running "make tags" generates tags to jump around the code easily.
Let's ignore the generated files though.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com >
2016-09-12 18:23:03 +01:00
Lai Jiangshan
9089ec3f25
Merge pull request #158 from dlespiau/20160912-autogen-hyperstart
...
build: Change hyperinit strings in autogen.sh to say hyperstart
2016-09-12 20:37:14 +08:00
Damien Lespiau
6e8bc85878
build: Change hyperinit strings in autogen.sh to say hyperstart
...
I'm guessing that's a previous name for the project.
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com >
2016-09-12 13:36:54 +01:00
Gao feng
4c0887f131
Merge pull request #153 from bergwolf/volmode
...
set umask when setting up container rootfs
2016-09-09 12:45:51 +08:00
Peng Tao
3d942a45bb
set umask when setting up container rootfs
...
So that we can truly create files and directories in any mode.
Signed-off-by: Peng Tao <bergwolf@gmail.com >
2016-09-09 10:32:54 +08:00
Lai Jiangshan
83223f6832
Merge pull request #154 from bergwolf/mntinit
...
handle volume special fstype
2016-09-02 22:45:57 +08:00
Gao feng
a2202183fb
Merge pull request #155 from laijs/fix-order-bug
...
ensure the mnt_ns opened before the process exit
2016-09-02 15:08:30 +08:00
Lai Jiangshan
37856283d5
ensure the mnt_ns opened before the process exit
...
quote of the log:
> open container mount ns failed: No such file or directory
> start containers failed
the process exits when hyper_enter_sandbox(), so we have
to move the wait before hyper_enter_sandbox().
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-09-02 14:50:47 +08:00
Peng Tao
bb7ebdaadd
handle volume special fstype
...
We can use INIT_VOLUME_MOUNTPOINT_FSTYPE to tell hyperstart that
current volume is a fake volume that only needs mountpoint to be present.
Signed-off-by: Peng Tao <bergwolf@gmail.com >
2016-09-02 14:26:15 +08:00
Gao feng
fe5c9a9d9c
Merge pull request #152 from laijs/api-version
...
add version API
2016-09-01 14:37:59 +08:00
Lai Jiangshan
62ef95ba93
add version API
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-08-31 13:37:00 +08:00
Lai Jiangshan
d8fb6c1af3
Merge pull request #143 from YaoZengzeng/parson-winsize
...
hyper_set_win_size with parson
2016-08-31 09:29:25 +08:00
Pengfei Ni
2ccac3fa9c
Merge pull request #151 from gao-feng/conntrack
...
portmapping: blow up nf_conntrack_max
2016-08-30 09:48:43 +08:00
Gao feng
52c87dc016
portmapping: blow up nf_conntrack_max
...
Signed-off-by: Gao feng <omarapazanadi@gmail.com >
2016-08-30 09:45:49 +08:00
Lai Jiangshan
f359cb9468
Merge pull request #150 from laijs/v0.6.2
...
bump version to 0.6.2
v0.6.2
2016-08-29 17:27:01 +08:00
Lai Jiangshan
3de74e927c
bump version to 0.6.2
...
Signed-off-by: Lai Jiangshan <jiangshanlai@gmail.com >
2016-08-29 17:18:06 +08:00