Launch a container in zun
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zun |
Invalid
|
Undecided
|
Unassigned |
Bug Description
This bug tracker is for errors with the documentation, use the following as a template and remove or add fields as you see fit. Convert [ ] into [x] to check boxes:
- [x] This doc is inaccurate in this way: ______
- [ ] This is a doc addition request.
- [ ] I have a fix to the document that I can paste below including example: input and output.
@@ interactive option error
i installed openstack queen manually
and installed zun also manually.
almost all 'openstack appcontainer' commands work very well.
but commands with --interactive option don't work.
I had 2 experience.
1. I made container2 , cirros with ping 8.8.8.8 command. like this page.
@controller:~$ openstack appcontainer exec --interactive container2 /bin/sh
HTTPConnectionP
2. container3 is cirros with bin/sh command.
@controller:~$ openstack appcontainer attach container3
connected to container3, press Enter to continue
type ~. to disconnect
Remote host closed connection:
****above case, I didn't anything.
@controller:~$ openstack appcontainer attach container3
connected to container3, press Enter to continue
type ~. to disconnect
Failed to connect to remote host:[Errno 104] Connection reset by peer:container3
******** this case I pressed Enter.
-------
ip 10.0.2.15 is just NAT adapter for internet access.(i made controller node by virtual box)
controller node's host ip is 11.0.0.11 and compute node's host ip is 11.0.0.31.
default gateway is 10.0.2.2
are there some codes using network interface?
container networking is fine. ping is work everywhere.
docker commands on compute node are fine.
just exec command is fine.
ex)
exec container3 echo "hello",
exec container3 /bin/sh is working (without --interactive) then just exit. no error.
but "exec --interactive" don't work.
attach container with /bin/sh don't work.
I guess, if command needs keyboard input -> error
or I missed some configuration.
so, What should I do ?
I want to provide log file.
but I can't find zun log file. where is log file? usually is in /var/log/
-------
Release: on 2018-07-17 03:33
SHA: 18bde1df69c820c
Source: https:/
URL: https:/
For #1, Could you try this. In your compute node, edit the Zun config file (/etc/zun/zun.conf) as following:
... remote_ api_host = <YOUR_IP_ADDRESS>
[docker]
docker_
...
Then, restart the zun-compute process.
Note: this IP address will be used by the exec command to access the Docker daemon, so make sure it is accessible from the the host you run the command.
For #2, could I know how you create the 'container3'. Below is the steps that worked for me:
$ openstack appcontainer create --interactive --name container3 --net network=$NET_ID cirros /bin/sh
$ openstack appcontainer start container3
$ openstack appcontainer attach container3