container can't change hostname
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nova-docker |
Fix Committed
|
Undecided
|
wanghuagong |
Bug Description
When I use novadocker as compute driver to boot sahara cluster, it failed as following erros:
2015-09-08 03:00:54.213 18473 DEBUG sahara.context [req-31b31f6b-
Return code: 1
STDERR:
sudo: unable to resolve host instance-0000001e
hostname: you must be root to change the host name
Error ID: ae1991c2-
Error ID: 7c621a1b-
2015-09-08 03:00:54.214 18473 DEBUG sahara.context [req-31b31f6b-
Return code: 1
STDERR:
sudo: unable to resolve host instance-0000001d
hostname: you must be root to change the host name
I found that it's an issue related to novadocker, container created by novadocker didn't hava privileges to set hostname.
The code Docker client start container as below:
def start(self, container, binds=None, port_bindings=None, lxc_conf=None,
The parameter 'privileged' should be 'True', but novadocker didn't pass this para to Docker client when booting container.
Changed in nova-docker: | |
assignee: | nobody → wanghuagong (whgfirst) |
Fixed in https:/ /review. openstack. org/#/c/ 221585/