hyperhq / hyperd

HyperContainer Daemon
http://www.hypercontainer.io
Apache License 2.0
1.98k stars 196 forks source link

Hyperctl load command does not get respond #740

Open ghost opened 6 years ago

ghost commented 6 years ago

Hyperctl load command works good without -r option while adding "-r aaa" makes it fail.

gnawux commented 6 years ago

@Chen8132 thanks for reporting, will check it.

It would be appreciated if you could paste related logs which located in /var/log/hyper/ by default.

ghost commented 6 years ago

I think no log is about this issue. Just stop there when I execute hyperctl load -i /tmp/a.tar -r aaa. I actually do not know what is the use of -n option and -r option and want to figure it out.

gnawux commented 6 years ago

OK, will take a look. Thank you

gnawux commented 6 years ago

@Chen8132 I checked the code of these two flags, and both designed for OCI Image format

        Name  string   `short:"n" long:"name" value-name:"\"\"" description:"Name to use when loading OCI image layout tar archive"`
        Refs  []string `short:"r" long:"references" value-name:"\"\"" description:"References to use when loading an OCI image layout tar archive"`

I don't think it could work proper with docker images

ghost commented 6 years ago

My tar file is from docker save. Maybe it causes the problem?

gnawux commented 6 years ago

These two options are not for the images saved by docker

ghost commented 6 years ago

I find hyperctl exec and attach command do not get respond too.

gnawux commented 6 years ago

Did you try using the -t option?

ghost commented 6 years ago

I don't think attach command has -t option.

ghost commented 6 years ago

exec also doesn't work with -t option

gnawux commented 6 years ago

try hit the enter key after attach, if your container is launched with -t. Sometimes it simply no output after you attached. And could you got output if you exec a bash -c 'echo "hello, world"' if you have bash in the container.

ghost commented 6 years ago

Both attach and exec still do not work after I try what you said. I don't think they will make it in my server. My system is centOS 7.

gnawux commented 6 years ago

Specific image or no output with any images? And could you get the output with hyperctl logs?

ghost commented 6 years ago

I have tried ubuntu image and centos image. Nothing in logs.

ghost commented 6 years ago

just show leveldb: not found when it starts